CVS commit: src/sys/compat/sunos32

2017-12-19 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Dec 19 19:19:51 UTC 2017

Modified Files:
src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h
sunos32_syscalls.c sunos32_sysent.c syscalls.master

Log Message:
compat/sunos32: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/compat/sunos32/sunos32_syscall.h
cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_syscallargs.h \
src/sys/compat/sunos32/sunos32_syscalls.c
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/sunos32/sunos32_sysent.c
cvs rdiff -u -r1.24 -r1.25 src/sys/compat/sunos32/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_syscall.h
diff -u src/sys/compat/sunos32/sunos32_syscall.h:1.35 src/sys/compat/sunos32/sunos32_syscall.h:1.36
--- src/sys/compat/sunos32/sunos32_syscall.h:1.35	Tue Dec 19 18:25:53 2017
+++ src/sys/compat/sunos32/sunos32_syscall.h	Tue Dec 19 19:19:50 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos32_syscall.h,v 1.35 2017/12/19 18:25:53 kamil Exp $ */
+/* $NetBSD: sunos32_syscall.h,v 1.36 2017/12/19 19:19:50 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
+ * created from;	NetBSD: syscalls.master,v 1.24 2017/12/19 18:25:53 kamil Exp
  */
 
 #ifndef _SUNOS32_SYS_SYSCALL_H_
@@ -161,9 +161,7 @@
 /* syscall: "mmap" ret: "netbsd32_voidp" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */
 #define	SUNOS32_SYS_mmap	71
 
-/* syscall: "vadvise" ret: "int" args: "int" */
-#define	SUNOS32_SYS_vadvise	72
-
+/* 72 is obsolete vadvise */
 /* syscall: "netbsd32_munmap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" */
 #define	SUNOS32_SYS_netbsd32_munmap	73
 

Index: src/sys/compat/sunos32/sunos32_syscallargs.h
diff -u src/sys/compat/sunos32/sunos32_syscallargs.h:1.34 src/sys/compat/sunos32/sunos32_syscallargs.h:1.35
--- src/sys/compat/sunos32/sunos32_syscallargs.h:1.34	Tue Dec 19 18:25:53 2017
+++ src/sys/compat/sunos32/sunos32_syscallargs.h	Tue Dec 19 19:19:50 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos32_syscallargs.h,v 1.34 2017/12/19 18:25:53 kamil Exp $ */
+/* $NetBSD: sunos32_syscallargs.h,v 1.35 2017/12/19 19:19:50 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
+ * created from;	NetBSD: syscalls.master,v 1.24 2017/12/19 18:25:53 kamil Exp
  */
 
 #ifndef _SUNOS32_SYS_SYSCALLARGS_H_
@@ -189,8 +189,6 @@ struct sunos32_sys_mmap_args {
 };
 check_syscall_args(sunos32_sys_mmap)
 
-struct netbsd32_ovadvise_args;
-
 struct netbsd32_munmap_args;
 
 struct netbsd32_mprotect_args;
