Home
last modified time | relevance | path

Searched refs:sap (Results 1 – 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/lib/libc/port/threads/
H A Dtdb_agent.c152 sap->next = (uintptr_t)(sap + 1); in alloc_sync_addr()
162 (void) memset(&sap->un, 0, sizeof (sap->un)); in alloc_sync_addr()
163 return (sap); in alloc_sync_addr()
207 sap->next = (uintptr_t)(sap + 1); in initialize_sync_hash()
279 for (sap = (tdb_sync_stats_t *)(uintptr_t)*sapp; sap != NULL; in tdb_sync_obj_register()
280 sap = (tdb_sync_stats_t *)(uintptr_t)sap->next) { in tdb_sync_obj_register()
306 sap != NULL; in tdb_sync_obj_register()
307 sap = (tdb_sync_stats_t *)(uintptr_t)sap->next) in tdb_sync_obj_register()
308 (void) memset(&sap->un, 0, sizeof (sap->un)); in tdb_sync_obj_register()
335 if (sap == NULL && (sap = alloc_sync_addr(addr)) != NULL) { in tdb_sync_obj_register()
[all …]
H A Dspawn.c185 sap->sa_schedpolicy, sap->sa_priority) == -1) in perform_flag_actions()
322 if (sap != NULL) in posix_spawn()
332 if (sap != NULL && (sap->sa_psflags & POSIX_SPAWN_NOEXECERR_NP)) in posix_spawn()
436 if (sap != NULL) in posix_spawnp()
671 if (sap == NULL) in posix_spawnattr_destroy()
677 lfree(sap, sizeof (*sap)); in posix_spawnattr_destroy()
704 if (sap == NULL) in posix_spawnattr_getflags()
718 if (sap == NULL) in posix_spawnattr_setpgroup()
732 if (sap == NULL) in posix_spawnattr_getpgroup()
746 if (sap == NULL) in posix_spawnattr_setschedparam()
[all …]
H A Dsigaction.c76 volatile struct sigaction *sap; in call_user_handler() local
114 sap = &udp->siguaction[sig].sig_uaction; in call_user_handler()
120 (void) memcpy(&uact, (void *)sap, sizeof (uact)); in call_user_handler()
124 (void) memcpy(&uact, (void *)sap, sizeof (uact)); in call_user_handler()
126 (sap->sa_flags & SA_RESETHAND)) in call_user_handler()
127 sap->sa_sigaction = SIG_DFL; in call_user_handler()
689 struct sigaction *sap; in signal_init() local
699 sap = &udp->siguaction[sig].sig_uaction; in signal_init()
700 if (sap->sa_sigaction != SIG_DFL && in signal_init()
701 sap->sa_sigaction != SIG_IGN && in signal_init()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dpass1.c302 struct short_ad *sap; in getdir() local
332 len = EXTLEN(sap->sad_ext_len); in getdir()
333 type = EXTYPE(sap->sad_ext_len); in getdir()
338 markbusy(sap->sad_ext_loc, len); in getdir()
355 sap->sad_ext_len); in getdir()
356 baseblock = sap->sad_ext_loc; in getdir()
361 markbusy(sap->sad_ext_loc, len); in getdir()
468 struct short_ad *sap = NULL; in ckinode() local
479 len = EXTLEN(sap->sad_ext_len); in ckinode()
480 type = EXTYPE(sap->sad_ext_len); in ckinode()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ib.c155 mac_ib_sap_verify(uint32_t sap, uint32_t *bind_sap, void *mac_pdata) in mac_ib_sap_verify() argument
159 if (sap > MAC_IB_MAX_802_SAP && sap <= MAC_IB_ETHERTYPE_MAX) { in mac_ib_sap_verify()
161 *bind_sap = sap; in mac_ib_sap_verify()
165 if (sap <= MAC_IB_MAX_802_SAP) { in mac_ib_sap_verify()
176 mac_ib_header(const void *saddr, const void *daddr, uint32_t sap, in mac_ib_header() argument
182 if (!mac_ib_sap_verify(sap, NULL, NULL)) in mac_ib_header()
190 ibhp->ipib_rhdr.ipoib_type = htons(sap); in mac_ib_header()
201 uint16_t sap; in mac_ib_header_info() local
224 sap = ntohs(ibhp->ipib_rhdr.ipoib_type); in mac_ib_header_info()
225 hdr_info->mhi_origsap = hdr_info->mhi_bindsap = sap; in mac_ib_header_info()
H A Dmac_ipv4.c122 mac_ipv4_sap_verify(uint32_t sap, uint32_t *bind_sap, void *pdata) in mac_ipv4_sap_verify() argument
124 if (sap == IPPROTO_ENCAP || sap == IPPROTO_IPV6 || sap == 0) { in mac_ipv4_sap_verify()
126 *bind_sap = sap; in mac_ipv4_sap_verify()
140 mac_ipv4_header(const void *saddr, const void *daddr, uint32_t sap, void *pdata, in mac_ipv4_header() argument
148 if (!mac_ipv4_sap_verify(sap, NULL, NULL)) in mac_ipv4_header()
170 iphp->ip_p = (uint8_t)sap; in mac_ipv4_header()
H A Dmac_6to4.c98 mac_6to4_sap_verify(uint32_t sap, uint32_t *bind_sap, void *pdata) in mac_6to4_sap_verify() argument
100 if (sap == IPPROTO_IPV6 || sap == 0) { in mac_6to4_sap_verify()
102 *bind_sap = sap; in mac_6to4_sap_verify()
H A Dmac_ether.c386 mac_ether_sap_verify(uint32_t sap, uint32_t *bind_sap, void *mac_pdata) in mac_ether_sap_verify() argument
388 if (sap >= ETHERTYPE_802_MIN && sap <= ETHERTYPE_MAX) { in mac_ether_sap_verify()
390 *bind_sap = sap; in mac_ether_sap_verify()
394 if (sap <= ETHERMTU) { in mac_ether_sap_verify()
404 mac_ether_header(const void *saddr, const void *daddr, uint32_t sap, in mac_ether_header() argument
411 if (!mac_ether_sap_verify(sap, &bind_sap, NULL)) in mac_ether_header()
427 sap = msgdsize(payload); in mac_ether_header()
428 ehp->ether_type = htons(sap); in mac_ether_header()
H A Dmac_wifi.c161 mac_wifi_sap_verify(uint32_t sap, uint32_t *bind_sap, void *pdata) in mac_wifi_sap_verify() argument
163 if (sap >= ETHERTYPE_802_MIN && sap <= ETHERTYPE_MAX) { in mac_wifi_sap_verify()
165 *bind_sap = sap; in mac_wifi_sap_verify()
169 if (sap <= ETHERMTU) { in mac_wifi_sap_verify()
184 mac_wifi_header(const void *saddr, const void *daddr, uint32_t sap, in mac_wifi_header() argument
192 if (!mac_wifi_sap_verify(sap, NULL, NULL)) in mac_wifi_header()
267 llc->illc_ether_type = htons(sap); in mac_wifi_header()
/illumos-gate/usr/src/uts/common/io/
H A Dsad.c403 struct strapush *sap = NULL; in apush_iocdata() local
433 dev = makedevice(sap->sap_major, sap->sap_minor); in apush_iocdata()
447 switch (sap->sap_cmd) { in apush_iocdata()
456 ap->ap_common = sap->sap_common; in apush_iocdata()
458 ap->ap_anchor = sap->sap_anchor; in apush_iocdata()
461 sap->sap_list[i], FMNAMESZ); in apush_iocdata()
509 (ap->ap_minor != sap->sap_minor)) { in apush_iocdata()
520 (sap->sap_minor != 0)) { in apush_iocdata()
574 sap->sap_common = ap->ap_common; in apush_iocdata()
576 sap->sap_anchor = ap->ap_anchor; in apush_iocdata()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/sppptun/
H A Dsppptun.c56 uint_t sap; /* SAP for PPPoE */ member
104 adata->sap); in sppp_dlpi()
106 if ((retv = dlpi_bind(dh, adata->sap, NULL)) != DLPI_SUCCESS) { in sppp_dlpi()
191 uint_t sap = 0; in plumb_it() local
205 sap = strtoul(optarg, NULL, 16); in plumb_it()
227 adata.sap = sap == 0 ? prot->protval : sap; in plumb_it()
289 (void) printf(gettext("send down SAP %x\n"), adata.sap); in plumb_it()
290 if (strioctl(devfd, PPPTUN_SSAP, &adata.sap, sizeof (adata.sap), 0, in plumb_it()
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_tran.h72 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap);
74 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap);
88 #define SMB_TRAN_BIND(vcp, sap) (vcp)->vc_tdesc->tr_bind(vcp, sap) argument
90 #define SMB_TRAN_CONNECT(vcp, sap) (vcp)->vc_tdesc->tr_connect(vcp, sap) argument
/illumos-gate/usr/src/uts/common/os/
H A Dshm.c762 kshmid_t *sp = sap->sa_id; in shm_detach()
790 segacct_t *sap, template; in shmdt() local
809 shm_detach(pp, sap); in shmdt()
1070 segacct_t *sap; in shmfork() local
1082 for (sap = (segacct_t *)avl_first(ppp->p_segacct); sap != NULL; in shmfork()
1083 sap = (segacct_t *)AVL_NEXT(ppp->p_segacct, sap)) { in shmfork()
1084 sa_add(cpp, sap->sa_addr, sap->sa_len, sap->sa_flags, in shmfork()
1085 sap->sa_id); in shmfork()
1086 sp = sap->sa_id; in shmfork()
1101 segacct_t *sap; in shmexit() local
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetservent.c97 char **sap; in getservbyname_p() local
105 for (sap = net_data->sv_last->s_aliases; in getservbyname_p()
106 sap && *sap; sap++) in getservbyname_p()
107 if (!strcmp(name, *sap)) in getservbyname_p()
/illumos-gate/usr/src/cmd/dlutil/
H A Ddlsend.c63 unsigned long sap; in main() local
77 sap = strtoul(optarg, &eptr, 10); in main()
78 if (errno != 0 || sap == 0 || sap >= UINT16_MAX || in main()
84 dlsend_sap = sap; in main()
H A Ddlrecv.c137 unsigned long sap; in main() local
147 sap = strtoul(optarg, &eptr, 10); in main()
148 if (errno != 0 || sap == 0 || sap >= UINT16_MAX || in main()
154 dlrecv_sap = sap; in main()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddsparse.c205 ldap_free_strarray( char **sap ) in ldap_free_strarray() argument
209 if ( sap != NULL ) { in ldap_free_strarray()
210 for ( i = 0; sap[ i ] != NULL; ++i ) { in ldap_free_strarray()
211 NSLDAPI_FREE( sap[ i ] ); in ldap_free_strarray()
213 NSLDAPI_FREE( (char *)sap ); in ldap_free_strarray()
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c152 uint16_t sap; in inet_pkt_hash() local
184 sap = ntohs(ehp->ether_type); in inet_pkt_hash()
185 if (sap == ETHERTYPE_VLAN) { in inet_pkt_hash()
201 sap = ntohs(evhp->ether_type); in inet_pkt_hash()
215 sap = (sap < ETHERTYPE_802_MIN) ? 0 : sap; in inet_pkt_hash()
219 switch (sap) { in inet_pkt_hash()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Datexit.c203 struct sigaction *sap; in _preexec_sig_unload() local
208 sap = (struct sigaction *)&udp->siguaction[sig].sig_uaction; in _preexec_sig_unload()
210 handler = sap->sa_handler; in _preexec_sig_unload()
215 if (handler != sap->sa_handler) { in _preexec_sig_unload()
219 sap->sa_handler = SIG_DFL; in _preexec_sig_unload()
220 sap->sa_flags = SA_SIGINFO; in _preexec_sig_unload()
221 (void) sigemptyset(&sap->sa_mask); in _preexec_sig_unload()
225 (void) __sigaction(sig, sap, NULL); in _preexec_sig_unload()
/illumos-gate/usr/src/uts/common/io/ppp/sppp/
H A Dsppp_dlpi.c586 t_scalar_t sap; in sppp_dl_bind() local
601 sap = PPP_IP; in sppp_dl_bind()
603 sap = PPP_IPV6; in sppp_dl_bind()
605 sap = PPP_ALLSAP; in sppp_dl_bind()
614 if (sap != PPP_ALLSAP) { in sppp_dl_bind()
646 sap, req_sap)); in sppp_dl_bind()
648 sps->sps_sap = sap; in sppp_dl_bind()
691 t_scalar_t sap; in sppp_dl_unbind() local
699 sap = sps->sps_sap; in sppp_dl_unbind()
700 ASSERT((sap == PPP_IP) || (sap == PPP_IPV6) || (sap == PPP_ALLSAP)); in sppp_dl_unbind()
[all …]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dlookup.c68 struct sockaddr *sap; in cmd_lookup() local
104 error = nbns_resolvename(hostname, ctx, &sap); in cmd_lookup()
112 inet_ntoa(((struct sockaddr_in *)sap)->sin_addr)); in cmd_lookup()
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c262 dmgt_slice_t **sap = NULL; in get_disk_slices() local
282 (dmgt_slice_t **)realloc(sap, in get_disk_slices()
290 sap = mem; in get_disk_slices()
293 sap[nslices] = slice; in get_disk_slices()
294 sap[nslices + 1] = NULL; in get_disk_slices()
308 if (sap != NULL) { in get_disk_slices()
309 zjni_free_array((void **)sap, in get_disk_slices()
311 sap = NULL; in get_disk_slices()
315 return (sap); in get_disk_slices()
/illumos-gate/usr/src/uts/common/io/dls/
H A Ddls.c151 dls_bind(dld_str_t *dsp, uint32_t sap) in dls_bind() argument
160 if (!mac_sap_verify(dsp->ds_mh, sap, &dls_sap)) in dls_bind()
169 dsp->ds_sap = sap; in dls_bind()
185 if (sap == ETHERTYPE_VLAN && dsp->ds_promisc == 0) { in dls_bind()
445 dls_header(dld_str_t *dsp, const uint8_t *addr, uint16_t sap, uint_t pri, in dls_header() argument
469 if (is_ethernet && sap != ETHERTYPE_VLAN && in dls_header()
477 mac_sap = sap; in dls_header()
496 evhp->ether_type = htons(sap); in dls_header()
505 ASSERT(sap == ETHERTYPE_VLAN); in dls_header()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_opt_data.c266 struct sctp_assocparams *sap = ptr; in sctp_get_assocparams() local
278 sap->sasoc_number_peer_destinations = i; in sctp_get_assocparams()
279 sap->sasoc_peer_rwnd = sctp->sctp_frwnd; in sctp_get_assocparams()
280 sap->sasoc_local_rwnd = sctp->sctp_rwnd; in sctp_get_assocparams()
283 return (sizeof (*sap)); in sctp_get_assocparams()
294 if (sap->sasoc_asocmaxrxt) { in sctp_set_assocparams()
303 if (sap->sasoc_asocmaxrxt > sum) { in sctp_set_assocparams()
315 if (sap->sasoc_cookie_life != 0 && in sctp_set_assocparams()
321 if (sap->sasoc_asocmaxrxt > 0) { in sctp_set_assocparams()
324 if (sap->sasoc_cookie_life > 0) { in sctp_set_assocparams()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.daytimed/
H A Din.daytimed.c67 daytime_dg(int s, const struct sockaddr *sap, int sa_size, const void *buf, in daytime_dg() argument
70 (void) safe_sendto(s, daytime(), TIMEBUF_SIZE, 0, sap, sa_size); in daytime_dg()

1234