CVS commit: src/sys/compat/sunos

2020-06-10 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Thu Jun 11 03:47:05 UTC 2020

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
Regen after -r1.82 of compat_sunos syscalls.master last September.

(Apparently forgotten.)

"Treat valsize as unsigned"


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.82 -r1.83 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.97 -r1.98 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/sunos/sunos_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/sunos/sunos_syscall.h
diff -u src/sys/compat/sunos/sunos_syscall.h:1.98 src/sys/compat/sunos/sunos_syscall.h:1.99
--- src/sys/compat/sunos/sunos_syscall.h:1.98	Sun Jan 27 02:08:40 2019
+++ src/sys/compat/sunos/sunos_syscall.h	Thu Jun 11 03:47:05 2020
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscall.h,v 1.98 2019/01/27 02:08:40 pgoyette Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.99 2020/06/11 03:47:05 dholland Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80.2.2 2018/09/29 02:29:42 pgoyette Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALL_H_
@@ -245,7 +245,7 @@
 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
 #define	SUNOS_SYS_bind	104
 
-/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
+/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "u_int" */
 #define	SUNOS_SYS_setsockopt	105
 
 /* syscall: "listen" ret: "int" args: "int" "int" */

Index: src/sys/compat/sunos/sunos_syscallargs.h
diff -u src/sys/compat/sunos/sunos_syscallargs.h:1.82 src/sys/compat/sunos/sunos_syscallargs.h:1.83
--- src/sys/compat/sunos/sunos_syscallargs.h:1.82	Sun Jan 27 02:08:40 2019
+++ src/sys/compat/sunos/sunos_syscallargs.h	Thu Jun 11 03:47:05 2020
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.82 2019/01/27 02:08:40 pgoyette Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.83 2020/06/11 03:47:05 dholland Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80.2.2 2018/09/29 02:29:42 pgoyette Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALLARGS_H_
@@ -246,7 +246,7 @@ struct sunos_sys_setsockopt_args {
 	syscallarg(int) level;
 	syscallarg(int) name;
 	syscallarg(void *) val;
-	syscallarg(int) valsize;
+	syscallarg(u_int) valsize;
 };
 check_syscall_args(sunos_sys_setsockopt)
 

Index: src/sys/compat/sunos/sunos_syscalls.c
diff -u src/sys/compat/sunos/sunos_syscalls.c:1.97 src/sys/compat/sunos/sunos_syscalls.c:1.98
--- src/sys/compat/sunos/sunos_syscalls.c:1.97	Sun Jan 27 02:08:40 2019
+++ src/sys/compat/sunos/sunos_syscalls.c	Thu Jun 11 03:47:05 2020
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_syscalls.c,v 1.97 2019/01/27 02:08:40 pgoyette Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.98 2020/06/11 03:47:05 dholland Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80.2.2 2018/09/29 02:29:42 pgoyette Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.97 2019/01/27 02:08:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.98 2020/06/11 03:47:05 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)

