Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/osf1 uname and timezone structures, and some mino...



details:   https://anonhg.NetBSD.org/src/rev/48c4252b3de5
branches:  trunk
changeset: 472346:48c4252b3de5
user:      cgd <cgd%NetBSD.org@localhost>
date:      Wed Apr 28 02:00:36 1999 +0000

description:
uname and timezone structures, and some minor cleanup

diffstat:

 sys/compat/osf1/osf1.h |  29 +++++++++++++++++++++++++----
 1 files changed, 25 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r f8a3ccb3a11a -r 48c4252b3de5 sys/compat/osf1/osf1.h
--- a/sys/compat/osf1/osf1.h    Wed Apr 28 01:20:01 1999 +0000
+++ b/sys/compat/osf1/osf1.h    Wed Apr 28 02:00:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1.h,v 1.8 1999/04/27 18:38:07 cgd Exp $ */
+/* $NetBSD: osf1.h,v 1.9 1999/04/28 02:00:36 cgd Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -454,11 +454,19 @@
 };
 
 
+/* time.h */
+
+struct osf1_timezone {
+       osf1_int        tz_minuteswest;
+       osf1_int        tz_dsttime;
+};
+
+
 /* types.h */
 
-#define osf1_major(x)  ((((dev_t)(x)) >> 20) & 0x00000fff)
-#define osf1_minor(x)  ((((dev_t)(x)) >>  0) & 0x000fffff)
-#define osf1_makedev(x,y) ((((dev_t)(x)) << 20) | ((dev_t)(x)))
+#define osf1_major(x)          ((((dev_t)(x)) >> 20) & 0x00000fff)
+#define osf1_minor(x)          ((((dev_t)(x)) >>  0) & 0x000fffff)
+#define osf1_makedev(x,y)      ((((dev_t)(x)) << 20) | ((dev_t)(x)))
 
 
 /* uio.h */
@@ -472,4 +480,17 @@
        osf1_int        iov_len;
 };
 
+
+/* utsname.h */
+
+#define        OSF1__SYS_NMLN                  32
+
+struct osf1_utsname {
+        char    sysname[OSF1__SYS_NMLN];
+        char    nodename[OSF1__SYS_NMLN];
+        char    release[OSF1__SYS_NMLN];
+        char    version[OSF1__SYS_NMLN];
+        char    machine[OSF1__SYS_NMLN];
+};
+
 #endif /* _COMPAT_OSF1_OSF1_H_ */



Home | Main Index | Thread Index | Old Index