Home
last modified time | relevance | path

Searched refs:_thread_fd_table (Results 1 – 22 of 22) sorted by relevance

/mirbsd/src/lib/libpthread/uthread/
Duthread_fork.c163 if (_thread_fd_table[i] != NULL) { in fork()
165 _SPINLOCK_INIT(&_thread_fd_table[i]->lock); in fork()
166 _thread_fd_table[i]->r_owner = NULL; in fork()
167 _thread_fd_table[i]->w_owner = NULL; in fork()
168 _thread_fd_table[i]->r_fname = NULL; in fork()
169 _thread_fd_table[i]->w_fname = NULL; in fork()
170 _thread_fd_table[i]->r_lineno = 0; in fork()
171 _thread_fd_table[i]->w_lineno = 0; in fork()
172 _thread_fd_table[i]->r_lockcount = 0; in fork()
173 _thread_fd_table[i]->w_lockcount = 0; in fork()
[all …]
Duthread_fd.c114 _thread_fd_table[fd2] = entry; in _thread_fd_init()
120 _thread_fd_table[fd] = entry; in _thread_fd_init()
162 } else if (_thread_fd_table[fd] == NULL) { in _thread_fd_table_init()
197 if (_thread_fd_table[fd] == NULL) { in _thread_fd_table_init()
200 _thread_fd_table[fd] = entry; in _thread_fd_table_init()
233 entry = _thread_fd_table[to_fd]; in _thread_fd_table_dup()
244 _thread_fd_table[to_fd] = _thread_fd_table[from_fd]; in _thread_fd_table_dup()
245 _thread_fd_table[to_fd]->refcnt += 1; in _thread_fd_table_dup()
265 entry = _thread_fd_table[fd]; in _thread_fd_table_remove()
270 _thread_fd_table[fd] = NULL; in _thread_fd_table_remove()
[all …]
Duthread_info_openbsd.c192 if (_thread_fd_table[pthread->data.fd.fd]) in _thread_dump_entry()
195 _thread_fd_table[pthread->data.fd.fd]->r_owner, in _thread_dump_entry()
196 _thread_fd_table[pthread->data.fd.fd]->w_owner); in _thread_dump_entry()
368 if (_thread_fd_table[i] != NULL) { in _thread_dump_info()
371 if (_thread_fd_table[i]->r_owner) in _thread_dump_info()
373 truncname(_thread_fd_table[i]->r_fname, 16), in _thread_dump_info()
374 _thread_fd_table[i]->r_lineno); in _thread_dump_info()
379 if (_thread_fd_table[i]->w_owner) in _thread_dump_info()
381 truncname(_thread_fd_table[i]->w_fname, 16), in _thread_dump_info()
382 _thread_fd_table[i]->w_lineno); in _thread_dump_info()
[all …]
Duthread_accept.c58 if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0 && in accept()
100 } else if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0) in accept()
101 _thread_fd_table[ret]->flags &= ~O_NONBLOCK; in accept()
Duthread_fcntl.c89 ret = _thread_fd_table[fd]->flags; in fcntl()
119 _thread_fd_table[fd]->flags = flags | O_NONBLOCK; in fcntl()
122 _thread_fd_table[fd]->flags = flags & ~O_NONBLOCK; in fcntl()
Duthread_ioctl.c61 _thread_fd_table[fd]->flags &= ~O_NONBLOCK; in ioctl()
62 _thread_fd_table[fd]->flags |= ((*op) ? O_NONBLOCK : 0); in ioctl()
Duthread_close.c58 } else if (_thread_fd_table[fd] == NULL) in close()
88 (_thread_fd_table[fd]->flags & O_NONBLOCK) == 0)) in close()
Duthread_readv.c58 type = _thread_fd_table[fd]->flags & O_ACCMODE; in readv()
71 if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0 && in readv()
Duthread_read.c62 type = _thread_fd_table[fd]->flags & O_ACCMODE; in read()
73 if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0 && in read()
Duthread_closefrom.c27 (_thread_fd_table[fd]->flags & O_NONBLOCK) == 0)) { in _close_flags()
62 if (_thread_fd_table[lock_fd] != NULL) in closefrom()
Duthread_write.c65 type = _thread_fd_table[fd]->flags & O_ACCMODE; in write()
76 blocking = ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0); in write()
Duthread_execve.c70 if (_thread_fd_table[i] != NULL && in execve()
71 !(_thread_fd_table[i]->flags & O_NONBLOCK)) { in execve()
Duthread_writev.c82 type = _thread_fd_table[fd]->flags & O_ACCMODE; in writev()
96 blocking = ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0); in writev()
Duthread_exit.c69 if (_thread_fd_table[i] != NULL && in _exit()
70 !(_thread_fd_table[i]->flags & O_NONBLOCK)) { in _exit()
Duthread_init.c348 _thread_fd_table = calloc(_thread_dtablesize, in _thread_init()
350 if (_thread_fd_table == NULL) { in _thread_init()
Duthread_sig.c188 if (_thread_fd_table[i] != NULL) in _thread_sig_handle()
190 _thread_fd_table[i]->flags | in _thread_sig_handle()
Duthread_sendmsg.c54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in sendmsg()
Duthread_recvmsg.c54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in recvmsg()
Duthread_recvfrom.c54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in recvfrom()
Duthread_sendto.c54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in sendto()
Duthread_connect.c55 if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && in connect()
Dpthread_private.h931 SCLASS struct fd_table_entry **_thread_fd_table variable