Fri Jan 22 23:15:58 2016 UTC ()
Needs sys/types.h for mode_t, off_t, ssize_t, and others.


(dholland)
diff -r1.7 -r1.8 src/include/rmt.h

cvs diff -r1.7 -r1.8 src/include/rmt.h (expand / switch to unified diff)

--- src/include/rmt.h 2011/02/16 19:29:35 1.7
+++ src/include/rmt.h 2016/01/22 23:15:58 1.8
@@ -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
28int isrmt(int); 29int isrmt(int);
29int rmtaccess(const char *, int); 30int rmtaccess(const char *, int);
30int rmtclose(int); 31int rmtclose(int);
31int rmtcreat(const char *, mode_t); 32int rmtcreat(const char *, mode_t);
32int rmtdup(int); 33int rmtdup(int);
33int rmtfcntl(int, int, ...); 34int rmtfcntl(int, int, ...);