Lines Matching defs:fd
51 * Heap allocated during initialized - one entry per fd
54 pthread_mutex_t lock; /* fd lock */
55 threadEntry_t *threads; /* threads blocked on fd */
64 * The fd table and the number of file descriptors
85 * Allocate fd tables and sets up signal handler.
127 * Return the fd table for this fd or NULL is fd out
130 static inline fdEntry_t *getFdEntry(int fd)
132 if (fd < 0 || fd >= fdCount) {
135 return &fdTable[fd];
140 * Insert thread onto thread list for the fd.
157 * Remove thread from thread list for the fd
158 * If fd has been interrupted then set errno to EBADF
206 * Lock the fd to hold-off additional I/O on this fd.
251 int NET_Dup2(int fd, int fd2) {
252 if (fd < 0) {
256 return closefd(fd, fd2);
261 * except that any threads blocked in an I/O on fd will be
264 int NET_SocketClose(int fd) {
265 return closefd(-1, fd);
332 BLOCKING_IO_RETURN_INT( ufds[0].fd, poll(ufds, nfds, timeout) );
353 * Check that fd hasn't been closed.
385 * call select on the fd. If interrupted by our wakeup signal