Searched defs:tiptr (Results 1 - 25 of 31) sorted by relevance

12

/osnet-11/usr/src/lib/libnsl/nsl/
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_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_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_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 D_conn_util.c54 * execute). Also, assumes tiptr->ti_lock is held.
58 struct _ti_user *tiptr,
66 assert(MUTEX_HELD(&tiptr->ti_lock));
67 fd = tiptr->ti_fd;
69 if (tiptr->ti_servtype == T_CLTS) {
74 if (_t_is_event(fd, tiptr) < 0)
113 if ((tiptr->ti_cdatasize == T_INVALID /* -2 */) ||
114 ((tiptr->ti_cdatasize != T_INFINITE /* -1 */) &&
115 (call->udata.len > (uint32_t)tiptr->ti_cdatasize))) {
138 if (_t_is_ok(fd, tiptr, T_CONN_RE
57 _t_snd_conn_req( struct _ti_user *tiptr, const struct t_call *call, struct strbuf *ctlbufp) argument
152 _t_rcv_conn_con( struct _ti_user *tiptr, struct t_call *call, struct strbuf *ctlbufp, int api_semantics) 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_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...]
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_getinfo.c59 struct _ti_user *tiptr; local
63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0)
65 sig_mutex_lock(&tiptr->ti_lock);
72 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) {
74 sig_mutex_unlock(&tiptr->ti_lock);
117 tiptr->ti_ctlbuf = ctlbuf.buf;
118 sig_mutex_unlock(&tiptr->ti_lock);
126 tiptr->ti_ctlbuf = ctlbuf.buf;
127 sig_mutex_unlock(&tiptr->ti_lock);
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_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_open.c69 struct _ti_user *tiptr; local
144 tiptr = _t_create(fd, info, api_semantics, &ticap_ioctl_failed);
145 if (tiptr == NULL) {
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_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_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_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 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_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_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_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_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_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_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...]

Completed in 33 milliseconds

12