Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 1171) sorted by relevance

12345678910>>...47

/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Dsyscall.c89 va_list ap; in syscall() local
94 va_start(ap, sysnum); in syscall()
97 i1 = va_arg(ap, int); in syscall()
98 c1 = va_arg(ap, char *); in syscall()
99 i2 = va_arg(ap, int); in syscall()
100 va_end(ap); in syscall()
103 i1 = va_arg(ap, int); in syscall()
104 c1 = va_arg(ap, char *); in syscall()
105 i2 = va_arg(ap, int); in syscall()
106 va_end(ap); in syscall()
[all …]
/titanic_41/usr/src/lib/libshell/common/sh/
H A Darray.c35 #define is_associative(ap) array_assoc((Namarr_t*)(ap)) argument
61 static Namarr_t *array_scope(Namval_t *np, Namarr_t *ap, int flags) in array_scope() argument
65 size_t size = ap->hdr.dsize; in array_scope()
67 size = ap->hdr.disc->dsize; in array_scope()
70 memcpy(aq,ap,size); in array_scope()
80 aq->scope = (void*)ap; in array_scope()
86 static int array_unscope(Namval_t *np,Namarr_t *ap) in array_unscope() argument
89 if(!ap->scope) in array_unscope()
91 if(is_associative(ap)) in array_unscope()
92 (*ap->fun)(np, NIL(char*), NV_AFREE); in array_unscope()
[all …]
/titanic_41/usr/src/cmd/format/
H A Dix_altsctr.c66 struct alts_mempart *ap = &alts_part; /* pointer to incore */ variable
100 ap->ap_flag |= ALTS_ADDPART;
103 ent_sort(ap->ap_gbadp, ap->ap_gbadcnt);
104 ent_compress(ap->ap_gbadp, ap->ap_gbadcnt);
118 if (ap->ap_tblp == NULL) {
120 ap->ap_tbl_secsiz = byte_to_secsiz(ALTS_PARTTBL_SIZE, NBPSCTR);
121 ap->ap_tblp = (struct alts_parttbl *)malloc(ap->ap_tbl_secsiz);
122 if (ap->ap_tblp == NULL) {
132 if ((ap->ap_memmapp = (uchar_t *)malloc(part->p_size)) == NULL) {
137 ap->ap_tblp->alts_map_len = (part->p_size + 8 - 1) / 8;
[all …]
/titanic_41/usr/src/cmd/addbadsec/
H A Dix_altsctr.c68 struct alts_mempart *ap = &alts_part; /* pointer to incore alts tables */ variable
106 ap->ap_flag |= ALTS_ADDPART; in updatebadsec()
109 ent_sort(ap->ap_gbadp, ap->ap_gbadcnt); in updatebadsec()
110 ent_compress(ap->ap_gbadp, ap->ap_gbadcnt); in updatebadsec()
123 if (ap->ap_tblp == NULL) { in read_altsctr()
125 ap->ap_tbl_secsiz = byte_to_secsiz(ALTS_PARTTBL_SIZE, NBPSCTR); in read_altsctr()
126 ap->ap_tblp = (struct alts_parttbl *)malloc(ap->ap_tbl_secsiz); in read_altsctr()
127 if (ap->ap_tblp == NULL) { in read_altsctr()
137 if ((ap->ap_memmapp = (uchar_t *)malloc(part->p_size)) == NULL) { in read_altsctr()
142 ap->ap_tblp->alts_map_len = (part->p_size + 8 - 1) / 8; in read_altsctr()
[all …]
/titanic_41/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss.c119 rpc_gss_data *ap = NULL; local
152 ap = (rpc_gss_data *) malloc(sizeof (*ap));
153 if (auth == NULL || ap == NULL) {
162 memset((char *)ap, 0, sizeof (*ap));
163 ap->clnt = clnt;
164 ap->version = RPCSEC_GSS_VERSION;
166 ap->my_cred = options_req->my_cred;
167 ap->req_flags = options_req->req_flags;
168 ap->time_req = options_req->time_req;
169 ap->icb = options_req->input_channel_bindings;
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dpthr_attr.c62 thrattr_t *ap; in pthread_attr_init() local
64 if ((ap = lmalloc(sizeof (thrattr_t))) != NULL) { in pthread_attr_init()
65 *ap = *def_thrattr(); in pthread_attr_init()
66 attr->__pthread_attrp = ap; in pthread_attr_init()
92 thrattr_t *ap; in pthread_attr_clone() local
98 if ((ap = lmalloc(sizeof (thrattr_t))) == NULL) in pthread_attr_clone()
100 *ap = *old_ap; in pthread_attr_clone()
101 attr->__pthread_attrp = ap; in pthread_attr_clone()
129 thrattr_t *ap; in pthread_attr_setstacksize() local
131 if (attr != NULL && (ap = attr->__pthread_attrp) != NULL && in pthread_attr_setstacksize()
[all …]
H A Dpthr_mutex.c39 mattr_t *ap; in pthread_mutexattr_init() local
41 if ((ap = lmalloc(sizeof (mattr_t))) == NULL) in pthread_mutexattr_init()
43 ap->pshared = DEFAULT_TYPE; in pthread_mutexattr_init()
44 ap->type = PTHREAD_MUTEX_DEFAULT; in pthread_mutexattr_init()
45 ap->protocol = PTHREAD_PRIO_NONE; in pthread_mutexattr_init()
46 ap->robustness = PTHREAD_MUTEX_STALLED; in pthread_mutexattr_init()
47 attr->__pthread_mutexattrp = ap; in pthread_mutexattr_init()
74 mattr_t *ap; in pthread_mutexattr_setpshared() local
76 if (attr == NULL || (ap = attr->__pthread_mutexattrp) == NULL || in pthread_mutexattr_setpshared()
80 ap->pshared = pshared; in pthread_mutexattr_setpshared()
[all …]
/titanic_41/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c45 fmd_adm_t *ap; in fmd_adm_open() local
60 if ((ap = malloc(sizeof (fmd_adm_t))) == NULL) in fmd_adm_open()
65 ap->adm_maxretries = 1; in fmd_adm_open()
69 ap->adm_maxretries = 0; in fmd_adm_open()
74 free(ap); in fmd_adm_open()
78 ap->adm_prog = prog; in fmd_adm_open()
79 ap->adm_clnt = c; in fmd_adm_open()
80 ap->adm_version = version; in fmd_adm_open()
81 ap->adm_svcerr = 0; in fmd_adm_open()
82 ap->adm_errno = 0; in fmd_adm_open()
[all …]
/titanic_41/usr/src/lib/libuutil/common/
H A Duu_avl.c212 uu_avl_t *ap, *next, *prev; in uu_avl_create() local
219 ap = uu_zalloc(sizeof (*ap)); in uu_avl_create()
220 if (ap == NULL) { in uu_avl_create()
225 ap->ua_pool = pp; in uu_avl_create()
226 ap->ua_parent_enc = UU_PTR_ENCODE(parent); in uu_avl_create()
227 ap->ua_debug = pp->uap_debug || (flags & UU_AVL_DEBUG); in uu_avl_create()
228 ap->ua_index = (pp->uap_last_index = INDEX_NEXT(pp->uap_last_index)); in uu_avl_create()
230 avl_create(&ap->ua_tree, &uu_avl_node_compare, pp->uap_objsize, in uu_avl_create()
233 ap->ua_null_walk.uaw_next = &ap->ua_null_walk; in uu_avl_create()
234 ap->ua_null_walk.uaw_prev = &ap->ua_null_walk; in uu_avl_create()
[all …]
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dprintaps.c23 ap_session_t ap; local
28 if (kmemcpy((char *)&ap, (long)aps, sizeof(ap)))
30 if (kmemcpy((char *)&apr, (long)ap.aps_apr, sizeof(apr)))
34 printf("\t\tproto %d flags %#x bytes ", ap.aps_p, ap.aps_flags);
36 printf("%qu pkts %qu", (unsigned long long)ap.aps_bytes,
37 (unsigned long long)ap.aps_pkts);
39 printf("%lu pkts %lu", ap.aps_bytes, ap.aps_pkts);
41 printf(" data %s size %d\n", ap.aps_data ? "YES" : "NO", ap.aps_psiz);
42 if ((ap.aps_p == IPPROTO_TCP) && (opts & OPT_VERBOSE)) {
44 ap.aps_state[0], ap.aps_state[1],
[all …]
/titanic_41/usr/src/uts/common/io/scsi/impl/
H A Dscsi_control.c33 #define A_TO_TRAN(ap) (ap->a_hba_tran) argument
36 scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt) in scsi_abort() argument
38 return (*A_TO_TRAN(ap)->tran_abort)(ap, pkt); in scsi_abort()
42 scsi_reset(struct scsi_address *ap, int level) in scsi_reset() argument
47 ((*A_TO_TRAN(ap)->tran_getcap)(ap, "lun-reset", 1) != 1)) { in scsi_reset()
50 if ((A_TO_TRAN(ap)->tran_reset) == NULL) { in scsi_reset()
53 return (*A_TO_TRAN(ap)->tran_reset)(ap, level); in scsi_reset()
57 scsi_reset_notify(struct scsi_address *ap, int flag, in scsi_reset_notify() argument
60 if ((A_TO_TRAN(ap)->tran_reset_notify) == NULL) { in scsi_reset_notify()
63 return (*A_TO_TRAN(ap)->tran_reset_notify)(ap, flag, callback, arg); in scsi_reset_notify()
[all …]
/titanic_41/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss.c267 rpc_gss_data *ap; in rpc_gss_secget() local
305 ap = AUTH_PRIVATE(current->auth); in rpc_gss_secget()
306 ap->clnt = clnt; in rpc_gss_secget()
308 if (ap->invalid || in rpc_gss_secget()
437 rpc_gss_data *ap = NULL; in rpc_gss_seccreate() local
460 ap = (rpc_gss_data *) kmem_alloc(sizeof (*ap), KM_SLEEP); in rpc_gss_seccreate()
461 if (auth == NULL || ap == NULL) { in rpc_gss_seccreate()
469 bzero((char *)ap, sizeof (*ap)); in rpc_gss_seccreate()
470 ap->clnt = clnt; in rpc_gss_seccreate()
471 ap->version = RPCSEC_GSS_VERSION; in rpc_gss_seccreate()
[all …]
/titanic_41/usr/src/cmd/smserverd/
H A Dsmediad_err.c48 va_list ap; in fatal() local
50 va_start(ap, fmt); in fatal()
51 (void) vsyslog(LOG_DAEMON|LOG_CRIT, fmt, ap); in fatal()
52 va_end(ap); in fatal()
60 va_list ap; in quit() local
62 va_start(ap, fmt); in quit()
63 (void) vsyslog(LOG_DAEMON|LOG_ERR, fmt, ap); in quit()
64 va_end(ap); in quit()
73 va_list ap; in noise() local
75 va_start(ap, fmt); in noise()
[all …]
/titanic_41/usr/src/lib/libc/port/stdio/
H A Dscanf.c50 va_list ap; in scanf() local
52 va_start(ap, fmt); in scanf()
53 ret = vscanf(fmt, ap); in scanf()
54 va_end(ap); in scanf()
64 va_list ap; in fscanf() local
66 va_start(ap, fmt); in fscanf()
67 ret = vfscanf(iop, fmt, ap); in fscanf()
68 va_end(ap); in fscanf()
78 va_list ap; in sscanf() local
80 va_start(ap, fmt); in sscanf()
[all …]
H A Dwscanf.c49 va_list ap; in wscanf() local
51 va_start(ap, fmt); in wscanf()
52 ret = vwscanf(fmt, ap); in wscanf()
53 va_end(ap); in wscanf()
62 va_list ap; in fwscanf() local
64 va_start(ap, fmt); in fwscanf()
65 ret = vfwscanf(iop, fmt, ap); in fwscanf()
66 va_end(ap); in fwscanf()
75 va_list ap; in swscanf() local
77 va_start(ap, fmt); in swscanf()
[all …]
/titanic_41/usr/src/lib/libast/common/uwin/
H A Derr.c48 errmsg(int level, int code, const char* fmt, va_list ap) in errmsg() argument
63 errorv(fmt, level|ERROR_NOID, ap); in errmsg()
68 extern void verr(int code, const char* fmt, va_list ap) in verr() argument
70 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); in verr()
75 va_list ap; in err() local
77 va_start(ap, fmt); in err()
78 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); in err()
79 va_end(ap); in err()
82 extern void verrx(int code, const char* fmt, va_list ap) in verrx() argument
84 errmsg(ERROR_ERROR, code, fmt, ap); in verrx()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dbdev_dsort.c66 register struct buf *ap; local
72 ap = dp->b_actf;
73 if (ap == NULL) {
84 if (bp->b_cylin < ap->b_cylin) {
85 while (ap->av_forw) {
91 if (ap->av_forw->b_cylin < ap->b_cylin) {
99 if (bp->b_cylin < ap->av_forw->b_cylin)
101 ap = ap->av_forw;
102 } while (ap->av_forw);
105 ap = ap->av_forw;
[all …]
/titanic_41/usr/src/cmd/sgs/m4/common/
H A Dm4macs.c39 #define arg(n) (c < (n) ? nullstr: ap[n])
47 dochcom(wchar_t **ap, int c) in dochcom() argument
60 docq(wchar_t **ap, int c) in docq() argument
81 dodecr(wchar_t **ap, int c) in dodecr() argument
87 dodef(wchar_t **ap, int c) in dodef() argument
89 def(ap, c, NOPUSH); in dodef()
93 def(wchar_t **ap, int c, int mode) in def() argument
100 s = ap[1]; in def()
106 if (*s || s == ap[1]) in def()
109 if ((ap[2] != NULL) && (wcscmp(ap[1], ap[2]) == 0)) in def()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dauth.c146 Authenticator *ap = authenticators; in findauthenticator() local
148 while (ap->type && (ap->type != type || ap->way != way)) in findauthenticator()
149 ++ap; in findauthenticator()
150 return (ap->type ? ap : NULL); in findauthenticator()
160 Authenticator *ap = authenticators; in auth_init() local
166 while (ap->type) { in auth_init()
167 if (!ap->init || (*ap->init)(ap)) { in auth_init()
168 i_support |= typemask(ap->type); in auth_init()
172 Name, ap->type, ap->way); in auth_init()
174 ++ap; in auth_init()
[all …]
/titanic_41/usr/src/cmd/strings/
H A Da.out.h66 #define ATEXTPOS(ap) ((long)sizeof (struct aexec)) argument
67 #define ADATAPOS(ap) (ATEXTPOS(ap) + (long)(ap)->xa_text) argument
68 #define ARTEXTPOS(ap) (ADATAPOS(ap) + (long)(ap)->xa_data) argument
69 #define ARDATAPOS(ap) (ARTEXTPOS(ap) + ((long)\ argument
70 ((ap)->xa_flag? 0 : (ap)->xa_text)))
71 #define ASYMPOS(ap) (ATEXTPOS(ap) + \ argument
72 (((ap)->xa_flag? 1L : 2L) * \
73 ((long)(ap)->xa_text + (long)(ap)->xa_data)))
74 #define AENDPOS(ap) (ASYMPOS(ap) + (long)(ap)->xa_syms) argument
/titanic_41/usr/src/uts/common/ipp/
H A Dippconf.c557 ipp_action_t *ap; in ipp_action_name() local
570 ap = NULL; in ipp_action_name()
574 ap = NULL; in ipp_action_name()
578 ap = NULL; in ipp_action_name()
587 if ((ap = hold_action(aid)) == NULL) in ipp_action_name()
590 LOCK_ACTION(ap, RW_READER); in ipp_action_name()
591 aname = ap->ippa_name; in ipp_action_name()
616 if (ap != NULL) { in ipp_action_name()
617 UNLOCK_ACTION(ap); in ipp_action_name()
618 rele_action(ap); in ipp_action_name()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dzfs_onexit.c90 zfs_onexit_action_node_t *ap; in zfs_onexit_destroy() local
93 while ((ap = list_head(&zo->zo_actions)) != NULL) { in zfs_onexit_destroy()
94 list_remove(&zo->zo_actions, ap); in zfs_onexit_destroy()
96 ap->za_func(ap->za_data); in zfs_onexit_destroy()
97 kmem_free(ap, sizeof (zfs_onexit_action_node_t)); in zfs_onexit_destroy()
151 zfs_onexit_action_node_t *ap; in zfs_onexit_add_cb() local
158 ap = kmem_alloc(sizeof (zfs_onexit_action_node_t), KM_SLEEP); in zfs_onexit_add_cb()
159 list_link_init(&ap->za_link); in zfs_onexit_add_cb()
160 ap->za_func = func; in zfs_onexit_add_cb()
161 ap->za_data = data; in zfs_onexit_add_cb()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_aarp.c54 struct ether_arp *ap = (struct ether_arp *)data; in interpret_aarp() local
65 switch (ntohs(ap->arp_op)) { in interpret_aarp()
69 printat(ap->arp_tpa)); in interpret_aarp()
74 printat(ap->arp_spa), in interpret_aarp()
75 printether((struct ether_addr *)&ap->arp_sha)); in interpret_aarp()
76 dst_name = printat(ap->arp_tpa); in interpret_aarp()
81 printat(ap->arp_tpa)); in interpret_aarp()
98 ntohs(ap->arp_hrd)); in interpret_aarp()
101 ntohs(ap->arp_pro), in interpret_aarp()
102 print_ethertype(ntohs(ap->arp_pro))); in interpret_aarp()
[all …]
/titanic_41/usr/src/lib/fm/libfmevent/common/
H A Dfmev_publish.c194 va2nvl(nvlist_t **nvlp, va_list ap, uint_t ntuples) in va2nvl() argument
203 if ((name = va_arg(ap, char *)) == NULL || name == FMEV_ARG_TERM) in va2nvl()
216 type = va_arg(ap, data_type_t); in va2nvl()
221 va_arg(ap, uint_t)); in va2nvl()
224 nelem = va_arg(ap, int); in va2nvl()
226 va_arg(ap, uchar_t *), nelem); in va2nvl()
230 va_arg(ap, boolean_t)); in va2nvl()
233 nelem = va_arg(ap, int); in va2nvl()
235 va_arg(ap, boolean_t *), nelem); in va2nvl()
239 va_arg(ap, int)); in va2nvl()
[all …]
/titanic_41/usr/src/lib/scsi/libsmp/common/
H A Dsmp_engine.c418 smp_action_set_timeout(smp_action_t *ap, uint32_t timeout) in smp_action_set_timeout() argument
420 ap->sa_timeout = timeout; in smp_action_set_timeout()
427 smp_action_get_timeout(const smp_action_t *ap) in smp_action_get_timeout() argument
429 return (ap->sa_timeout); in smp_action_get_timeout()
433 smp_action_get_function_def(const smp_action_t *ap) in smp_action_get_function_def() argument
435 return (ap->sa_def); in smp_action_get_function_def()
443 smp_action_get_rqsd(const smp_action_t *ap) in smp_action_get_rqsd() argument
445 return (ap->sa_request_rqsd); in smp_action_get_rqsd()
453 smp_action_get_request(const smp_action_t *ap, void **reqp, size_t *dlenp) in smp_action_get_request() argument
456 if (ap->sa_request_data_off >= 0) { in smp_action_get_request()
[all …]

12345678910>>...47