Home
last modified time | relevance | path

Searched refs:av (Results 1 – 25 of 143) sorted by relevance

123456

/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtvtouch.c88 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 …]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_ibt.c342 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 …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpc.c398 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 Dlpr.c64 main(int ac, char *av[]) in main() argument
84 while ((c = getopt(ac, av, in main()
195 usage(av[0]); in main()
203 if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0)) in main()
212 document_format = magic_file(ms, av[optind]); in main()
216 if (is_postscript(av[optind]) == 1) in main()
241 NULL, &av[optind], &job); in main()
247 NULL, &av[optind], &job); in main()
250 NULL, &av[optind], &job); in main()
H A Dcommon.c63 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 Dlpq.c71 main(int ac, char *av[]) in main() argument
85 while ((c = getopt(ac, av, "EP:l")) != EOF) in main()
97 usage(av[0]); in main()
100 if ((optind < ac) && (av[optind][0] == '+')) in main()
101 interval = atoi(av[optind++]); in main()
123 ac - optind, &av[optind]); in main()
H A Dlp.c65 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()
H A Daccept.c57 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 Denable.c57 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 Dreject.c57 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()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex.c134 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()
370 if (av[optind] && av[optind][0] == '+' && in main()
371 av[optind-1] && strcmp(av[optind-1], "--")) { in main()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dwordexp.c71 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 Dmkdir.c40 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 Drmdir.c40 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)
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dexec.c204 char *av[ARG_MAX]; in exec() local
214 memset(av, 0, sizeof (*av)); in exec()
640 av[ac++] = arg_string(TRUSTED, "%s/%s", Lp_A_Interfaces, in exec()
714 av[ac++] = arg_string(TRUSTED, "%s", in exec()
746 av[ac++] = arg_string(TRUSTED, in exec()
750 av[ac++] = arg_string(TRUSTED, "%s", in exec()
754 av[ac++] = arg_string(TRUSTED, "%s", in exec()
764 av[ac++] = arg_string(UNTRUSTED, "%s", request->request->user); in exec()
765 av[ac++] = arg_string(TRUSTED, "%s", clean_title); in exec()
766 av[ac++] = arg_string(TRUSTED, "%d", request->copies); in exec()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-misc.c130 char *av[64], *tmp, buf[BUFSIZ]; in lpd_open() local
139 av[0] = SUID_LPD_PORT; in lpd_open()
143 av[ac++] = "-H"; in lpd_open()
144 av[ac++] = svc->uri->host; in lpd_open()
149 av[ac++] = "-t"; in lpd_open()
150 av[ac++] = strdup(buf); in lpd_open()
155 av[ac++] = buf; in lpd_open()
166 av[ac++] = tmp; in lpd_open()
171 av[ac++] = *args++; in lpd_open()
173 av[ac++] = NULL; in lpd_open()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dsystrace.c40 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()
/illumos-gate/usr/src/cmd/csh/
H A Dsh.misc.c70 static tchar *av[2] = {0, 0}; in nomem() local
80 showall(av); in nomem()
98 blkpr(tchar **av) in blkpr() argument
101 for (; *av; av++) { in blkpr()
102 printf("%t", *av); in blkpr()
103 if (av[1]) in blkpr()
109 blklen(tchar **av) in blklen() argument
113 while (*av++) in blklen()
121 tchar **av = oav; in blkcpy() local
123 while (*av++ = *bv++) in blkcpy()
[all …]
H A Dsh.exec.c69 tchar *dp, **pv, **av; in doexec() local
99 gflag = 0; av = &t->t_dcom[1]; in doexec()
100 tglob(av); in doexec()
102 av = glob(av); in doexec()
103 if (av == 0) in doexec()
108 av = blkspl(blk, av); in doexec()
110 Vav = av; in doexec()
112 trim(av); in doexec()
113 slash |= any('/', av[0]); in doexec()
115 xechoit(av); /* Echo command if -x */ in doexec()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Davintr.c689 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 …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/preroot/
H A Dsetpreroot.c42 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()
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_misc.c1872 tavor_set_addr_path(tavor_state_t *state, ibt_adds_vect_t *av, in tavor_set_addr_path() argument
1877 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*av)) in tavor_set_addr_path()
1880 path->ml_path = av->av_src_path; in tavor_set_addr_path()
1881 path->rlid = av->av_dlid; in tavor_set_addr_path()
1882 path->sl = av->av_srvl; in tavor_set_addr_path()
1886 path->portnum = av->av_port_num; in tavor_set_addr_path()
1896 if (av->av_srate == IBT_SRATE_20) { in tavor_set_addr_path()
1898 } else if (av->av_srate == IBT_SRATE_5) { in tavor_set_addr_path()
1900 } else if (av->av_srate == IBT_SRATE_10) { in tavor_set_addr_path()
1902 } else if (av->av_srate == IBT_SRATE_2) { in tavor_set_addr_path()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.fingerd.c59 char *av[MAXARGS + 1]; local
68 av[0] = "finger";
83 av[i++] = "-l";
85 av[i++] = "-s";
100 av[i++] = sp;
111 av[i] = (char *)0;
121 execv("/usr/bin/finger", av);
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/
H A Djdtrace.c39 char **av, **p; in main() local
43 av = p = alloca(sizeof (char *) * ac); in main()
58 (void) asprintf(av, "/usr/java/bin/%s/java", isaname); in main()
60 (void) execv(av[0], av); in main()
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrace.c50 static int getid(int ac, char **av, struct trace_ids *tp);
115 getid(int ac, char **av, struct trace_ids *tp) in getid() argument
150 if (strcmp(av[index], "-") == 0) { in getid()
163 tp->ti_mid = convarg(av[index++]); in getid()
164 tp->ti_sid = convarg(av[index++]); in getid()
165 tp->ti_level = convarg(av[index++]); in getid()
173 main(int ac, char *av[]) in main() argument
207 while (getid(ac, av, tp)) { in main()

123456