Searched refs:tiptr (Results 1 - 25 of 32) sorted by relevance

12

/osnet-11/usr/src/lib/libnsl/nsl/
H A Dt_rcvdis.c54 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 Dt_getstate.c44 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 Dt_sndreldata.c51 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 Dt_snddis.c52 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 Dt_connect.c62 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 Dt_sndrel.c53 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 Dt_rcvconnect.c54 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 Dt_sync.c43 struct _ti_user *tiptr; local
58 if ((tiptr = _t_checkfd(fd, force_sync, api_semantics)) == NULL)
60 return (tiptr->ti_state);
H A Dt_rcvrel.c58 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 Dt_rcvreldata.c57 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 Dt_rcvv.c57 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 Dt_unbind.c51 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 Dt_sndv.c59 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 Dt_rcv.c55 struct _ti_user *tiptr; local
59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
61 sig_mutex_lock(&tiptr->ti_lock);
63 if (tiptr->ti_servtype == T_CLTS) {
65 sig_mutex_unlock(&tiptr->ti_lock);
74 if (!(tiptr->ti_state == T_DATAXFER ||
75 tiptr->ti_state == T_OUTREL)) {
77 sig_mutex_unlock(&tiptr->ti_lock);
85 if (tiptr->ti_lookcnt > 0) {
116 sig_mutex_unlock(&tiptr
[all...]
H A Dt_getname.c48 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 Dt_rcvudata.c63 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 Dt_snd.c55 struct _ti_user *tiptr; local
62 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
64 sig_mutex_lock(&tiptr->ti_lock);
66 if (tiptr->ti_servtype == T_CLTS) {
68 sig_mutex_unlock(&tiptr->ti_lock);
77 if (! (tiptr->ti_state == T_DATAXFER ||
78 tiptr->ti_state == T_INREL)) {
80 sig_mutex_unlock(&tiptr->ti_lock);
91 sig_mutex_unlock(&tiptr->ti_lock);
95 tsdu_limit = tiptr
[all...]
H A Dt_sndvudata.c56 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);
75 sig_mutex_unlock(&tiptr->ti_lock);
79 if (tiptr->ti_state != T_IDLE) {
81 sig_mutex_unlock(&tiptr->ti_lock);
88 !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) {
90 sig_mutex_unlock(&tiptr
[all...]
H A Dt_sndudata.c56 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 Dt_listen.c53 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 Dt_rcvuderr.c54 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.c60 static void _t_free_lookbufs(struct _ti_user *tiptr);
62 static int _t_cbuf_alloc(struct _ti_user *tiptr, char **retbuf);
63 static int _t_rbuf_alloc(struct _ti_user *tiptr, char **retbuf);
65 static int _t_alloc_bufs(int fd, struct _ti_user *tiptr,
77 struct _ti_user *tiptr; local
84 tiptr = NULL;
86 if ((tiptr = find_tilink(fd)) != NULL) {
89 return (tiptr);
152 tiptr = _t_create(fd, NULL, api_semantics, NULL);
153 if (tiptr
212 _t_register_lookevent( struct _ti_user *tiptr, caddr_t dptr, int dsize, caddr_t cptr, int csize) argument
310 _t_is_event(int fd, struct _ti_user *tiptr) argument
332 _t_is_ok(int fd, struct _ti_user *tiptr, t_scalar_t type) argument
502 _t_alloc_bufs(int fd, struct _ti_user *tiptr, struct T_info_ack *tsap) argument
618 _t_reinit_tiptr(struct _ti_user *tiptr) argument
673 struct _ti_user *tiptr; local
1194 _t_cbuf_alloc(struct _ti_user *tiptr, char **retbuf) argument
1213 _t_rbuf_alloc(struct _ti_user *tiptr, char **retbuf) argument
1231 _t_free_lookbufs(struct _ti_user *tiptr) argument
1281 _t_free_looklist_head(struct _ti_user *tiptr) argument
1325 _t_flush_lookevents(struct _ti_user *tiptr) argument
1359 _t_acquire_ctlbuf( struct _ti_user *tiptr, struct strbuf *ctlbufp, int *didallocp) argument
1399 _t_acquire_databuf( struct _ti_user *tiptr, struct strbuf *databufp, int *didallocp) argument
1639 _t_do_postconn_sync(int fd, struct _ti_user *tiptr) argument
[all...]
H A Dt_accept.c59 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 Dt_look.c47 struct _ti_user *tiptr; local
49 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
51 sig_mutex_lock(&tiptr->ti_lock);
57 state = _t_look_locked(fd, tiptr, do_expinline_peek, api_semantics);
61 sig_mutex_unlock(&tiptr->ti_lock);
67 * _t_look_locked() assumes tiptr->ti_lock lock is already held and signals
74 struct _ti_user *tiptr,
85 assert(MUTEX_HELD(&tiptr->ti_lock));
139 if ((tiptr->ti_lookcnt > 0) ||
144 if (tiptr
72 _t_look_locked( int fd, struct _ti_user *tiptr, int do_expinline_peek, int api_semantics ) argument
[all...]
H A Dt_bind.c58 struct _ti_user *tiptr; local
65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
75 sig_mutex_lock(&tiptr->ti_lock);
81 if (tiptr->ti_state != T_UNBND) {
83 sig_mutex_unlock(&tiptr->ti_lock);
93 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
95 sig_mutex_unlock(&tiptr->ti_lock);
106 ((tiptr->ti_prov_flag & XPG4_1) != 0);
163 (void) _tx_unbind_locked(fd, tiptr, &ctlbuf);
169 tiptr
[all...]

Completed in 33 milliseconds

12