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 <The NetBSD Foundation> 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 <sys/cdefs.h> -__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 */ "vfork", /* 67 */ "#67 (obsolete vread)", /* 68 */ "#68 (obsolete vwrite)", - /* 69 */ "sbrk", + /* 69 */ "#69 (obsolete sbrk)", /* 70 */ "#70 (obsolete sstk)", /* 71 */ "mmap", /* 72 */ "vadvise", @@ -370,7 +370,7 @@ const char *const altsunos_syscallnames[ /* 66 */ NULL, /* vfork */ /* 67 */ NULL, /* obsolete vread */ /* 68 */ NULL, /* obsolete vwrite */ - /* 69 */ NULL, /* sbrk */ + /* 69 */ NULL, /* obsolete sbrk */ /* 70 */ NULL, /* obsolete sstk */ /* 71 */ NULL, /* mmap */ /* 72 */ "ovadvise", Index: src/sys/compat/sunos/sunos_sysent.c diff -u src/sys/compat/sunos/sunos_sysent.c:1.88 src/sys/compat/sunos/sunos_sysent.c:1.89 --- src/sys/compat/sunos/sunos_sysent.c:1.88 Tue Dec 19 08:25:37 2017 +++ src/sys/compat/sunos/sunos_sysent.c Tue Dec 19 18:24:21 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $ */ +/* $NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $ */ /* * System call switch table. * * 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 <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.88 2017/12/19 08:25:37 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunos_sysent.c,v 1.89 2017/12/19 18:24:21 kamil Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -302,9 +302,8 @@ struct sysent sunos_sysent[] = { .sy_call = sys_nosys, }, /* 68 = filler */ { - ns(struct sys_sbrk_args), - .sy_call = (sy_call_t *)sys_sbrk - }, /* 69 = sbrk */ + .sy_call = sys_nosys, + }, /* 69 = filler */ { .sy_call = sys_nosys, }, /* 70 = filler */