Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Get rid of the inclusion of <sys/types.h> and define...



details:   https://anonhg.NetBSD.org/src/rev/bd28575bfb3c
branches:  trunk
changeset: 493884:bd28575bfb3c
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Jun 26 15:52:36 2000 +0000

description:
Get rid of the inclusion of <sys/types.h> and define fpos_t using __off_t.

diffstat:

 include/stdio.h |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r c905ebbc8bd3 -r bd28575bfb3c include/stdio.h
--- a/include/stdio.h   Mon Jun 26 15:51:37 2000 +0000
+++ b/include/stdio.h   Mon Jun 26 15:52:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdio.h,v 1.32 2000/01/10 16:58:38 kleink Exp $        */
+/*     $NetBSD: stdio.h,v 1.33 2000/06/26 15:52:36 kleink Exp $        */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -41,9 +41,7 @@
 #ifndef        _STDIO_H_
 #define        _STDIO_H_
 
-#if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__)
-#include <sys/types.h>
-#endif
+#include <sys/ansi.h>
 
 #include <sys/cdefs.h>
 #include <sys/featuretest.h>
@@ -62,10 +60,10 @@
  * which we assume is exactly as big as eight chars.
  */
 #if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__)
-typedef off_t fpos_t;
+typedef __off_t fpos_t;
 #else
 typedef struct __sfpos {
-       long long _pos;                 /* XXX must be the same as off_t */
+       __off_t _pos;
 } fpos_t;
 #endif
 



Home | Main Index | Thread Index | Old Index