diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-02 23:26:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-02 23:26:04 +0000 |
commit | 6221bdd294c58399e12d13983cca0f0285033092 (patch) | |
tree | cda6bcc4bfae167cc875318c52a09bba48b5ce40 /src/common/compat.h | |
parent | 330218c7f75ed2a14e5b5cf8322932c9c42ce758 (diff) | |
download | tor-6221bdd294c58399e12d13983cca0f0285033092.tar.gz tor-6221bdd294c58399e12d13983cca0f0285033092.zip |
Add two lseek wrappers to compat.[ch]: one to return current fd position, and one to move the fd to the end of the file.
svn:r17454
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 aab49b208e..2002c08dd4 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -294,6 +294,9 @@ tor_lockfile_t *tor_lockfile_lock(const char *filename, int blocking, int *locked_out); void tor_lockfile_unlock(tor_lockfile_t *lockfile); +off_t tor_fd_getpos(int fd); +int tor_fd_seekend(int fd); + #ifdef MS_WINDOWS #define PATH_SEPARATOR "\\" #else |