Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/osf1 slight hdr inclusion cleanup, get ioctl-rela...



details:   https://anonhg.NetBSD.org/src/rev/0cd102aad016
branches:  trunk
changeset: 472178:0cd102aad016
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sat Apr 24 06:59:11 1999 +0000

description:
slight hdr inclusion cleanup, get ioctl-related def'ns from osf1.h

diffstat:

 sys/compat/osf1/osf1_ioctl.c |  18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diffs (40 lines):

diff -r 6dd51c59a7d2 -r 0cd102aad016 sys/compat/osf1/osf1_ioctl.c
--- a/sys/compat/osf1/osf1_ioctl.c      Sat Apr 24 06:58:26 1999 +0000
+++ b/sys/compat/osf1/osf1_ioctl.c      Sat Apr 24 06:59:11 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: osf1_ioctl.c,v 1.6 1998/12/10 17:13:10 christos Exp $  */
+/*     $NetBSD: osf1_ioctl.c,v 1.7 1999/04/24 06:59:11 cgd Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -33,28 +33,16 @@
 #include <sys/systm.h>
 #include <sys/ioctl.h>
 #include <sys/termios.h>
-
 #include <sys/mount.h>
 #include <sys/syscallargs.h>
+
+#include <compat/osf1/osf1.h>
 #include <compat/osf1/osf1_syscallargs.h>
 
 #ifdef SYSCALL_DEBUG
 extern int scdebug;
 #endif
 
-#define OSF1_IOCPARM_MASK      0x1fff  /* parameter length, at most 13 bits */
-#define        OSF1_IOCPARM_LEN(x)     (((x) >> 16) & OSF1_IOCPARM_MASK)
-#define        OSF1_IOCGROUP(x)        (((x) >> 8) & 0xff)
-
-#define        OSF1_IOCPARM_MAX        NBPG            /* max size of ioctl */
-#define        OSF1_IOC_VOID           0x20000000      /* no parameters */
-#define        OSF1_IOC_OUT            0x40000000      /* copy out parameters */
-#define        OSF1_IOC_IN             0x80000000      /* copy in parameters */
-#define        OSF1_IOC_INOUT          (OSF1_IOC_IN|OSF1_IOC_OUT)
-#define        OSF1_IOC_DIRMASK        0xe0000000      /* mask for IN/OUT/VOID */
-
-#define OSF1_IOCCMD(x)         ((x) & 0xff)
-
 int osf1_ioctl_i       __P((struct proc *p, struct sys_ioctl_args *nuap,
                            register_t *retval, int cmd, int dir, int len));
 int osf1_ioctl_t       __P((struct proc *p, struct sys_ioctl_args *nuap,



Home | Main Index | Thread Index | Old Index