Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 Collected OSF/1 definitions and structures, ...
details: https://anonhg.NetBSD.org/src/rev/7f4a37b8347a
branches: trunk
changeset: 472176:7f4a37b8347a
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Apr 24 06:56:25 1999 +0000
description:
Collected OSF/1 definitions and structures, sorted by OSF/1 header.
Error numbers (errno.h) aren't here, since they're likely to change
(additions) more often.
diffstat:
sys/compat/osf1/osf1.h | 129 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 129 insertions(+), 0 deletions(-)
diffs (133 lines):
diff -r 4d73fd6c6868 -r 7f4a37b8347a sys/compat/osf1/osf1.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/osf1/osf1.h Sat Apr 24 06:56:25 1999 +0000
@@ -0,0 +1,129 @@
+/* $NetBSD: osf1.h,v 1.1 1999/04/24 06:56:25 cgd Exp $ */
+
+/*
+ * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christopher G. Demetriou
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _COMPAT_OSF1_OSF1_H_
+#define _COMPAT_OSF1_OSF1_H_
+
+/*
+ * Collected OSF/1 definitions and structures, sorted by OSF/1 header.
+ * Error numbers (errno.h) aren't here, since they're likely to change
+ * (additions) more often.
+ *
+ * This file is up to date as of Digital UNIX V4.0.
+ */
+
+#include <compat/osf1/osf1_errno.h>
+
+
+/* fcntl.h */
+
+#define OSF1_O_RDONLY 0x00000000
+#define OSF1_O_WRONLY 0x00000001
+#define OSF1_O_RDWR 0x00000002
+#define OSF1_O_ACCMODE 0x00000003 /* mask of RD and WR bits */
+#define OSF1_O_NONBLOCK 0x00000004
+#define OSF1_O_APPEND 0x00000008
+/* no 0x00000010 */
+#define OSF1_O_DEFER 0x00000020
+/* no 0x00000040 */
+/* no 0x00000080 */
+/* no 0x00000100 */
+#define OSF1_O_CREAT 0x00000200
+#define OSF1_O_TRUNC 0x00000400
+#define OSF1_O_EXCL 0x00000800
+#define OSF1_O_NOCTTY 0x00001000
+#define OSF1_O_DOCLONE 0x00002000 /* kernel only */
+#define OSF1_O_SYNC 0x00004000
+#define OSF1_O_NDELAY 0x00008000
+#define OSF1_O_DRD 0x00008000 /* == O_NDELAY, DON'T USE */
+/* no 0x00010000 */
+/* no 0x00020000 */
+/* no 0x00040000 */
+#define OSF1_O_DSYNC 0x00080000
+#define OSF1_O_RSYNC 0x00100000
+/* no 0x00200000+ */
+
+
+/* ioctl.h */
+
+#define OSF1_IOCPARM_MASK 0x1fff
+#define OSF1_IOCPARM_LEN(x) (((x) >> 16) & OSF1_IOCPARM_MASK)
+#define OSF1_IOCGROUP(x) (((x) >> 8) & 0xff)
+#define OSF1_IOCCMD(x) ((x) & 0xff)
+
+#define OSF1_IOCPARM_MAX 8192
+#define OSF1_IOC_VOID 0x20000000
+#define OSF1_IOC_OUT 0x40000000
+#define OSF1_IOC_IN 0x80000000
+#define OSF1_IOC_INOUT (OSF1_IOC_IN|OSF1_IOC_OUT)
+#define OSF1_IOC_DIRMASK 0xe0000000
+
+
+/* mman.h */
+
+#define OSF1_PROT_NONE 0 /* pseudo-flag */
+#define OSF1_PROT_READ 0x0001
+#define OSF1_PROT_WRITE 0x0002
+#define OSF1_PROT_EXEC 0x0004
+
+#define OSF1_MAP_SHARED 0x0001
+#define OSF1_MAP_PRIVATE 0x0002
+
+#define OSF1_MAP_FILE 0 /* pseudo-flag */
+#define OSF1_MAP_ANON 0x0010
+#define OSF1_MAP_TYPE 0x00f0
+
+#define OSF1_MAP_FIXED 0x0100
+#define OSF1_MAP_VARIABLE 0 /* pseudo-flag */
+
+#define OSF1_MAP_HASSEMAPHORE 0x0200
+#define OSF1_MAP_INHERIT 0x0400
+#define OSF1_MAP_UNALIGNED 0x0800
+
+
+/* reboot.h */
+
+#define OSF1_RB_AUTOBOOT 0 /* pseudo-flag */
+
+#define OSF1_RB_ASKNAME 0x0001
+#define OSF1_RB_SINGLE 0x0002
+#define OSF1_RB_NOSYNC 0x0004
+#define OSF1_RB_KDB 0x0004 /* == RB_NOSYNC; boot only? */
+#define OSF1_RB_HALT 0x0008
+#define OSF1_RB_INITNAME 0x0010
+#define OSF1_RB_DFLTROOT 0x0020
+#define OSF1_RB_ALTBOOT 0x0040
+#define OSF1_RB_UNIPROC 0x0080
+#define OSF1_RB_PARAM 0x0100
+#define OSF1_RB_DUMP 0x0200
+
+#endif /* _COMPAT_OSF1_OSF1_H_ */
Home |
Main Index |
Thread Index |
Old Index