Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Define pid_t via <sys/ansi.h>.



details:   https://anonhg.NetBSD.org/src/rev/fa56b7abfa40
branches:  trunk
changeset: 497101:fa56b7abfa40
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Sep 19 08:35:36 2000 +0000

description:
Define pid_t via <sys/ansi.h>.

diffstat:

 sys/sys/ansi.h  |  3 ++-
 sys/sys/types.h |  8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r a82876a13a2e -r fa56b7abfa40 sys/sys/ansi.h
--- a/sys/sys/ansi.h    Tue Sep 19 07:50:50 2000 +0000
+++ b/sys/sys/ansi.h    Tue Sep 19 08:35:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.5 2000/06/26 17:11:32 kleink Exp $  */
+/*     $NetBSD: ansi.h,v 1.6 2000/09/19 08:35:36 kleink Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -43,6 +43,7 @@
 
 typedef __uint32_t     __mode_t;       /* file permissions */
 typedef __int64_t      __off_t;        /* file offset */
+typedef __int32_t      __pid_t;        /* process id */
 typedef __uint8_t      __sa_family_t;  /* socket address family */
 typedef unsigned int   __socklen_t;    /* socket-related datum length */
 
diff -r a82876a13a2e -r fa56b7abfa40 sys/sys/types.h
--- a/sys/sys/types.h   Tue Sep 19 07:50:50 2000 +0000
+++ b/sys/sys/types.h   Tue Sep 19 08:35:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.46 2000/07/28 09:33:28 kleink Exp $        */
+/*     $NetBSD: types.h,v 1.47 2000/09/19 08:35:36 kleink Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -95,7 +95,11 @@
 #define        off_t           __off_t
 #endif
 
-typedef        int32_t         pid_t;          /* process id */
+#ifndef        pid_t
+typedef        __pid_t         pid_t;          /* process id */
+#define        pid_t           __pid_t
+#endif
+
 typedef quad_t         rlim_t;         /* resource limit */
 typedef        int32_t         segsz_t;        /* segment size */
 typedef        int32_t         swblk_t;        /* swap offset */



Home | Main Index | Thread Index | Old Index