#include <config.h>#include "unistd-safer.h"#include <fcntl.h>#include <unistd.h>Go to the source code of this file.
Defines | |
| #define | STDERR_FILENO 2 |
Functions | |
| int | dup_safer (int fd) |
|
|
Definition at line 29 of file dup-safer.c. Referenced by dup_safer(), and fd_safer(). |
|
|
Definition at line 36 of file dup-safer.c. References dup, fd_safer(), and STDERR_FILENO. Referenced by fd_safer(). 00037 { 00038 #if defined F_DUPFD && !defined FCHDIR_REPLACEMENT 00039 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); 00040 #else 00041 /* fd_safer calls us back, but eventually the recursion unwinds and 00042 does the right thing. */ 00043 return fd_safer (dup (fd)); 00044 #endif 00045 }
|