Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/compat/osf1 pull up rev(s) 1.1-1.20 (new file) from...



details:   https://anonhg.NetBSD.org/src/rev/de90d27981aa
branches:  netbsd-1-4
changeset: 468846:de90d27981aa
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon Jun 21 19:24:26 1999 +0000

description:
pull up rev(s) 1.1-1.20 (new file) from trunk. (cgd)

diffstat:

 sys/compat/osf1/osf1.h |  575 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 575 insertions(+), 0 deletions(-)

diffs (truncated from 579 to 300 lines):

diff -r 94f12df15c31 -r de90d27981aa sys/compat/osf1/osf1.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/osf1/osf1.h    Mon Jun 21 19:24:26 1999 +0000
@@ -0,0 +1,575 @@
+/* $NetBSD: osf1.h,v 1.20.4.2 1999/06/21 19:24:26 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 <sys/types.h>
+#include <compat/osf1/osf1_errno.h>
+#include <compat/osf1/osf1_signal.h>
+
+/*
+ * type and structure definitions used by other structures
+ */
+
+typedef int16_t                osf1_short;
+typedef int32_t                osf1_int;
+typedef int64_t                osf1_long;
+typedef u_int32_t      osf1_u_int;
+
+typedef int32_t                osf1_dev_t;
+typedef u_int32_t      osf1_ino_t;
+typedef u_int32_t      osf1_mode_t;
+typedef u_int16_t      osf1_nlink_t;
+typedef u_int32_t      osf1_uid_t;
+typedef u_int32_t      osf1_gid_t;
+typedef u_int64_t      osf1_off_t;
+typedef int32_t                osf1_time_t;
+typedef u_int32_t      osf1_uint_t;
+typedef u_int64_t      osf1_sigset_t;
+typedef u_int64_t      osf1_size_t;
+typedef u_int64_t      osf1_fsid_t;
+typedef u_int64_t      osf1_rlim_t;
+typedef void           *osf1_data_ptr; /* XXX hard to fix size */
+typedef void           *osf1_fcn_ptr;  /* XXX hard to fix size, bogus */
+typedef        osf1_int        osf1_key_t;
+
+struct osf1_timeval {                          /* time.h */
+       osf1_time_t     tv_sec;
+       osf1_int        tv_usec;
+};
+
+
+/* access.h */
+
+#define OSF1_F_OK                      0               /* pseudo-flag */
+#define OSF1_X_OK                      0x01
+#define OSF1_W_OK                      0x02
+#define OSF1_R_OK                      0x04
+
+
+/* auxv.h */
+
+union osf1_auxv_data {
+       osf1_long       a_val;
+       osf1_data_ptr   a_ptr;
+       osf1_fcn_ptr    a_fcn;
+};
+
+struct osf1_auxv {
+       osf1_int        a_type;
+       union osf1_auxv_data a_un;
+};
+
+/* auxv entry types */
+#define OSF1_AT_NULL                   0
+#define OSF1_AT_IGNORE                 1
+#define OSF1_AT_EXECFD                 2
+#define OSF1_AT_PHDR                   3
+#define OSF1_AT_PHENT                  4
+#define OSF1_AT_PHNUM                  5
+#define OSF1_AT_PAGESZ                 6
+#define OSF1_AT_BASE                   7
+#define OSF1_AT_FLAGS                  8
+#define OSF1_AT_ENTRY                  9
+#define OSF1_AT_EXEC_FILENAME          1001
+#define OSF1_AT_EXEC_LOADER_FILENAME   1002
+#define OSF1_AT_EXEC_LOADER_FLAGS      1003
+
+
+/* exec.h/ldr_exec.h */
+
+#define        OSF1_LDR_EXEC_DEFAULT_LOADER    "/sbin/loader"
+
+/* exec_with_loader()/OSF1_AT_EXEC_LOADER_FLAGS flags regions */
+#define        OSF1_LDR_EXEC_SYSTEM_MASK       0xffff0000
+#define        OSF1_LDR_EXEC_USER_MASK         0xffff0000
+
+/* OSF1_AT_EXEC_LOADER_FLAGS flags */
+#define        OSF1_LDR_EXEC_NOPRIVS_F         0x10000000
+#define        OSF1_LDR_EXEC_PTRACE_F          0x20000000
+#define        OSF1_LDR_EXEC_SETGID_F          0x40000000
+#define        OSF1_LDR_EXEC_SETUID_F          0x80000000
+
+
+/* fcntl.h */
+
+/* fcntl ops */
+#define OSF1_F_DUPFD           0
+#define OSF1_F_GETFD           1       /* uses flags, see below */
+#define OSF1_F_SETFD           2       /* uses flags, see below */
+#define OSF1_F_GETFL           3       /* uses flags, see below */
+#define OSF1_F_SETFL           4       /* uses flags, see below */
+#define OSF1_F_GETOWN          5
+#define OSF1_F_SETOWN          6
+#define OSF1_F_GETLK           7       /* uses osf1_flock, see below */
+#define OSF1_F_SETLK           8       /* uses osf1_flock, see below */
+#define OSF1_F_SETLKW          9       /* uses osf1_flock, see below */
+#define OSF1_F_RGETLK          10      /* [lock mgr op] */
+#define OSF1_F_RSETLK          11      /* [lock mgr op] */
+#define OSF1_F_CNVT            12      /* [lock mgr op] */
+#define OSF1_F_RSETLKW         13      /* [lock mgr op] */
+#define OSF1_F_PURGEFS         14      /* [lock mgr op] */
+#define OSF1_F_PURGENFS                15      /* [DECsafe op] */
+
+/* fcntl GETFD/SETFD flags */
+#define OSF1_FD_CLOEXEC                1
+
+/* fcntl GETFL/SETFL flags, in addition to the O_* flags below */
+#define        OSF1_FASYNC             0x00000040
+
+/* struct osf1_flock, for GETLK/SETLK/SETLKW */
+/* XXX */
+
+/* open flags */
+#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_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 */
+
+/* protection mask */
+#define OSF1_PROT_NONE         0               /* pseudo-flag */
+#define        OSF1_PROT_READ          0x0001
+#define        OSF1_PROT_WRITE         0x0002
+#define        OSF1_PROT_EXEC          0x0004
+
+/* mmap flags */
+#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
+
+/* madvise operations */
+#define OSF1_MADV_NORMAL       0
+#define OSF1_MADV_RANDOM       1
+#define OSF1_MADV_SEQUENTIAL   2
+#define OSF1_MADV_WILLNEED     3
+#define OSF1_MADV_DONTNEED_COMPAT 4
+#define OSF1_MADV_SPACEAVAIL   5
+#define OSF1_MADV_DONTNEED     6
+
+
+/* mount.h */
+
+/* file system type numbers */
+#define OSF1_MOUNT_NONE                0
+#define OSF1_MOUNT_UFS         1
+#define OSF1_MOUNT_NFS         2
+#define OSF1_MOUNT_MFS         3
+#define OSF1_MOUNT_PC          4
+#define OSF1_MOUNT_S5FS                5
+#define OSF1_MOUNT_CDFS                6
+#define OSF1_MOUNT_DFS         7
+#define OSF1_MOUNT_EFS         8
+#define OSF1_MOUNT_PROCFS      9
+#define OSF1_MOUNT_MSFS                10
+#define OSF1_MOUNT_FFM         11
+#define OSF1_MOUNT_FDFS                12
+#define OSF1_MOUNT_ADDON       13
+#define OSF1_MOUNT_NFS3                14
+
+#define OSF1_MNAMELEN          90
+
+/* MFS mount argument structure */
+struct osf1_mfs_args {
+       osf1_data_ptr   name;
+       osf1_data_ptr   base;
+       osf1_u_int      size;
+};
+
+/* NFS mount argument structure */
+struct osf1_nfs_args {
+       osf1_data_ptr   addr;
+       osf1_data_ptr   fh;
+       osf1_int        flags;
+       osf1_int        wsize;
+       osf1_int        rsize;
+       osf1_int        timeo;
+       osf1_int        retrans;
+       osf1_data_ptr   hostname;
+       osf1_int        acregmin;
+       osf1_int        acregmax;
+       osf1_int        acdirmin;
+       osf1_int        acdirmax;
+       osf1_data_ptr   netname;
+       osf1_data_ptr   pathconf;
+};
+
+/* NFS mount argument structure flags */
+#define OSF1_NFSMNT_SOFT       0x00000001
+#define OSF1_NFSMNT_WSIZE      0x00000002
+#define OSF1_NFSMNT_RSIZE      0x00000004
+#define OSF1_NFSMNT_TIMEO      0x00000008
+#define OSF1_NFSMNT_RETRANS    0x00000010
+#define OSF1_NFSMNT_HOSTNAME   0x00000020
+#define OSF1_NFSMNT_INT                0x00000040
+#define OSF1_NFSMNT_NOCONN     0x00000080
+#define OSF1_NFSMNT_NOAC       0x00000100
+#define OSF1_NFSMNT_ACREGMIN   0x00000200
+#define OSF1_NFSMNT_ACREGMAX   0x00000400
+#define OSF1_NFSMNT_ACDIRMIN   0x00000800
+#define OSF1_NFSMNT_ACDIRMAX   0x00001000
+#define OSF1_NFSMNT_NOCTO      0x00002000



Home | Main Index | Thread Index | Old Index