/titanic_41/usr/src/lib/libast/common/tm/ |
H A D | tvtouch.c | 88 tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, const Tv_t* cv, int fla… in tvtouch() argument 110 if (!av) in tvtouch() 115 else if (av == TV_TOUCH_RETAIN) in tvtouch() 122 ts[0].tv_sec = av->tv_sec; in tvtouch() 123 ts[0].tv_nsec = NS(av->tv_nsec); in tvtouch() 140 …if (!cv && av == TV_TOUCH_RETAIN && mv == TV_TOUCH_RETAIN && !stat(path, &st) && !chmod(path, st.s… in tvtouch() 159 if ((av == TV_TOUCH_RETAIN || mv == TV_TOUCH_RETAIN) && stat(path, &st)) in tvtouch() 162 if (av == TV_TOUCH_RETAIN) in tvtouch() 163 av = 0; in tvtouch() 167 if (!av || !mv) in tvtouch() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_ibt.c | 342 eib_avect_t *av; in eib_ibt_hold_avect() local 352 for (av = ss->ei_av[ndx]; av; av = av->av_next) { in eib_ibt_hold_avect() 353 prev = av; in eib_ibt_hold_avect() 354 if ((av->av_vect).av_dlid == dlid) in eib_ibt_hold_avect() 362 if (av == NULL) { in eib_ibt_hold_avect() 363 av = kmem_zalloc(sizeof (eib_avect_t), KM_NOSLEEP); in eib_ibt_hold_avect() 364 if (av == NULL) { in eib_ibt_hold_avect() 373 ret = eib_ibt_fill_avect(ss, av, dlid); in eib_ibt_hold_avect() 376 (av->av_vect).av_srate = IBT_SRATE_10; in eib_ibt_hold_avect() 377 (av->av_vect).av_srvl = sl; in eib_ibt_hold_avect() [all …]
|
/titanic_41/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpc.c | 398 process_one(int (*handler)(papi_service_t, char **), char **av, int expected) in process_one() argument 403 char *printer = av[1]; in process_one() 416 rc = handler(svc, av); in process_one() 425 process_all(int (*handler)(papi_service_t, char **), char **av, int expected) in process_all() argument 444 av[1] = printers[i]; in process_all() 445 rc += process_one(handler, av, expected); in process_all() 455 process(int ac, char **av) in process() argument 460 char *printer = av[1]; in process() 463 if ((num_args = lpc_handler(av[0], &handler)) < 0) { in process() 464 printf(gettext("%s: invalid command\n"), av[0]); in process() [all …]
|
H A D | lpr.c | 65 main(int ac, char *av[]) in main() argument 86 while ((c = getopt(ac, av, in main() 198 usage(av[0]); in main() 206 if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0)) in main() 215 document_format = magic_file(ms, av[optind]); in main() 219 if (is_postscript(av[optind]) == 1) in main() 244 NULL, &av[optind], &job); in main() 250 NULL, &av[optind], &job); in main() 253 NULL, &av[optind], &job); in main()
|
H A D | lpq.c | 73 main(int ac, char *av[]) in main() argument 87 while ((c = getopt(ac, av, "EP:l")) != EOF) in main() 99 usage(av[0]); in main() 102 if ((optind < ac) && (av[optind][0] == '+')) in main() 103 interval = atoi(av[optind++]); in main() 125 ac - optind, &av[optind]); in main()
|
H A D | common.c | 63 match_job(int id, char *user, int ac, char *av[]) in match_job() argument 68 if (strcmp("-", av[i]) == 0) in match_job() 70 else if ((isdigit(av[i][0]) != 0) && (id == atoi(av[i]))) in match_job() 72 else if (strcmp(user, av[i]) == 0) in match_job() 83 match_job_rid(int id, int ac, char *av[]) in match_job_rid() argument 88 if (isdigit(av[i][0]) != 0) { in match_job_rid() 89 if (id == atoi(av[i])) in match_job_rid() 206 print_job_line(FILE *fp, int count, papi_job_t job, int fmt, int ac, char *av[]) in print_job_line() argument 225 if ((ac > 0) && (match_job(id, user, ac, av) < 0)) in print_job_line() 259 int ac, char *av[]) in cancel_job() argument [all …]
|
H A D | accept.c | 57 main(int ac, char *av[]) in main() argument 68 while ((c = getopt(ac, av, "E")) != EOF) in main() 74 usage(av[0]); in main() 78 usage(av[0]); in main() 81 char *printer = av[c]; in main()
|
H A D | enable.c | 57 main(int ac, char *av[]) in main() argument 68 while ((c = getopt(ac, av, "E")) != EOF) in main() 74 usage(av[0]); in main() 78 usage(av[0]); in main() 81 char *printer = av[c]; in main()
|
H A D | reject.c | 57 main(int ac, char *av[]) in main() argument 69 while ((c = getopt(ac, av, "Er:")) != EOF) in main() 78 usage(av[0]); in main() 82 usage(av[0]); in main() 85 char *printer = av[optind++]; in main()
|
H A D | lp.c | 65 main(int ac, char *av[]) in main() argument 94 while ((c = getopt(ac, av, "DEH:P:S:T:cd:f:i:mn:o:pq:rst:Vwy:")) != EOF) in main() 215 usage(av[0]); in main() 231 if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0)) in main() 243 document_format = magic_file(ms, av[optind]); in main() 247 if (is_postscript(av[optind]) == 1) in main() 285 NULL, &av[optind], &job); in main() 288 NULL, &av[optind], &job); in main() 291 NULL, &av[optind], &job); in main()
|
/titanic_41/usr/src/cmd/vi/port/ |
H A D | ex.c | 134 main(int ac, char *av[]) in main() argument 177 if ((cmdnam = (unsigned char *)strrchr(av[0], '/')) != 0) in main() 180 cmdnam = (unsigned char *)av[0]; in main() 252 while ((c = getopt(ac, (char **)av, "VU:Lc:Tvt:rlw:xRCsS")) != in main() 255 while ((c = getopt(ac, (char **)av, in main() 301 if (av[optind] && (c = av[optind][0]) && in main() 303 if ((strlen(av[optind])) >= in main() 311 rcvname = (unsigned char *)av[optind]; in main() 369 if (av[optind] && av[optind][0] == '+' && in main() 370 av[optind-1] && strcmp(av[optind-1], "--")) { in main() [all …]
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | wordexp.c | 71 char *savebase,**av; in wordexp() local 156 av = (char**)realloc((void*)&wdarg->we_wordv[-1], (wdarg->we_wordc+c)*sizeof(char*)); in wordexp() 157 else if(av = (char**)malloc(c*sizeof(char*))) in wordexp() 160 memset((void*)av,0,(wdarg->we_offs+1)*sizeof(char*)); in wordexp() 162 av[0] = 0; in wordexp() 164 if(!av) in wordexp() 172 ((struct list*)cp)->next = (struct list*)(*av); in wordexp() 173 *av++ = (char*)cp; in wordexp() 175 wdarg->we_wordv = av; in wordexp() 177 av += wdarg->we_wordc; in wordexp() [all …]
|
H A D | mkdir.c | 40 char* av[3]; 53 av[0] = "mkdir"; 54 av[1] = path; 55 av[2] = 0; 57 if (procclose(procopen(cmd[n], av, NiL, NiL, 0)) != -1)
|
H A D | rmdir.c | 40 char* av[3]; 50 av[0] = "rmdir"; 51 av[1] = path; 52 av[2] = 0; 54 if (procclose(procopen(cmd[n], av, NiL, NiL, 0)) != -1)
|
/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | systrace.c | 40 char* av[7]; in systrace() local 53 av[1] = trace[0]; in systrace() 54 av[2] = "-o"; in systrace() 55 av[3] = buf; in systrace() 56 av[4] = "-p"; in systrace() 57 av[5] = out + 1; in systrace() 58 av[6] = 0; in systrace() 63 …if (!procfree(procopen(trace[n], av + 1, NiL, ov, PROC_ARGMOD|PROC_GID|PROC_UID|(n == (elementsof(… in systrace()
|
/titanic_41/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-misc.c | 130 char *av[64], *tmp, buf[BUFSIZ]; in lpd_open() local 139 av[0] = SUID_LPD_PORT; ac = 1; in lpd_open() 142 av[ac++] = "-H"; in lpd_open() 143 av[ac++] = svc->uri->host; in lpd_open() 148 av[ac++] = "-t"; in lpd_open() 149 av[ac++] = strdup(buf); in lpd_open() 154 av[ac++] = buf; in lpd_open() 165 av[ac++] = tmp; in lpd_open() 170 av[ac++] = *args++; in lpd_open() 172 av[ac++] = NULL; in lpd_open() [all …]
|
/titanic_41/usr/src/cmd/csh/ |
H A D | sh.exec.c | 54 tchar *dp, **pv, **av; in doexec() local 84 gflag = 0; av = &t->t_dcom[1]; in doexec() 85 tglob(av); in doexec() 87 av = glob(av); in doexec() 88 if (av == 0) in doexec() 93 av = blkspl(blk, av); in doexec() 95 Vav = av; in doexec() 97 trim(av); in doexec() 98 slash |= any('/', av[0]); in doexec() 100 xechoit(av); /* Echo command if -x */ in doexec() [all …]
|
H A D | sh.misc.c | 72 static tchar *av[2] = {0, 0}; in nomem() local 82 showall(av); in nomem() 100 blkpr(tchar **av) in blkpr() argument 103 for (; *av; av++) { in blkpr() 104 printf("%t", *av); in blkpr() 105 if (av[1]) in blkpr() 111 blklen(tchar **av) in blklen() argument 115 while (*av++) in blklen() 123 tchar **av = oav; in blkcpy() local 125 while (*av++ = *bv++) in blkcpy() [all …]
|
/titanic_41/usr/src/cmd/lp/cmd/lpsched/ |
H A D | exec.c | 310 char *av[ARG_MAX]; in exec() local 320 memset(av, 0, sizeof (*av)); in exec() 746 av[ac++] = arg_string(TRUSTED, "%s/%s", Lp_A_Interfaces, in exec() 820 av[ac++] = arg_string(TRUSTED, "%s", in exec() 852 av[ac++] = arg_string(TRUSTED, in exec() 856 av[ac++] = arg_string(TRUSTED, "%s", in exec() 860 av[ac++] = arg_string(TRUSTED, "%s", in exec() 870 av[ac++] = arg_string(UNTRUSTED, "%s", request->request->user); in exec() 871 av[ac++] = arg_string(TRUSTED, "%s", clean_title); in exec() 872 av[ac++] = arg_string(TRUSTED, "%d", request->copies); in exec() [all …]
|
/titanic_41/usr/src/lib/libast/common/preroot/ |
H A D | setpreroot.c | 42 char** av; in setpreroot() local 49 if (av = newof(0, char*, argc, 0)) in setpreroot() 51 ap = av; in setpreroot() 59 ap = av; in setpreroot() 65 execv(*av, av); in setpreroot() 66 free(av); in setpreroot()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | avintr.c | 689 struct autovec *av; in av_dispatch_autovect() local 693 while ((av = autovect[vec].avh_link) != NULL) { in av_dispatch_autovect() 697 for (; av; av = av->av_link) { in av_dispatch_autovect() 699 uint_t (*intr)() = av->av_vector; in av_dispatch_autovect() 700 caddr_t arg1 = av->av_intarg1; in av_dispatch_autovect() 701 caddr_t arg2 = av->av_intarg2; in av_dispatch_autovect() 702 dev_info_t *dip = av->av_dip; in av_dispatch_autovect() 718 if (av->av_ticksp && av->av_prilevel <= LOCK_LEVEL) in av_dispatch_autovect() 719 atomic_add_64(av->av_ticksp, intr_get_time()); in av_dispatch_autovect() 737 struct autovec *av; in av_dispatch_softvect() local [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.fingerd.c | 61 char *av[MAXARGS + 1]; local 70 av[0] = "finger"; 85 av[i++] = "-l"; 87 av[i++] = "-s"; 102 av[i++] = sp; 113 av[i] = (char *)0; 123 execv("/usr/bin/finger", av);
|
/titanic_41/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | jdtrace.c | 39 char **av, **p; in main() local 43 av = p = alloca(sizeof (char *) * ac); in main() 58 asprintf(av, "/usr/java/bin/%s/java", isaname); in main() 60 (void) execv(av[0], av); in main()
|
/titanic_41/usr/src/cmd/streams/log/ |
H A D | strace.c | 52 static int getid(int ac, char **av, struct trace_ids *tp); 117 getid(int ac, char **av, struct trace_ids *tp) in getid() argument 152 if (strcmp(av[index], "-") == 0) { in getid() 165 tp->ti_mid = convarg(av[index++]); in getid() 166 tp->ti_sid = convarg(av[index++]); in getid() 167 tp->ti_level = convarg(av[index++]); in getid() 175 main(int ac, char *av[]) in main() argument 209 while (getid(ac, av, tp)) { in main()
|
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_misc.c | 2094 tavor_set_addr_path(tavor_state_t *state, ibt_adds_vect_t *av, in tavor_set_addr_path() argument 2101 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*av)) in tavor_set_addr_path() 2104 path->ml_path = av->av_src_path; in tavor_set_addr_path() 2105 path->rlid = av->av_dlid; in tavor_set_addr_path() 2106 path->sl = av->av_srvl; in tavor_set_addr_path() 2110 path->portnum = av->av_port_num; in tavor_set_addr_path() 2120 if (av->av_srate == IBT_SRATE_20) { in tavor_set_addr_path() 2122 } else if (av->av_srate == IBT_SRATE_5) { in tavor_set_addr_path() 2124 } else if (av->av_srate == IBT_SRATE_10) { in tavor_set_addr_path() 2126 } else if (av->av_srate == IBT_SRATE_2) { in tavor_set_addr_path() [all …]
|