1 /* Copyright (c) 2003-2004, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2021, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
9 * \brief Header for fdio.c
16 #ifdef HAVE_SYS_TYPES_H
17 #include <sys/types.h>
20 off_t
tor_fd_getpos(int fd
);
21 int tor_fd_setpos(int fd
, off_t pos
);
22 int tor_fd_seekend(int fd
);
23 int tor_ftruncate(int fd
);
24 int write_all_to_fd_minimal(int fd
, const char *buf
, size_t count
);
26 #endif /* !defined(TOR_FDIO_H) */