Home
last modified time | relevance | path

Searched refs:ap (Results 151 – 175 of 1147) sorted by relevance

12345678910>>...46

/illumos-gate/usr/src/tools/smatch/src/
H A Dutils.c21 char *xvasprintf(const char *fmt, va_list ap) in xvasprintf() argument
27 va_copy(ap2, ap); in xvasprintf()
32 vsnprintf(str, n, fmt, ap); in xvasprintf()
39 va_list ap; in xasprintf() local
42 va_start(ap, fmt); in xasprintf()
43 str = xvasprintf(fmt, ap); in xasprintf()
44 va_end(ap); in xasprintf()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_string.c81 len = vsnprintf(NULL, 0, fmt, ap); in topo_hdl_vasprintf()
103 ret = vsnprintf(*str, len, fmt, ap); in topo_hdl_vasprintf()
117 va_list ap; in topo_hdl_asprintf() local
119 va_start(ap, fmt); in topo_hdl_asprintf()
120 ret = topo_hdl_vasprintf(thp, str, fmt, ap); in topo_hdl_asprintf()
121 va_end(ap); in topo_hdl_asprintf()
128 return (topo_hdl_vasprintf(mod->tm_hdl, str, fmt, ap)); in topo_mod_vasprintf()
135 va_list ap; in topo_mod_asprintf() local
137 va_start(ap, fmt); in topo_mod_asprintf()
138 ret = topo_hdl_vasprintf(mod->tm_hdl, str, fmt, ap); in topo_mod_asprintf()
[all …]
/illumos-gate/usr/src/cmd/backup/restore/
H A Dinteractive.c335 if (ap->head != ap->last) { in getcmd()
346 ap->head++; in getcmd()
387 ap->cmd = cmd; in getcmd()
437 ap->head++; in getcmd()
595 ap->head = ap->last = (struct afile *)0; in expandarg()
607 ap->last = ap->head + 1; in expandarg()
610 if ((ap->last - ap->head) > ULONG_MAX) { in expandarg()
615 qsort((char *)ap->head, (size_t)(ap->last - ap->head), in expandarg()
711 int nentry = (int)(ap->last - ap->head); in formatf()
717 if (ap->head == ap->last) in formatf()
[all …]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_utils.c204 va_list ap; in _z_echo() local
219 va_start(ap, a_format); in _z_echo()
220 (void) vsnprintf(message, sizeof (message), a_format, ap); in _z_echo()
221 va_end(ap); in _z_echo()
252 va_list ap; in _z_echoDebug() local
267 va_start(ap, a_format); in _z_echoDebug()
268 (void) vsnprintf(message, sizeof (message), a_format, ap); in _z_echoDebug()
269 va_end(ap); in _z_echoDebug()
358 va_list ap; in _z_program_error() local
373 va_start(ap, a_format); in _z_program_error()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dtest.c41 int ap, ac; variable
49 ap = 1; in test()
64 if (ap >= ac) in nxtarg()
68 ap++; in nxtarg()
73 return(av[ap++]); in nxtarg()
92 ap--; in exp()
107 ap--; in e1()
116 ap--; in e2()
137 ap--; in e3()
179 ap--; in e3()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtg3.c960 ap->rxconfig = 0; in tg3_fiber_aneg_smachine()
962 ap->cur_time = 0; in tg3_fiber_aneg_smachine()
969 ap->cur_time++; in tg3_fiber_aneg_smachine()
1027 ap->link_time = ap->cur_time; in tg3_fiber_aneg_smachine()
1029 ap->txconfig = 0; in tg3_fiber_aneg_smachine()
1039 delta = ap->cur_time - ap->link_time; in tg3_fiber_aneg_smachine()
1062 if (ap->ability_match != 0 && ap->rxconfig != 0) { in tg3_fiber_aneg_smachine()
1119 ap->link_time = ap->cur_time; in tg3_fiber_aneg_smachine()
1138 delta = ap->cur_time - ap->link_time; in tg3_fiber_aneg_smachine()
1154 ap->link_time = ap->cur_time; in tg3_fiber_aneg_smachine()
[all …]
/illumos-gate/usr/src/uts/sun/sys/dada/impl/
H A Dtransport.h95 struct dcd_address *ap,
99 struct dcd_address *ap,
103 struct dcd_address *ap,
107 struct dcd_address *ap,
119 struct dcd_address *ap,
123 struct dcd_address *ap,
126 struct dcd_address *ap,
188 struct dcd_address *ap,
197 struct dcd_address *ap,
/illumos-gate/usr/src/lib/scsi/libscsi/common/
H A Dscsi_subr.c83 va_list ap) in libscsi_verror() argument
116 va_list ap; in libscsi_error() local
121 va_start(ap, fmt); in libscsi_error()
122 err = libscsi_verror(hp, err, fmt, ap); in libscsi_error()
123 va_end(ap); in libscsi_error()
294 libscsi_action_t *ap; in libscsi_get_inquiry() local
299 if ((ap = libscsi_action_alloc(hp, SPC3_CMD_INQUIRY, in libscsi_get_inquiry()
309 if (libscsi_exec(ap, tp) != 0 || in libscsi_get_inquiry()
310 libscsi_action_get_status(ap) != 0) { in libscsi_get_inquiry()
311 libscsi_action_free(ap); in libscsi_get_inquiry()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dglob.c230 register globlist_t* ap; in addmatch() local
259 gp->gl_rescan = ap; in addmatch()
274 ap->gl_next = gp->gl_match; in addmatch()
275 gp->gl_match = ap; in addmatch()
582 register globlist_t* ap; in glob() local
749 ap->gl_next = 0; in glob()
750 ap->gl_flags = 0; in glob()
751 ap->gl_begin = ap->gl_path + gp->gl_extra; in glob()
801 ap = gp->gl_match; in glob()
802 while (ap) in glob()
[all …]
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrace.c51 static int convarg(char *ap);
57 convarg(char *ap) in convarg() argument
61 if (!ap) in convarg()
63 if (numeric(*ap)) in convarg()
64 return (atoi(ap)); in convarg()
65 if (strcmp(ap, "all") == 0) in convarg()
76 char *ap; in getarg() local
84 ap = argbuf; in getarg()
103 *ap++ = c; in getarg()
107 *ap = '\0'; in getarg()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_create_andx.c238 smb_attr_t *ap = &op->fqi.fq_fattr; in smb_com_nt_create_andx() local
367 &ap->sa_crtime, /* (T) */ in smb_com_nt_create_andx()
368 &ap->sa_vattr.va_atime, /* (T) */ in smb_com_nt_create_andx()
369 &ap->sa_vattr.va_mtime, /* (T) */ in smb_com_nt_create_andx()
370 &ap->sa_vattr.va_ctime, /* (T) */ in smb_com_nt_create_andx()
372 ap->sa_allocsz, /* (q) */ in smb_com_nt_create_andx()
373 ap->sa_vattr.va_size, /* (q) */ in smb_com_nt_create_andx()
391 &ap->sa_crtime, /* (T) */ in smb_com_nt_create_andx()
392 &ap->sa_vattr.va_atime, /* (T) */ in smb_com_nt_create_andx()
396 ap->sa_allocsz, /* (q) */ in smb_com_nt_create_andx()
[all …]
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_fm.c145 ddi_acc_impl_t *ap; in px_fm_acc_setup() local
155 ap->ahi_get8 = i_ddi_prot_get8; in px_fm_acc_setup()
156 ap->ahi_get16 = i_ddi_prot_get16; in px_fm_acc_setup()
157 ap->ahi_get32 = i_ddi_prot_get32; in px_fm_acc_setup()
158 ap->ahi_get64 = i_ddi_prot_get64; in px_fm_acc_setup()
159 ap->ahi_put8 = i_ddi_prot_put8; in px_fm_acc_setup()
160 ap->ahi_put16 = i_ddi_prot_put16; in px_fm_acc_setup()
161 ap->ahi_put32 = i_ddi_prot_put32; in px_fm_acc_setup()
162 ap->ahi_put64 = i_ddi_prot_put64; in px_fm_acc_setup()
180 ap->ahi_get8 = i_ddi_caut_get8; in px_fm_acc_setup()
[all …]
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/
H A Ddebug_subr.c37 sunFm_vpanic(const char *format, va_list ap) in sunFm_vpanic() argument
39 (void) snmp_vlog(LOG_ERR, format, ap); in sunFm_vpanic()
48 va_list ap; in sunFm_panic() local
50 va_start(ap, format); in sunFm_panic()
51 sunFm_vpanic(format, ap); in sunFm_panic()
52 va_end(ap); in sunFm_panic()
/illumos-gate/usr/src/lib/libc/port/print/
H A Dfprintf.c54 va_list ap; in fprintf() local
56 va_start(ap, format); in fprintf()
75 count = _ndoprnt(format, ap, iop, 0); in fprintf()
109 va_list ap; in _fprintf_c89() local
111 va_start(ap, format); in _fprintf_c89()
112 count = _vfprintf_c89(iop, format, ap); in _fprintf_c89()
113 va_end(ap); in _fprintf_c89()
H A Dasprintf.c37 vasprintf(char **str, const char *format, va_list ap) in vasprintf() argument
45 ret = vsnprintf(string, INIT_SZ, format, ap); in vasprintf()
75 ret = vsnprintf(newstr, len, format, ap); in vasprintf()
91 va_list ap; in asprintf() local
95 va_start(ap, format); in asprintf()
96 ret = vasprintf(str, format, ap); in asprintf()
97 va_end(ap); in asprintf()
/illumos-gate/usr/src/boot/common/
H A Dutil.c120 va_list ap; in printf() local
127 va_start(ap, fmt); in printf()
141 putchar(va_arg(ap, int)); in printf()
144 for (s = va_arg(ap, char *); *s != '\0'; s++) in printf()
148 for (S = va_arg(ap, uint16_t *); *S != 0; S++) in printf()
156 u = va_arg(ap, unsigned long long); in printf()
159 u = va_arg(ap, unsigned long); in printf()
162 u = va_arg(ap, unsigned int); in printf()
180 va_end(ap); in printf()
/illumos-gate/usr/src/uts/common/io/usb/usba10/
H A Dusba10.c631 va_list ap; in usb_dprintf4() local
635 va_end(ap); in usb_dprintf4()
644 va_list ap; in usb_dprintf3() local
648 va_end(ap); in usb_dprintf3()
657 va_list ap; in usb_dprintf2() local
661 va_end(ap); in usb_dprintf2()
671 va_list ap; in usb_dprintf1() local
675 va_end(ap); in usb_dprintf1()
685 va_list ap; in usb_dprintf0() local
689 va_end(ap); in usb_dprintf0()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dvfprintf.c98 sm_bprintf(fp, fmt, ap) in sm_bprintf() argument
305 nextarg++, SM_VA_ARG(ap, type))
327 SM_VA_COPY(orgap, ap);
1030 (void) SM_VA_ARG(ap, int);
1033 (void) SM_VA_ARG(ap, int);
1036 (void) SM_VA_ARG(ap, int);
1042 (void) SM_VA_ARG(ap, int);
1048 (void) SM_VA_ARG(ap, int *);
1051 (void) SM_VA_ARG(ap, long);
1057 (void) SM_VA_ARG(ap, long *);
[all …]
/illumos-gate/usr/src/ucbcmd/test/
H A Dtest.c40 static int ap; variable
66 if (ap >= ac) { in nxtarg()
68 ap++; in nxtarg()
73 return (av[ap++]); in nxtarg()
90 ap--; in exp()
104 ap--; in e1()
113 ap--; in e2()
132 ap--; in e3()
182 if (ap >= ac) in e3()
185 ap--; in e3()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dvw_print.c47 vw_printw(w, fmt, ap) in vw_printw() argument
51 va_list ap;
53 void *ap;
59 __m_trace("vw_printw(%p, %p = \"%s\", %p)", w, fmt, fmt, ap);
66 (void) vsprintf(buffer, fmt, ap);
68 (void) vsprintf(buffer, fmt, (va_list) ap);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmon.c363 ANCHOR *ap; /* temp anchor ptr */ in writeBlocks() local
375 for (sum.nfns = 0, ap = &firstAnchor; ap != NULL; ap = ap->next) { in writeBlocks()
376 sum.nfns += ap->monBuffer->nfns; /* accum num of cells */ in writeBlocks()
377 if (ap->flags & HAS_HISTOGRAM) in writeBlocks()
378 histp = ap; /* remember lastone with a histgm */ in writeBlocks()
393 for (ap = &firstAnchor; ok && ap != NULL; ap = ap->next) { in writeBlocks()
394 amt = ap->monBuffer->nfns * sizeof (struct cnt); in writeBlocks()
395 p = (char *)ap->monBuffer + sizeof (struct hdr); in writeBlocks()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtree.c492 if(ap && array_assoc(ap)) in nv_attribute()
499 if((ap && (ap->nelem&ARRAY_TREE)) || (!ap && nv_isattr(np,NV_NOFREE))) in nv_attribute()
505 if(ap && ap->fixed) in nv_attribute()
509 if(ap && !array_assoc(ap) && (xp=(char**)(ap+1)) && *xp) in nv_attribute()
624 if(ap && !array_assoc(ap)) in nv_outnode()
633 if(ap && !array_assoc(ap)) in nv_outnode()
645 if(ep==Empty && !(ap && ap->fixed)) in nv_outnode()
673 if(ap && !array_assoc(ap)) in nv_outnode()
780 if((ap=nv_arrayptr(np)) && ap->fixed) in outval()
1044 ap->argchn.ap = arglist; in walk_tree()
[all …]
H A Dparse.c198 while(ap = ap->argnxt.ap) in check_typedef()
208 else if((ap->argnxt.ap)->argflag&ARG_RAW) in check_typedef()
209 cp = (ap->argnxt.ap)->argval; in check_typedef()
970 ap->argval[n] = ap->argval[n-1]; in assign()
978 ap->argchn.ap = (struct argnod*)t; in assign()
1459 ap->argchn.ap = 0; in simple()
1462 argtail = &(ap->argnxt.ap); in simple()
1526 for(ap=t->comarg->argnxt.ap;ap;ap=ap->argnxt.ap) in simple()
1841 ap = ac->comarg->argnxt.ap; in qscan()
1843 ap = ap->argnxt.ap; in qscan()
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dsacadm.c743 ap->ac_pid = getpid();
744 sendcmd(ap, NULL, tag);
762 ap->ac_mtype = AC_KILL;
764 ap->ac_pid = getpid();
765 sendcmd(ap, NULL, tag);
785 ap->ac_pid = getpid();
806 ap->ac_pid = getpid();
829 ap->ac_pid = getpid();
871 ap->ac_tag[0] = '\0';
1067 sendcmd(ap, info, tag) in sendcmd() argument
[all …]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dmvprintw.c33 va_list ap; in mvprintw() local
35 va_start(ap, fmt); in mvprintw()
36 return (move(y, x) == OK ? _sprintw(stdscr, fmt, ap) : ERR); in mvprintw()
42 va_list ap; in mvwprintw() local
44 va_start(ap, fmt); in mvwprintw()
45 return (wmove(win, y, x) == OK ? _sprintw(win, fmt, ap) : ERR); in mvwprintw()

12345678910>>...46