Home
last modified time | relevance | path

Searched refs:bar (Results 1 – 25 of 169) sorted by relevance

1234567

/titanic_51/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.basename.d.out3 if [ `basename "/foo/bar/baz"` != "baz" ]; then
4 echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\"
7 if [ `dirname "/foo/bar/baz"` != "/foo/bar" ]; then
8 echo "dirname(\"/foo/bar/baz\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz"`"\"
11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then
12 echo "basename(\"/foo/bar///ba
[all...]
H A Dtst.cleanpath.d.out1 cleanpath("/foo/bar/baz") = "/foo/bar/baz"
2 cleanpath("/foo/bar///baz/") = "/foo/bar/baz/"
3 cleanpath("/foo/bar/baz/") = "/foo/bar/baz/"
4 cleanpath("/foo/bar/baz//") = "/foo/bar/baz/"
5 cleanpath("/foo/bar/baz/.") = "/foo/bar/ba
[all...]
/titanic_51/usr/src/lib/libshell/common/tests/
H A Dnameref.sh36 nameref foo=$1 bar=$2
37 if [[ $foo != $bar ]]
38 then err_exit "foo=$foo != bar=$bar"
41 if [[ $foo != $bar ]]
42 then err_exit "foo=$foo != bar=$bar"
45 if [[ ${foo.child} != ${bar.child} ]]
55 .foo.bar=next
56 checkref .foo.bar .foo.bar
57 if [[ ${.foo.bar} != hello ]]
60 if [[ ${.foo.bar.child} != child ]]
[all …]
H A Dalias.sh42 alias bar=world alias
43 if [[ $(foo bar) != 'hello world' ]]
46 if [[ $(foo \bar) != 'hello bar' ]]
49 alias bar='foo world' alias
50 if [[ $(bar) != 'hello world' ]]
53 if [[ $(alias bar) != "bar='foo world'" ]] alias
58 unset bar
59 alias bar="print foo$bar" alias
60 bar=bar
61 if [[ $(bar) != foo ]]
[all …]
H A Darrays.sh102 foo[3]=bar
109 foo[3]=bar
132 x[2]=foo x[4]=bar
183 typeset foo=bar
185 if [[ ${foo[0]} != bar ]]
233 : $(set -A list foo bar)
238 list= (foo bar bam)
240 if [[ ${list[1]} != bar ]]
325 x=([foo]=bar)
372 foo[bar]=bam
[all …]
H A Dcomvar.sh64 x=( [foo]=bar )
65 if [[ ${x[@]} != bar ]]
79 x.foo.bar=7
80 [[ ${x.foo.bar} == 7 ]] || err_exit '[[ ${x.foo.bar} != 7 ]]'
81 (( x.foo.bar == 7 ))|| err_exit '(( x.foo.bar != 7 ))'
82 [[ ${x.foo} == *bar=7* ]] || err_exit '[[ ${x.foo} != *bar=7* ]]'
184 foo=( bar=foo barbar=bar)
185 [[ $foo == *bar=foo* ]] || err_exit 'no prefix elements in compound variable output'
213 ( [[ ${z.foo.bar:-abc} == abc ]] 2> /dev/null) || err_exit ':- not working with compound variables'
215 typeset -a stack.items=([0]=foo [1]=bar)
[all …]
H A Dfunctions.sh37 bar=bye
42 1) print -r - "$foo" "$bar";;
45 integer bar=10
46 print -r - "$foo" "$bar";;
68 if [[ $(bar=foo foobar 1) != '33 foo' ]]
71 if [[ $bar == foo ]]
121 print bar
129 if [[ $(foo) != bar ]]
188 print bar
190 if [[ $(foo) != bar ]]
[all …]
H A Dreturn.sh38 foo=NOVAL bar=NOVAL
49 else bar "$@"
53 function bar function
55 typeset bar=NOEXIT
71 foo=NOVAL bar=NOVAL
98 [[ $bar = EXIT ]] || err_exit "foo 2 0: bar exit trap not set"
105 [[ $bar = EXIT ]] || err_exit "foo 2 3: bar exit trap not set"
H A Dvariables.sh121 x=bar
131 if [[ $x != bar ]]
136 foo=bar
144 if [[ $foo != bar ]]
196 eval foo='$'$i bar='$'{$i}
197 if [[ ${foo} != "${bar}" ]]
200 command eval bar='$'{$i%?} 2> /dev/null || err_exit "\${$i%?} gives syntax error"
201 if [[ $i != [@*] && ${foo%?} != "$bar" ]]
204 command eval bar='$'{$i#?} 2> /dev/null || err_exit "\${$i#?} gives syntax error"
208 command eval foo='$'{$i} bar='$'{#$i} || err_exit "\${#$i} gives synta
[all …]
/titanic_51/usr/src/tools/ctf/cvt/
H A Dbarrier.c47 barrier_init(barrier_t *bar, int nthreads) in barrier_init() argument
49 pthread_mutex_init(&bar->bar_lock, NULL); in barrier_init()
50 sema_init(&bar->bar_sem, 0, USYNC_THREAD, NULL); in barrier_init()
52 bar->bar_numin = 0; in barrier_init()
53 bar->bar_nthr = nthreads; in barrier_init()
57 barrier_wait(barrier_t *bar) in barrier_wait() argument
59 pthread_mutex_lock(&bar->bar_lock); in barrier_wait()
61 if (++bar->bar_numin < bar->bar_nthr) { in barrier_wait()
62 pthread_mutex_unlock(&bar in barrier_wait()
[all...]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dalias.sh42 alias bar=world alias
43 if [[ $(foo bar) != 'hello world' ]]
44 then err_exit 'foo bar, where foo is alias for "print hello " failed'
46 if [[ $(foo \bar) != 'hello bar' ]]
47 then err_exit 'foo \bar, where foo is alias for "print hello " failed'
49 alias bar='foo world' alias
50 if [[ $(bar) != 'hello world' ]]
51 then err_exit 'bar, where bar i
53 if [[ $(alias bar) != "bar='foo world'" ]] global() alias
59 alias bar="print foo$bar" global() alias
65 alias bar='print hello' global() alias
[all...]
H A Dnameref.sh36 nameref foo=$1 bar=$2
37 if [[ $foo != $bar ]]
38 then err_exit "foo=$foo != bar=$bar"
41 if [[ $foo != $bar ]]
42 then err_exit "foo=$foo != bar=$bar"
45 if [[ ${foo.child} != ${bar.child} ]]
46 then err_exit "foo.child=${foo.child} != bar=${bar
[all...]
H A Darrays.sh102 foo[3]=bar
109 foo[3]=bar
132 x[2]=foo x[4]=bar
183 typeset foo=bar
185 if [[ ${foo[0]} != bar ]]
233 : $(set -A list foo bar)
238 list= (foo bar bam)
240 if [[ ${list[1]} != bar ]]
325 x=([foo]=bar)
338 [[ $($SHELL -c "var=(foo bar);expor
[all...]
H A Dfunctions.sh40 bar=bye
45 1) print -r - "$foo" "$bar";;
48 integer bar=10
49 print -r - "$foo" "$bar";;
71 if [[ $(bar=foo foobar 1) != '33 foo' ]]
74 if [[ $bar == foo ]]
124 print bar
132 if [[ $(foo) != bar ]]
191 print bar
193 if [[ $(foo) != bar ]]
201 function bar global() function
872 function bar global() function
911 function bar global() function
990 bar() { caller;} global() function
1033 function bar global() function
1062 function bar global() function
[all...]
H A Dcomvar.sh64 x=( [foo]=bar )
65 if [[ ${x[@]} != bar ]]
79 x.foo.bar=7
80 [[ ${x.foo.bar} == 7 ]] || err_exit '[[ ${x.foo.bar} != 7 ]]'
81 (( x.foo.bar == 7 ))|| err_exit '(( x.foo.bar != 7 ))'
82 [[ ${x.foo} == *bar=7* ]] || err_exit '[[ ${x.foo} != *bar=7* ]]'
88 $SHELL -c $'x=(foo=bar)\
[all...]
H A Dnamespace.sh35 typeset -C bar=(x=3 y=4 t=7)
68 foo=bar
69 typeset -C bar=(x=1 y=2 z=3)
75 [[ $(fn) == 'local fn bar' ]] || err_exit 'fn inside namespace should run local function'
81 [[ ${bar.y} == 2 ]] || err_exit 'local variable bar.y not found'
82 [[ ${bar.t} == '' ]] || err_exit 'global bar.t should not be visible'
93 [[ $(runxrun) == 'xfun local bar' ]] || err_exit 'local function on FPATH failed'
94 [[ $(runrun $foo) == 'local prog bar' ]] || err_exi
[all...]
H A Dreturn.sh38 foo=NOVAL bar=NOVAL
49 else bar "$@"
53 function bar function
55 typeset bar=NOEXIT
56 trap 'bar=EXIT' EXIT
71 foo=NOVAL bar=NOVAL
98 [[ $bar == EXIT ]] || err_exit "foo 2 0: bar exit trap not set"
105 [[ $bar == EXIT ]] || err_exit "foo 2 3: bar exi
[all...]
H A Dvariables.sh121 x=bar
131 if [[ $x != bar ]]
136 foo=bar
144 if [[ $foo != bar ]]
196 eval foo='$'$i bar='$'{$i}
197 if [[ ${foo} != "${bar}" ]]
200 command eval bar='$'{$i%?} 2> /dev/null || err_exit "\${$i%?} gives syntax error"
201 if [[ $i != [@*] && ${foo%?} != "$bar" ]]
204 command eval bar='$'{$i#?} 2> /dev/null || err_exit "\${$i#?} gives syntax error"
205 if [[ $i != [@*] && ${foo#?} != "$bar" ]]
[all...]
/titanic_51/usr/src/cmd/dtrace/test/tst/common/struct/
H A Dtst.clauselocal.d37 this struct foo bar; variable
42 this->bar.x = 1;
43 this->bar.y = ',';
44 this->bar.z = 1234;
49 printf("Die %s%c %s.\n", this->bar.x == 1 ? "SystemTap" : "DTrace",
50 this->bar.y, this->bar.z == 1234 ? "Die" : "The");
/titanic_51/usr/src/cmd/ast/msgcc/
H A Dmsgcc.tst7 #include <foo-bar.h>
11 error(1, "foo bar");
13 errormsg(locale, 2, "%s: bar foo");
17 OUTPUT t.mso $'str "foo bar"\nstr "%s: bar foo"'
25 fprintf(stderr, "foo bar");
28 OUTPUT t.mso $'str "foo bar"'
/titanic_51/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsgcc.tst7 #include <foo-bar.h>
11 error(1, "foo bar");
13 errormsg(locale, 2, "%s: bar foo");
17 OUTPUT t.mso $'str "foo bar"\nstr "%s: bar foo"'
25 fprintf(stderr, "foo bar");
28 OUTPUT t.mso $'str "foo bar"'
/titanic_51/usr/src/uts/common/io/bnxe/
H A Dbnxe_mm.c341 u8_t bar) in mm_map_io_base() argument
357 bar++; in mm_map_io_base()
361 ddi_dev_regsize(pUM->pDev, bar, &regSize); in mm_map_io_base()
363 if ((size > regSize) || BnxeIsBarUsed(pUM, bar, 0, size)) in mm_map_io_base()
366 bar, 0, (int)regSize); in mm_map_io_base()
373 bar, 0, (int)regSize); in mm_map_io_base()
378 bar, // bar number in mm_map_io_base()
386 bar, 0, size, rc); in mm_map_io_base()
392 pMem->regNumber = bar; in mm_map_io_base()
409 mm_map_io_space_solaris(lm_device_t * pLM,lm_address_t physAddr,u8_t bar,u32_t offset,u32_t size,ddi_acc_handle_t * pRegAccHandle) mm_map_io_space_solaris() argument
1548 mm_bar_read_byte(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u8_t * ret) mm_bar_read_byte() argument
1560 mm_bar_read_word(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u16_t * ret) mm_bar_read_word() argument
1572 mm_bar_read_dword(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u32_t * ret) mm_bar_read_dword() argument
1584 mm_bar_read_ddword(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u64_t * ret) mm_bar_read_ddword() argument
1596 mm_bar_write_byte(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u8_t val) mm_bar_write_byte() argument
1608 mm_bar_write_word(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u16_t val) mm_bar_write_word() argument
1620 mm_bar_write_dword(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u32_t val) mm_bar_write_dword() argument
1632 mm_bar_write_ddword(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u64_t val) mm_bar_write_ddword() argument
1644 mm_bar_copy_buffer(struct _lm_device_t * pdev,u8_t bar,u32_t offset,u32_t size,u32_t * buf_ptr) mm_bar_copy_buffer() argument
[all...]
/titanic_51/usr/src/lib/libmtmalloc/tests/
H A Dalign.c44 char *bar[N]; in main() local
47 bar[i] = malloc(1<<i); in main()
48 if ((uintptr_t)bar[i] & 7) { in main()
50 bar[i]); in main()
58 free(bar[i]); in main()
/titanic_51/usr/src/cmd/dtrace/test/tst/common/multiaggs/
H A Dtst.zero.d41 @bar[456] = sum(456);
44 @bar[789] = sum(789);
46 printa("%10d %@10d %@10d\n", @foo, @bar);
47 printa("%10d %@10d %@10d %@10d\n", @foo, @bar, @bop);
48 printa("%10d %@10d %@10d %@10d %@10d\n", @foo, @bar, @bop, @baz);
H A Dtst.zero2.d40 @bar[456] = sum(456);
43 @bar[789] = sum(789);
45 printa("%10d %@10d %@10d\n", @foo, @bar);
46 printa("%10d %@10d %@10d %@10d\n", @foo, @bar, @bop);
47 printa("%10d %@10d %@10d %@10d %@10d\n", @foo, @bar, @bop, @baz);

1234567