home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / topware / partlogic / partlogic-0.57-iso.exe / partlogic-0.57.iso / system / headers / unistd.h < prev    next >
C/C++ Source or Header  |  2005-08-29  |  2KB  |  53 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2005 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  unistd.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file unistd.h
  23.  
  24. #if !defined(_UNISTD_H)
  25.  
  26. extern char *optarg;
  27. extern int optind, opterr, optopt;
  28.  
  29. // For seeking using lseek()
  30. #define SEEK_SET 0x01
  31. #define SEEK_CUR 0x02
  32. #define SEEK_END 0x03
  33.  
  34. // This contains the size_t definition
  35. #include <stddef.h>
  36.  
  37. // This contains the off_t definition
  38. #include <sys/types.h>
  39.  
  40. // This contains the 'struct stat' definition
  41. #include <sys/stat.h>
  42.  
  43. int close(int);
  44. int getopt(int, char *const[], const char *);
  45. off_t lseek(int, off_t, int);
  46. size_t read(int, void *, size_t);
  47. int stat(const char *, struct stat *);
  48. void swab(const void *, void *, ssize_t);
  49. size_t write(int, const void *, size_t);
  50.  
  51. #define _UNISTD_H
  52. #endif
  53.