Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Provide local definitions of mode_t and off_t, thus ...
details: https://anonhg.NetBSD.org/src/rev/a4e9f2c2172a
branches: trunk
changeset: 493896:a4e9f2c2172a
user: kleink <kleink%NetBSD.org@localhost>
date: Mon Jun 26 16:54:38 2000 +0000
description:
Provide local definitions of mode_t and off_t, thus eliminating the need
for an application to include <sys/types.h> first.
diffstat:
sys/sys/mman.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 629582791f34 -r a4e9f2c2172a sys/sys/mman.h
--- a/sys/sys/mman.h Mon Jun 26 16:53:47 2000 +0000
+++ b/sys/sys/mman.h Mon Jun 26 16:54:38 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mman.h,v 1.24 1999/07/07 06:02:21 thorpej Exp $ */
+/* $NetBSD: mman.h,v 1.25 2000/06/26 16:54:38 kleink Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -47,6 +47,19 @@
#undef _BSD_SIZE_T_
#endif
+#include <sys/ansi.h>
+
+#ifndef mode_t
+typedef __mode_t mode_t
+#define mode_t mode_t
+#endif
+
+#ifndef off_t
+typedef __off_t off_t; /* file offset */
+#define off_t off_t
+#endif
+
+
/*
* Protections are chosen from these bits, or-ed together
*/
Home |
Main Index |
Thread Index |
Old Index