/freebsd/bin/sh/tests/parameters/ |
H A D | positional2.0 | 21 testcase 'set -- a b; set -- p$@q' '2|pa|bq' 22 testcase 'set -- a b; set -- $@q' '2|a|bq' 23 testcase 'set -- a b; set -- p$@' '2|pa|b' 24 testcase 'set -- a b; set -- p$@q' '2|pa|bq' 25 testcase 'set -- a b; set -- $@q' '2|a|bq' 26 testcase 'set -- a b; set -- p$@' '2|pa|b' 27 testcase 'set -- a b; set -- p$*q' '2|pa|bq' 28 testcase 'set -- a b; set -- $*q' '2|a|bq' 29 testcase 'set -- a b; set -- p$*' '2|pa|b' 30 testcase 'set -- a b; set -- p$*q' '2|pa|bq' [all …]
|
/freebsd/bin/sh/tests/expansion/ |
H A D | trim9.0 | 24 testcase 'shift $#; set -- "${*#Q}"' '1|' 25 testcase 'shift $#; set -- "${*##Q}"' '1|' 26 testcase 'shift $#; set -- "${*%Q}"' '1|' 27 testcase 'shift $#; set -- "${*%%Q}"' '1|' 28 testcase 'set -- Q R; set -- "${*#Q}"' '1| R' 29 testcase 'set -- Q R; set -- "${*##Q}"' '1| R' 30 testcase 'set -- Q R; set -- "${*%R}"' '1|Q ' 31 testcase 'set -- Q R; set -- "${*%%R}"' '1|Q ' 32 testcase 'set -- Q R; set -- "${*#S}"' '1|Q R' 33 testcase 'set -- Q R; set -- "${*##S}"' '1|Q R' [all …]
|
H A D | trim1.0 | 23 testcase 'set -- ${t%t}' '1|texttex' 24 testcase 'set -- "${t%t}"' '1|texttex' 25 testcase 'set -- ${t%e*}' '1|textt' 26 testcase 'set -- "${t%e*}"' '1|textt' 27 testcase 'set -- ${t%%e*}' '1|t' 28 testcase 'set -- "${t%%e*}"' '1|t' 29 testcase 'set -- ${t%%*}' '0|' 30 testcase 'set -- "${t%%*}"' '1|' 31 testcase 'set -- ${t#t}' '1|exttext' 32 testcase 'set -- "${t#t}"' '1|exttext' [all …]
|
H A D | plus-minus1.0 | 23 testcase 'set -- a b' '2|a|b' 24 testcase 'set --' '0|' 25 testcase 'set -- ${e}' '0|' 26 testcase 'set -- "${e}"' '1|' 28 testcase 'set -- $p' '1|/etc/' 29 testcase 'set -- "$p"' '1|/et[c]/' 30 testcase 'set -- ${s+$p}' '1|/etc/' 31 testcase 'set -- "${s+$p}"' '1|/et[c]/' 32 testcase 'set -- ${s+"$p"}' '1|/et[c]/' 34 #testcase 'set -- "${s+"$p"}"' '1|/et[c]/' [all …]
|
H A D | trim8.0 | 3 LC_CTYPE=en_US.UTF-8 32 testcase 'set -- "$s"' "1|$s" 33 testcase 'set -- "${s#$c2}"' "1|$s" 34 testcase 'set -- "${s#*}"' "1|$s" 35 testcase 'set -- "${s#$c1}"' "1|$c2$c3$c4" 36 testcase 'set -- "${s#$c1$c2}"' "1|$c3$c4" 37 testcase 'set -- "${s#$c1$c2$c3}"' "1|$c4" 38 testcase 'set -- "${s#$c1$c2$c3$c4}"' "1|" 39 testcase 'set -- "${s#?}"' "1|$c2$c3$c4" 40 testcase 'set -- "${s#??}"' "1|$c3$c4" [all …]
|
H A D | tilde2.0 | 25 testcase 'set -- ${$+~}' '1|/tmp' 26 testcase 'set -- ${$+~/}' '1|/tmp/' 27 testcase 'set -- ${$+~/foo}' '1|/tmp/foo' 28 testcase 'set -- ${$+x~}' '1|x~' 29 testcase 'set -- ${$+~root}' "1|$roothome" 30 testcase 'set -- ${$+"~"}' '1|~' 31 testcase 'set -- ${$+"~/"}' '1|~/' 32 testcase 'set -- ${$+"~/foo"}' '1|~/foo' 33 testcase 'set -- ${$+"x~"}' '1|x~' 34 testcase 'set -- ${$+"~root"}' "1|~root" [all …]
|
H A D | trim2.0 | 23 set -f 24 testcase 'set -- $s' '1|ast*que?non' 25 testcase 'set -- ${s%\?*}' '1|ast*que' 26 testcase 'set -- "${s%\?*}"' '1|ast*que' 27 testcase 'set -- ${s%\**}' '1|ast' 28 testcase 'set -- "${s%\**}"' '1|ast' 29 testcase 'set -- ${s%"$q"*}' '1|ast*que' 30 testcase 'set -- "${s%"$q"*}"' '1|ast*que' 31 testcase 'set -- ${s%"$a"*}' '1|ast' 32 testcase 'set -- "${s%"$a"*}"' '1|ast' [all …]
|
/freebsd/share/examples/ppp/ |
H A D | ppp.conf.sample | 23 # This section is *not* pre-loaded by the ``load'' or ``dial'' commands. 30 set log Phase Chat LCP IPCP CCP tun command 31 set device /dev/cuau1 32 set speed 115200 33 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT \ 34 OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" 41 # is required by the server either using a unix-style login procedure 46 # use a unix-style login script: 53 # The /0 bit in "set ifaddr" says that we insist on 0 bits of the 57 # The fourth arg to "set ifaddr" makes us send "0.0.0.0" as our requested [all …]
|
H A D | ppp.conf.span-isp.working | 2 # This is a working example of ppp.conf.span-isp that uses ppp connections 3 # to the same machine through 3 null-modem serial cables. 5 # cuaD03 <-> cuaD04 6 # cuaD01 <-> cuaD06 7 # cuaD00 <-> cuaD07 15 # exec /usr/sbin/pppin -direct isp-in-${tty#${tty%?}} 19 # ppp -b isp1 20 # ppp -b isp2 21 # ppp -b isp3 24 # If you connect to the vpn-in diagnostic socket with ``pppctl [all …]
|
/freebsd/tests/sys/kern/ |
H A D | sched_affinity.c | 1 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 14 #include <atf-c.h> 43 cpuset_t *set; in support_getmaxcpuid() local 49 set = CPU_ALLOC(i); in support_getmaxcpuid() 50 ATF_REQUIRE(set != NULL); in support_getmaxcpuid() 51 CPU_ZERO_S(setsize, set); in support_getmaxcpuid() 53 -1, setsize, set); in support_getmaxcpuid() 55 id = __BIT_FLS(i, set) - 1; in support_getmaxcpuid() 56 CPU_FREE(set); in support_getmaxcpuid() [all …]
|
/freebsd/stand/forth/ |
H A D | menu.rc | 10 include /boot/menu-commands.4th 15 print_version \ print version string (bottom-right; see `version.4th') 16 draw-beastie \ draw freebsd mascot (on right; see `beastie.4th') 17 draw-brand \ draw the FreeBSD title (top-left; see `brand.4th') 18 menu-init \ initialize the menu area (see `menu.4th') 21 \ NOTE: To use `non-ansi' variants, add `loader_color=0' to loader.conf(5) 28 set menuset_name1="main" 30 set mainmenu_init[1]="init_boot" 31 set mainmenu_caption[1]="Boot Multi User [Enter]" 32 set maintoggled_text[1]="Boot [S]ingle User [Enter]" [all …]
|
H A D | menusets.4th | 26 marker task-menusets.4th 28 vocabulary menusets-infrastructure 29 only forth also menusets-infrastructure definitions 37 : menuset-loadvar ( -- ) 40 \ $type should be set to one of: 42 \ $var should be set to one of: 47 s" set cmdbuf='set ${type}_${var}=\$'" evaluate 48 s" cmdbuf" getenv swap drop ( -- u1 ) \ get string length 50 s" set cmdbuf=${cmdbuf}${affix}${type}_${var}" 51 ( u1 -- u1 c-addr2 u2 ) [all …]
|
/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | f11 | 25 List of groups configured (set 0) 26 List of groups configured (set 1) 27 Rules configured (set 0, in) 29 Rules configured (set 0, out) 30 Rules configured (set 1, in) 31 Rules configured (set 1, out) 32 Accounting rules configured (set 0, in) 33 Accounting rules configured (set 0, out) 34 Accounting rules configured (set 1, in) 35 Accounting rules configured (set 1, out) [all …]
|
H A D | n4 | 12 rdr zx0 10.1.1.1/32 port 23 -> 10.2.2.1/32 port 10023 tcp 15 RDR 10.2.2.1 10023 <- -> 10.1.1.1 23 [10.3.3.3 12345] 21 List of groups configured (set 0) 22 List of groups configured (set 1) 23 Rules configured (set 0, in) 24 Rules configured (set 0, out) 25 Rules configured (set 1, in) 26 Rules configured (set 1, out) 27 Accounting rules configured (set 0, in) 28 Accounting rules configured (set 0, out) [all …]
|
H A D | n10 | 4 map ppp0 0/0 -> 203.203.203.203/32 mssclamp 100 7 MAP 192.168.1.3 32818 <- -> 203.203.203.203 32818 [150.203.224.2 21] 10 192.168.1.3,150.203.224.2 -> 203.203.203.203,0.0.0.0 (use = 1) 14 List of groups configured (set 0) 15 List of groups configured (set 1) 16 Rules configured (set 0, in) 17 Rules configured (set 0, out) 18 Rules configured (set 1, in) 19 Rules configured (set 1, out) 20 Accounting rules configured (set 0, in) [all …]
|
/freebsd/contrib/netbsd-tests/bin/sh/ |
H A D | t_set_e.sh | 29 # http://www.opengroup.org/onlinepubs/009695399/utilities/set.html 45 #echo "$TEST_SH -c $1" 46 result=`$TEST_SH -c "$1" 2>/dev/null | tr '\n' ' ' | sed 's/ *$//'` 48 MSG=`printf "%-56s %-8s %s" "$3" "$result" "$2"` 71 atf_set "descr" "Tests that 'set -e' works correctly" 78 dcheck '(set -e; exit 1; echo ERR$?); echo OK$?' 'OK1' 79 echeck '(set -e; exit 1; echo ERR$?); echo OK$?' 'OK1' 84 dcheck '(set -e; false; echo ERR$?); echo OK$?' 'OK1' 85 echeck '(set -e; false; echo ERR$?); echo OK$?' 'OK1' 88 dcheck '(set -e; /nonexistent; echo ERR); echo OK' 'OK' [all …]
|
H A D | t_fsplit.sh | 3 # Copyright (c) 2007-2016 The NetBSD Foundation, Inc. 32 # In particular this means that in ${x-word}, 'word' must be expanded as if 33 # the "${x-" and "}" were absent from the input line. 35 # So: sh -c 'set ${x-a b c}; echo $#' should give 3. 36 # and: sh -c 'set -- ${x-}' echo $#' shold give 0 54 result=$( ${TEST_SH} -c "unset x; $1" ) 66 set -- "$(expr "$1" : '\(............\).*')..." "$2" ;; 102 # Check that IFS is applied to text from ${x-...} unless it is inside 103 # any set of "..." 104 check 'set -- ${x-a b c}; echo $#' 3 [all …]
|
/freebsd/sys/kern/ |
H A D | kern_cpuset.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 85 * Each process belongs to an identified set, by default this is set 1. Each 87 * named set. This creates an anonymous set which other threads and processes 90 * The named set is referred to herein as the 'base' set to avoid ambiguity. 91 * This set is usually a child of a 'root' set while the anonymous set may 95 * Threads inherit their set from their creator whether it be anonymous or 97 * shared. To modify an anonymous set a new set is created with the desired 98 * mask and the same parent as the existing anonymous set. This gives the 102 * or mask that is discovered via a pid, tid, or setid. Modifying a set [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs/ |
H A D | zfs_001_neg.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 37 # Try each zfs(1) sub-command without parameters to make sure 42 # 2. For each parameter in the array, execute the sub-command 49 set -A args "" "create" "create -s" "create -V" "create -s -V" \ 50 "destroy" "destroy -f" "destroy -r" "destroy -R" "destroy -rRf" \ 51 "snapshot" "snapshot -r" \ 52 "rollback" "rollback -r" "rollback -R" "rollback -f" "rollback -rRf" \ 53 "clone" "clone -p" "promote" "rename" "rename -p" "rename -r" "list blah" \ [all …]
|
/freebsd/lib/libc/gen/ |
H A D | setmode.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 51 #include "un-namespace.h" 79 * Note that there is no '=' command; a strict assignment is just a '-' (clear 80 * bits) followed by a '+' (set bits). 85 const BITCMD *set; in getmode() local 88 set = (const BITCMD *)bbox; in getmode() 90 for (value = 0;; set++) in getmode() 91 switch(set->cmd) { in getmode() 108 common: if (set->cmd2 & CMD2_CLR) { in getmode() [all …]
|
/freebsd/lib/libc/tests/string/ |
H A D | strcspn_test.c | 1 /*- 30 #include <atf-c.h> 51 testcase(char *buf, size_t buflen, char *set, size_t setlen, int want_match) in testcase() argument 55 assert(setlen < UCHAR_MAX - 2); in testcase() 59 buf[i] = UCHAR_MAX - i % (setlen > 0 ? setlen : 1); in testcase() 61 buf[i] = 1 + i % (UCHAR_MAX - setlen - 1); in testcase() 67 set[i] = UCHAR_MAX - i; in testcase() 69 set[i] = '\0'; in testcase() 75 buf[buflen - 1] = 1; in testcase() 76 expected = buflen - 1; in testcase() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | README_P9.txt | 1 //===- README_P9.txt - Notes for improving Power9 code gen ----------------===// 6 - Vector Compare Not Equal (Zero): 11 - Vector Extract Unsigned: vextractub vextractuh vextractuw vextractd 14 (set v2i64:$vD, (int_ppc_altivec_vextractub v16i8:$vA, imm:$UIMM)) 15 (set v2i64:$vD, (int_ppc_altivec_vextractuh v8i16:$vA, imm:$UIMM)) 16 (set v2i64:$vD, (int_ppc_altivec_vextractuw v4i32:$vA, imm:$UIMM)) 17 (set v2i64:$vD, (int_ppc_altivec_vextractd v2i64:$vA, imm:$UIMM)) 19 - Vector Extract Unsigned Byte Left/Right-Indexed: 22 // Left-Indexed 23 (set i64:$rD, (int_ppc_altivec_vextublx i64:$rA, v16i8:$vB)) [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs/ |
H A D | zfs_001_neg.ksh | 1 #!/usr/local/bin/ksh93 -p 35 # Try each zfs(1) sub-command without parameters to make sure 40 # 2. For each parameter in the array, execute the sub-command 47 # CODING_STATUS: COMPLETED (2005-07-04) 56 set -A args "" "create" "create -s" "create -V" "create -s -V" \ 57 "destroy" "destroy -f" "destroy -r" "destroy -R" "destroy -rRf" \ 58 "snapshot" "snapshot -r" \ 59 "rollback" "rollback -r" "rollback -R" "rollback -f" "rollback -rRf" \ 60 "clone" "clone -p" "promote" "rename" "rename -p" "rename -r" "list blah" \ 61 "set" "get" "get -rHp" "get -o" "get -s" \ [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | rx_desc.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 159 * If use_flow_id_toeplitz_clfy is set and lmac_peer_id_'sb 163 * If use_flow_id_toeplitz_clfy is set and lmac_peer_id_msb 187 * pkt_selection_fp_... bit is set 191 * pkt_selection_fp_... bit is set 194 * If set, for multicast packets, multicast echo check (i.e. 200 * If set, WDS learning detection based on SA search and notification 202 * field in address search failure cache-only entry should [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | CMakeLists.txt | 18 # cmake -G "Visual Studio 10" .. 25 cmake_policy(SET CMP0054 NEW) 28 cmake_policy(SET CMP0074 NEW) 31 cmake_policy(SET CMP0075 NEW) 35 set(CMAKE_BUILD_TYPE Release 36 CACHE STRING "Set build type to Debug o Release (default Release)" FORCE) 41 # what? why would you get id of other useful build types? - Ellzey 42 set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Limited configurations" FORCE) 44 set(EVENT__LIBRARY_TYPE DEFAULT CACHE STRING 45 "Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)") [all …]
|