| /freebsd/contrib/netbsd-tests/lib/libc/ssp/ |
| H A D | t_ssp.sh | 56 prog="$(atf_get_srcdir)/h_sprintf" 58 h_pass "$prog ok" 61 h_fail "$prog 0123456789ab" 64 h_fail "$prog 0123456789" 77 prog="$(atf_get_srcdir)/h_vsprintf" 79 h_pass "$prog ok" 82 h_fail "$prog 0123456789ab" 85 h_fail "$prog 0123456789" 98 prog="$(atf_get_srcdir)/h_snprintf" 100 h_pass "$prog 10" [all …]
|
| /freebsd/sbin/camcontrol/ |
| H A D | progress.c | 65 progress_init(progress_t *prog, const char *prefix, uint64_t total) in progress_init() argument 70 (void) memset(prog, 0x0, sizeof(*prog)); in progress_init() 71 prog->size = total; in progress_init() 72 prog->prefix = strdup(prefix); in progress_init() 73 prog->start = time(NULL); in progress_init() 76 prog->ttywidth = winsize.ws_col; in progress_init() 78 prog->ttywidth = DEFAULT_TTYWIDTH; in progress_init() 86 progress_update(progress_t *prog, uint64_t done) in progress_update() argument 88 prog->done = done; in progress_update() 89 prog->percent = (prog->done * 100) / prog->size; in progress_update() [all …]
|
| /freebsd/crypto/openssl/apps/lib/ |
| H A D | http_server.c | 37 #define log_HTTP(prog, level, text) \ argument 38 trace_log_message(OSSL_TRACE_CATEGORY_HTTP, prog, level, "%s", text) 39 #define log_HTTP1(prog, level, fmt, arg) \ argument 40 trace_log_message(OSSL_TRACE_CATEGORY_HTTP, prog, level, fmt, arg) 41 #define log_HTTP2(prog, level, fmt, arg1, arg2) \ argument 42 trace_log_message(OSSL_TRACE_CATEGORY_HTTP, prog, level, fmt, arg1, arg2) 43 #define log_HTTP3(prog, level, fmt, a1, a2, a3) \ argument 44 trace_log_message(OSSL_TRACE_CATEGORY_HTTP, prog, level, fmt, a1, a2, a3) 80 void spawn_loop(const char *prog) in spawn_loop() argument 87 openlog(prog, LOG_PID, LOG_DAEMON); in spawn_loop() [all …]
|
| H A D | opt.c | 47 static char prog[40]; variable 81 if (n > sizeof(prog) - 1) in opt_progname() 82 n = sizeof(prog) - 1; in opt_progname() 83 for (q = prog, i = 0; i < n; i++, p++) in opt_progname() 86 return prog; in opt_progname() 111 if (prog != p) in opt_progname() 112 strncpy(prog, p, sizeof(prog) - 1); in opt_progname() 113 prog[sizeof(prog) - 1] = '\0'; in opt_progname() 114 if (q != NULL && q - p < sizeof(prog)) in opt_progname() 115 prog[q - p] = '\0'; in opt_progname() [all …]
|
| /freebsd/usr.bin/gzip/ |
| H A D | gzexe | 37 prog=`/usr/bin/basename "$0"` 39 /bin/echo "$prog: cannot create tmp dir"; exit 1 43 /usr/bin/gzip -dc > "$tmp/$prog" 2> /dev/null; then 44 /bin/chmod u+x "$tmp/$prog" 45 "$tmp/$prog" ${1+"$@"} 48 /bin/echo "$prog: cannot decompress $0" 63 echo "$prog: cannot create tmp file" 67 echo "$prog: cannot copy $1 to $tmp" 72 echo "$prog: cannot decompress $1" 82 echo "$prog: cannot compress non-existing file $1" [all …]
|
| H A D | znew | 43 echo "$prog: $filez does not exist" 47 echo "$prog: $filez is not a regular file" 51 echo "$prog: $filegz already exists" 56 echo "$prog: cannot create tmp file" 64 echo -n "$prog: $filez is smaller than $filegz" 70 echo "$prog: integrity check of $tmp failed" 77 echo "$prog: warning: could not keep mode of $filez" 80 echo "$prog: warning: could not keep mode of $filez" 82 echo "$prog: could not copy $tmp to $filegz" 88 echo -n "$prog: warning: could not keep timestamp of " [all …]
|
| H A D | zdiff | 30 *cmp) prog=cmp 32 *) prog=diff 114 echo "z$prog: unknown suffix" 1>&2 117 $filt -- "$1" | $prog $flags -- - "$files" 124 $prog $flags -- "$1" "$2" 126 $filt2 -- "$2" | $prog $flags -- "$1" - 128 $filt -- "$1" | $prog $flags -- - "$2" 130 tmp=`mktemp -t z$prog.XXXXXXXXXX` || exit 1 133 ${filt:-cat} -- "$1" | $prog $flags -- - "$tmp"
|
| /freebsd/tests/sys/acl/ |
| H A D | run | 61 my ($prog, $in, $out) = ([], [], []); 80 process_test($prog, $prog_line, $in, $out); 83 $prog = []; 87 $prog = [ map { s/\\(.)/$1/g; $_ } split /(?<!\\)\s+/, $line ]; 93 process_test($prog, $prog_line, $in, $out); 112 my ($prog, $prog_line, $in, $out) = @_; 114 return unless @$prog; 116 my $p = [ @$prog ]; 119 my $result = exec_test($prog, $in); 188 return [ "su: $prog->[1]: $!\n" ]; [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | reaper.sh | 36 eval prog=reaper.$$ 37 cat > /tmp/$prog.c <<EOF 83 sed -i '' "s#SLP#/tmp/$prog.sleep#" /tmp/$prog.c 84 cc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 85 rm /tmp/$prog.c 87 cp /bin/sleep /tmp/$prog.sleep 91 timeout 2s /tmp/$prog 93 pgrep -q $prog || break 96 if pgrep -q $prog; then 99 pgrep "$prog|timeout" | xargs ps -lp [all …]
|
| H A D | mmap43.sh | 12 prog=$(basename "$0" .sh) 13 log=`dirname $diskimage`/$prog.log 15 cat > /tmp/$prog.c <<EOF 74 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 76 cat > /tmp/$prog.serial.c <<EOF 122 mycc -o /tmp/$prog.serial -Wall -Wextra -O0 /tmp/$prog.serial.c || exit 1 137 /tmp/$prog.serial file $size 143 cp /usr/bin/sort /tmp/$prog.sort 158 timeout -k 70s 1m /tmp/$prog.sort /dev/zero & 161 /tmp/$prog [all …]
|
| H A D | syzkaller81.sh | 27 prog=$(basename "$0" .sh) 28 cat > /tmp/$prog.c <<EOF 63 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 65 work=/tmp/$prog.dir 68 cd /tmp/$prog.dir 69 timeout 3m /tmp/$prog > /dev/null 2>&1 71 rm -rf /tmp/$prog /tmp/$prog.c /tmp/$prog.core /tmp/$prog.?????? $work
|
| H A D | syzkaller79.sh | 32 prog=$(basename "$0" .sh) 33 cat > /tmp/$prog.c <<EOF 73 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c -lpthread || exit 1 75 work=/tmp/$prog.dir 78 cd /tmp/$prog.dir 79 timeout 3m /tmp/$prog > /dev/null 2>&1 81 rm -rf /tmp/$prog /tmp/$prog.c /tmp/$prog.core /tmp/$prog.?????? $work
|
| H A D | zfs18.sh | 16 prog=$(basename "$0" .sh) 17 cat > /tmp/$prog.c <<EOF 77 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 111 /tmp/$prog 114 od -t x8 file | head -1000 > /tmp/$prog.file1 115 od -t x8 file.post | head -1000 > /tmp/$prog.file2 116 diff /tmp/$prog.file1 /tmp/$prog.file2 | head -15 117 rm /tmp/$prog.file1 /tmp/$prog.file2 133 rm /tmp/$prog /tmp/$prog.c
|
| H A D | killpg2.sh | 34 prog=$(basename "$0" .sh) 35 cat > /tmp/$prog.c <<EOF 173 sed -i '' "s#TUSER#$testuser#" /tmp/$prog.c 174 cc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 175 rm /tmp/$prog.c 180 /tmp/$prog 182 pgrep -q $prog || break 185 if pgrep -q $prog; then 188 pgrep "$prog|timeout" | xargs ps -jp 189 pkill $prog [all …]
|
| H A D | syzkaller63.sh | 41 prog=$(basename "$0" .sh) 44 cat > /tmp/$prog.c <<EOF 69 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 71 (cd /tmp; timeout -k 3s 2s ./$prog) 73 rm -rf /tmp/$prog /tmp/$prog.c /tmp/$prog.core \
|
| H A D | rename16.sh | 12 prog=$(basename "$0" .sh) 14 log=/tmp/$prog.sh.log 16 sed '1,/^EOF/d' < $here/$0 > $prog.c 17 mycc -o $prog -Wall -Wextra -O2 $prog.c -lpthread 18 rm -f $prog.c 29 /tmp/$prog $mntpoint/test-0 100000 34 /tmp/$prog $mntpoint/test-$i $n & 44 rm -f /tmp/$prog $log
|
| H A D | syzkaller82.sh | 37 prog=$(basename "$0" .sh) 38 cat > /tmp/$prog.c <<EOF 111 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 113 work=/tmp/$prog.dir 116 cd /tmp/$prog.dir 118 timeout 3m /tmp/$prog > /dev/null 2>&1 120 rm -rf /tmp/$prog /tmp/$prog.c /tmp/$prog.core /tmp/$prog.?????? $work
|
| H A D | syzkaller83.sh | 29 prog=$(basename "$0" .sh) 30 cat > /tmp/$prog.c <<EOF 147 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1 152 work=/tmp/$prog.dir 155 cd /tmp/$prog.dir 160 timeout 3m /tmp/$prog > /dev/null 2>&1 & 163 while pgrep -q $prog; do sleep 2; done 167 rm -rf /tmp/$prog /tmp/$prog.c /tmp/$prog.core /tmp/$prog.?????? $work
|
| /freebsd/tools/regression/poll/ |
| H A D | Makefile | 17 -for prog in ${PROG}; do \ 18 ./$${prog} > $${prog}.out.new; \ 19 diff -u1 $${prog}.out $${prog}.out.new; \ 23 for prog in ${PROG}; do \ 24 rm -f $${prog} $${prog}.out.new; \ 28 for prog in ${PROG}; do \ 29 mv $${prog}.out.new $${prog}.out; \ 33 for prog in ${PROG}; do \ 34 rm -f $${prog}.out; \
|
| /freebsd/contrib/netbsd-tests/net/bpfilter/ |
| H A D | t_bpfilter.c | 221 struct bpf_program prog; in magic_ping_test() local 238 prog.bf_len = __arraycount(magic_echo_reply_prog); in magic_ping_test() 239 prog.bf_insns = magic_echo_reply_prog; in magic_ping_test() 268 RL(rump_sys_ioctl(bpfd, BIOCSETF, &prog)); in magic_ping_test() 299 send_bpf_prog(const char *ifname, struct bpf_program *prog) in send_bpf_prog() argument 310 rv = rump_sys_ioctl(bpfd, BIOCSETF, prog); in send_bpf_prog() 362 struct bpf_program prog; in ATF_TC_BODY() local 364 prog.bf_len = __arraycount(badmem_prog); in ATF_TC_BODY() 365 prog.bf_insns = badmem_prog; in ATF_TC_BODY() 366 ATF_CHECK_ERRNO(EINVAL, send_bpf_prog("bpfilterbadmem", &prog) == -1); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/bc/src/ |
| H A D | parse.c | 51 p->func = bc_vec_item(&p->prog->fns, fidx); in bc_parse_updateFunc() 57 bc_parse_pushIndex(p, bc_program_search(p->prog, name, var)); in bc_parse_pushName() 79 idx = bc_program_addString(p->prog, p->l.str.v); in bc_parse_addString() 88 BcProgram* prog = p->prog; in bc_parse_addNum() local 116 if (bc_map_insert(&prog->const_map, string, prog->consts.len, &idx)) in bc_parse_addNum() 119 BcId* id = bc_vec_item(&prog->const_map, idx); in bc_parse_addNum() 125 c = bc_vec_pushEmpty(&prog->consts); in bc_parse_addNum() 138 BcId* id = bc_vec_item(&prog->const_map, idx); in bc_parse_addNum() 185 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_text() 220 bc_program_reset(p->prog); in bc_parse_reset() [all …]
|
| /freebsd/contrib/file/tests/ |
| H A D | test.c | 37 static const char *prog; variable 45 prog, strerror(errno)); in xrealloc() 92 prog = strrchr(argv[0], '/'); in main() 93 if (prog) in main() 94 prog++; in main() 96 prog = argv[0]; in main() 119 "Usage: %s [-ek] TEST-FILE RESULT\n", prog); in main() 126 prog, strerror(errno)); in main() 131 prog, magic_error(ms)); in main() 137 prog, argv[1], magic_error(ms)); in main() [all …]
|
| /freebsd/stand/libsa/ |
| H A D | rpc.c | 106 rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc, in rpc_call() argument 121 prog, vers, proc); in rpc_call() 124 port = rpc_getport(d, prog, vers); in rpc_call() 158 call->rp_prog = htonl(prog); in rpc_call() 302 u_int prog; /* host order */ member 315 rpc_pmap_getcache(struct in_addr addr, u_int prog, u_int vers) in rpc_pmap_getcache() argument 321 pl->prog == prog && pl->vers == vers ) in rpc_pmap_getcache() 337 rpc_pmap_putcache(struct in_addr addr, u_int prog, u_int vers, int port) in rpc_pmap_putcache() argument 355 pl->prog = prog; in rpc_pmap_putcache() 367 rpc_getport(struct iodesc *d, n_long prog, n_long vers) in rpc_getport() argument [all …]
|
| /freebsd/crypto/openssl/apps/ |
| H A D | storeutl.c | 22 const char *prog, OSSL_LIB_CTX *libctx); 88 char *prog; in storeutl_main() local 102 prog = opt_init(argc, argv, storeutl_options); in storeutl_main() 108 BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); in storeutl_main() 134 prog); in storeutl_main() 164 prog); in storeutl_main() 170 prog); in storeutl_main() 181 prog); in storeutl_main() 187 prog); in storeutl_main() 198 prog); in storeutl_main() [all …]
|
| /freebsd/lib/libc/rpc/ |
| H A D | clnt_generic.c | 74 clnt_create_vers(const char *hostname, rpcprog_t prog, rpcvers_t *vers_out, in clnt_create_vers() argument 78 return (clnt_create_vers_timed(hostname, prog, vers_out, vers_low, in clnt_create_vers() 89 clnt_create_vers_timed(const char *hostname, rpcprog_t prog, in clnt_create_vers_timed() argument 98 clnt = clnt_create_timed(hostname, prog, vers_high, nettype, tp); in clnt_create_vers_timed() 157 clnt_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_create() argument 161 return (clnt_create_timed(hostname, prog, vers, nettype, NULL)); in clnt_create() 173 clnt_create_timed(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_create_timed() argument 209 clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp); in clnt_create_timed() 259 clnt_tp_create(const char *hostname, rpcprog_t prog, rpcvers_t vers, in clnt_tp_create() argument 263 return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL)); in clnt_tp_create() [all …]
|