Index: src/sys/compat/sunos/sunos_sysent.c
diff -u src/sys/compat/sunos/sunos_sysent.c:1.93 src/sys/compat/sunos/sunos_sysent.c:1.94
--- src/sys/compat/sunos/sunos_sysent.c:1.93	Sun Jan 27 02:08:40 2019
+++ src/sys/compat/sunos/sunos_sysent.c	Thu Jun 11 03:47:05 2020
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_sysent.c,v 1.93 2019/01/27 02:08:40 pgoyette Exp $ */
+/* $NetBSD: sunos_sysent.c,v 1.94 2020/06/11 03:47:05 dholland Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80.2.2 2018/09/29 02:29:42 pgoyette Exp
+ * created from	NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.93 2019/01/27 02:08:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.94 2020/06/11 03:47:05 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"



CVS commit: src/sys/compat/sunos

2020-06-10 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Thu Jun 11 03:47:05 UTC 2020

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
Regen after -r1.82 of compat_sunos syscalls.master last September.

(Apparently forgotten.)

"Treat valsize as unsigned"


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.82 -r1.83 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.97 -r1.98 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/sunos/sunos_sysent.c

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



CVS commit: src/sys/compat/sunos

2019-10-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Oct  4 12:24:12 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
replace memcpy() with src bounds overflow with single char write.


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/sys/compat/sunos/sunos_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/sunos/sunos_misc.c
diff -u src/sys/compat/sunos/sunos_misc.c:1.174 src/sys/compat/sunos/sunos_misc.c:1.175
--- src/sys/compat/sunos/sunos_misc.c:1.174	Mon Sep 23 21:07:50 2019
+++ src/sys/compat/sunos/sunos_misc.c	Fri Oct  4 12:24:12 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_misc.c,v 1.174 2019/09/23 21:07:50 christos Exp $	*/
+/*	$NetBSD: sunos_misc.c,v 1.175 2019/10/04 12:24:12 mrg Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.174 2019/09/23 21:07:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.175 2019/10/04 12:24:12 mrg Exp $");
 
 #include 
 #include 
@@ -657,7 +657,7 @@ sunos_sys_uname(struct lwp *l, const str
 	memcpy(sut.nodename, hostname, sizeof(sut.nodename));
 	sut.nodename[sizeof(sut.nodename)-1] = '\0';
 	memcpy(sut.release, osrelease, sizeof(sut.release) - 1);
-	memcpy(sut.version, "1", sizeof(sut.version) - 1);
+	sut.version[0] = '1';
 	memcpy(sut.machine, machine, sizeof(sut.machine) - 1);
 
 	return copyout((void *), (void *)SCARG(uap, name),



CVS commit: src/sys/compat/sunos

2019-10-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Oct  4 12:24:12 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
replace memcpy() with src bounds overflow with single char write.


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/sys/compat/sunos/sunos_misc.c

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



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 21:07:50 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
make this compile again.


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/compat/sunos/sunos_misc.c

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



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 21:07:50 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
make this compile again.


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/compat/sunos/sunos_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/sunos/sunos_misc.c
diff -u src/sys/compat/sunos/sunos_misc.c:1.173 src/sys/compat/sunos/sunos_misc.c:1.174
--- src/sys/compat/sunos/sunos_misc.c:1.173	Wed Jul  3 14:24:50 2019
+++ src/sys/compat/sunos/sunos_misc.c	Mon Sep 23 17:07:50 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_misc.c,v 1.173 2019/07/03 18:24:50 dholland Exp $	*/
+/*	$NetBSD: sunos_misc.c,v 1.174 2019/09/23 21:07:50 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.173 2019/07/03 18:24:50 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.174 2019/09/23 21:07:50 christos Exp $");
 
 #include 
 #include 
@@ -277,8 +277,12 @@ sunos_sys_mount(struct lwp *l, const str
 		}
 		na.timeo = sna.timeo;
 		na.retrans = sna.retrans;
-		na.hostname = /* (char *)(u_long) */ sna.hostname;
-
+#ifdef __arch64__
+		/* XXX */
+		na.hostname = (char *)(intptr_t)sna.hostname;
+#else
+		na.hostname = sna.hostname;
+#endif
 		return do_sys_mount(l, "nfs", UIO_SYSSPACE,
 		SCARG(uap, dir), nflags, ,
 		UIO_SYSSPACE, sizeof na, );
@@ -565,7 +569,7 @@ sunos_sys_setsockopt(struct lwp *l, cons
 			name = ipoptxlat[name - SUNOS_IP_MULTICAST_IF];
 		}
 	}
