diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-11-20 00:58:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-11-20 00:58:40 -0500 |
commit | 5a66de7015d32e723f13171b622a8dabcef05126 (patch) | |
tree | d3a6490a26b7d2c60273d10fcf9a1feaaa8da1cf /src/common/compat.h | |
parent | e361de80bbca479a68345a3e0db4243da00e5e38 (diff) | |
download | tor-5a66de7015d32e723f13171b622a8dabcef05126.tar.gz tor-5a66de7015d32e723f13171b622a8dabcef05126.zip |
Initial work to set CLOEXEC on all possible fds
Still to go: some pipes, all stdio files.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 2471e6b830..9eaf77a1d7 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -340,6 +340,9 @@ struct tm *tor_gmtime_r(const time_t *timep, struct tm *result); ((tvp)->tv_sec cmp (uvp)->tv_sec)) /* ===== File compatibility */ + +int tor_open_cloexec(const char *path, int flags, unsigned mode); + int replace_file(const char *from, const char *to); int touch_file(const char *fname); |