Home
last modified time | relevance | path

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

12345678910>>...46

/illumos-gate/usr/src/cmd/format/
H A Dix_altsctr.c103 ent_sort(ap->ap_gbadp, ap->ap_gbadcnt);
104 ent_compress(ap->ap_gbadp, ap->ap_gbadcnt);
139 ap->ap_map_sectot = ap->ap_map_secsiz / NBPSCTR; in read_altsctr()
147 (void) memset(ap->ap_mapp, 0, ap->ap_map_secsiz); in read_altsctr()
252 ap->ap_tblp->alts_resv_base = ap->part.p_size - 1; in init_altsctr()
272 ap->part.p_size, ap->ap_map_sectot, ALTS_MAP_UP); in init_altsctr()
295 ap->ap_tbl_secsiz / UBSIZE, (char *)ap->ap_tblp, in get_altsctr()
331 ap->ap_ent_secsiz / UBSIZE, (char *)ap->ap_entp, in get_altsctr()
469 ent_used = ap->ap_tblp->alts_ent_used + ap->ap_gbadcnt; in gen_alts_ent()
479 ap->ap_gbadp, ap->ap_gbadcnt); in gen_alts_ent()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Darray.c176 if(ap && maxi < 2*ap->maxi) in arsize()
231 if(ap->cur >= ap->maxi) in array_getup()
233 up = &(ap->val[ap->cur]); in array_getup()
252 if(ap->cur >= ap->maxi) in nv_arrayisset()
254 up = &(ap->val[ap->cur]); in nv_arrayisset()
368 ap = array_grow(np, ap, (int)ap->cur); in array_find()
369 if(ap->cur>=ap->maxi) in array_find()
490 ap->scope = ap->table; in array_clone()
1176 if(!ap || (!ap->header.fixed && !ap->header.fun)) in nv_putsub()
1546 if(ap && ap->fixed) in nv_endsubscript()
[all …]
/illumos-gate/usr/src/cmd/addbadsec/
H A Dix_altsctr.c109 ent_sort(ap->ap_gbadp, ap->ap_gbadcnt); in updatebadsec()
110 ent_compress(ap->ap_gbadp, ap->ap_gbadcnt); in updatebadsec()
145 ap->ap_map_sectot = ap->ap_map_secsiz / NBPSCTR; in read_altsctr()
153 (void) memset(ap->ap_mapp, 0, ap->ap_map_secsiz); in read_altsctr()
256 ap->ap_tblp->alts_resv_base = ap->part.p_size - 1; in init_altsctr()
276 ap->part.p_size, ap->ap_map_sectot, ALTS_MAP_UP); in init_altsctr()
335 (char *)ap->ap_entp, ap->ap_ent_secsiz,
369 (char *)ap->ap_entp, ap->ap_ent_secsiz, in wr_altsctr()
462 ent_used = ap->ap_tblp->alts_ent_used + ap->ap_gbadcnt; in gen_alts_ent()
466 ap->ap_gbadp, ap->ap_gbadcnt); in gen_alts_ent()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthr_attr.c69 thrattr_t *ap; in pthread_attr_init() local
99 thrattr_t *ap; in pthread_attr_clone() local
107 *ap = *old_ap; in pthread_attr_clone()
136 thrattr_t *ap; in pthread_attr_setstacksize() local
153 thrattr_t *ap; in pthread_attr_getstacksize() local
170 thrattr_t *ap; in pthread_attr_setstackaddr() local
186 thrattr_t *ap; in pthread_attr_getstackaddr() local
203 thrattr_t *ap; in pthread_attr_setdetachstate() local
491 bzero(ap->name, sizeof (ap->name)); in pthread_attr_setname_np()
510 bzero(ap->name, sizeof (ap->name)); in pthread_attr_setname_np()
[all …]
H A Dpthr_mutex.c39 mattr_t *ap; in pthread_mutexattr_init() local
74 mattr_t *ap; in pthread_mutexattr_setpshared() local
91 mattr_t *ap; in pthread_mutexattr_getpshared() local
107 mattr_t *ap; in pthread_mutexattr_setprioceiling() local
124 mattr_t *ap; in pthread_mutexattr_getprioceiling() local
139 mattr_t *ap; in pthread_mutexattr_setprotocol() local
158 mattr_t *ap; in pthread_mutexattr_getprotocol() local
175 mattr_t *ap; in pthread_mutexattr_setrobust() local
192 mattr_t *ap; in pthread_mutexattr_getrobust() local
210 mattr_t *ap; in pthread_mutex_init() local
[all …]
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss.c152 ap = (rpc_gss_data *) malloc(sizeof (*ap));
162 memset((char *)ap, 0, sizeof (*ap));
163 ap->clnt = clnt;
174 ap->icb = NULL;
524 if ((major = gss_sign(&minor, ap->context, ap->qop, &in_buf,
842 if (!ap->established || ap->service == rpc_gss_svc_none)
845 return (__rpc_gss_wrap_data(ap->service, ap->qop, ap->context,
866 if (!ap->established || ap->service == rpc_gss_svc_none)
872 ap->qop,
888 ap->context,
[all …]
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c45 fmd_adm_t *ap; in fmd_adm_open() local
74 free(ap); in fmd_adm_open()
79 ap->adm_clnt = c; in fmd_adm_open()
81 ap->adm_svcerr = 0; in fmd_adm_open()
82 ap->adm_errno = 0; in fmd_adm_open()
84 return (ap); in fmd_adm_open()
90 if (ap == NULL) in fmd_adm_close()
94 free(ap); in fmd_adm_close()
151 if (ap == NULL) { in fmd_adm_errmsg()
160 switch (ap ? ap->adm_errno : errno) { in fmd_adm_errmsg()
[all …]
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_avl.c218 ap = uu_zalloc(sizeof (*ap)); in uu_avl_create()
232 ap->ua_null_walk.uaw_next = &ap->ua_null_walk; in uu_avl_create()
233 ap->ua_null_walk.uaw_prev = &ap->ua_null_walk; in uu_avl_create()
244 return (ap); in uu_avl_create()
257 if (ap->ua_null_walk.uaw_next != &ap->ua_null_walk || in uu_avl_destroy()
258 ap->ua_null_walk.uaw_prev != &ap->ua_null_walk) { in uu_avl_destroy()
273 uu_free(ap); in uu_avl_destroy()
430 ap->ua_index = INDEX_NEXT(ap->ua_index); in uu_avl_remove()
520 ap->ua_index = INDEX_NEXT(ap->ua_index); in uu_avl_insert()
528 if (ap->ua_debug && !INDEX_VALID(ap, idx)) in uu_avl_nearest_next()
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss.c464 ap = (rpc_gss_data *) kmem_alloc(sizeof (*ap), KM_SLEEP); in rpc_gss_seccreate()
473 bzero((char *)ap, sizeof (*ap)); in rpc_gss_seccreate()
489 ap->qop = qop; in rpc_gss_seccreate()
501 kmem_free((char *)ap, sizeof (*ap)); in rpc_gss_seccreate()
1134 ap, ap->mech_type, (gss_OID *)NULL, (int *)NULL,
1207 kmem_free((char *)ap, sizeof (*ap));
1358 sizeof (ap->seq_num) + sizeof (ap->service) +
1359 sizeof (ap->ctx_handle) + ap->ctx_handle.length);
1408 return (__rpc_gss_wrap_data(ap->service, ap->qop, ap->context,
1428 if (!ap->established || ap->service == rpc_gss_svc_none)
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintaps.c28 if (kmemcpy((char *)&ap, (long)aps, sizeof(ap)))
44 ap.aps_state[0], ap.aps_state[1],
45 ap.aps_sel[0], ap.aps_sel[1]);
49 ap.aps_seqoff[0], ap.aps_seqoff[1],
50 ap.aps_seqmin[0], ap.aps_seqmin[1]);
52 ap.aps_ackoff[0], ap.aps_ackoff[1],
53 ap.aps_ackmin[0], ap.aps_ackmin[1]);
56 ap.aps_seqoff[0], ap.aps_seqoff[1],
57 ap.aps_seqmin[0], ap.aps_seqmin[1]);
59 ap.aps_ackoff[0], ap.aps_ackoff[1],
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_control.c33 #define A_TO_TRAN(ap) (ap->a_hba_tran) argument
38 return (*A_TO_TRAN(ap)->tran_abort)(ap, pkt); in scsi_abort()
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()
63 return (*A_TO_TRAN(ap)->tran_reset_notify)(ap, flag, callback, arg); in scsi_reset_notify()
67 scsi_clear_task_set(struct scsi_address *ap) in scsi_clear_task_set() argument
72 return (*A_TO_TRAN(ap)->tran_clear_task_set)(ap); in scsi_clear_task_set()
81 return (*A_TO_TRAN(ap)->tran_terminate_task)(ap, pkt); in scsi_terminate_task()
89 scsi_clear_aca(struct scsi_address *ap) in scsi_clear_aca() argument
[all …]
/illumos-gate/usr/src/cmd/smserverd/
H A Dsmediad_err.c48 va_list ap; in fatal() local
52 va_end(ap); in fatal()
60 va_list ap; in quit() local
64 va_end(ap); in quit()
73 va_list ap; in noise() local
77 va_end(ap); in noise()
83 va_list ap; in warning() local
87 va_end(ap); in warning()
95 va_list ap; in info() local
103 va_end(ap); in info()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dscanf.c50 va_list ap; in scanf() local
54 va_end(ap); in scanf()
64 va_list ap; in fscanf() local
68 va_end(ap); in fscanf()
78 va_list ap; in sscanf() local
82 va_end(ap); in sscanf()
104 va_list ap; in _scanf_c89() local
108 va_end(ap); in _scanf_c89()
117 va_list ap; in _fscanf_c89() local
121 va_end(ap); in _fscanf_c89()
[all …]
H A Dwscanf.c49 va_list ap; in wscanf() local
53 va_end(ap); in wscanf()
62 va_list ap; in fwscanf() local
66 va_end(ap); in fwscanf()
75 va_list ap; in swscanf() local
79 va_end(ap); in swscanf()
102 va_list ap; in _wscanf_c89() local
106 va_end(ap); in _wscanf_c89()
115 va_list ap; in _fwscanf_c89() local
119 va_end(ap); in _fwscanf_c89()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Derr.c75 va_list ap; in err() local
77 va_start(ap, fmt); in err()
79 va_end(ap); in err()
89 va_list ap; in errx() local
91 va_start(ap, fmt); in errx()
93 va_end(ap); in errx()
103 va_list ap; in warn() local
105 va_start(ap, fmt); in warn()
107 va_end(ap); in warn()
117 va_list ap; in warnx() local
[all …]
/illumos-gate/usr/src/cmd/sgs/m4/common/
H A Dm4macs.c100 s = ap[1]; in def()
109 if ((ap[2] != NULL) && (wcscmp(ap[1], ap[2]) == 0)) in def()
231 pe = ap[1]; in doeval()
256 if (wcscmp(ap[1], ap[2]) == 0) { in doif()
257 pbstr(ap[3]); in doif()
261 ap += 3; in doif()
264 pbstr(ap[1]); in doif()
279 ap += 2; in doifdef()
283 pbstr(ap[1]); in doifdef()
449 sink = ap[1]; in dotransl()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dbdev_dsort.c72 ap = dp->b_actf;
73 if (ap == NULL) {
85 while (ap->av_forw) {
91 if (ap->av_forw->b_cylin < ap->b_cylin) {
101 ap = ap->av_forw;
105 ap = ap->av_forw;
117 while (ap->av_forw) {
124 if (ap->av_forw->b_cylin < ap->b_cylin ||
127 ap = ap->av_forw;
136 ap->av_forw = bp;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dauth.c148 while (ap->type && (ap->type != type || ap->way != way)) in findauthenticator()
149 ++ap; in findauthenticator()
150 return (ap->type ? ap : NULL); in findauthenticator()
167 if (!ap->init || (*ap->init)(ap)) { in auth_init()
172 Name, ap->type, ap->way); in auth_init()
262 for (ap = authenticators; ap->type; ap++) { in auth_onoff()
320 for (ap = authenticators; ap->type; ap++) { in auth_status()
378 if (!ap || !ap->send) in auth_send_retry()
387 if ((*ap->send)(ap)) { in auth_send_retry()
418 (*ap->reply)(ap, data+2, cnt-2); in auth_reply()
[all …]
/illumos-gate/usr/src/uts/common/ipp/
H A Dippconf.c570 ap = NULL; in ipp_action_name()
574 ap = NULL; in ipp_action_name()
578 ap = NULL; in ipp_action_name()
675 rele_action(ap); in ipp_action_mod()
788 rele_action(ap); in ipp_action_create()
910 rele_action(ap); in ipp_action_modify()
970 rele_action(ap); in ipp_action_info()
995 rele_action(ap); in ipp_action_set_ptr()
2929 (void) sprintf(ap->ippa_name, "$%08X", ap->ippa_id); in alloc_action()
3075 return (ap); in hold_action()
[all …]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dprintf.c73 va_list ap; in printf() local
76 va_start(ap, fmt); in printf()
78 va_end(ap); in printf()
93 va_list ap; in sprintf() local
95 va_start(ap, cfmt); in sprintf()
98 va_end(ap); in sprintf()
128 va_list ap; in asprintf() local
133 va_end(ap); in asprintf()
144 va_end(ap); in asprintf()
155 va_list ap; in snprintf() local
[all …]
/illumos-gate/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
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_onexit.c90 zfs_onexit_action_node_t *ap; in zfs_onexit_destroy() local
96 ap->za_func(ap->za_data); in zfs_onexit_destroy()
165 ap->za_func = func; in zfs_onexit_add_cb()
166 ap->za_data = data; in zfs_onexit_add_cb()
188 for (ap = list_head(l); ap != NULL; ap = list_next(l, ap)) { in zfs_onexit_find_cb()
189 if (match == ap) in zfs_onexit_find_cb()
192 return (ap); in zfs_onexit_find_cb()
211 if (ap != NULL) { in zfs_onexit_del_cb()
215 ap->za_func(ap->za_data); in zfs_onexit_del_cb()
245 if (ap != NULL) in zfs_onexit_cb_data()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_aarp.c65 switch (ntohs(ap->arp_op)) { in interpret_aarp()
69 printat(ap->arp_tpa)); in interpret_aarp()
74 printat(ap->arp_spa), 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()
105 ap->arp_hln); in interpret_aarp()
108 ap->arp_pln); in interpret_aarp()
111 ntohs(ap->arp_op), in interpret_aarp()
121 printat(ap->arp_spa)); in interpret_aarp()
[all …]
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_publish.c239 va_arg(ap, int)); in va2nvl()
257 va_arg(ap, int)); in va2nvl()
468 va_list ap; in _i_fmev_publish() local
475 va_start(ap, ntuples); in _i_fmev_publish()
482 va_end(ap); in _i_fmev_publish()
496 va_list ap; in _fmev_publish() local
502 va_start(ap, ntuples); in _fmev_publish()
509 va_end(ap); in _fmev_publish()
519 va_list ap; in _fmev_rspublish() local
525 va_start(ap, ntuples); in _fmev_rspublish()
[all …]
/illumos-gate/usr/src/lib/scsi/libsmp/common/
H A Dsmp_engine.c457 *reqp = ap->sa_request + ap->sa_request_data_off; in smp_action_get_request()
482 (ap->sa_response + ap->sa_response_data_off) : NULL; in smp_action_get_response()
622 ap->sa_def = dp; in smp_action_xalloc()
639 ap->sa_request_data_off = dp->sfd_rq_dataoff(ap, tp); in smp_action_xalloc()
642 return (ap); in smp_action_xalloc()
660 if (ap == NULL) in smp_action_free()
663 smp_free(ap); in smp_action_free()
703 dp = ap->sa_def; in smp_exec()
707 smp_inject_errors(ap->sa_request, ap->sa_request_alloc_len, in smp_exec()
728 ap->sa_response_data_len = dp->sfd_rs_datalen(ap, tp); in smp_exec()
[all …]

12345678910>>...46