Searched defs:nfd (Results 1 - 6 of 6) sorted by relevance

/ast/src/cmd/3d/
H A Dclose3d.c32 register int nfd; local
47 if ((nfd = FCNTL(fd, F_DUPFD, fd + 1)) < 0)
52 *rp = nfd;
53 state.file[nfd].reserved = rp;
54 state.file[nfd].flags = FILE_LOCK;
H A Ddup3d.c29 fs3d_dup(int ofd, int nfd) argument
33 if (nfd >= 0 && ofd >= 0 && ofd < elementsof(state.file))
39 state.file[nfd] = state.file[ofd];
40 state.file[nfd].flags &= ~FILE_CLOEXEC;
41 state.file[nfd].reserved = 0;
42 if (nfd > state.cache)
43 state.cache = nfd;
44 if (nfd > state.open)
45 state.open = nfd;
46 if (mp = state.file[nfd]
[all...]
H A Dfork3d.c44 int nfd; local
69 if (streq(type, "fdp")) fd = csrecv(&cs, mp->fs->fd, NiL, &nfd, 1) == 1 ? nfd : -1;
/ast/src/lib/libcs/
H A Dcss.c431 register int nfd; local
450 nfd = (op >> CS_POLL_SHIFT) & CS_POLL_MASK;
451 op = nfd == CS_POLL_MASK ? CS_POLL_CLOSE : 0;
546 fd = nfd;
550 if (fcntl(nfd, F_SETFD, FD_CLOEXEC) && errno == EBADF)
552 state.fdpoll[n].fd = nfd;
554 css->fd = nfd;
555 state.fdinfo[nfd] = *ip;
556 ip = state.fdinfo + nfd;
557 ip->fd = nfd;
[all...]
H A Dcsopen.c621 int nfd = -1; local
722 if ((nfd = dup(n)) >= 0)
807 if (nfd >= 0)
809 close(nfd);
810 nfd = -1;
953 if (nfd >= 0)
955 close(nfd);
956 nfd = -1;
1016 if (nfd >= 0)
1017 close(nfd);
[all...]
/ast/src/cmd/ksh93/sh/
H A Dio.c803 int nfd= -1; local
808 nfd = open(path,flags,st.st_mode);
811 nfd = open(path,flags);
812 if(nfd>=0)
814 fd = nfd;

Completed in 2239 milliseconds