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