summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-08-28 08:43:03 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-08-28 08:43:03 +0000
commit86f95e6b6d691fd71245967ca2cc603717c9fb96 (patch)
tree855e46178f55fcc9971ba9e7eb660bf9798820ef
parentc805b031d1542c9a3ef95f3cfd1e059896a3936d (diff)
downloadsrc-test2-86f95e6b6d691fd71245967ca2cc603717c9fb96.tar.gz
src-test2-86f95e6b6d691fd71245967ca2cc603717c9fb96.zip
Notes
-rw-r--r--sys/alpha/linux/linux.h2
-rw-r--r--sys/compat/linux/linux_ioctl.c8
-rw-r--r--sys/i386/linux/linux.h2
-rw-r--r--sys/i386/linux/linux_ioctl.c8
4 files changed, 20 insertions, 0 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h
index 4e5db53e99cf..e55a3671c70f 100644
--- a/sys/alpha/linux/linux.h
+++ b/sys/alpha/linux/linux.h
@@ -612,6 +612,8 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
+#define LINUX_OSS_GETVERSION 0x4d76
+
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 56a0eda42066..5f4191fded76 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -50,6 +50,7 @@
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
#include <i386/linux/linux_util.h>
+#include <i386/linux/linux_mib.h>
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
@@ -1270,6 +1271,13 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
return error;
}
+ case LINUX_OSS_GETVERSION: {
+ int version;
+
+ version = linux_get_oss_version(p);
+ return copyout((caddr_t)&version, (caddr_t)args->arg, sizeof(int));
+ }
+
}
uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not implemented\n",
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 4e5db53e99cf..e55a3671c70f 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -612,6 +612,8 @@ struct trapframe;
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
+#define LINUX_OSS_GETVERSION 0x4d76
+
/* Socket system defines */
#define LINUX_FIOSETOWN 0x8901
#define LINUX_SIOCSPGRP 0x8902
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c
index 56a0eda42066..5f4191fded76 100644
--- a/sys/i386/linux/linux_ioctl.c
+++ b/sys/i386/linux/linux_ioctl.c
@@ -50,6 +50,7 @@
#include <i386/linux/linux.h>
#include <i386/linux/linux_proto.h>
#include <i386/linux/linux_util.h>
+#include <i386/linux/linux_mib.h>
#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
@@ -1270,6 +1271,13 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args)
return error;
}
+ case LINUX_OSS_GETVERSION: {
+ int version;
+
+ version = linux_get_oss_version(p);
+ return copyout((caddr_t)&version, (caddr_t)args->arg, sizeof(int));
+ }
+
}
uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not implemented\n",