tor  0.4.1.0-alpha-dev
fdio.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
12 #ifndef TOR_FDIO_H
13 #define TOR_FDIO_H
14 
15 #include <stddef.h>
16 
17 off_t tor_fd_getpos(int fd);
18 int tor_fd_setpos(int fd, off_t pos);
19 int tor_fd_seekend(int fd);
20 int tor_ftruncate(int fd);
21 int write_all_to_fd_minimal(int fd, const char *buf, size_t count);
22 
23 #endif /* !defined(TOR_FDIO_H) */
int tor_ftruncate(int fd)
Definition: fdio.c:87
int tor_fd_seekend(int fd)
Definition: fdio.c:56
off_t tor_fd_getpos(int fd)
Definition: fdio.c:43
int write_all_to_fd_minimal(int fd, const char *buf, size_t count)
Definition: fdio.c:103
int tor_fd_setpos(int fd, off_t pos)
Definition: fdio.c:75