Searched refs:_thread_fd_table (Results 1 – 22 of 22) sorted by relevance
163 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 …]
114 _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 …]
192 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 …]
58 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()
89 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()
61 _thread_fd_table[fd]->flags &= ~O_NONBLOCK; in ioctl()62 _thread_fd_table[fd]->flags |= ((*op) ? O_NONBLOCK : 0); in ioctl()
58 } else if (_thread_fd_table[fd] == NULL) in close()88 (_thread_fd_table[fd]->flags & O_NONBLOCK) == 0)) in close()
58 type = _thread_fd_table[fd]->flags & O_ACCMODE; in readv()71 if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0 && in readv()
62 type = _thread_fd_table[fd]->flags & O_ACCMODE; in read()73 if ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0 && in read()
27 (_thread_fd_table[fd]->flags & O_NONBLOCK) == 0)) { in _close_flags()62 if (_thread_fd_table[lock_fd] != NULL) in closefrom()
65 type = _thread_fd_table[fd]->flags & O_ACCMODE; in write()76 blocking = ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0); in write()
70 if (_thread_fd_table[i] != NULL && in execve()71 !(_thread_fd_table[i]->flags & O_NONBLOCK)) { in execve()
82 type = _thread_fd_table[fd]->flags & O_ACCMODE; in writev()96 blocking = ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0); in writev()
69 if (_thread_fd_table[i] != NULL && in _exit()70 !(_thread_fd_table[i]->flags & O_NONBLOCK)) { in _exit()
348 _thread_fd_table = calloc(_thread_dtablesize, in _thread_init()350 if (_thread_fd_table == NULL) { in _thread_init()
188 if (_thread_fd_table[i] != NULL) in _thread_sig_handle()190 _thread_fd_table[i]->flags | in _thread_sig_handle()
54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in sendmsg()
54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in recvmsg()
54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in recvfrom()
54 …if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { in sendto()
55 if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && in connect()
931 SCLASS struct fd_table_entry **_thread_fd_table variable