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