[BACK]Return to rmt.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / include

Annotation of src/include/rmt.h, Revision 1.4

1.4     ! thorpej     1: /*     $NetBSD: rmt.h,v 1.3 1997/10/21 19:50:55 thorpej Exp $  */
1.1       jtc         2:
                      3: /*
                      4:  *     rmt.h
                      5:  *
                      6:  *     Added routines to replace open(), close(), lseek(), ioctl(), etc.
                      7:  *     The preprocessor can be used to remap these the rmtopen(), etc
                      8:  *     thus minimizing source changes.
                      9:  *
                     10:  *     This file must be included before <sys/stat.h>, since it redefines
                     11:  *     stat to be rmtstat, so that struct stat xyzzy; declarations work
                     12:  *     properly.
                     13:  *
                     14:  *     -- Fred Fish (w/some changes by Arnold Robbins)
                     15:  */
                     16:
1.2       jtc        17: #ifndef _RMT_H_
                     18: #define _RMT_H_
1.1       jtc        19:
1.3       thorpej    20: #include <sys/cdefs.h>
                     21:
                     22: __BEGIN_DECLS
                     23: int    rmtaccess __P((const char *, int));
                     24: int    rmtclose __P((int));
                     25: int    rmtcreat __P((const char *, mode_t));
                     26: int    rmtdup __P((int));
                     27: int    rmtfcntl __P((int, int, ...));
                     28: int    rmtfstat __P((int, struct stat *));
                     29: int    rmtioctl __P((int, unsigned long, ...));
                     30: int    rmtisatty __P((int));
                     31: off_t  rmtlseek __P((int, off_t, int));
                     32: int    rmtlstat __P((const char *, struct stat *));
                     33: int    rmtopen __P((const char *, int, ...));
                     34: ssize_t        rmtread __P((int, void *, size_t));
                     35: int    rmtstat __P((const char *, struct stat *));
                     36: ssize_t        rmtwrite __P((int, const void *, size_t));
                     37: __END_DECLS
                     38:
                     39: #ifndef __RMTLIB_PRIVATE       /* don't remap if building librmt */
1.1       jtc        40: #define access rmtaccess
                     41: #define close rmtclose
                     42: #define creat rmtcreat
                     43: #define dup rmtdup
                     44: #define fcntl rmtfcntl
                     45: #define fstat rmtfstat
                     46: #define ioctl rmtioctl
                     47: #define isatty rmtisatty
                     48: #define lseek rmtlseek
                     49: #define lstat rmtlstat
                     50: #define open rmtopen
                     51: #define read rmtread
                     52: #define stat rmtstat
                     53: #define write rmtwrite
1.3       thorpej    54: #endif /* __RMTLIB_PRIVATE */
1.1       jtc        55:
1.2       jtc        56: #endif /* _RMT_H_ */

CVSweb <webmaster@jp.NetBSD.org>