@@ -564,8 +562,6 @@ int	sys_vfork(struct lwp *, const void *
 
 int	sunos32_sys_mmap(struct lwp *, const struct sunos32_sys_mmap_args *, register_t *);
 
-int	netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
-
 int	netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
 
 int	netbsd32_mprotect(struct lwp *, const struct netbsd32_mprotect_args *, register_t *);
Index: src/sys/compat/sunos32/sunos32_syscalls.c
diff -u src/sys/compat/sunos32/sunos32_syscalls.c:1.34 src/sys/compat/sunos32/sunos32_syscalls.c:1.35
--- src/sys/compat/sunos32/sunos32_syscalls.c:1.34	Tue Dec 19 18:25:53 2017
+++ src/sys/compat/sunos32/sunos32_syscalls.c	Tue Dec 19 19:19:50 2017
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos32_syscalls.c,v 1.34 2017/12/19 18:25:53 kamil Exp $ */
+/* $NetBSD: sunos32_syscalls.c,v 1.35 2017/12/19 19:19:50 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
+ * created from;	NetBSD: syscalls.master,v 1.24 2017/12/19 18:25:53 kamil Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.34 2017/12/19 18:25:53 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.35 2017/12/19 19:19:50 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -104,7 +104,7 @@ const char *const sunos32_syscallnames[]
 	/*  69 */	"#69 (obsolete sbrk)",
 	/*  70 */	"#70 (obsolete sstk)",
 	/*  71 */	"mmap",
-	/*  72 */	"vadvise",
+	/*  72 */	"#72 (obsolete vadvise)",
 	/*  73 */	"netbsd32_munmap",
 	/*  74 */	"netbsd32_mprotect",
 	/*  75 */	"netbsd32_madvise",
@@ -377,7 +377,7 @@ const char *const altsunos32_syscallname
 	/*  69 */	NULL, /* obsolete sbrk */
 	/*  70 */	NULL, /* obsolete sstk */
 	/*  71 */	NULL, /* mmap */
-	/*  72 */	"ovadvise",
+	/*  72 */	NULL, /* obsolete vadvise */
 	/*  73 */	"munmap",
 	/*  74 */	"mprotect",
 	/*  75 */	"madvise",

Index

CVS commit: src/sys/compat/sunos32

2017-12-19 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Dec 19 18:25:53 UTC 2017

Modified Files:
src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h
sunos32_syscalls.c sunos32_sysent.c syscalls.master

Log Message:
compat/sunos32: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_syscall.h
cvs rdiff -u -r1.33 -r1.34 src/sys/compat/sunos32/sunos32_syscallargs.h \
src/sys/compat/sunos32/sunos32_syscalls.c
cvs rdiff -u -r1.35 -r1.36 src/sys/compat/sunos32/sunos32_sysent.c
cvs rdiff -u -r1.23 -r1.24 src/sys/compat/sunos32/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_syscall.h
diff -u src/sys/compat/sunos32/sunos32_syscall.h:1.34 src/sys/compat/sunos32/sunos32_syscall.h:1.35
--- src/sys/compat/sunos32/sunos32_syscall.h:1.34	Tue Dec 19 08:24:41 2017
+++ src/sys/compat/sunos32/sunos32_syscall.h	Tue Dec 19 18:25:53 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos32_syscall.h,v 1.34 2017/12/19 08:24:41 kamil Exp $ */
+/* $NetBSD: sunos32_syscall.h,v 1.35 2017/12/19 18:25:53 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.22 2013/11/07 19:37:19 njoly Exp
+ * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
  */
 
 #ifndef _SUNOS32_SYS_SYSCALL_H_
@@ -156,9 +156,7 @@
 
 /* 67 is obsolete vread */
 /* 68 is obsolete vwrite */
-/* syscall: "netbsd32_sbrk" ret: "int" args: "netbsd32_intptr_t" */
-#define	SUNOS32_SYS_netbsd32_sbrk	69
-
+/* 69 is obsolete sbrk */
 /* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "netbsd32_voidp" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */
 #define	SUNOS32_SYS_mmap	71

Index: src/sys/compat/sunos32/sunos32_syscallargs.h
diff -u src/sys/compat/sunos32/sunos32_syscallargs.h:1.33 src/sys/compat/sunos32/sunos32_syscallargs.h:1.34
--- src/sys/compat/sunos32/sunos32_syscallargs.h:1.33	Tue Dec 19 08:24:41 2017
+++ src/sys/compat/sunos32/sunos32_syscallargs.h	Tue Dec 19 18:25:53 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos32_syscallargs.h,v 1.33 2017/12/19 08:24:41 kamil Exp $ */
+/* $NetBSD: sunos32_syscallargs.h,v 1.34 2017/12/19 18:25:53 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.22 2013/11/07 19:37:19 njoly Exp
+ * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
  */
 
 #ifndef _SUNOS32_SYS_SYSCALLARGS_H_
@@ -179,8 +179,6 @@ struct sunos32_sys_omsync_args {
 };
 check_syscall_args(sunos32_sys_omsync)
 
-struct netbsd32_sbrk_args;
-
 struct sunos32_sys_mmap_args {
 	syscallarg(netbsd32_voidp) addr;
 	syscallarg(netbsd32_size_t) len;
@@ -564,8 +562,6 @@ int	sunos32_sys_omsync(struct lwp *, con
 
 int	sys_vfork(struct lwp *, const void *, register_t *);
 
-int	netbsd32_sbrk(struct lwp *, const struct netbsd32_sbrk_args *, register_t *);
-
 int	sunos32_sys_mmap(struct lwp *, const struct sunos32_sys_mmap_args *, register_t *);
 
 int	netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
Index: src/sys/compat/sunos32/sunos32_syscalls.c
diff -u src/sys/compat/sunos32/sunos32_syscalls.c:1.33 src/sys/compat/sunos32/sunos32_syscalls.c:1.34
--- src/sys/compat/sunos32/sunos32_syscalls.c:1.33	Tue Dec 19 08:24:41 2017
+++ src/sys/compat/sunos32/sunos32_syscalls.c	Tue Dec 19 18:25:53 2017
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos32_syscalls.c,v 1.33 2017/12/19 08:24:41 kamil Exp $ */
+/* $NetBSD: sunos32_syscalls.c,v 1.34 2017/12/19 18:25:53 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from;	NetBSD: syscalls.master,v 1.22 2013/11/07 19:37:19 njoly Exp
+ * created from;	NetBSD: syscalls.master,v 1.23 2017/12/19 08:24:41 kamil Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.33 2017/12/19 08:24:41 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.34 2017/12/19 18:25:53 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -101,7 +101,7 @@ const char *const sunos32_syscallnames[]
 	/*  66 */	"vfork",
 	/*  67 */	"#67 (obsolete vread)",
 	/*  68 */	"#68 (obsolete vwrite)",
-	/*  69 */	"netbsd32_sbrk",
+	/*  69 */	"#69 (obsolete sbrk)",
 	/*  70 */	"#70 (obsolete sstk)",
 	/*  71 */	"mmap",
 	/*  72 */	"vadvise",
@@ -374,7 +374,7 @@ const char *const altsunos32_syscallname
 	/*  66 */	NULL, /* vfork */
 	/*  67 */	NULL, /* obsolete vread */
 	/*  68 */	NULL, /* obsolete vwrite */
-	/*  69 */	"sbrk",
+	/*  69 */	NULL, /* obsolete sbrk */
 	/*  70 */	NULL, /* obsolete sstk */
 	/*  71 */	NULL, /* mmap */
 	/* 

CVS commit: src/sys/compat/sunos32

2017-12-19 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Dec 19 08:24:41 UTC 2017

Modified Files:
src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h
sunos32_syscalls.c sunos32_sysent.c syscalls.master

Log Message:
compat sunos32: Drop the sstk(2) syscall

sstk(2) has never been implemented by the NetBSD kernel.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/compat/sunos32/sunos32_syscall.h
cvs rdiff -u -r1.32 -r1.33 src/sys/compat/sunos32/sunos32_syscallargs.h \
src/sys/compat/sunos32/sunos32_syscalls.c
cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_sysent.c
cvs rdiff -u -r1.22 -r1.23 src/sys/compat/sunos32/syscalls.master

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_syscall.h
diff -u src/sys/compat/sunos32/sunos32_syscall.h:1.33 src/sys/compat/sunos32/sunos32_syscall.h:1.34
--- src/sys/compat/sunos32/sunos32_syscall.h:1.33	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos32/sunos32_syscall.h	Tue Dec 19 08:24:41 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscall.h,v 1.33 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos32_syscall.h,v 1.34 2017/12/19 08:24:41 kamil Exp $ */
 
 /*
  * System call numbers.
@@ -159,9 +159,7 @@
 /* syscall: "netbsd32_sbrk" ret: "int" args: "netbsd32_intptr_t" */
 #define	SUNOS32_SYS_netbsd32_sbrk	69
 
-/* syscall: "netbsd32_sstk" ret: "int" args: "int" */
-#define	SUNOS32_SYS_netbsd32_sstk	70
-
+/* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "netbsd32_voidp" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */
 #define	SUNOS32_SYS_mmap	71
 

Index: src/sys/compat/sunos32/sunos32_syscallargs.h
diff -u src/sys/compat/sunos32/sunos32_syscallargs.h:1.32 src/sys/compat/sunos32/sunos32_syscallargs.h:1.33
--- src/sys/compat/sunos32/sunos32_syscallargs.h:1.32	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos32/sunos32_syscallargs.h	Tue Dec 19 08:24:41 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscallargs.h,v 1.32 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos32_syscallargs.h,v 1.33 2017/12/19 08:24:41 kamil Exp $ */
 
 /*
  * System call argument lists.
@@ -181,8 +181,6 @@ check_syscall_args(sunos32_sys_omsync)
 
 struct netbsd32_sbrk_args;
 
-struct netbsd32_sstk_args;
-
 struct sunos32_sys_mmap_args {
 	syscallarg(netbsd32_voidp) addr;
 	syscallarg(netbsd32_size_t) len;
@@ -568,8 +566,6 @@ int	sys_vfork(struct lwp *, const void *
 
 int	netbsd32_sbrk(struct lwp *, const struct netbsd32_sbrk_args *, register_t *);
 
-int	netbsd32_sstk(struct lwp *, const struct netbsd32_sstk_args *, register_t *);
-
 int	sunos32_sys_mmap(struct lwp *, const struct sunos32_sys_mmap_args *, register_t *);
 
 int	netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
Index: src/sys/compat/sunos32/sunos32_syscalls.c
diff -u src/sys/compat/sunos32/sunos32_syscalls.c:1.32 src/sys/compat/sunos32/sunos32_syscalls.c:1.33
--- src/sys/compat/sunos32/sunos32_syscalls.c:1.32	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos32/sunos32_syscalls.c	Tue Dec 19 08:24:41 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscalls.c,v 1.32 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos32_syscalls.c,v 1.33 2017/12/19 08:24:41 kamil Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.32 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.33 2017/12/19 08:24:41 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -102,7 +102,7 @@ const char *const sunos32_syscallnames[]
 	/*  67 */	"#67 (obsolete vread)",
 	/*  68 */	"#68 (obsolete vwrite)",
 	/*  69 */	"netbsd32_sbrk",
-	/*  70 */	"netbsd32_sstk",
+	/*  70 */	"#70 (obsolete sstk)",
 	/*  71 */	"mmap",
 	/*  72 */	"vadvise",
 	/*  73 */	"netbsd32_munmap",
@@ -375,7 +375,7 @@ const char *const altsunos32_syscallname
 	/*  67 */	NULL, /* obsolete vread */
 	/*  68 */	NULL, /* obsolete vwrite */
 	/*  69 */	"sbrk",
-	/*  70 */	"sstk",
+	/*  70 */	NULL, /* obsolete sstk */
 	/*  71 */	NULL, /* mmap */
 	/*  72 */	"ovadvise",
 	/*  73 */	"munmap",

Index: src/sys/compat/sunos32/sunos32_sysent.c
diff -u src/sys/compat/sunos32/sunos32_sysent.c:1.34 src/sys/compat/sunos32/sunos32_sysent.c:1.35
--- src/sys/compat/sunos32/sunos32_sysent.c:1.34	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos32/sunos32_sysent.c	Tue Dec 19 08:24:41 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_sysent.c,v 1.34 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos32_sysent.c,v 1.35 2017/12/19 08:24:41 kamil Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_sysent.c,v 1.34 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_sysent.c,v 1.35 2017/12/19 08:24:41 kamil Exp $");
 
 #if defined(_KER

CVS commit: src/sys/compat/sunos32

2015-12-11 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Dec 11 08:10:43 UTC 2015

Modified Files:
src/sys/compat/sunos32: sunos32_ioctl.c

Log Message:
PR 50517 bad switch


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/compat/sunos32/sunos32_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_ioctl.c
diff -u src/sys/compat/sunos32/sunos32_ioctl.c:1.33 src/sys/compat/sunos32/sunos32_ioctl.c:1.34
--- src/sys/compat/sunos32/sunos32_ioctl.c:1.33	Tue Dec  8 20:36:14 2015
+++ src/sys/compat/sunos32/sunos32_ioctl.c	Fri Dec 11 08:10:43 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos32_ioctl.c,v 1.33 2015/12/08 20:36:14 christos Exp $	*/
+/*	$NetBSD: sunos32_ioctl.c,v 1.34 2015/12/11 08:10:43 mlelstv Exp $	*/
 /* from: NetBSD: sunos_ioctl.c,v 1.35 2001/02/03 22:20:02 mrg Exp 	*/
 
 /*
@@ -54,7 +54,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.33 2015/12/08 20:36:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.34 2015/12/11 08:10:43 mlelstv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd32.h"
@@ -846,9 +846,9 @@ sunos32_sys_ioctl(struct lwp *l, const s
 	{
 		int tmp = 0;
 		switch ((intptr_t)SCARG_P32(uap, data)) {
-		case SUNOS_S_FLUSHR:	tmp = FREAD;
-		case SUNOS_S_FLUSHW:	tmp = FWRITE;
-		case SUNOS_S_FLUSHRW:	tmp = FREAD|FWRITE;
+		case SUNOS_S_FLUSHR:	tmp = FREAD; break;
+		case SUNOS_S_FLUSHW:	tmp = FWRITE; break;
+		case SUNOS_S_FLUSHRW:	tmp = FREAD|FWRITE; break;
 		}
 return sunos32_do_ioctl(SCARG(&bsd_ua, fd), TIOCFLUSH, &tmp, l);
 	}



CVS commit: src/sys/compat/sunos32

2015-09-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Sep 24 14:43:50 UTC 2015

Modified Files:
src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h
sunos32_syscalls.c sunos32_sysent.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/compat/sunos32/sunos32_syscall.h
cvs rdiff -u -r1.28 -r1.29 src/sys/compat/sunos32/sunos32_syscallargs.h \
src/sys/compat/sunos32/sunos32_syscalls.c
cvs rdiff -u -r1.30 -r1.31 src/sys/compat/sunos32/sunos32_sysent.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_syscall.h
diff -u src/sys/compat/sunos32/sunos32_syscall.h:1.29 src/sys/compat/sunos32/sunos32_syscall.h:1.30
--- src/sys/compat/sunos32/sunos32_syscall.h:1.29	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos32/sunos32_syscall.h	Thu Sep 24 10:43:50 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscall.h,v 1.29 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos32_syscall.h,v 1.30 2015/09/24 14:43:50 christos Exp $ */
 
 /*
  * System call numbers.

Index: src/sys/compat/sunos32/sunos32_syscallargs.h
diff -u src/sys/compat/sunos32/sunos32_syscallargs.h:1.28 src/sys/compat/sunos32/sunos32_syscallargs.h:1.29
--- src/sys/compat/sunos32/sunos32_syscallargs.h:1.28	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos32/sunos32_syscallargs.h	Thu Sep 24 10:43:50 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscallargs.h,v 1.28 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos32_syscallargs.h,v 1.29 2015/09/24 14:43:50 christos Exp $ */
 
 /*
  * System call argument lists.
Index: src/sys/compat/sunos32/sunos32_syscalls.c
diff -u src/sys/compat/sunos32/sunos32_syscalls.c:1.28 src/sys/compat/sunos32/sunos32_syscalls.c:1.29
--- src/sys/compat/sunos32/sunos32_syscalls.c:1.28	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos32/sunos32_syscalls.c	Thu Sep 24 10:43:50 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_syscalls.c,v 1.28 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos32_syscalls.c,v 1.29 2015/09/24 14:43:50 christos Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.28 2015/03/07 16:41:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.29 2015/09/24 14:43:50 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -27,6 +27,8 @@ __KERNEL_RCSID(0, "$NetBSD: sunos32_sysc
 #include 
 #include 
 #include 
+#else /* _KERNEL_OPT */
+#include 
 #endif /* _KERNEL_OPT */
 
 const char *const sunos32_syscallnames[] = {
@@ -299,3 +301,276 @@ const char *const sunos32_syscallnames[]
 	/* 254 */	"# filler",
 	/* 255 */	"# filler",
 };
+
+
+/* libc style syscall names */
+const char *const altsunos32_syscallnames[] = {
+	/*   0 */	"nosys",
+	/*   1 */	"exit",
+	/*   2 */	NULL, /* fork */
+	/*   3 */	"read",
+	/*   4 */	"write",
+	/*   5 */	NULL, /* open */
+	/*   6 */	"close",
+	/*   7 */	NULL, /* wait4 */
+	/*   8 */	NULL, /* creat */
+	/*   9 */	"link",
+	/*  10 */	"unlink",
+	/*  11 */	NULL, /* execv */
+	/*  12 */	"chdir",
+	/*  13 */	NULL, /* obsolete old_time */
+	/*  14 */	NULL, /* mknod */
+	/*  15 */	"chmod",
+	/*  16 */	"chown",
+	/*  17 */	"break",
+	/*  18 */	NULL, /* obsolete old_stat */
+	/*  19 */	"olseek",
+	/*  20 */	NULL, /* getpid_with_ppid */
+	/*  21 */	NULL, /* obsolete sunos_old_mount */
+	/*  22 */	NULL, /* unimplemented System V umount */
+	/*  23 */	"setuid",
+	/*  24 */	NULL, /* getuid_with_euid */
+	/*  25 */	NULL, /* stime */
+	/*  26 */	NULL, /* ptrace */
+	/*  27 */	NULL, /* unimplemented old_sunos_alarm */
+	/*  28 */	NULL, /* unimplemented old_sunos_fstat */
+	/*  29 */	NULL, /* unimplemented old_sunos_pause */
+	/*  30 */	NULL, /* unimplemented old_sunos_utime */
+	/*  31 */	NULL, /* unimplemented old_sunos_stty */
+	/*  32 */	NULL, /* unimplemented old_sunos_gtty */
+	/*  33 */	NULL, /* access */
+	/*  34 */	NULL, /* unimplemented old_sunos_nice */
+	/*  35 */	NULL, /* unimplemented old_sunos_ftime */
+	/*  36 */	NULL, /* sync */
+	/*  37 */	"kill",
+	/*  38 */	NULL, /* stat */
+	/*  39 */	NULL, /* unimplemented sunos_setpgrp */
+	/*  40 */	NULL, /* lstat */
+	/*  41 */	"dup",
+	/*  42 */	NULL, /* pipe */
+	/*  43 */	NULL, /* unimplemented sunos_times */
+	/*  44 */	"profil",
+	/*  45 */	NULL, /* unimplemented */
+	/*  46 */	"setgid",
+	/*  47 */	NULL, /* getgid_with_egid */
+	/*  48 */	NULL, /* unimplemented sunos_ssig */
+	/*  49 */	NULL, /* unimplemented reserved for USG */
+	/*  50 */	NULL, /* unimplemented reserved for USG */
+	/*  51 */	"acct",
+	/*  52 */	NULL, /* unimplemented */
+	/*  53 */	NULL, /* mctl */
+	/*  54 */	NULL, /* ioctl */
+	/*  55 */	NULL, /* reboot */
+	/*  56 */	NULL, /* obsolete sunos_owait3 */
+	/*  57 */	"symlink",
+	/*  58 */	"readlink",
+	/*  59 */	NULL, /* execve */
+	/*  60 */	"umask",
+	/*  61 */	"chroot",
+	/*  62 */	"fstat43",
+	/*  63 */	NULL, 

CVS commit: src/sys/compat/sunos32

2014-09-05 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Fri Sep  5 22:37:09 UTC 2014

Modified Files:
src/sys/compat/sunos32: sunos32_ioctl.c

Log Message:
Fix previous.  There is no uap.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/compat/sunos32/sunos32_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_ioctl.c
diff -u src/sys/compat/sunos32/sunos32_ioctl.c:1.30 src/sys/compat/sunos32/sunos32_ioctl.c:1.31
--- src/sys/compat/sunos32/sunos32_ioctl.c:1.30	Fri Sep  5 09:21:55 2014
+++ src/sys/compat/sunos32/sunos32_ioctl.c	Fri Sep  5 22:37:09 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos32_ioctl.c,v 1.30 2014/09/05 09:21:55 matt Exp $	*/
+/*	$NetBSD: sunos32_ioctl.c,v 1.31 2014/09/05 22:37:09 nakayama Exp $	*/
 /* from: NetBSD: sunos_ioctl.c,v 1.35 2001/02/03 22:20:02 mrg Exp 	*/
 
 /*
@@ -54,7 +54,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.30 2014/09/05 09:21:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_ioctl.c,v 1.31 2014/09/05 22:37:09 nakayama Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd32.h"
@@ -435,7 +435,7 @@ sunos32_do_ioctl(int fd, int cmd, void *
 	struct vnode *vp;
 	int error;
 
-	if ((error = fd_getvnode(SCARG(uap, fd), &fp)) != 0)
+	if ((error = fd_getvnode(fd, &fp)) != 0)
 		return error;
 	if ((fp->f_flag & (FREAD|FWRITE)) == 0) {
 		fd_putfile(fd);



CVS commit: src/sys/compat/sunos32

2009-05-16 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat May 16 17:45:23 UTC 2009

Modified Files:
src/sys/compat/sunos32: sunos32_misc.c

Log Message:
Follow pad to PAD change.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/compat/sunos32/sunos32_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/sunos32/sunos32_misc.c
diff -u src/sys/compat/sunos32/sunos32_misc.c:1.65 src/sys/compat/sunos32/sunos32_misc.c:1.66
--- src/sys/compat/sunos32/sunos32_misc.c:1.65	Sun Jan 11 13:14:14 2009
+++ src/sys/compat/sunos32/sunos32_misc.c	Sat May 16 17:45:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos32_misc.c,v 1.65 2009/01/11 13:14:14 nakayama Exp $	*/
+/*	$NetBSD: sunos32_misc.c,v 1.66 2009/05/16 17:45:23 nakayama Exp $	*/
 /* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp	*/
 
 /*
@@ -77,7 +77,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.65 2009/01/11 13:14:14 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.66 2009/05/16 17:45:23 nakayama Exp $");
 
 #define COMPAT_SUNOS 1
 
@@ -755,7 +755,7 @@
 	SUNOS32TO64_UAP(prot);
 	SCARG(&ua, flags) = SCARG(uap, flags) & ~SUNOS32__MAP_NEW;
 	SUNOS32TO64_UAP(fd);
-	SCARG(&ua, pad) = 0;
+	SCARG(&ua, PAD) = 0;
 	SUNOS32TOX_UAP(pos, off_t);
 
 	error = sys_mmap(l, &ua, retval);