| @@ -1,33 +1,34 @@ | | | @@ -1,33 +1,34 @@ |
1 | /* $NetBSD: rmt.h,v 1.7 2011/02/16 19:29:35 christos Exp $ */ | | 1 | /* $NetBSD: rmt.h,v 1.8 2016/01/22 23:15:58 dholland Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * rmt.h | | 4 | * rmt.h |
5 | * | | 5 | * |
6 | * Added routines to replace open(), close(), lseek(), ioctl(), etc. | | 6 | * Added routines to replace open(), close(), lseek(), ioctl(), etc. |
7 | * The preprocessor can be used to remap these the rmtopen(), etc | | 7 | * The preprocessor can be used to remap these the rmtopen(), etc |
8 | * thus minimizing source changes. | | 8 | * thus minimizing source changes. |
9 | * | | 9 | * |
10 | * This file must be included before <sys/stat.h>, since it redefines | | 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 | | 11 | * stat to be rmtstat, so that struct stat xyzzy; declarations work |
12 | * properly. | | 12 | * properly. |
13 | * | | 13 | * |
14 | * -- Fred Fish (w/some changes by Arnold Robbins) | | 14 | * -- Fred Fish (w/some changes by Arnold Robbins) |
15 | */ | | 15 | */ |
16 | | | 16 | |
17 | #ifndef _RMT_H_ | | 17 | #ifndef _RMT_H_ |
18 | #define _RMT_H_ | | 18 | #define _RMT_H_ |
19 | | | 19 | |
20 | #include <sys/cdefs.h> | | 20 | #include <sys/cdefs.h> |
| | | 21 | #include <sys/types.h> |
21 | | | 22 | |
22 | #if _FORTIFY_SOURCE > 0 | | 23 | #if _FORTIFY_SOURCE > 0 |
23 | #define __ssp_weak_name(x) rmt ## x | | 24 | #define __ssp_weak_name(x) rmt ## x |
24 | #include <ssp/unistd.h> | | 25 | #include <ssp/unistd.h> |
25 | #endif | | 26 | #endif |
26 | | | 27 | |
27 | __BEGIN_DECLS | | 28 | __BEGIN_DECLS |
28 | int isrmt(int); | | 29 | int isrmt(int); |
29 | int rmtaccess(const char *, int); | | 30 | int rmtaccess(const char *, int); |
30 | int rmtclose(int); | | 31 | int rmtclose(int); |
31 | int rmtcreat(const char *, mode_t); | | 32 | int rmtcreat(const char *, mode_t); |
32 | int rmtdup(int); | | 33 | int rmtdup(int); |
33 | int rmtfcntl(int, int, ...); | | 34 | int rmtfcntl(int, int, ...); |