-	if (SCARG(uap, valsize) > MLEN) {
+	if ((unsigned)SCARG(uap, valsize) > MLEN) {
 		error = EINVAL;
 		goto out;
 	}



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 20:42:29 UTC 2019

Modified Files:
src/sys/compat/sunos: syscalls.master

Log Message:
Treat valsize as unsigned


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/compat/sunos/syscalls.master

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



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 20:42:29 UTC 2019

Modified Files:
src/sys/compat/sunos: syscalls.master

Log Message:
Treat valsize as unsigned


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/compat/sunos/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/sunos/syscalls.master
diff -u src/sys/compat/sunos/syscalls.master:1.81 src/sys/compat/sunos/syscalls.master:1.82
--- src/sys/compat/sunos/syscalls.master:1.81	Sat Jan 26 21:08:40 2019
+++ src/sys/compat/sunos/syscalls.master	Mon Sep 23 16:42:29 2019
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.81 2019/01/27 02:08:40 pgoyette Exp $
+	$NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -178,7 +178,7 @@
 103	UNIMPL		old socketaddr
 104	NOARGS		{ int|sys||bind(int s, void *name, int namelen); }
 105	STD		{ int|sunos_sys||setsockopt(int s, int level, int name, \
-			void *val, int valsize); }
+			void *val, u_int valsize); }
 106	NOARGS		{ int|sys||listen(int s, int backlog); }
 107	UNIMPL		vtimes
 108	STD		{ int|sunos_sys||sigvec(int signum, struct sigvec *nsv, \



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 20:38:27 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
Add missing break


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/sunos/sunos_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/sunos/sunos_ioctl.c
diff -u src/sys/compat/sunos/sunos_ioctl.c:1.69 src/sys/compat/sunos/sunos_ioctl.c:1.70
--- src/sys/compat/sunos/sunos_ioctl.c:1.69	Tue Apr 23 03:45:06 2019
+++ src/sys/compat/sunos/sunos_ioctl.c	Mon Sep 23 16:38:27 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_ioctl.c,v 1.69 2019/04/23 07:45:06 msaitoh Exp $	*/
+/*	$NetBSD: sunos_ioctl.c,v 1.70 2019/09/23 20:38:27 christos Exp $	*/
 
 /*
  * Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.69 2019/04/23 07:45:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.70 2019/09/23 20:38:27 christos Exp $");
 
 #include 
 #include 
@@ -439,6 +439,7 @@ sunos_sys_ioctl(struct lwp *l, const str
 		}
 
 		error = (*ctl)(fp, TIOCSETD, );
+		break;
 	}
 	case _IOW('t', 101, int):	/* sun SUNOS_TIOCSSOFTCAR */
 	{



CVS commit: src/sys/compat/sunos

2019-09-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 23 20:38:27 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
Add missing break


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/sunos/sunos_ioctl.c

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



CVS commit: src/sys/compat/sunos

2019-07-03 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Wed Jul  3 18:24:50 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
Stack buffers mustn't escape their scope. PR 54326 from David Binderman


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/sys/compat/sunos/sunos_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/sunos/sunos_misc.c
diff -u src/sys/compat/sunos/sunos_misc.c:1.172 src/sys/compat/sunos/sunos_misc.c:1.173
--- src/sys/compat/sunos/sunos_misc.c:1.172	Mon Sep  3 16:29:30 2018
+++ src/sys/compat/sunos/sunos_misc.c	Wed Jul  3 18:24:50 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_misc.c,v 1.172 2018/09/03 16:29:30 riastradh Exp $	*/
+/*	$NetBSD: sunos_misc.c,v 1.173 2019/07/03 18:24:50 dholland Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.172 2018/09/03 16:29:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.173 2019/07/03 18:24:50 dholland Exp $");
 
 #include 
 #include 
@@ -1013,6 +1013,7 @@ sunos_sys_reboot(struct lwp *l, const st
 	struct sunos_howto_conv *convp;
 	int error, bsd_howto, sun_howto;
 	char *bootstr;
+	char bs[128];
 
 	if ((error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_REBOOT,
 	0, NULL, NULL, NULL)) != 0)
@@ -1036,8 +1037,6 @@ sunos_sys_reboot(struct lwp *l, const st
 	 * next booted kernel.
 	 */
 	if (sun_howto & SUNOS_RB_STRING) {
-		char bs[128];
-
 		error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0);
 
 		if (error)



CVS commit: src/sys/compat/sunos

2019-07-03 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Wed Jul  3 18:24:50 UTC 2019

Modified Files:
src/sys/compat/sunos: sunos_misc.c

Log Message:
Stack buffers mustn't escape their scope. PR 54326 from David Binderman


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/sys/compat/sunos/sunos_misc.c

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c syscalls.master

Log Message:
compat/sunos: 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.94 -r1.95 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.78 -r1.79 src/sys/compat/sunos/sunos_syscallargs.h \
src/sys/compat/sunos/syscalls.master
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.89 -r1.90 src/sys/compat/sunos/sunos_sysent.c

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c syscalls.master

Log Message:
compat/sunos: 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.93 -r1.94 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.77 -r1.78 src/sys/compat/sunos/sunos_syscallargs.h \
src/sys/compat/sunos/syscalls.master
cvs rdiff -u -r1.92 -r1.93 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/sunos/sunos_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/sunos/sunos_syscall.h
diff -u src/sys/compat/sunos/sunos_syscall.h:1.93 src/sys/compat/sunos/sunos_syscall.h:1.94
--- src/sys/compat/sunos/sunos_syscall.h:1.93	Tue Dec 19 08:25:37 2017
+++ src/sys/compat/sunos/sunos_syscall.h	Tue Dec 19 18:24:21 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscall.h,v 1.93 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.94 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALL_H_
@@ -156,9 +156,7 @@
 
 /* 67 is obsolete vread */
 /* 68 is obsolete vwrite */
-/* syscall: "sbrk" ret: "int" args: "intptr_t" */
-#define	SUNOS_SYS_sbrk	69
-
+/* 69 is obsolete sbrk */
 /* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
 #define	SUNOS_SYS_mmap	71

Index: src/sys/compat/sunos/sunos_syscallargs.h
diff -u src/sys/compat/sunos/sunos_syscallargs.h:1.77 src/sys/compat/sunos/sunos_syscallargs.h:1.78
--- src/sys/compat/sunos/sunos_syscallargs.h:1.77	Tue Dec 19 08:25:37 2017
+++ src/sys/compat/sunos/sunos_syscallargs.h	Tue Dec 19 18:24:21 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.77 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.78 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALLARGS_H_
@@ -167,8 +167,6 @@ struct sunos_sys_omsync_args {
 };
 check_syscall_args(sunos_sys_omsync)
 
-struct sys_sbrk_args;
-
 struct sunos_sys_mmap_args {
 	syscallarg(void *) addr;
 	syscallarg(size_t) len;
@@ -552,8 +550,6 @@ int	sunos_sys_omsync(struct lwp *, const
 
 int	sys_vfork(struct lwp *, const void *, register_t *);
 
-int	sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
-
 int	sunos_sys_mmap(struct lwp *, const struct sunos_sys_mmap_args *, register_t *);
 
 int	sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
Index: src/sys/compat/sunos/syscalls.master
diff -u src/sys/compat/sunos/syscalls.master:1.77 src/sys/compat/sunos/syscalls.master:1.78
--- src/sys/compat/sunos/syscalls.master:1.77	Tue Dec 19 08:25:37 2017
+++ src/sys/compat/sunos/syscalls.master	Tue Dec 19 18:24:21 2017
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp $
+	$NetBSD: syscalls.master,v 1.78 2017/12/19 18:24:21 kamil Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -128,7 +128,7 @@
 66	NOARGS		{ int|sys||vfork(void); }
 67	OBSOL		vread
 68	OBSOL		vwrite
-69	NOARGS		{ int|sys||sbrk(intptr_t incr); }
+69	OBSOL		sbrk
 70	OBSOL		sstk
 71	STD		{ void *|sunos_sys||mmap(void *addr, size_t len, \
 			int prot, int flags, int fd, long pos); }

Index: src/sys/compat/sunos/sunos_syscalls.c
diff -u src/sys/compat/sunos/sunos_syscalls.c:1.92 src/sys/compat/sunos/sunos_syscalls.c:1.93
--- src/sys/compat/sunos/sunos_syscalls.c:1.92	Tue Dec 19 08:25:37 2017
+++ src/sys/compat/sunos/sunos_syscalls.c	Tue Dec 19 18:24:21 2017
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.93 2017/12/19 18:24:21 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -97,7 +97,7 @@ const char *const sunos_syscallnames[] =
 	/*  66 */	

CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c syscalls.master

Log Message:
compat/sunos: 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.93 -r1.94 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.77 -r1.78 src/sys/compat/sunos/sunos_syscallargs.h \
src/sys/compat/sunos/syscalls.master
cvs rdiff -u -r1.92 -r1.93 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/sunos/sunos_sysent.c

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c syscalls.master

Log Message:
compat sunos: 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.92 -r1.93 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.76 -r1.77 src/sys/compat/sunos/sunos_syscallargs.h \
src/sys/compat/sunos/syscalls.master
cvs rdiff -u -r1.91 -r1.92 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/sunos/sunos_sysent.c

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c syscalls.master

Log Message:
compat sunos: 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.92 -r1.93 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.76 -r1.77 src/sys/compat/sunos/sunos_syscallargs.h \
src/sys/compat/sunos/syscalls.master
cvs rdiff -u -r1.91 -r1.92 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/sunos/sunos_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/sunos/sunos_syscall.h
diff -u src/sys/compat/sunos/sunos_syscall.h:1.92 src/sys/compat/sunos/sunos_syscall.h:1.93
--- src/sys/compat/sunos/sunos_syscall.h:1.92	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos/sunos_syscall.h	Tue Dec 19 08:25:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscall.h,v 1.92 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.93 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call numbers.
@@ -159,9 +159,7 @@
 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
 #define	SUNOS_SYS_sbrk	69
 
-/* syscall: "sstk" ret: "int" args: "int" */
-#define	SUNOS_SYS_sstk	70
-
+/* 70 is obsolete sstk */
 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
 #define	SUNOS_SYS_mmap	71
 

Index: src/sys/compat/sunos/sunos_syscallargs.h
diff -u src/sys/compat/sunos/sunos_syscallargs.h:1.76 src/sys/compat/sunos/sunos_syscallargs.h:1.77
--- src/sys/compat/sunos/sunos_syscallargs.h:1.76	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos/sunos_syscallargs.h	Tue Dec 19 08:25:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.76 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.77 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call argument lists.
@@ -169,8 +169,6 @@ check_syscall_args(sunos_sys_omsync)
 
 struct sys_sbrk_args;
 
-struct sys_sstk_args;
-
 struct sunos_sys_mmap_args {
 	syscallarg(void *) addr;
 	syscallarg(size_t) len;
@@ -556,8 +554,6 @@ int	sys_vfork(struct lwp *, const void *
 
 int	sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
 
-int	sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *);
-
 int	sunos_sys_mmap(struct lwp *, const struct sunos_sys_mmap_args *, register_t *);
 
 int	sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
Index: src/sys/compat/sunos/syscalls.master
diff -u src/sys/compat/sunos/syscalls.master:1.76 src/sys/compat/sunos/syscalls.master:1.77
--- src/sys/compat/sunos/syscalls.master:1.76	Thu Nov  7 19:37:19 2013
+++ src/sys/compat/sunos/syscalls.master	Tue Dec 19 08:25:37 2017
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp $
+	$NetBSD: syscalls.master,v 1.77 2017/12/19 08:25:37 kamil Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -129,7 +129,7 @@
 67	OBSOL		vread
 68	OBSOL		vwrite
 69	NOARGS		{ int|sys||sbrk(intptr_t incr); }
-70	NOARGS		{ int|sys||sstk(int incr); }
+70	OBSOL		sstk
 71	STD		{ void *|sunos_sys||mmap(void *addr, size_t len, \
 			int prot, int flags, int fd, long pos); }
 72	NOARGS		{ int|sys||ovadvise(int anom); } vadvise

Index: src/sys/compat/sunos/sunos_syscalls.c
diff -u src/sys/compat/sunos/sunos_syscalls.c:1.91 src/sys/compat/sunos/sunos_syscalls.c:1.92
--- src/sys/compat/sunos/sunos_syscalls.c:1.91	Wed May 10 06:19:49 2017
+++ src/sys/compat/sunos/sunos_syscalls.c	Tue Dec 19 08:25:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscalls.c,v 1.91 2017/05/10 06:19:49 riastradh Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.91 2017/05/10 06:19:49 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.92 2017/12/19 08:25:37 kamil Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -98,7 +98,7 @@ const char *const sunos_syscallnames[] =
 	/*  67 */	"#67 (obsolete vread)",
 	/*  68 */	"#68 (obsolete vwrite)",
 	/*  69 */	"sbrk",
-	/*  70 */	"sstk",
+	/*  70 */	"#70 (obsolete sstk)",
 	/*  71 */	"mmap",
 	/*  72 */	"vadvise",
 	/*  73 */	"munmap",
@@ -371,7 +371,7 @@ const char *const altsunos_syscallnames[
 	/*  67 */	NULL, /* obsolete vread */
 	/*  68 */	NULL, /* obsolete vwrite */
 	/*  69 */	NULL, /* sbrk */
-	/*  70 */	NULL, /* sstk */
+	/*  70 */	NULL, /* obsolete sstk */
 	/*  71 */	NULL, /* mmap */
 	/*  72 */	"ovadvise",
 	/*  73 */	NULL, /* munmap */

Index: src/sys/compat/sunos/sunos_sysent.c
diff -u src/sys/compat/sunos/sunos_sysent.c:1.87 src/sys/compat/sunos/sunos_sysent.c:1.88
--- src/sys/compat/sunos/sunos_sysent.c:1.87	Wed May 

CVS commit: src/sys/compat/sunos

2015-12-12 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Dec 12 17:48:18 UTC 2015

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
Redo previous.  zero check before modulo.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/compat/sunos/sunos_ioctl.c

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



CVS commit: src/sys/compat/sunos

2015-12-12 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Dec 12 17:48:18 UTC 2015

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
Redo previous.  zero check before modulo.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/compat/sunos/sunos_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/sunos/sunos_ioctl.c
diff -u src/sys/compat/sunos/sunos_ioctl.c:1.66 src/sys/compat/sunos/sunos_ioctl.c:1.67
--- src/sys/compat/sunos/sunos_ioctl.c:1.66	Fri Dec 11 08:19:07 2015
+++ src/sys/compat/sunos/sunos_ioctl.c	Sat Dec 12 17:48:18 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_ioctl.c,v 1.66 2015/12/11 08:19:07 mlelstv Exp $	*/
+/*	$NetBSD: sunos_ioctl.c,v 1.67 2015/12/12 17:48:18 nakayama Exp $	*/
 
 /*
  * Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.66 2015/12/11 08:19:07 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.67 2015/12/12 17:48:18 nakayama Exp $");
 
 #include 
 #include 
@@ -880,6 +880,10 @@ sunos_sys_ioctl(struct lwp *l, const str
 		if (error)
 			break;
 
+		if (label.d_secpercyl == 0) {
+			error = ERANGE;	/* XXX */
+			break;
+		}
 		if (pi.pi_offset % label.d_secpercyl != 0) {
 			error = ERANGE;	/* XXX */
 			break;



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
PR 50518 bad switch


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/compat/sunos/sunos_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/sunos/sunos_ioctl.c
diff -u src/sys/compat/sunos/sunos_ioctl.c:1.64 src/sys/compat/sunos/sunos_ioctl.c:1.65
--- src/sys/compat/sunos/sunos_ioctl.c:1.64	Tue Dec  8 20:36:14 2015
+++ src/sys/compat/sunos/sunos_ioctl.c	Fri Dec 11 08:10:28 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_ioctl.c,v 1.64 2015/12/08 20:36:14 christos Exp $	*/
+/*	$NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.64 2015/12/08 20:36:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $");
 
 #include 
 #include 
@@ -817,9 +817,9 @@ sunos_sys_ioctl(struct lwp *l, const str
 	{
 		int tmp = 0;
 		switch ((int)(u_long)SCARG(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;
 		}
 error = (*ctl)(fp, TIOCFLUSH, );
 		break;



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
PR 50518 bad switch


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/compat/sunos/sunos_ioctl.c

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
d_secpercyl is gone and we use the value from disklabel anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/compat/sunos/sunos_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/sunos/sunos_ioctl.c
diff -u src/sys/compat/sunos/sunos_ioctl.c:1.65 src/sys/compat/sunos/sunos_ioctl.c:1.66
--- src/sys/compat/sunos/sunos_ioctl.c:1.65	Fri Dec 11 08:10:28 2015
+++ src/sys/compat/sunos/sunos_ioctl.c	Fri Dec 11 08:19:07 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $	*/
+/*	$NetBSD: sunos_ioctl.c,v 1.66 2015/12/11 08:19:07 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1993 Markus Wild.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.65 2015/12/11 08:10:28 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_ioctl.c,v 1.66 2015/12/11 08:19:07 mlelstv Exp $");
 
 #include 
 #include 
@@ -880,10 +880,6 @@ sunos_sys_ioctl(struct lwp *l, const str
 		if (error)
 			break;
 
-		if (pi.disklab->d_secpercyl == 0) {
-			error = ERANGE;	/* XXX */
-			break;
-		}
 		if (pi.pi_offset % label.d_secpercyl != 0) {
 			error = ERANGE;	/* XXX */
 			break;



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_ioctl.c

Log Message:
d_secpercyl is gone and we use the value from disklabel anyway.


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

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



CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.72 -r1.73 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/sunos/sunos_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/sunos/sunos_syscall.h
diff -u src/sys/compat/sunos/sunos_syscall.h:1.88 src/sys/compat/sunos/sunos_syscall.h:1.89
--- src/sys/compat/sunos/sunos_syscall.h:1.88	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos/sunos_syscall.h	Thu Sep 24 10:43:36 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscall.h,v 1.88 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.89 2015/09/24 14:43:36 christos Exp $ */
 
 /*
  * System call numbers.

Index: src/sys/compat/sunos/sunos_syscallargs.h
diff -u src/sys/compat/sunos/sunos_syscallargs.h:1.72 src/sys/compat/sunos/sunos_syscallargs.h:1.73
--- src/sys/compat/sunos/sunos_syscallargs.h:1.72	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos/sunos_syscallargs.h	Thu Sep 24 10:43:36 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.72 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.73 2015/09/24 14:43:36 christos Exp $ */
 
 /*
  * System call argument lists.

Index: src/sys/compat/sunos/sunos_syscalls.c
diff -u src/sys/compat/sunos/sunos_syscalls.c:1.87 src/sys/compat/sunos/sunos_syscalls.c:1.88
--- src/sys/compat/sunos/sunos_syscalls.c:1.87	Sat Mar  7 11:41:54 2015
+++ src/sys/compat/sunos/sunos_syscalls.c	Thu Sep 24 10:43:36 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_syscalls.c,v 1.87 2015/03/07 16:41:54 christos Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.88 2015/09/24 14:43:36 christos Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.87 2015/03/07 16:41:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.88 2015/09/24 14:43:36 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -23,6 +23,8 @@ __KERNEL_RCSID(0, "$NetBSD: sunos_syscal
 #include 
 #include 
 #include 
+#else /* _KERNEL_OPT */
+#include 
 #endif /* _KERNEL_OPT */
 
 const char *const sunos_syscallnames[] = {
@@ -295,3 +297,276 @@ const char *const sunos_syscallnames[] =
 	/* 254 */	"# filler",
 	/* 255 */	"# filler",
 };
+
+
+/* libc style syscall names */
+const char *const altsunos_syscallnames[] = {
+	/*   0 */	"nosys",
+	/*   1 */	NULL, /* exit */
+	/*   2 */	NULL, /* fork */
+	/*   3 */	NULL, /* read */
+	/*   4 */	NULL, /* write */
+	/*   5 */	NULL, /* open */
+	/*   6 */	NULL, /* close */
+	/*   7 */	NULL, /* wait4 */
+	/*   8 */	NULL, /* creat */
+	/*   9 */	NULL, /* link */
+	/*  10 */	NULL, /* unlink */
+	/*  11 */	NULL, /* execv */
+	/*  12 */	NULL, /* chdir */
+	/*  13 */	NULL, /* obsolete old_time */
+	/*  14 */	NULL, /* mknod */
+	/*  15 */	NULL, /* chmod */
+	/*  16 */	NULL, /* chown */
+	/*  17 */	"obreak",
+	/*  18 */	NULL, /* obsolete old_stat */
+	/*  19 */	NULL, /* lseek */
+	/*  20 */	NULL, /* getpid_with_ppid */
+	/*  21 */	NULL, /* obsolete sunos_old_mount */
+	/*  22 */	NULL, /* unimplemented System V umount */
+	/*  23 */	NULL, /* 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 */	NULL, /* kill */
+	/*  38 */	NULL, /* stat */
+	/*  39 */	NULL, /* unimplemented sunos_setpgrp */
+	/*  40 */	NULL, /* lstat */
+	/*  41 */	NULL, /* dup */
+	/*  42 */	NULL, /* pipe */
+	/*  43 */	NULL, /* unimplemented sunos_times */
+	/*  44 */	NULL, /* profil */
+	/*  45 */	NULL, /* unimplemented */
+	/*  46 */	NULL, /* setgid */
+	/*  47 */	NULL, /* getgid_with_egid */
+	/*  48 */	NULL, /* unimplemented sunos_ssig */
+	/*  49 */	NULL, /* unimplemented reserved for USG */
+	/*  50 */	NULL, /* unimplemented reserved for USG */
+	/*  51 */	NULL, /* acct */
+	/*  52 */	NULL, /* unimplemented */
+	/*  53 */	NULL, /* mctl */
+	/*  54 */	NULL, /* ioctl */
+	/*  55 */	NULL, /* reboot */
+	/*  56 */	NULL, /* obsolete sunos_owait3 */
+	/*  57 */	NULL, /* symlink */
+	/*  58 */	NULL, /* readlink */
+	/*  59 */	NULL, /* execve */
+	/*  

CVS commit: src/sys/compat/sunos

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

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.72 -r1.73 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/sunos/sunos_sysent.c

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



CVS commit: src/sys/compat/sunos

2015-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar  7 15:15:24 UTC 2015

Modified Files:
src/sys/compat/sunos: Makefile

Log Message:
fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/sunos/Makefile

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/sunos/Makefile
diff -u src/sys/compat/sunos/Makefile:1.6 src/sys/compat/sunos/Makefile:1.7
--- src/sys/compat/sunos/Makefile:1.6	Tue Jan 14 13:51:25 2014
+++ src/sys/compat/sunos/Makefile	Sat Mar  7 10:15:24 2015
@@ -1,5 +1,5 @@
-#	$NetBSD: Makefile,v 1.6 2014/01/14 18:51:25 christos Exp $
+#	$NetBSD: Makefile,v 1.7 2015/03/07 15:15:24 christos Exp $
 
-SYACALL_PREFIX=sunos
+SYSCALL_PREFIX=sunos
 
 .include bsd.syscall.mk



CVS commit: src/sys/compat/sunos

2015-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar  7 15:15:24 UTC 2015

Modified Files:
src/sys/compat/sunos: Makefile

Log Message:
fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/sunos/Makefile

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



CVS commit: src/sys/compat/sunos

2010-03-03 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Mar  3 11:07:17 UTC 2010

Modified Files:
src/sys/compat/sunos: sunos_misc.c syscalls.master

Log Message:
One more overcomplex ENOSYS bites the dust.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/compat/sunos/sunos_misc.c
cvs rdiff -u -r1.74 -r1.75 src/sys/compat/sunos/syscalls.master

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



CVS commit: src/sys/compat/sunos

2010-03-03 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Mar  3 11:08:00 UTC 2010

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
regen: ENOSYS nfssvc honestly


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.80 -r1.81 src/sys/compat/sunos/sunos_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/sunos/sunos_syscall.h
diff -u src/sys/compat/sunos/sunos_syscall.h:1.85 src/sys/compat/sunos/sunos_syscall.h:1.86
--- src/sys/compat/sunos/sunos_syscall.h:1.85	Mon Dec 14 00:58:37 2009
+++ src/sys/compat/sunos/sunos_syscall.h	Wed Mar  3 11:08:00 2010
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscall.h,v 1.85 2009/12/14 00:58:37 matt Exp $ */
+/* $NetBSD: sunos_syscall.h,v 1.86 2010/03/03 11:08:00 pooka Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALL_H_
@@ -367,9 +367,6 @@
 /* syscall: poll ret: int args: struct pollfd * u_int int */
 #define	SUNOS_SYS_poll	153
 
-/* syscall: nfssvc ret: int args: int */
-#define	SUNOS_SYS_nfssvc	155
-
 /* syscall: getdirentries ret: int args: int char * u_int long * */
 #define	SUNOS_SYS_getdirentries	156
 

Index: src/sys/compat/sunos/sunos_syscallargs.h
diff -u src/sys/compat/sunos/sunos_syscallargs.h:1.69 src/sys/compat/sunos/sunos_syscallargs.h:1.70
--- src/sys/compat/sunos/sunos_syscallargs.h:1.69	Mon Dec 14 00:58:37 2009
+++ src/sys/compat/sunos/sunos_syscallargs.h	Wed Mar  3 11:08:00 2010
@@ -1,10 +1,10 @@
-/* $NetBSD: sunos_syscallargs.h,v 1.69 2009/12/14 00:58:37 matt Exp $ */
+/* $NetBSD: sunos_syscallargs.h,v 1.70 2010/03/03 11:08:00 pooka Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp
  */
 
 #ifndef _SUNOS_SYS_SYSCALLARGS_H_
@@ -350,11 +350,6 @@
 
 struct sys_poll_args;
 
-struct sunos_sys_nfssvc_args {
-	syscallarg(int) fd;
-};
-check_syscall_args(sunos_sys_nfssvc)
-
 struct compat_12_sys_getdirentries_args;
 
 struct sunos_sys_statfs_args {
@@ -696,8 +691,6 @@
 
 int	sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
 
-int	sunos_sys_nfssvc(struct lwp *, const struct sunos_sys_nfssvc_args *, register_t *);
-
 int	compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *);
 
 int	sunos_sys_statfs(struct lwp *, const struct sunos_sys_statfs_args *, register_t *);

Index: src/sys/compat/sunos/sunos_syscalls.c
diff -u src/sys/compat/sunos/sunos_syscalls.c:1.84 src/sys/compat/sunos/sunos_syscalls.c:1.85
--- src/sys/compat/sunos/sunos_syscalls.c:1.84	Mon Dec 14 00:58:37 2009
+++ src/sys/compat/sunos/sunos_syscalls.c	Wed Mar  3 11:08:00 2010
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_syscalls.c,v 1.84 2009/12/14 00:58:37 matt Exp $ */
+/* $NetBSD: sunos_syscalls.c,v 1.85 2010/03/03 11:08:00 pooka Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sunos_syscalls.c,v 1.84 2009/12/14 00:58:37 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: sunos_syscalls.c,v 1.85 2010/03/03 11:08:00 pooka Exp $);
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -181,7 +181,7 @@
 	/* 152 */	#152 (unimplemented putmsg),
 	/* 153 */	poll,
 	/* 154 */	#154 (unimplemented),
-	/* 155 */	nfssvc,
+	/* 155 */	#155 (unimplemented nfssvc),
 	/* 156 */	getdirentries,
 	/* 157 */	statfs,
 	/* 158 */	fstatfs,

Index: src/sys/compat/sunos/sunos_sysent.c
diff -u src/sys/compat/sunos/sunos_sysent.c:1.80 src/sys/compat/sunos/sunos_sysent.c:1.81
--- src/sys/compat/sunos/sunos_sysent.c:1.80	Mon Dec 14 00:58:37 2009
+++ src/sys/compat/sunos/sunos_sysent.c	Wed Mar  3 11:08:00 2010
@@ -1,14 +1,14 @@
-/* $NetBSD: sunos_sysent.c,v 1.80 2009/12/14 00:58:37 matt Exp $ */
+/* $NetBSD: sunos_sysent.c,v 1.81 2010/03/03 11:08:00 pooka Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp
+ * created from	NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sunos_sysent.c,v 

CVS commit: src/sys/compat/sunos

2010-03-03 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Mar  3 11:08:00 UTC 2010

Modified Files:
src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h
sunos_syscalls.c sunos_sysent.c

Log Message:
regen: ENOSYS nfssvc honestly


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/sunos/sunos_syscall.h
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/sunos/sunos_syscallargs.h
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/sunos/sunos_syscalls.c
cvs rdiff -u -r1.80 -r1.81 src/sys/compat/sunos/sunos_sysent.c

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