Searched defs:fildes2 (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c39 int fildes2) /* desired file descriptor */
55 /* Be sure fildes2 is in valid range */
56 if (fildes2 < 0 || fildes2 >= open_max) {
62 if (fildes == fildes2) {
64 return (fildes2);
69 close(fildes2);
73 if ((ret = fcntl(fildes, F_DUPFD, fildes2)) != -1) {
75 fd_add(fildes2, fds);
37 dup2( int fildes, int fildes2) argument
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddup.c46 dup2(int fildes, int fildes2) argument
48 return (fcntl(fildes, F_DUP2FD, fildes2));
52 dup3(int fildes, int fildes2, int flags) argument
64 * fildes == fildes2
66 if (fildes == fildes2) {
72 fildes2));

Completed in 54 milliseconds