home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue2 / SDL.ARC / !gcc / include / libscl / h / unistd < prev    next >
Encoding:
Text File  |  2004-09-05  |  612 b   |  31 lines

  1. /* unistd.h.
  2.  
  3.    This header is not part of the normal SharedCLibrary but is
  4.    provided here for compatibility with some awkwardly assuming
  5.    programs.
  6.    Copyright (c) 1999 Nick Burrett.  */
  7.  
  8. #ifndef __UNISTD_H
  9. #define __UNISTD_H 1
  10.  
  11. #include <sys/types.h>
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. /* Close the file descriptor fd.  */
  18. extern int close (int __fd);
  19.  
  20. /* Read nbytes into buf from fd.  */
  21. extern __ssize_t read (int __fd, void *__buf, size_t __nbytes);
  22.  
  23. /* Write n bytes of buf to fd.  */
  24. extern __ssize_t write (int __fd, const void *__buf, size_t __nbytes);
  25.  
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29.  
  30. #endif
  31.