Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

  1. /***
  2. *io.h - declarations for low-level file handling and I/O functions
  3. *
  4. * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains the function declarations for the low-level
  8. * file handling and I/O functions.
  9. *
  10. ****/
  11. #if defined(_DLL) && !defined(_MT)
  12. #error Cannot define _DLL without _MT
  13. #endif
  14. #ifdef _MT
  15. #define _FAR_ _far
  16. #else
  17. #define _FAR_
  18. #endif
  19. /* function prototypes */
  20. int _FAR_ _cdecl access(const char _FAR_ *, int);
  21. int _FAR_ _cdecl chmod(const char _FAR_ *, int);
  22. int _FAR_ _cdecl chsize(int, long);
  23. int _FAR_ _cdecl close(int);
  24. int _FAR_ _cdecl creat(const char _FAR_ *, int);
  25. int _FAR_ _cdecl dup(int);
  26. int _FAR_ _cdecl dup2(int, int);
  27. int _FAR_ _cdecl eof(int);
  28. long _FAR_ _cdecl filelength(int);
  29. int _FAR_ _cdecl isatty(int);
  30. int _FAR_ _cdecl locking(int, int, long);
  31. long _FAR_ _cdecl lseek(int, long, int);
  32. char _FAR_ * _FAR_ _cdecl mktemp(char _FAR_ *);
  33. int _FAR_ _cdecl open(const char _FAR_ *, int, ...);
  34. int _FAR_ _cdecl _pipe(int _FAR_ *, unsigned int, int);
  35. int _FAR_ _cdecl read(int, void _FAR_ *, unsigned int);
  36. int _FAR_ _cdecl remove(const char _FAR_ *);
  37. int _FAR_ _cdecl rename(const char _FAR_ *, const char _FAR_ *);
  38. int _FAR_ _cdecl setmode(int, int);
  39. int _FAR_ _cdecl sopen(const char _FAR_ *, int, int, ...);
  40. long _FAR_ _cdecl tell(int);
  41. int _FAR_ _cdecl umask(int);
  42. int _FAR_ _cdecl unlink(const char _FAR_ *);
  43. int _FAR_ _cdecl write(int, const void _FAR_ *, unsigned int);