fdio.h 547 B

1234567891011121314151617181920212223
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file fdio.h
  7. *
  8. * \brief Header for fdio.c
  9. **/
  10. #ifndef TOR_FDIO_H
  11. #define TOR_FDIO_H
  12. #include <stddef.h>
  13. off_t tor_fd_getpos(int fd);
  14. int tor_fd_setpos(int fd, off_t pos);
  15. int tor_fd_seekend(int fd);
  16. int tor_ftruncate(int fd);
  17. int write_all_to_fd_minimal(int fd, const char *buf, size_t count);
  18. #endif /* !defined(TOR_FDIO_H) */