home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume2 / remote / rmt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  904 b   |  36 lines

  1. /*
  2.  *    rmt.h
  3.  *
  4.  *    Added routines to replace open(), close(), lseek(), ioctl(), etc.
  5.  *    The preprocessor can be used to remap these the rmtopen(), etc
  6.  *    thus minimizing source changes.
  7.  *
  8.  *    This file must be included before <sys/stat.h>, since it redefines
  9.  *    stat to be rmtstat, so that struct stat xyzzy; declarations work
  10.  *    properly.
  11.  *
  12.  *    -- Fred Fish (w/some changes by Arnold Robbins)
  13.  */
  14.  
  15.  
  16. #ifndef access        /* avoid multiple redefinition */
  17. #ifndef lint        /* in this case what lint doesn't know won't hurt it */
  18. #define access rmtaccess
  19. #define close rmtclose
  20. #define creat rmtcreat
  21. #define dup rmtdup
  22. #define fcntl rmtfcntl
  23. #define fstat rmtfstat
  24. #define ioctl rmtioctl
  25. #define isatty rmtisatty
  26. #define lseek rmtlseek
  27. #define lstat rmtlstat
  28. #define open rmtopen
  29. #define read rmtread
  30. #define stat rmtstat
  31. #define write rmtwrite
  32.  
  33. extern long rmtlseek ();    /* all the rest are int's */
  34. #endif
  35. #endif
  36.