/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvdis.c | 54 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 69 sig_mutex_lock(&tiptr->ti_lock); 71 if (tiptr->ti_servtype == T_CLTS) { 73 sig_mutex_unlock(&tiptr->ti_lock); 82 if (!(tiptr->ti_state == T_DATAXFER || 83 tiptr->ti_state == T_OUTCON || 84 tiptr->ti_state == T_OUTREL || 85 tiptr->ti_state == T_INREL || 86 (tiptr [all...] |
H A D | t_getstate.c | 44 struct _ti_user *tiptr; local 46 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 49 switch (tiptr->ti_state) { 58 return (tiptr->ti_state);
|
H A D | t_sndreldata.c | 51 struct _ti_user *tiptr; local 54 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 56 sig_mutex_lock(&tiptr->ti_lock); 58 if (tiptr->ti_servtype != T_COTS_ORD) { 60 sig_mutex_unlock(&tiptr->ti_lock); 64 if (!(tiptr->ti_state == T_DATAXFER || 65 tiptr->ti_state == T_INREL)) { 67 sig_mutex_unlock(&tiptr->ti_lock); 71 if (_t_look_locked(fd, tiptr, 0, 74 sig_mutex_unlock(&tiptr [all...] |
H A D | t_snddis.c | 52 struct _ti_user *tiptr; local 56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 58 sig_mutex_lock(&tiptr->ti_lock); 60 if (tiptr->ti_servtype == T_CLTS) { 62 sig_mutex_unlock(&tiptr->ti_lock); 73 if (!(tiptr->ti_state == T_DATAXFER || 74 tiptr->ti_state == T_OUTCON || 75 tiptr->ti_state == T_OUTREL || 76 tiptr->ti_state == T_INREL || 77 (tiptr [all...] |
H A D | t_connect.c | 62 struct _ti_user *tiptr; local 68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 71 sig_mutex_lock(&tiptr->ti_lock); 77 if (tiptr->ti_state != T_IDLE) { 79 sig_mutex_unlock(&tiptr->ti_lock); 88 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 90 sig_mutex_unlock(&tiptr->ti_lock); 99 if (_t_snd_conn_req(tiptr, sndcall, &ctlbuf) < 0) { 124 _T_TX_NEXTSTATE(T_CONNECT2, tiptr, 133 * tiptr [all...] |
H A D | t_sndrel.c | 53 struct _ti_user *tiptr; local 55 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 57 sig_mutex_lock(&tiptr->ti_lock); 59 if (tiptr->ti_servtype != T_COTS_ORD) { 61 sig_mutex_unlock(&tiptr->ti_lock); 70 if (!(tiptr->ti_state == T_DATAXFER || 71 tiptr->ti_state == T_INREL)) { 73 sig_mutex_unlock(&tiptr->ti_lock); 77 if (_t_look_locked(fd, tiptr, 0, 80 sig_mutex_unlock(&tiptr [all...] |
H A D | t_rcvconnect.c | 54 struct _ti_user *tiptr; local 59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 69 if (tiptr->ti_state != T_OUTCON) { 71 sig_mutex_unlock(&tiptr->ti_lock); 80 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 82 sig_mutex_unlock(&tiptr->ti_lock); 87 retval = _t_rcv_conn_con(tiptr, call, &ctlbuf, api_semantics); 89 _T_TX_NEXTSTATE(T_RCVCONNECT, tiptr, 99 if (tiptr [all...] |
H A D | t_sync.c | 43 struct _ti_user *tiptr; local 58 if ((tiptr = _t_checkfd(fd, force_sync, api_semantics)) == NULL) 60 return (tiptr->ti_state);
|
H A D | t_rcvrel.c | 58 struct _ti_user *tiptr; local 64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 66 sig_mutex_lock(&tiptr->ti_lock); 68 if (tiptr->ti_servtype != T_COTS_ORD) { 70 sig_mutex_unlock(&tiptr->ti_lock); 79 if (!(tiptr->ti_state == T_DATAXFER || 80 tiptr->ti_state == T_OUTREL)) { 82 sig_mutex_unlock(&tiptr->ti_lock); 87 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) { 89 sig_mutex_unlock(&tiptr [all...] |
H A D | t_rcvreldata.c | 57 struct _ti_user *tiptr; local 65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 67 sig_mutex_lock(&tiptr->ti_lock); 69 if (tiptr->ti_servtype != T_COTS_ORD) { 71 sig_mutex_unlock(&tiptr->ti_lock); 75 if (!(tiptr->ti_state == T_DATAXFER || 76 tiptr->ti_state == T_OUTREL)) { 78 sig_mutex_unlock(&tiptr->ti_lock); 82 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) { 84 sig_mutex_unlock(&tiptr [all...] |
H A D | t_rcvv.c | 57 struct _ti_user *tiptr; local 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 65 sig_mutex_lock(&tiptr->ti_lock); 67 if (tiptr->ti_servtype == T_CLTS) { 69 sig_mutex_unlock(&tiptr->ti_lock); 77 sig_mutex_unlock(&tiptr->ti_lock); 81 if (!(tiptr->ti_state == T_DATAXFER || 82 tiptr->ti_state == T_OUTREL)) { 84 sig_mutex_unlock(&tiptr->ti_lock); 91 if (tiptr [all...] |
H A D | t_unbind.c | 51 struct _ti_user *tiptr; local 56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 64 if (tiptr->ti_state != T_IDLE) { 77 sig_mutex_lock(&tiptr->ti_lock); 83 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 85 sig_mutex_unlock(&tiptr->ti_lock); 91 retval = _tx_unbind_locked(fd, tiptr, &ctlbuf); 97 tiptr->ti_ctlbuf = ctlbuf.buf; 98 sig_mutex_unlock(&tiptr->ti_lock); 105 _tx_unbind_locked(int fd, struct _ti_user *tiptr, struc argument [all...] |
H A D | t_sndv.c | 59 struct _ti_user *tiptr; local 67 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 69 sig_mutex_lock(&tiptr->ti_lock); 71 if (tiptr->ti_servtype == T_CLTS) { 73 sig_mutex_unlock(&tiptr->ti_lock); 79 sig_mutex_unlock(&tiptr->ti_lock); 83 if (!(tiptr->ti_state == T_DATAXFER || 84 tiptr->ti_state == T_INREL)) { 86 sig_mutex_unlock(&tiptr->ti_lock); 97 sig_mutex_unlock(&tiptr [all...] |
H A D | t_rcv.c | 59 struct _ti_user *tiptr; local 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 65 sig_mutex_lock(&tiptr->ti_lock); 67 if (tiptr->ti_servtype == T_CLTS) { 69 sig_mutex_unlock(&tiptr->ti_lock); 78 if (!(tiptr->ti_state == T_DATAXFER || 79 tiptr->ti_state == T_OUTREL)) { 81 sig_mutex_unlock(&tiptr->ti_lock); 89 if (tiptr->ti_lookcnt > 0) { 120 sig_mutex_unlock(&tiptr [all...] |
H A D | t_getname.c | 48 static int __tx_tlitpi_getprotaddr_locked(struct _ti_user *tiptr, 57 struct _ti_user *tiptr; local 66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 68 sig_mutex_lock(&tiptr->ti_lock); 74 sig_mutex_unlock(&tiptr->ti_lock); 79 sig_mutex_unlock(&tiptr->ti_lock); 111 struct _ti_user *tiptr; local 119 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 122 sig_mutex_lock(&tiptr->ti_lock); 124 if ((tiptr 227 __tx_tlitpi_getprotaddr_locked( struct _ti_user *tiptr, struct t_bind *boundaddr, struct t_bind *peeraddr) argument [all...] |
H A D | t_rcvudata.c | 63 struct _ti_user *tiptr; local 68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 70 sig_mutex_lock(&tiptr->ti_lock); 72 if (tiptr->ti_servtype != T_CLTS) { 74 sig_mutex_unlock(&tiptr->ti_lock); 83 if (tiptr->ti_state != T_IDLE) { 85 sig_mutex_unlock(&tiptr->ti_lock); 94 if (tiptr->ti_lookcnt > 0) { 95 sig_mutex_unlock(&tiptr->ti_lock); 104 if (_t_acquire_ctlbuf(tiptr, [all...] |
H A D | t_snd.c | 59 struct _ti_user *tiptr; local 66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 68 sig_mutex_lock(&tiptr->ti_lock); 70 if (tiptr->ti_servtype == T_CLTS) { 72 sig_mutex_unlock(&tiptr->ti_lock); 81 if (! (tiptr->ti_state == T_DATAXFER || 82 tiptr->ti_state == T_INREL)) { 84 sig_mutex_unlock(&tiptr->ti_lock); 95 sig_mutex_unlock(&tiptr->ti_lock); 99 tsdu_limit = tiptr [all...] |
H A D | t_sndvudata.c | 57 struct _ti_user *tiptr; local 64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 66 sig_mutex_lock(&tiptr->ti_lock); 68 if (tiptr->ti_servtype != T_CLTS) { 70 sig_mutex_unlock(&tiptr->ti_lock); 76 sig_mutex_unlock(&tiptr->ti_lock); 80 if (tiptr->ti_state != T_IDLE) { 82 sig_mutex_unlock(&tiptr->ti_lock); 89 !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) { 91 sig_mutex_unlock(&tiptr [all...] |
H A D | t_sndudata.c | 56 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 64 if (tiptr->ti_servtype != T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 75 if (tiptr->ti_state != T_IDLE) { 77 sig_mutex_unlock(&tiptr->ti_lock); 83 !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) { 85 sig_mutex_unlock(&tiptr->ti_lock); 89 if ((tiptr [all...] |
H A D | t_listen.c | 53 struct _ti_user *tiptr; local 58 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 61 sig_mutex_lock(&tiptr->ti_lock); 63 if (tiptr->ti_servtype == T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 75 if (!(tiptr->ti_state == T_IDLE || 76 tiptr->ti_state == T_INCON)) { 78 sig_mutex_unlock(&tiptr->ti_lock); 82 if (tiptr->ti_qlen == 0) { 84 sig_mutex_unlock(&tiptr [all...] |
H A D | t_rcvuderr.c | 54 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 64 if (tiptr->ti_servtype != T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 72 if (tiptr->ti_lookcnt > 0) { 73 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; 74 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; 88 if ((retval = _t_look_locked(fd, tiptr, 0, 91 sig_mutex_unlock(&tiptr [all...] |
H A D | _utility.c | 64 static void _t_free_lookbufs(struct _ti_user *tiptr); 66 static int _t_cbuf_alloc(struct _ti_user *tiptr, char **retbuf); 67 static int _t_rbuf_alloc(struct _ti_user *tiptr, char **retbuf); 69 static int _t_alloc_bufs(int fd, struct _ti_user *tiptr, 81 struct _ti_user *tiptr; local 91 tiptr = find_tilink(fd); 93 if (tiptr != NULL) 94 return (tiptr); 155 tiptr = _t_create(fd, NULL, api_semantics, NULL); 156 if (tiptr 215 _t_register_lookevent( struct _ti_user *tiptr, caddr_t dptr, int dsize, caddr_t cptr, int csize) argument 313 _t_is_event(int fd, struct _ti_user *tiptr) argument 335 _t_is_ok(int fd, struct _ti_user *tiptr, t_scalar_t type) argument 505 _t_alloc_bufs(int fd, struct _ti_user *tiptr, struct T_info_ack *tsap) argument 621 _t_reinit_tiptr(struct _ti_user *tiptr) argument 676 struct _ti_user *tiptr; local 1189 _t_cbuf_alloc(struct _ti_user *tiptr, char **retbuf) argument 1208 _t_rbuf_alloc(struct _ti_user *tiptr, char **retbuf) argument 1226 _t_free_lookbufs(struct _ti_user *tiptr) argument 1276 _t_free_looklist_head(struct _ti_user *tiptr) argument 1320 _t_flush_lookevents(struct _ti_user *tiptr) argument 1354 _t_acquire_ctlbuf( struct _ti_user *tiptr, struct strbuf *ctlbufp, int *didallocp) argument 1394 _t_acquire_databuf( struct _ti_user *tiptr, struct strbuf *databufp, int *didallocp) argument 1634 _t_do_postconn_sync(int fd, struct _ti_user *tiptr) argument [all...] |
H A D | t_accept.c | 59 struct _ti_user *tiptr; local 66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 78 sig_mutex_lock(&tiptr->ti_lock); 80 if (tiptr->ti_servtype == T_CLTS) { 82 sig_mutex_unlock(&tiptr->ti_lock); 100 if ((fd == resfd && tiptr->ti_state != T_INCON) || 102 ((tiptr->ti_state != T_INCON) || 106 sig_mutex_unlock(&tiptr->ti_lock); 121 sig_mutex_unlock(&tiptr->ti_lock); 126 if (fd == resfd && tiptr [all...] |
H A D | t_look.c | 50 struct _ti_user *tiptr; local 52 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 54 sig_mutex_lock(&tiptr->ti_lock); 60 state = _t_look_locked(fd, tiptr, do_expinline_peek, api_semantics); 64 sig_mutex_unlock(&tiptr->ti_lock); 70 * _t_look_locked() assumes tiptr->ti_lock lock is already held and signals 77 struct _ti_user *tiptr, 88 assert(MUTEX_HELD(&tiptr->ti_lock)); 146 if ((tiptr->ti_lookcnt > 0) || 151 if (tiptr 75 _t_look_locked( int fd, struct _ti_user *tiptr, int do_expinline_peek, int api_semantics ) argument [all...] |
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authdesubr.c | 88 TIUSER *tiptr; local 101 FREAD|FWRITE, &tiptr, CRED())) != 0) { 106 if ((error = t_kbind(tiptr, NULL, NULL)) != 0) { 107 (void) t_kclose(tiptr, 1); 113 if ((error = t_kalloc(tiptr, T_UNITDATA, 116 (void) t_kclose(tiptr, 1); 128 if ((error = t_ksndudata(tiptr, unitdata, NULL)) != 131 (void) t_kfree(tiptr, (char *)unitdata, 133 (void) t_kclose(tiptr, 1); 140 if ((error = t_kspoll(tiptr, tim [all...] |