/titanic_51/usr/src/lib/libc/port/threads/ |
H A D | tdb_agent.c | 129 tdb_sync_stats_t *sap; in alloc_sync_addr() local 133 if ((sap = tdbp->tdb_sync_addr_free) == NULL) { in alloc_sync_addr() 152 sap = tdbp->tdb_sync_addr_free = vaddr; in alloc_sync_addr() 153 for (i = 1; i < tdbp->tdb_sync_alloc; sap++, i++) in alloc_sync_addr() 154 sap->next = (uintptr_t)(sap + 1); in alloc_sync_addr() 155 sap->next = (uintptr_t)0; in alloc_sync_addr() 156 tdbp->tdb_sync_addr_last = sap; in alloc_sync_addr() 158 sap = tdbp->tdb_sync_addr_free; in alloc_sync_addr() 161 tdbp->tdb_sync_addr_free = (tdb_sync_stats_t *)(uintptr_t)sap in alloc_sync_addr() 174 tdb_sync_stats_t *sap; initialize_sync_hash() local 233 tdb_sync_stats_t *sap = NULL; tdb_sync_obj_register() local 357 tdb_sync_stats_t *sap; tdb_sync_obj_deregister() local [all...] |
H A D | spawn.c | 146 perform_flag_actions(spawn_attr_t *sap) in perform_flag_actions() argument 151 if (sap->sa_psflags & POSIX_SPAWN_SETSIGMASK) { in perform_flag_actions() 152 (void) __lwp_sigmask(SIG_SETMASK, &sap->sa_sigmask); in perform_flag_actions() 155 if (sap->sa_psflags & POSIX_SPAWN_SETSIGIGN_NP) { in perform_flag_actions() 159 if (sigismember(&sap->sa_sigignore, sig)) in perform_flag_actions() 164 if (sap->sa_psflags & POSIX_SPAWN_SETSIGDEF) { in perform_flag_actions() 168 if (sigismember(&sap->sa_sigdefault, sig)) in perform_flag_actions() 173 if (sap->sa_psflags & POSIX_SPAWN_RESETIDS) { in perform_flag_actions() 178 if (sap->sa_psflags & POSIX_SPAWN_SETPGROUP) { in perform_flag_actions() 179 if (setpgid(0, sap in perform_flag_actions() 235 forkflags(spawn_attr_t * sap) forkflags() argument 286 spawn_attr_t *sap = attrp? attrp->__spawn_attrp : NULL; posix_spawn() local 380 spawn_attr_t *sap = attrp? attrp->__spawn_attrp : NULL; posix_spawnp() local 669 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_destroy() local 687 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setflags() local 702 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getflags() local 716 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setpgroup() local 730 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getpgroup() local 744 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setschedparam() local 761 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getschedparam() local 775 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setschedpolicy() local 796 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getschedpolicy() local 810 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setsigdefault() local 824 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getsigdefault() local 838 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setsigignore_np() local 852 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getsigignore_np() local 866 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_setsigmask() local 880 spawn_attr_t *sap = attr->__spawn_attrp; posix_spawnattr_getsigmask() local [all...] |
H A D | sigaction.c | 76 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 in signal_init() [all...] |
/titanic_51/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | pass1.c | 306 register struct short_ad *sap; in getdir() local 335 sap = &((short_ad_t *)dir_adrlist)[dir_adrindx]; in getdir() 336 for (i = dir_adrindx; i < dir_naddrs; i++, sap++) { in getdir() 337 len = EXTLEN(sap->sad_ext_len); in getdir() 338 type = EXTYPE(sap->sad_ext_len); in getdir() 343 markbusy(sap->sad_ext_loc, len); in getdir() 344 if (getallocext(fp, sap->sad_ext_loc, len)) in getdir() 354 " loc %x len %x\n", sap->sad_ext_loc, in getdir() 359 (void) printf(" loc %x len %x\n", sap->sad_ext_loc, in getdir() 360 sap in getdir() 474 register struct short_ad *sap; ckinode() local [all...] |
/titanic_51/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ib.c | 151 * min-ethertype-sap (256).. EtherType max(65535) ethertype semantics 152 * (0) .. max-802-sap(255) IEEE 802 semantics 155 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; mac_ib_header_info() local [all...] |
H A D | mac_ipv4.c | 122 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 D | mac_6to4.c | 98 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 D | mac_ether.c | 386 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() 423 * sap <= ETHERMTU indicates that LLC is being used. If that's the in mac_ether_header() 427 sap = msgdsize(payload); in mac_ether_header() 428 ehp->ether_type = htons(sap); in mac_ether_header() [all...] |
H A D | mac_wifi.c | 156 * Verify that `sap' is valid, and return the actual SAP to bind to in 161 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() 178 * Create a template WiFi datalink header for `sap' packets between `saddr' 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() [all...] |
/titanic_51/usr/src/uts/common/io/ |
H A D | sad.c | 403 struct strapush *sap = NULL; in apush_iocdata() local 420 * sap needed only if mp->b_cont is set. figure out the in apush_iocdata() 421 * size of the expected sap structure and make sure in apush_iocdata() 432 sap = (struct strapush *)mp->b_cont->b_rptr; in apush_iocdata() 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() 459 for (i = 0; i < MIN(sap in apush_iocdata() [all...] |
/titanic_51/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_tran.h | 63 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap); 64 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap); 79 #define SMB_TRAN_BIND(vcp, sap) (vcp)->vc_tdesc->tr_bind(vcp, sap) argument 80 #define SMB_TRAN_CONNECT(vcp, sap) (vcp)->vc_tdesc->tr_connect(vcp, sap) argument
|
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 56 uint_t sap; /* SAP for PPPoE */ member 77 "Usage:\n\t%s plumb [-s <sap>] [<protocol> <device>]\n" in usage() 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() [all...] |
/titanic_51/usr/src/uts/common/os/ |
H A D | shm.c | 760 shm_detach(proc_t *pp, segacct_t *sap) in shm_detach() argument 762 kshmid_t *sp = sap->sa_id; in shm_detach() 763 size_t len = sap->sa_len; in shm_detach() 764 caddr_t addr = sap->sa_addr; in shm_detach() 777 if (sap->sa_flags & SHMSA_ISM) in shm_detach() 783 kmem_free(sap, sizeof (segacct_t)); in shm_detach() 790 segacct_t *sap, template; in shmdt() local 798 ((sap = avl_find(pp->p_segacct, &template, NULL)) == NULL)) { in shmdt() 802 if (sap->sa_addr != addr) { in shmdt() 806 avl_remove(pp->p_segacct, sap); in shmdt() 1070 segacct_t *sap; shmfork() local 1101 segacct_t *sap; shmexit() local 1293 segacct_t *sap, template; shmgetid() local [all...] |
/titanic_51/usr/src/lib/libresolv2/common/irs/ |
H A D | getservent.c | 101 char **sap; in getservbyname_p() local 109 for (sap = net_data->sv_last->s_aliases; in getservbyname_p() 110 sap && *sap; sap++) in getservbyname_p() 111 if (!strcmp(name, *sap)) in getservbyname_p()
|
/titanic_51/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | dsparse.c | 205 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()
|
/titanic_51/usr/src/lib/libc/port/gen/ |
H A D | atexit.c | 203 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()
|
/titanic_51/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | lookup.c | 68 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()
|
/titanic_51/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp_dlpi.c | 586 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() 608 * If there's another stream with the same sap has already been bound in sppp_dl_bind() 610 * exception for snoop (req_sap=0x00, sap=0xff) since multiple in sppp_dl_bind() 614 if (sap != PPP_ALLSAP) { in sppp_dl_bind() 615 if ((sap == PPP_IP) && (ppa->ppa_ip_cache == NULL)) { in sppp_dl_bind() 620 } else if ((sap == PPP_IPV6) && (ppa->ppa_ip6_cache == NULL)) { in sppp_dl_bind() 626 DBGERROR((CE_CONT, "DLPI bind: bad SAP %x\n", sap)); in sppp_dl_bind() 691 t_scalar_t sap; sppp_dl_unbind() local [all...] |
/titanic_51/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 109 uint16_t sap; in mac_fix_cksum() local 146 sap = ntohs(evhp->ether_type); in mac_fix_cksum() 149 sap = ntohs(ehp->ether_type); in mac_fix_cksum() 179 sap = (sap < ETHERTYPE_802_MIN) ? 0 : sap; in mac_fix_cksum() 184 if (sap != ETHERTYPE_IP) in mac_fix_cksum() 898 uint16_t sap; in mac_pkt_hash() local 931 sap = ntohs(ehp->ether_type); in mac_pkt_hash() 932 if (sap in mac_pkt_hash() [all...] |
/titanic_51/usr/src/uts/common/io/dls/ |
H A D | dls.c | 151 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() 431 dls_header(dld_str_t *dsp, const uint8_t *addr, uint16_t sap, uint_t pri, in dls_header() argument 455 if (is_ethernet && sap != ETHERTYPE_VLAN && in dls_header() 463 mac_sap = sap; in dls_header() 482 evhp->ether_type = htons(sap); in dls_header() 491 ASSERT(sap == ETHERTYPE_VLAN); in dls_header()
|
/titanic_51/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 259 dmgt_slice_t **sap = NULL; in get_disk_slices() local 279 (dmgt_slice_t **)realloc(sap, in get_disk_slices() 287 sap = mem; in get_disk_slices() 290 sap[nslices] = slice; in get_disk_slices() 291 sap[nslices + 1] = NULL; in get_disk_slices() 305 if (sap != NULL) { in get_disk_slices() 306 zjni_free_array((void **)sap, in get_disk_slices() 308 sap = NULL; in get_disk_slices() 312 return (sap); in get_disk_slices()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.daytimed/ |
H A D | in.daytimed.c | 67 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()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.echod/ |
H A D | in.echod.c | 55 echo_dg(int s, const struct sockaddr *sap, int sa_size, const void *buf, in echo_dg() argument 58 (void) safe_sendto(s, buf, bufsiz, 0, sap, sa_size); in echo_dg()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.timed/ |
H A D | in.timed.c | 72 machtime_dg(int s, const struct sockaddr *sap, int sa_len, const void *buf, in machtime_dg() argument 77 (void) safe_sendto(s, &result, sizeof (result), 0, sap, sa_len); in machtime_dg()
|
/titanic_51/usr/src/uts/common/inet/sctp/ |
H A D | sctp_opt_data.c | 262 struct sctp_assocparams *sap = ptr; in sctp_get_assocparams() local 266 sap->sasoc_asocmaxrxt = sctp->sctp_pa_max_rxt; in sctp_get_assocparams() 274 sap->sasoc_number_peer_destinations = i; in sctp_get_assocparams() 275 sap->sasoc_peer_rwnd = sctp->sctp_frwnd; in sctp_get_assocparams() 276 sap->sasoc_local_rwnd = sctp->sctp_rwnd; in sctp_get_assocparams() 277 sap->sasoc_cookie_life = TICK_TO_MSEC(sctp->sctp_cookie_lifetime); in sctp_get_assocparams() 279 return (sizeof (*sap)); in sctp_get_assocparams() 285 const struct sctp_assocparams *sap = invalp; in sctp_set_assocparams() local 290 if (sap->sasoc_asocmaxrxt) { in sctp_set_assocparams() 299 if (sap in sctp_set_assocparams() [all...] |