Searched refs:RESERVED_FD (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/3d/
H A D3d.h249 #define RESERVED_FD 10 /* reserved fds >= this */ macro
341 #define cancel(p) (*(p)>=RESERVED_FD?(state.file[*(p)].reserved=0,CLOSE(*(p)),*(p)=0):(-1))
352 #define reserve(p) ((state.file[*(p)].flags|=FILE_LOCK,*(state.file[*(p)].reserved=(p)))<RESERVED_FD?close(*(p)):0)
H A Dinit.c138 if (fs->fd >= RESERVED_FD)
740 n = n ? -1 : FCNTL(TABLE_FD, F_DUPFD, RESERVED_FD);
1263 if (state.fs[FS_option].fd == 2 && (i = FCNTL(2, F_DUPFD, RESERVED_FD)) >= 0)

Completed in 17 milliseconds