home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / rmtlib2 / rmt.h < prev    next >
C/C++ Source or Header  |  1989-04-19  |  1KB  |  45 lines

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