/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | ipoptsec.c | 28 struct ipopt_names *so; local 30 for (so = secclass; so->on_name; so++) 31 if (!strcasecmp(slevel, so->on_name)) 34 if (!so->on_name) { 38 return (u_char)so->on_value; 45 struct ipopt_names *so; local 47 for (so = secclass; so [all...] |
H A D | optname.c | 17 struct ipopt_names *io, *so; local 47 for (so = secclass; so->on_name; so++) 48 if (!strcasecmp(s, so->on_name)) { 49 smsk |= so->on_bit; 52 if (!so->on_name) {
|
H A D | optprint.c | 16 struct ipopt_names *io, *so; local 36 for (so = secclass; so->on_name; so++) 37 if ((secmsk & so->on_bit) && 38 ((so->on_bit & secmsk) == (so->on_bit & secbits))) { 39 printf("%s%s", s, so->on_name); 68 for (so = secclass; so [all...] |
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | isns_func.h | 37 int so; member in struct:conn_arg
|
H A D | isns_esi.h | 57 int so; member in struct:esi_portal
|
H A D | isns_scn.h | 72 int so; member in struct:scn_portal
|
H A D | esi.c | 125 p->so = 0; 616 * wake up the idle so the stopwatch gets updated. 1237 * so - the socket descriptor. 1246 int so, 1258 if (isns_send_pdu(so, pdu, pl) == 0) { 1259 if (isns_rcv_pdu(so, &rsp, &rsp_sz, 1299 int so; local 1352 so = connect_to(p->sz, p->ip4, p->ip6, p->esip); 1353 if (so != -1) { 1354 feedback = esi_ping(so, pd 1245 esi_ping( int so, isns_pdu_t *pdu, size_t pl ) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_sdp.c | 77 struct sonode *so; local 104 so = kmem_cache_alloc(socket_cache, kmflags); 105 if (so == NULL) { 110 sonode_init(so, sp, family, type, protocol, &sosdp_sonodeops); 111 so->so_pollev |= SO_POLLEV_ALWAYS; 113 dprint(2, ("sosdp_create: %p domain %d type %d\n", (void *)so, family, 119 so->so_version = (short)version; 125 so->so_proto_props.sopp_rxhiwat = SOCKET_RECVHIWATER; 126 so->so_proto_props.sopp_rxlowat = SOCKET_RECVLOWATER; 127 so 134 socksdp_destroy(struct sonode *so) argument [all...] |
H A D | sockmod_sctp.c | 98 struct sonode *so = &ss->ss_so; local 101 return (sonode_constructor((void *)so, cdrarg, kmflags)); 109 struct sonode *so = &ss->ss_so; local 111 sonode_destructor((void *)so, cdrarg); 123 struct sonode *so; local 147 so = &ss->ss_so; 154 sonode_init(so, sp, family, type, protocol, 157 sonode_init(so, sp, family, type, protocol, 160 mutex_enter(&so->so_lock); 162 mutex_exit(&so 189 socksctp_destroy(struct sonode *so) argument [all...] |
H A D | socksctpsubr.c | 188 struct sonode *so = &ss->ss_so; local 192 ASSERT(MUTEX_HELD(&so->so_lock)); 194 mutex_exit(&so->so_lock); 196 sctp_recvd(ssa->ssa_conn, so->so_rcvbuf); 200 mutex_enter(&so->so_lock); 311 struct sonode *so = &ssa->ssa_sonode->ss_so; local 320 dprint(3, ("waiting for SS_ISCONNECTED on %p\n", (void *)so)); 324 if (so->so_state & SS_CLOSING) 326 if (!cv_wait_sig_swap(&so->so_state_cv, &so 363 struct sonode *so = &ss->ss_so; local 588 struct sonode *so = &ssa->ssa_sonode->ss_so; local 600 struct sonode *so = &ssa->ssa_sonode->ss_so; local 612 struct sonode *so = &ssa->ssa_sonode->ss_so; local 624 struct sonode *so = &ssa->ssa_sonode->ss_so; local [all...] |
H A D | socksdp.c | 132 sosdp_init(struct sonode *so, struct sonode *pso, struct cred *cr, int flags) argument 141 mutex_enter(&so->so_lock); 143 so->so_state |= (SS_ISBOUND | SS_ISCONNECTED | 145 sosdp_so_inherit(pso, so); 146 so->so_proto_props = pso->so_proto_props; 148 mutex_exit(&so->so_lock); 158 so->so_proto_handle = (sock_lower_handle_t)sdp_create(so, NULL, 159 so->so_family, SDP_CAN_BLOCK, upcalls, &sbl, cr, &error); 160 if (so 214 sosdp_bind(struct sonode *so, struct sockaddr *name, socklen_t namelen, int flags, struct cred *cr) argument 277 sosdp_listen(struct sonode *so, int backlog, struct cred *cr) argument 327 sosdp_connect(struct sonode *so, struct sockaddr *name, socklen_t namelen, int fflag, int flags, struct cred *cr) argument 417 sosdp_recvmsg(struct sonode *so, struct nmsghdr *msg, struct uio *uiop, struct cred *cr) argument 483 sosdp_sendmsg(struct sonode *so, struct nmsghdr *msg, struct uio *uiop, struct cred *cr) argument 537 sosdp_getpeername(struct sonode *so, struct sockaddr *addr, socklen_t *addrlen, boolean_t accept, struct cred *cr) argument 555 sosdp_getsockname(struct sonode *so, struct sockaddr *addr, socklen_t *addrlen, struct cred *cr) argument 586 sosdp_shutdown(struct sonode *so, int how, struct cred *cr) argument 651 sosdp_getsockopt(struct sonode *so, int level, int option_name, void *optval, socklen_t *optlenp, int flags, struct cred *cr) argument 798 sosdp_setsockopt(struct sonode *so, int level, int option_name, const void *optval, t_uscalar_t optlen, struct cred *cr) argument 956 sosdp_ioctl(struct sonode *so, int cmd, intptr_t arg, int mode, struct cred *cr, int32_t *rvalp) argument 1074 sosdp_poll(struct sonode *so, short events, int anyyet, short *reventsp, struct pollhead **phpp) argument 1136 sosdp_close(struct sonode *so, int flag, struct cred *cr) argument 1167 sosdp_fini(struct sonode *so, struct cred *cr) argument 1236 struct sonode *so = handle; local 1258 struct sonode *so = handle; local 1278 struct sonode *so = handle; local 1294 struct sonode *so = handle; local 1320 struct sonode *so = handle; local 1336 struct sonode *so = handle; local 1350 struct sonode *so = handle; local [all...] |
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | tmpltest.c | 36 struct ldap_searchobj *so, *sop; local 53 if (( err = ldap_init_searchprefs( "ldapsearchprefs.conf", &so )) 68 for ( sop = ldap_first_searchobj( so ); sop != NULLSEARCHOBJ; 69 sop = ldap_next_searchobj( so, sop )) { 84 ldap_free_searchprefs( so ); 234 dump_srchpref( struct ldap_searchobj *so ) 241 NULLSTRINGIFNULL( so->so_objtypeprompt )); 243 LDAP_IS_SEARCHOBJ_OPTION_SET( so, LDAP_SEARCHOBJ_OPT_INTERNAL ) ? 245 printf( "Prompt: %s\n", NULLSTRINGIFNULL( so->so_prompt )); 247 switch ( so [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socknotify.c | 47 #define SO_WAKEUP_READER(so) { \ 48 if ((so)->so_rcv_wakeup) { \ 49 (so)->so_rcv_wakeup = B_FALSE; \ 50 cv_signal(&(so)->so_rcv_cv); \ 54 #define SO_WAKEUP_WRITER(so) { \ 55 if ((so)->so_snd_wakeup) { \ 56 (so)->so_snd_wakeup = B_FALSE; \ 57 cv_broadcast(&(so)->so_snd_cv); \ 73 so_notify_connected(struct sonode *so) argument 75 ASSERT(MUTEX_HELD(&so 95 so_notify_disconnecting(struct sonode *so) argument 124 so_notify_disconnected(struct sonode *so, boolean_t connfailed, int error) argument 168 so_notify_writable(struct sonode *so) argument 194 so_notify_data(struct sonode *so, size_t qlen) argument 221 so_notify_error(struct sonode *so) argument 245 so_notify_oobsig(struct sonode *so) argument 258 so_notify_oobdata(struct sonode *so, boolean_t oob_inline) argument 290 so_notify_eof(struct sonode *so) argument 319 so_notify_newconn(struct sonode *so) argument 345 so_notify_shutdown(struct sonode *so) argument 372 i_so_notify_last_rx(struct sonode *so, int *pollev, int *sigev) argument 393 i_so_notify_last_tx(struct sonode *so, int *pollev, int *sigev) argument [all...] |
H A D | sodirect.c | 44 * if so set up the required state (all done by sod_rcv_init()). 46 * queue is empty, so the first thing we do is drain any previously 64 sod_rcv_init(struct sonode *so, int flags, struct uio **uiopp) argument 68 sodirect_t *sodp = so->so_direct; 76 mutex_enter(&so->so_lock); 80 !so->so_proto_props.sopp_loopback && so->so_filter_active == 0 && 81 !(so->so_state & SS_CANTRCVMORE)) { 85 * and not EOF so initialize the sodirect_t uioa_t with "uiop". 89 * Successful uioainit() so th 116 sod_rcv_done(struct sonode *so, struct uio *suiop, struct uio *uiop) argument 256 sod_uioa_so_init(struct sonode *so, struct sodirect_s *sodp, struct uio *uiop) argument 357 sod_sock_init(struct sonode *so) argument 379 sod_sock_fini(struct sonode *so) argument 403 sod_uioa_mblk(struct sonode *so, mblk_t *mp) argument [all...] |
H A D | sockcommon_vnops.c | 119 struct sonode *so = VTOSO(vp); local 122 mutex_enter(&so->so_lock); 123 so->so_count++; 124 mutex_exit(&so->so_lock); 126 ASSERT(so->so_count != 0); /* wraparound */ 137 struct sonode *so; local 140 so = VTOSO(vp); 154 mutex_enter(&so->so_lock); 155 if (--so->so_count == 0) { 159 mutex_exit(&so 173 struct sonode *so = VTOSO(vp); local 187 struct sonode *so = VTOSO(vp); local 208 struct sonode *so = VTOSO(vp); local 224 struct sonode *so = VTOSO(vp); local 282 struct sonode *so; local 363 struct sonode *so = VTOSO(vp); local 397 struct sonode *so = VTOSO(vp); local 425 struct sonode *so = VTOSO(vp); local 477 struct sonode *so = VTOSO(vp); local [all...] |
H A D | sockcommon.c | 70 struct sonode *so; local 109 so = sp->sp_smod_info->smod_sock_create_func(sp, family, type, 111 if (so == NULL) { 114 if ((*errorp = SOP_INIT(so, NULL, cr, flags)) == 0) { 116 (void) VOP_OPEN(&SOTOV(so), FREAD|FWRITE, cr, NULL); 121 socket_destroy(so); 122 so = NULL; 125 return (so); 132 struct sonode *so; local 143 so 171 socket_bind(struct sonode *so, struct sockaddr *name, socklen_t namelen, int flags, cred_t *cr) argument 181 socket_listen(struct sonode *so, int backlog, cred_t *cr) argument 219 socket_connect(struct sonode *so, struct sockaddr *name, socklen_t namelen, int fflag, int flags, cred_t *cr) argument 254 socket_getpeername(struct sonode *so, struct sockaddr *addr, socklen_t *addrlen, boolean_t accept, cred_t *cr) argument 266 socket_getsockname(struct sonode *so, struct sockaddr *addr, socklen_t *addrlen, cred_t *cr) argument 277 socket_shutdown(struct sonode *so, int how, cred_t *cr) argument 287 socket_getsockopt(struct sonode *so, int level, int option_name, void *optval, socklen_t *optlenp, int flags, cred_t *cr) argument 298 socket_setsockopt(struct sonode *so, int level, int option_name, const void *optval, t_uscalar_t optlen, cred_t *cr) argument 315 socket_sendmsg(struct sonode *so, struct nmsghdr *msg, struct uio *uiop, cred_t *cr) argument 351 socket_sendmblk(struct sonode *so, struct nmsghdr *msg, int fflag, struct cred *cr, mblk_t **mpp) argument 364 socket_recvmsg(struct sonode *so, struct nmsghdr *msg, struct uio *uiop, cred_t *cr) argument 393 socket_ioctl(struct sonode *so, int cmd, intptr_t arg, int mode, struct cred *cr, int32_t *rvalp) argument 400 socket_poll(struct sonode *so, short events, int anyyet, short *reventsp, struct pollhead **phpp) argument 407 socket_close(struct sonode *so, int flag, struct cred *cr) argument 413 socket_close_internal(struct sonode *so, int flag, cred_t *cr) argument 421 socket_destroy(struct sonode *so) argument 429 socket_destroy_internal(struct sonode *so, cred_t *cr) argument 447 struct sonode *so = buf; local 511 struct sonode *so = buf; local 550 sonode_init(struct sonode *so, struct sockparams *sp, int family, int type, int protocol, sonodeops_t *sops) argument 626 sonode_fini(struct sonode *so) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_net.c | 77 * smb_sorecv/smb_iov_sorecv will return so smb_soshutdown can be used 81 smb_soshutdown(ksocket_t so) argument 83 (void) ksocket_shutdown(so, SHUT_RDWR, CRED()); 93 smb_sodestroy(ksocket_t so) argument 95 (void) ksocket_close(so, CRED()); 99 smb_sorecv(ksocket_t so, void *msg, size_t len) argument 104 ASSERT(so != NULL); 107 if ((err = ksocket_recv(so, msg, len, MSG_WAITALL, &recvd,
|
H A D | smb_authenticate.c | 237 * Either way, sr->uid_user is set, so our ref. on the 525 ksocket_t so; local 533 so = user->u_authsock; 534 if (so == NULL) { 538 ksocket_hold(so); 541 rc = smb_authsock_send(so, hdr, sizeof (*hdr)); 543 rc = smb_authsock_send(so, sndbuf, hdr->lmh_msglen); 548 rc = smb_authsock_recv(so, hdr, sizeof (*hdr)); 551 rc = smb_authsock_recv(so, *recvbuf, hdr->lmh_msglen); 559 ksocket_rele(so); 600 ksocket_t so = NULL; local 661 smb_authsock_send(ksocket_t so, void *buf, size_t len) argument 679 smb_authsock_recv(ksocket_t so, void *buf, size_t len) argument [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | srchpref.c | 47 static void free_searchobj( struct ldap_searchobj *so ); 116 struct ldap_searchobj *prevso, *so; local 132 while ( buflen > 0 && ( rc = read_next_searchobj( &buf, &buflen, &so, 133 version )) == 0 && so != NULLSEARCHOBJ ) { 135 *solistp = so; 137 prevso->so_next = so; 139 prevso = so; 155 struct ldap_searchobj *so, *nextso; local 158 for ( so = solist; so ! 250 struct ldap_searchobj *so; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | sfsasl.c | 61 struct sasl_obj *so = (struct sasl_obj *) fp->f_cookie; local 66 if (so->fp == NULL) 68 return so->fp->f_file; /* for stdio fileno() compatability */ 71 if (so->fp == NULL) 75 return sm_io_getinfo(so->fp, what, valp); 107 struct sasl_obj *so; local 110 so = (struct sasl_obj *) sm_malloc(sizeof(struct sasl_obj)); 111 if (so == NULL) 116 so->fp = si->fp; 117 so 151 struct sasl_obj *so; local 200 struct sasl_obj *so = (struct sasl_obj *) fp->f_cookie; local 294 struct sasl_obj *so = (struct sasl_obj *) fp->f_cookie; local 456 struct tls_obj *so = (struct tls_obj *) fp->f_cookie; local 498 struct tls_obj *so; local 540 struct tls_obj *so; local 719 struct tls_obj *so = (struct tls_obj *) fp->f_cookie; local 831 struct tls_obj *so = (struct tls_obj *) fp->f_cookie; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | dedump.c | 148 struct stroptions *so = (struct stroptions *)mp->b_rptr; local 151 so->so_flags, so->so_readopt, so->so_wroff); 154 so->so_minpsz, so->so_maxpsz, so->so_hiwat, so->so_lowat); 157 so->so_band, so [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sendfile.c | 437 struct sonode *so; local 439 so = VTOSO(vp); 440 wroff = so->so_proto_props.sopp_wroff; 441 tail_len = so->so_proto_props.sopp_tail; 707 struct sonode *so; local 715 so = VTOSO(vp); 723 wroff = so->so_proto_props.sopp_wroff; 724 tail_len = so->so_proto_props.sopp_tail; 725 maxblk = so->so_proto_props.sopp_maxblk; 785 * size, so limi 1126 struct sonode *so; local [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | grep.c | 303 highlight(Sfio_t* sp, const char* s, int n, int so, int eo) argument 308 sfwrite(sp, s, so); 310 sfwrite(sp, s + so, eo - so);
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_chan.c | 377 t1394_isoch_single_out_t so; local 386 ret = t1394_alloc_isoch_single(avp->av_t1394_hdl, &sii, 0, &so, 392 *num = so.channel_num;
|
/illumos-gate/usr/src/uts/common/io/ksocket/ |
H A D | ksocket.c | 54 struct sonode *so; local 64 so = socket_create(domain, type, protocol, NULL, NULL, version, flags, 66 if (so == NULL) { 86 so = socket_create(domain, type, protocol, NULL, 88 if (so == NULL) 95 so->so_mode |= SM_KERNEL; 97 *ksp = SOTOKS(so); 509 struct sonode *so; local 517 so = KSTOSO(ks); 519 return (socket_shutdown(so, ho 525 struct sonode *so; local 568 struct sonode *so; local 588 struct sonode *so; local 608 struct sonode *so; local 631 struct sonode *so; local 653 struct sonode *so; local 690 struct sonode *so; local 733 struct sonode *so; local 865 struct sonode *so; local 902 struct sonode *so; local 916 struct sonode *so; local [all...] |