Lines Matching refs:fdp
67 fd_close(fd_t *fdp) in fd_close() argument
69 if (fdp) { in fd_close()
70 if (fdp->fd_fd >= 0 && fdp->fd_name[0] != '\0') { in fd_close()
71 (void) close(fdp->fd_fd); in fd_close()
75 (void) memset(fdp, 0, sizeof (fd_t)); in fd_close()
76 fdp->fd_fd = -1; in fd_close()
83 fd_t *fdp = fd_tbl; in fd_closeall() local
87 fd_close(fdp); in fd_closeall()
88 fdp++; in fd_closeall()
95 fd_t *fdp = fd_tbl; in fd_recycle() local
101 for (i = 0; i < fd_max; i++, fdp++) { in fd_recycle()
103 if (fdp->fd_fd == -1) in fd_recycle()
106 if (fdp->fd_name[0] != '\0') { /* file has name */ in fd_recycle()
107 (void) close(fdp->fd_fd); in fd_recycle()
110 fdp->fd_fd = -1; in fd_recycle()
119 fd_open(char *name, int flags, fd_t *fdp) in fd_open() argument
127 if (fdp != NULL) { in fd_open()
128 if ((strcmp(fdp->fd_name, name) == 0) && (fdp->fd_fd >= 0)) { in fd_open()
130 return (fdp); in fd_open()
154 fd_getfd(fd_t *fdp) in fd_getfd() argument
156 return (fdp->fd_fd); in fd_getfd()