Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/svr4_32 Add a dummy entry for syscall #206, sched...



details:   https://anonhg.NetBSD.org/src/rev/30c394a6525a
branches:  trunk
changeset: 556059:30c394a6525a
user:      dmcmahill <dmcmahill%NetBSD.org@localhost>
date:      Sun Dec 07 01:36:58 2003 +0000

description:
Add a dummy entry for syscall #206, schedctl, that simply returns zero.
This lets FlexLM clients run under compat_svr4_32 on sparc64.  Patch
checked by Matt Green.

diffstat:

 sys/compat/svr4_32/files.svr4_32      |   3 +-
 sys/compat/svr4_32/svr4_32_schedctl.c |  73 +++++++++++++++++++++++++++++++++++
 sys/compat/svr4_32/svr4_32_schedctl.h |  47 ++++++++++++++++++++++
 sys/compat/svr4_32/syscalls.master    |   5 +-
 4 files changed, 125 insertions(+), 3 deletions(-)

diffs (171 lines):

diff -r d869d6a14eb1 -r 30c394a6525a sys/compat/svr4_32/files.svr4_32
--- a/sys/compat/svr4_32/files.svr4_32  Sun Dec 07 01:18:26 2003 +0000
+++ b/sys/compat/svr4_32/files.svr4_32  Sun Dec 07 01:36:58 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.svr4_32,v 1.2 2001/02/19 15:48:59 eeh Exp $
+#      $NetBSD: files.svr4_32,v 1.3 2003/12/07 01:36:58 dmcmahill Exp $
 #
 # Config file description for machine-independent SVR4_32 compat code.
 # Included by ports that need it.
@@ -15,6 +15,7 @@
 file   compat/svr4_32/svr4_32_misc.c           compat_svr4_32
 file   compat/svr4_32/svr4_32_net.c            compat_svr4_32
 file   compat/svr4_32/svr4_32_resource.c       compat_svr4_32
+file   compat/svr4_32/svr4_32_schedctl.c       compat_svr4_32
 file   compat/svr4_32/svr4_32_signal.c         compat_svr4_32
 file   compat/svr4_32/svr4_32_socket.c         compat_svr4_32
 file   compat/svr4_32/svr4_32_sockio.c         compat_svr4_32
diff -r d869d6a14eb1 -r 30c394a6525a sys/compat/svr4_32/svr4_32_schedctl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/svr4_32/svr4_32_schedctl.c     Sun Dec 07 01:36:58 2003 +0000
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2003 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Dan McMahill.
+ *
+ * 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 the NetBSD
+ *        Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``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 FOUNDATION OR CONTRIBUTORS
+ * 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.
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_schedctl.c,v 1.1 2003/12/07 01:36:58 dmcmahill Exp $");
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/namei.h>
+#include <sys/proc.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/filedesc.h>
+#include <sys/ioctl.h>
+#include <sys/kernel.h>
+#include <sys/mount.h>
+#include <sys/malloc.h>
+#include <sys/vnode.h>
+
+#include <sys/sa.h>
+#include <sys/syscallargs.h>
+
+#include <compat/svr4_32/svr4_32_types.h>
+#include <compat/svr4_32/svr4_32_signal.h>
+#include <compat/svr4_32/svr4_32_ucontext.h>
+#include <compat/svr4_32/svr4_32_lwp.h>
+#include <compat/svr4_32/svr4_32_syscallargs.h>
+#include <compat/svr4_32/svr4_32_util.h>
+#include <compat/svr4_32/svr4_32_fcntl.h>
+
+#include <compat/svr4_32/svr4_32_schedctl.h>
+
+int svr4_32_sys_schedctl(l, v, retval)
+        struct lwp *l;
+        void *v;
+        register_t *retval;
+{
+       return 0; /* XXX */
+}
+
diff -r d869d6a14eb1 -r 30c394a6525a sys/compat/svr4_32/svr4_32_schedctl.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/svr4_32/svr4_32_schedctl.h     Sun Dec 07 01:36:58 2003 +0000
@@ -0,0 +1,47 @@
+/* $NetBSD: svr4_32_schedctl.h,v 1.1 2003/12/07 01:36:58 dmcmahill Exp $ */
+/*
+ * Copyright (c) 2003 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Dan McMahill.
+ *
+ * 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 the NetBSD
+ *        Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``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 FOUNDATION OR CONTRIBUTORS
+ * 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 _SVR4_32_SCHEDCTL_H_
+#define _SVR4_32_SCHEDCTL_H_
+
+#include <compat/svr4/svr4_types.h>
+#include <compat/svr4_32/svr4_32_types.h>
+
+int svr4_32_sys_schedctl(struct lwp *l, void *v, register_t *retval);
+
+#endif
+
diff -r d869d6a14eb1 -r 30c394a6525a sys/compat/svr4_32/syscalls.master
--- a/sys/compat/svr4_32/syscalls.master        Sun Dec 07 01:18:26 2003 +0000
+++ b/sys/compat/svr4_32/syscalls.master        Sun Dec 07 01:36:58 2003 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.6 2003/01/19 16:47:17 thorpej Exp $
+       $NetBSD: syscalls.master,v 1.7 2003/12/07 01:36:58 dmcmahill Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -54,6 +54,7 @@
 #include <compat/svr4_32/svr4_32_statvfs.h>
 #include <compat/svr4_32/svr4_32_resource.h>
 #include <compat/svr4_32/svr4_32_acl.h>
+#include <compat/svr4_32/svr4_32_schedctl.h>
 
 %%
 
@@ -332,7 +333,7 @@
 203    NOARGS          { int netbsd32_setregid(int rgid, int egid); }
 204    UNIMPL          install_utrap
 205    UNIMPL          signotify
-206    UNIMPL          schedctl
+206    STD             { int svr4_32_sys_schedctl(unsigned int x, int y, void **z); }
 207    UNIMPL          pset
 208    UNIMPL          sparc_utrap_install
 209    STD             { int svr4_32_sys_resolvepath(const netbsd32_charp path, \



Home | Main Index | Thread Index | Old Index