Lines Matching refs:fdp
65 fd_close(fd_t *fdp) in fd_close() argument
67 if (fdp) { in fd_close()
68 if (fdp->fd_fd >= 0 && fdp->fd_name[0] != '\0') { in fd_close()
69 (void) close(fdp->fd_fd); in fd_close()
73 (void) memset(fdp, 0, sizeof (fd_t)); in fd_close()
74 fdp->fd_fd = -1; in fd_close()
81 fd_t *fdp = fd_tbl; in fd_closeall() local
85 fd_close(fdp); in fd_closeall()
86 fdp++; in fd_closeall()
93 fd_t *fdp = fd_tbl; in fd_recycle() local
99 for (i = 0; i < fd_max; i++, fdp++) { in fd_recycle()
101 if (fdp->fd_fd == -1) in fd_recycle()
104 if (fdp->fd_name[0] != '\0') { /* file has name */ in fd_recycle()
105 (void) close(fdp->fd_fd); in fd_recycle()
108 fdp->fd_fd = -1; in fd_recycle()
117 fd_open(char *name, int flags, fd_t *fdp) in fd_open() argument
125 if (fdp != NULL) { in fd_open()
126 if ((strcmp(fdp->fd_name, name) == 0) && (fdp->fd_fd >= 0)) { in fd_open()
128 return (fdp); in fd_open()
152 fd_getfd(fd_t *fdp) in fd_getfd() argument
154 return (fdp->fd_fd); in fd_getfd()