/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_rpc.c | 62 rpcprog_t prog, rpcvers_t vers, uint_t ssz, uint_t rsz, int force) in fmd_rpc_svc_create_local() argument 80 svc_unreg(prog, vers); /* clear stale rpcbind registrations */ in fmd_rpc_svc_create_local() 90 if (!force && rpcb_getaddr(prog, vers, ncp, &buf, HOST_SELF)) { in fmd_rpc_svc_create_local() 108 if (svc_reg(xprt, prog, vers, disp, ncp) == FALSE) { in fmd_rpc_svc_create_local() 129 prog, vers) > 0 && access(door, F_OK) == 0) in fmd_rpc_svc_create_local() 136 if ((xprt = svc_door_create(disp, prog, vers, ssz)) == NULL) { in fmd_rpc_svc_create_local() 138 "rpc service 0x%lx/0x%lx\n", prog, vers); in fmd_rpc_svc_create_local() 153 rpcprog_t prog; in fmd_rpc_svc_init() local 157 for (prog = pmin; prog <= pmax; prog++) { in fmd_rpc_svc_init() 158 if (fmd_rpc_svc_create_local(disp, prog, vers, in fmd_rpc_svc_init() [all …]
|
/illumos-gate/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 69 static char *prog; variable 144 prog, in usage() 145 strlen(prog), " ", in usage() 146 strlen(prog), " ", in usage() 160 Error(stderr, MGET("%s: could not flush input buffer\n"), prog); in sigint() 195 prog = strrchr(argv[0], '/'); in main() 196 if (prog == NULL) in main() 197 prog = argv[0]; in main() 199 prog++; in main() 220 "-v\n"), prog); in main() [all …]
|
/illumos-gate/usr/src/cmd/valtools/ |
H A D | ckgid.c | 42 static char *prog; variable 53 switch (*prog) { in usage() 56 gettext("usage: %s [options] [-m]\n"), prog); in usage() 63 gettext("usage: %s\n"), prog); in usage() 68 gettext("usage: %s input\n"), prog); in usage() 73 gettext("usage: %s [options] [-m]\n"), prog); in usage() 81 gettext("usage: %s [options] [-m]\n"), prog); in usage() 121 prog = prog_name(argv[0]); in main() 125 if ((*prog == 'v') || (*prog == 'd')) in main() 127 if ((*prog == 'e') && !strchr(eusage, c)) in main() [all …]
|
H A D | ckuid.c | 42 static char *prog; variable 53 switch (*prog) { in usage() 57 prog); in usage() 64 gettext("usage: %s\n"), prog); in usage() 69 gettext("usage: %s input\n"), prog); in usage() 75 prog); in usage() 84 prog); in usage() 125 prog = prog_name(argv[0]); in main() 129 if ((*prog == 'v') || (*prog == 'd')) in main() 131 if ((*prog == 'e') && !strchr(eusage, c)) in main() [all …]
|
H A D | ckdate.c | 42 static char *prog; variable 66 switch (*prog) { in usage() 69 gettext("usage: %s [options] [-f format]\n"), prog); in usage() 76 gettext("usage: %s [-f format] input\n"), prog); in usage() 81 gettext("usage: %s [options] [-f format]\n"), prog); in usage() 89 gettext("usage: %s [options] [-f format]\n"), prog); in usage() 129 prog = prog_name(argv[0]); in main() 133 if ((*prog == 'v') && !strchr(vusage, c)) in main() 135 if ((*prog == 'e') && !strchr(eusage, c)) in main() 137 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | cktime.c | 42 static char *prog; variable 67 switch (*prog) { in usage() 71 prog); in usage() 78 gettext("usage: %s [-f format] input\n"), prog); in usage() 84 prog); in usage() 93 prog); in usage() 133 prog = prog_name(argv[0]); in main() 137 if ((*prog == 'v') && !strchr(vusage, c)) in main() 139 if ((*prog == 'e') && !strchr(eusage, c)) in main() 141 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckrange.c | 42 static char *prog; variable 59 switch (*prog) { in usage() 63 prog, USAGE); in usage() 70 gettext("usage: %s %s input\n"), prog, USAGE); in usage() 76 prog, USAGE); in usage() 85 prog, USAGE); in usage() 125 prog = prog_name(argv[0]); in main() 129 if ((*prog == 'v') && !strchr(vusage, c)) in main() 131 if ((*prog == 'e') && !strchr(eusage, c)) in main() 133 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckint.c | 41 static char *prog; variable 54 switch (*prog) { in usage() 57 gettext("usage: %s [options] [-b base]\n"), prog); in usage() 64 gettext("usage: %s [-b base] input\n"), prog); in usage() 69 gettext("usage: %s [options] [-b base]\n"), prog); in usage() 77 gettext("usage: %s [options] [-b base]\n"), prog); in usage() 116 prog = prog_name(argv[0]); in main() 120 if ((*prog == 'v') && !strchr(vusage, c)) in main() 122 if ((*prog == 'e') && !strchr(eusage, c)) in main() 124 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckyorn.c | 42 static char *prog; variable 53 switch (*prog) { in usage() 56 gettext("usage: %s [options]\n"), prog); in usage() 63 gettext("usage: %s input\n"), prog); in usage() 68 gettext("usage: %s [options]\n"), prog); in usage() 76 gettext("usage: %s [options]\n"), prog); in usage() 116 prog = prog_name(argv[0]); in main() 120 if (*prog == 'v') in main() 122 if ((*prog == 'e') && !strchr(eusage, c)) in main() 124 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckpath.c | 43 static char *prog; variable 71 switch (*prog) { in usage() 75 prog, USAGE); in usage() 84 prog, USAGE); in usage() 92 prog, USAGE); in usage() 102 prog, USAGE); in usage() 143 prog = prog_name(argv[0]); in main() 148 if ((*prog == 'v') && !strchr(vusage, c)) in main() 150 if ((*prog == 'e') && !strchr(eusage, c)) in main() 152 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckstr.c | 43 static char *prog; variable 57 switch (*prog) { in usage() 61 prog, USAGE); in usage() 68 gettext("usage: %s %s input\n"), prog, USAGE); in usage() 74 prog, USAGE); in usage() 83 prog, USAGE); in usage() 126 prog = prog_name(argv[0]); in main() 136 if ((*prog == 'v') && !strchr(vusage, c)) in main() 138 if ((*prog == 'e') && !strchr(eusage, c)) in main() 140 if ((*prog == 'h') && !strchr(husage, c)) in main() [all …]
|
H A D | ckitem.c | 51 static char *prog; variable 80 switch (*prog) { in usage() 83 gettext("usage: %s [options] [choice [...]]\n"), prog); in usage() 91 gettext("usage: %s [options] [choice [...]]\n"), prog); in usage() 99 gettext("usage: %s [options] [choice [...]]\n"), prog); in usage() 145 prog = prog_name(argv[0]); in main() 155 if ((*prog == 'e') && !strchr(eusage, c)) in main() 157 if ((*prog == 'h') && !strchr(husage, c)) in main() 170 prog); in main() 180 prog); in main() [all …]
|
/illumos-gate/usr/src/cmd/enhance/ |
H A D | enhance.c | 111 static int pty_open_manager(const char *prog, int *cntrl, char *subsid_name); 112 static int pty_open_subsid(const char *prog, char *subsid_name); 113 static int pty_child(const char *prog, int subsid, char *argv[]); 114 static int pty_parent(const char *prog, int cntrl); 135 char *prog; /* The name of the program (ie. argv[0]) */ in main() local 146 prog = argv[0]; in main() 159 fprintf(stderr, "%s: Unable to execute %s (%s).\n", prog, argv[1], in main() 170 if(pty_open_manager(prog, &cntrl, subsid_name)) in main() 191 fprintf(stderr, "%s: Unable to fork child process (%s).\n", prog, in main() 199 status = pty_parent(prog, cntrl); in main() [all …]
|
/illumos-gate/usr/src/cmd/tsol/getzonepath/ |
H A D | getzonepath.c | 43 static char *prog; variable 52 gettext("%s: bad string %s\n"), prog, label); in label_error() 56 gettext("%s: bad previous label\n"), prog); in label_error() 61 "\"%s\" at position %d\n"), prog, label, err); in label_error() 65 perror(prog); in label_error() 83 if ((prog = strrchr(argv[0], '/')) == NULL) in main() 84 prog = argv[0]; in main() 86 prog++; in main() 90 "Usage: %s label\n"), prog); in main() 101 gettext("%s: cannot get path for label: %s.\n"), prog, in main()
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | main.c | 51 const char *prog, *ofile = NULL, *pstr = NULL; in main() local 72 prog = basename(argv[0]); in main() 79 MSG_INTL(MSG_ARG_ILLEGAL), prog, in main() 94 MSG_INTL(MSG_ARG_ILLEGAL), prog, in main() 101 prog); in main() 116 (void) fprintf(stderr, MSG_INTL(MSG_USAGE_BRIEF), prog); in main() 142 (void) fprintf(stderr, MSG_INTL(MSG_ARG_BADTARG), prog, in main() 152 if (input64(argc, argv, prog, ofile, &odesc) == 1) in main() 155 if (input32(argc, argv, prog, ofile, &odesc) == 1) in main() 164 (void) fprintf(stderr, MSG_INTL(MSG_ERR_OPEN), prog, in main() [all …]
|
/illumos-gate/usr/src/cmd/tsol/getlabel/ |
H A D | getlabel.c | 93 usage(char *prog) in usage() argument 97 prog); in usage() 108 char *prog; in main() local 116 if ((prog = strrchr(argv[0], '/')) == NULL) in main() 117 prog = argv[0]; in main() 119 prog++; in main() 122 usage(prog); in main() 129 usage(prog); in main() 134 usage(prog); in main() 138 usage(prog); in main() [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | drmach.c | 3118 drmach_copy_rename_prog__relocatable(drmach_copy_rename_program_t *prog, in drmach_copy_rename_prog__relocatable() argument 3145 prog->critical->stat[cpuid] = FMEM_LOOP_COPY_READY; in drmach_copy_rename_prog__relocatable() 3148 if (prog->data->cpuid == cpuid) { in drmach_copy_rename_prog__relocatable() 3152 if (CPU_IN_SET(prog->data->cpu_slave_set, i)) { in drmach_copy_rename_prog__relocatable() 3155 if (prog->critical->stat[i] == in drmach_copy_rename_prog__relocatable() 3159 DR_DELAY_IL(1, prog->data->stick_freq); in drmach_copy_rename_prog__relocatable() 3163 prog->data->fmem_status.error = in drmach_copy_rename_prog__relocatable() 3169 prog->data->fmem_status.stat = FMEM_LOOP_COPY_READY; in drmach_copy_rename_prog__relocatable() 3174 if (prog->data->fmem_status.stat == in drmach_copy_rename_prog__relocatable() 3178 if (prog->data->fmem_status.error) { in drmach_copy_rename_prog__relocatable() [all …]
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 66 static char *prog; variable 167 prog, MAX_GAIN); in usage() 205 prog, Audio_dev); in open_audio() 210 prog, Audio_dev); in open_audio() 219 Error(stderr, MGET("%s: error opening "), prog); in open_audio() 231 prog, Audio_dev); in open_audio() 243 prog, Audio_dev); in open_audio() 278 prog = strrchr(argv[0], '/'); in main() 279 if (prog == NULL) in main() 280 prog = argv[0]; in main() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | rpc.c | 110 rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc, in rpc_call() argument 125 prog, vers, proc); in rpc_call() 128 port = rpc_getport(d, prog, vers); in rpc_call() 162 call->rp_prog = htonl(prog); in rpc_call() 307 u_int prog; /* host order */ member 320 rpc_pmap_getcache(struct in_addr addr, u_int prog, u_int vers) in rpc_pmap_getcache() argument 326 pl->prog == prog && pl->vers == vers ) in rpc_pmap_getcache() 342 rpc_pmap_putcache(struct in_addr addr, u_int prog, u_int vers, int port) in rpc_pmap_putcache() argument 360 pl->prog = prog; in rpc_pmap_putcache() 372 rpc_getport(struct iodesc *d, n_long prog, n_long vers) in rpc_getport() argument [all …]
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | pmap.c | 90 bpmap_addport(rpcprog_t prog, rpcvers_t vers, rpcport_t port) in bpmap_addport() argument 100 newp->pml_map.pm_prog = prog; in bpmap_addport() 116 bpmap_delport(rpcprog_t prog, rpcvers_t vers) in bpmap_delport() argument 122 if ((tmp->pml_map.pm_prog == prog) && in bpmap_delport() 134 printf("bpmap_delport: prog: %x, vers: %x\n", prog, in bpmap_delport() 236 if (xdr_rpcprog(xdrs, &(cap->prog)) && in xdr_rmtcall_args() 283 if (!xdr_rpcprog(xdrs, &objp->prog)) in xdr_rpcb_rmtcallargs() 331 rpcprog_t prog, /* rpc program number to call. */ in bpmap_rmtcall() argument 353 pmap_a.prog = prog; in bpmap_rmtcall() 369 bpmap_delport(prog, vers); in bpmap_rmtcall() [all …]
|
/illumos-gate/usr/src/cmd/sgs/moe/common/ |
H A D | moe.c | 95 openlib(const char *prog, const char *name, int class, int silent, int verbose) in openlib() argument 124 (void) fprintf(stderr, MSG_ORIG(MSG_FMT_VERBOSE), prog, in openlib() 136 MSG_ORIG(MSG_FMT_VERBOSE), prog, modestr, in openlib() 144 (void) printf(MSG_ORIG(MSG_FMT_VERBOSE), prog, modestr, in openlib() 161 char *prog; in main() local 163 if ((prog = strrchr(argv[0], '/')) == 0) in main() 164 prog = argv[0]; in main() 166 prog++; in main() 209 (void) fprintf(stderr, MSG_INTL(MSG_ARG_USAGE), prog); in main() 221 if (openlib(prog, argv[optind], class, silent, verbose) != 0) { in main()
|
/illumos-gate/usr/src/test/libc-tests/tests/common/ |
H A D | run_arch_tests.ksh | 23 prog=${0##*/} 27 prog=${0} 30 prog=${prog%.ksh} 48 ${dir}/${prog}.${f} \ 49 ${dir}/${f}/${prog}.${f} \ 50 ${dir}/${f}/${prog}
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | xsave_baducontext.ksh | 45 typeset prog=$1 52 if ! info=$($prog -i $caseno); then 61 dtrace -q -w -c "$prog -r $caseno" -s /dev/stdin <<EOF 95 typeset prog="$1" 98 printf "Beginning tests from %s\n" "$prog" 99 count=$($prog -c) 101 warn "failed to get entry count for $prog" 106 run_single $prog $i
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 141 char *prog; variable 292 prog = cp + 1; in main() 294 prog = argv[0]; in main() 308 prog, optarg); in main() 340 prog); in main() 345 "%s: Too many gateways\n", prog); in main() 350 Fprintf(stderr, "%s: strdup %s\n", prog, in main() 377 "%s\n", prog, strerror(errno)); in main() 384 prog, strerror(errno)); in main() 397 "%s\n", prog, strerror(errno)); in main() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/symbols/ |
H A D | setup.ksh | 24 prog=${0##*/} 28 prog=${0} 32 cfg=symbols/${prog%.ksh}.cfg 40 prog=symbols_test 58 ${dir}/${prog}.${f} \ 59 ${dir}/${f}/${prog}.${f} \ 60 ${dir}/${f}/${prog}
|