2
0

stx_fileio.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * File I/O extension to the State Threads Library.
  3. */
  4. /*
  5. * The contents of this file are subject to the Mozilla Public
  6. * License Version 1.1 (the "License"); you may not use this file
  7. * except in compliance with the License. You may obtain a copy of
  8. * the License at http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS
  11. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12. * implied. See the License for the specific language governing
  13. * rights and limitations under the License.
  14. *
  15. * The Original Code is the file I/O extension to the State Threads Library.
  16. *
  17. * The Initial Developer of the Original Code is Jeff
  18. * <jlb-st@houseofdistraction.com>. Portions created by the Initial
  19. * Developer are Copyright (C) 2002 the Initial Developer. All Rights
  20. * Reserved.
  21. *
  22. * Contributor(s): (none)
  23. *
  24. * Alternatively, the contents of this file may be used under the
  25. * terms of the GNU General Public License Version 2 or later (the
  26. * "GPL"), in which case the provisions of the GPL are applicable
  27. * instead of those above. If you wish to allow use of your
  28. * version of this file only under the terms of the GPL and not to
  29. * allow others to use your version of this file under the MPL,
  30. * indicate your decision by deleting the provisions above and
  31. * replace them with the notice and other provisions required by
  32. * the GPL. If you do not delete the provisions above, a recipient
  33. * may use your version of this file under either the MPL or the
  34. * GPL.
  35. */
  36. #ifndef __STX_FILEIO_H__
  37. #define __STX_FILEIO_H__
  38. #include <st.h>
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. extern ssize_t stx_file_read(st_netfd_t fd, off_t offset, void *buf, size_t nbytes, st_utime_t timeout);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* !__STX_FILEIO_H__ */