Module Name: src Committed By: kamil Date: Tue Dec 19 08:48:19 UTC 2017
Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c netbsd32_systrace_args.c syscalls.master src/sys/kern: init_sysent.c syscalls.c syscalls.master systrace_args.c src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h src/sys/uvm: uvm_mmap.c Log Message: Drop the sstk(2) syscall stub sstk - change stack section size This functionality has never been implemented and is a remnant from 16-bit UNIX. This stub appeared with the first NetBSD commit. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.130 -r1.131 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.128 -r1.129 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.20 -r1.21 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.116 -r1.117 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.315 -r1.316 src/sys/kern/init_sysent.c cvs rdiff -u -r1.306 -r1.307 src/sys/kern/syscalls.c cvs rdiff -u -r1.287 -r1.288 src/sys/kern/syscalls.master cvs rdiff -u -r1.24 -r1.25 src/sys/kern/systrace_args.c cvs rdiff -u -r1.133 -r1.134 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.300 -r1.301 src/sys/sys/syscall.h cvs rdiff -u -r1.284 -r1.285 src/sys/sys/syscallargs.h cvs rdiff -u -r1.167 -r1.168 src/sys/uvm/uvm_mmap.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/netbsd32/netbsd32_netbsd.c diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.208 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.209 --- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.208 Wed Dec 6 19:15:27 2017 +++ src/sys/compat/netbsd32/netbsd32_netbsd.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_netbsd.c,v 1.208 2017/12/06 19:15:27 christos Exp $ */ +/* $NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 kamil Exp $ */ /* * Copyright (c) 1998, 2001, 2008 Matthew R. Green @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.208 2017/12/06 19:15:27 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.209 2017/12/19 08:48:19 kamil Exp $"); #if defined(_KERNEL_OPT) #include "opt_ddb.h" @@ -713,18 +713,6 @@ netbsd32_sbrk(struct lwp *l, const struc } int -netbsd32_sstk(struct lwp *l, const struct netbsd32_sstk_args *uap, register_t *retval) -{ - /* { - syscallarg(int) incr; - } */ - struct sys_sstk_args ua; - - NETBSD32TO64_UAP(incr); - return (sys_sstk(l, &ua, retval)); -} - -int netbsd32_munmap(struct lwp *l, const struct netbsd32_munmap_args *uap, register_t *retval) { /* { Index: src/sys/compat/netbsd32/netbsd32_syscall.h diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.130 src/sys/compat/netbsd32/netbsd32_syscall.h:1.131 --- src/sys/compat/netbsd32/netbsd32_syscall.h:1.130 Tue Dec 19 07:58:50 2017 +++ src/sys/compat/netbsd32/netbsd32_syscall.h Tue Dec 19 08:48:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.130 2017/12/19 07:58:50 kamil Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp + * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp */ #ifndef _NETBSD32_SYS_SYSCALL_H_ @@ -216,9 +216,7 @@ /* syscall: "netbsd32_sbrk" ret: "int" args: "netbsd32_intptr_t" */ #define NETBSD32_SYS_netbsd32_sbrk 69 -/* syscall: "netbsd32_sstk" ret: "int" args: "int" */ -#define NETBSD32_SYS_netbsd32_sstk 70 - + /* 70 is obsolete sstk */ /* syscall: "compat_43_netbsd32_ommap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" "int" "int" "netbsd32_long" */ #define NETBSD32_SYS_compat_43_netbsd32_ommap 71 Index: src/sys/compat/netbsd32/netbsd32_syscallargs.h diff -u src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.130 src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.131 --- src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.130 Tue Dec 19 07:58:50 2017 +++ src/sys/compat/netbsd32/netbsd32_syscallargs.h Tue Dec 19 08:48:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscallargs.h,v 1.130 2017/12/19 07:58:50 kamil Exp $ */ +/* $NetBSD: netbsd32_syscallargs.h,v 1.131 2017/12/19 08:48:19 kamil Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp + * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp */ #ifndef _NETBSD32_SYS_SYSCALLARGS_H_ @@ -380,11 +380,6 @@ struct netbsd32_sbrk_args { }; check_syscall_args(netbsd32_sbrk) -struct netbsd32_sstk_args { - syscallarg(int) incr; -}; -check_syscall_args(netbsd32_sstk) - struct compat_43_netbsd32_ommap_args { syscallarg(netbsd32_voidp) addr; syscallarg(netbsd32_size_t) len; @@ -2741,8 +2736,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 compat_43_netbsd32_ommap(struct lwp *, const struct compat_43_netbsd32_ommap_args *, register_t *); int netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *); Index: src/sys/compat/netbsd32/netbsd32_syscalls.c diff -u src/sys/compat/netbsd32/netbsd32_syscalls.c:1.128 src/sys/compat/netbsd32/netbsd32_syscalls.c:1.129 --- src/sys/compat/netbsd32/netbsd32_syscalls.c:1.128 Wed May 10 06:19:49 2017 +++ src/sys/compat/netbsd32/netbsd32_syscalls.c Tue Dec 19 08:48:19 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_syscalls.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $ */ +/* $NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp + * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.129 2017/12/19 08:48:19 kamil Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -98,7 +98,7 @@ const char *const netbsd32_syscallnames[ /* 67 */ "#67 (obsolete vread)", /* 68 */ "#68 (obsolete vwrite)", /* 69 */ "netbsd32_sbrk", - /* 70 */ "netbsd32_sstk", + /* 70 */ "#70 (obsolete sstk)", /* 71 */ "compat_43_netbsd32_ommap", /* 72 */ "vadvise", /* 73 */ "netbsd32_munmap", @@ -628,7 +628,7 @@ const char *const altnetbsd32_syscallnam /* 67 */ NULL, /* obsolete vread */ /* 68 */ NULL, /* obsolete vwrite */ /* 69 */ "sbrk", - /* 70 */ "sstk", + /* 70 */ NULL, /* obsolete sstk */ /* 71 */ NULL, /* compat_43_netbsd32_ommap */ /* 72 */ "ovadvise", /* 73 */ "munmap", Index: src/sys/compat/netbsd32/netbsd32_sysent.c diff -u src/sys/compat/netbsd32/netbsd32_sysent.c:1.128 src/sys/compat/netbsd32/netbsd32_sysent.c:1.129 --- src/sys/compat/netbsd32/netbsd32_sysent.c:1.128 Wed May 10 06:19:49 2017 +++ src/sys/compat/netbsd32/netbsd32_sysent.c Tue Dec 19 08:48:19 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.115 2016/10/19 09:44:01 skrll Exp + * created from NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.128 2017/05/10 06:19:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.129 2017/12/19 08:48:19 kamil Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -385,9 +385,8 @@ struct sysent netbsd32_sysent[] = { .sy_call = (sy_call_t *)netbsd32_sbrk }, /* 69 = netbsd32_sbrk */ { - ns(struct netbsd32_sstk_args), - .sy_call = (sy_call_t *)netbsd32_sstk - }, /* 70 = netbsd32_sstk */ + .sy_call = sys_nosys, + }, /* 70 = filler */ { ns(struct compat_43_netbsd32_ommap_args), .sy_call = (sy_call_t *)compat_43(netbsd32_ommap) Index: src/sys/compat/netbsd32/netbsd32_systrace_args.c diff -u src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.20 src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.21 --- src/sys/compat/netbsd32/netbsd32_systrace_args.c:1.20 Tue Dec 19 07:58:50 2017 +++ src/sys/compat/netbsd32/netbsd32_systrace_args.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_systrace_args.c,v 1.20 2017/12/19 07:58:50 kamil Exp $ */ +/* $NetBSD: netbsd32_systrace_args.c,v 1.21 2017/12/19 08:48:19 kamil Exp $ */ /* * System call argument to DTrace register array converstion. @@ -529,13 +529,6 @@ systrace_args(register_t sysnum, const v *n_args = 1; break; } - /* netbsd32_sstk */ - case 70: { - const struct netbsd32_sstk_args *p = params; - iarg[0] = SCARG(p, incr); /* int */ - *n_args = 1; - break; - } /* netbsd32_ommap */ case 71: { const struct compat_43_netbsd32_ommap_args *p = params; @@ -4283,16 +4276,6 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; - /* netbsd32_sstk */ - case 70: - switch(ndx) { - case 0: - p = "int"; - break; - default: - break; - }; - break; /* netbsd32_ommap */ case 71: switch(ndx) { @@ -9669,11 +9652,6 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; - /* netbsd32_sstk */ - case 70: - if (ndx == 0 || ndx == 1) - p = "int"; - break; /* netbsd32_ommap */ case 71: if (ndx == 0 || ndx == 1) Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.116 src/sys/compat/netbsd32/syscalls.master:1.117 --- src/sys/compat/netbsd32/syscalls.master:1.116 Tue Dec 19 07:58:50 2017 +++ src/sys/compat/netbsd32/syscalls.master Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.116 2017/12/19 07:58:50 kamil Exp $ + $NetBSD: syscalls.master,v 1.117 2017/12/19 08:48:19 kamil Exp $ ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -175,7 +175,7 @@ 67 OBSOL vread 68 OBSOL vwrite 69 STD { int|netbsd32||sbrk(netbsd32_intptr_t incr); } -70 STD { int|netbsd32||sstk(int incr); } +70 OBSOL sstk 71 COMPAT_43 { int|netbsd32||ommap(netbsd32_voidp addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ netbsd32_long pos); } Index: src/sys/kern/init_sysent.c diff -u src/sys/kern/init_sysent.c:1.315 src/sys/kern/init_sysent.c:1.316 --- src/sys/kern/init_sysent.c:1.315 Wed May 10 06:19:47 2017 +++ src/sys/kern/init_sysent.c Tue Dec 19 08:48:19 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: init_sysent.c,v 1.315 2017/05/10 06:19:47 riastradh Exp $ */ +/* $NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.286 2016/11/02 00:11:59 pgoyette Exp + * created from NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.315 2017/05/10 06:19:47 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.316 2017/12/19 08:48:19 kamil Exp $"); #include "opt_modular.h" #include "opt_ntp.h" @@ -426,9 +426,8 @@ struct sysent sysent[] = { .sy_call = (sy_call_t *)sys_sbrk }, /* 69 = sbrk */ { - ns(struct sys_sstk_args), - .sy_call = (sy_call_t *)sys_sstk - }, /* 70 = sstk */ + .sy_call = sys_nosys, + }, /* 70 = filler */ { ns(struct compat_43_sys_mmap_args), .sy_flags = SYCALL_ARG_PTR, Index: src/sys/kern/syscalls.c diff -u src/sys/kern/syscalls.c:1.306 src/sys/kern/syscalls.c:1.307 --- src/sys/kern/syscalls.c:1.306 Fri Dec 8 01:20:52 2017 +++ src/sys/kern/syscalls.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: syscalls.c,v 1.306 2017/12/08 01:20:52 christos Exp $ */ +/* $NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.306 2017/12/08 01:20:52 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.307 2017/12/19 08:48:19 kamil Exp $"); #if defined(_KERNEL_OPT) #include "opt_modular.h" @@ -97,7 +97,7 @@ const char *const syscallnames[] = { /* 67 */ "#67 (obsolete vread)", /* 68 */ "#68 (obsolete vwrite)", /* 69 */ "sbrk", - /* 70 */ "sstk", + /* 70 */ "#70 (obsolete sstk)", /* 71 */ "compat_43_ommap", /* 72 */ "vadvise", /* 73 */ "munmap", @@ -634,7 +634,7 @@ const char *const altsyscallnames[] = { /* 67 */ NULL, /* obsolete vread */ /* 68 */ NULL, /* obsolete vwrite */ /* 69 */ NULL, /* sbrk */ - /* 70 */ NULL, /* sstk */ + /* 70 */ NULL, /* obsolete sstk */ /* 71 */ NULL, /* compat_43_ommap */ /* 72 */ "ovadvise", /* 73 */ NULL, /* munmap */ Index: src/sys/kern/syscalls.master diff -u src/sys/kern/syscalls.master:1.287 src/sys/kern/syscalls.master:1.288 --- src/sys/kern/syscalls.master:1.287 Fri Dec 8 01:19:29 2017 +++ src/sys/kern/syscalls.master Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp $ + $NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -176,7 +176,7 @@ 67 OBSOL vread 68 OBSOL vwrite 69 STD { int|sys||sbrk(intptr_t incr); } -70 STD { int|sys||sstk(int incr); } +70 OBSOL sstk 71 COMPAT_43 MODULAR compat \ { int|sys||mmap(void *addr, size_t len, int prot, \ int flags, int fd, long pos); } ommap Index: src/sys/kern/systrace_args.c diff -u src/sys/kern/systrace_args.c:1.24 src/sys/kern/systrace_args.c:1.25 --- src/sys/kern/systrace_args.c:1.24 Wed May 10 06:19:47 2017 +++ src/sys/kern/systrace_args.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: systrace_args.c,v 1.24 2017/05/10 06:19:47 riastradh Exp $ */ +/* $NetBSD: systrace_args.c,v 1.25 2017/12/19 08:48:19 kamil Exp $ */ /* * System call argument to DTrace register array converstion. @@ -529,13 +529,6 @@ systrace_args(register_t sysnum, const v *n_args = 1; break; } - /* sys_sstk */ - case 70: { - const struct sys_sstk_args *p = params; - iarg[0] = SCARG(p, incr); /* int */ - *n_args = 1; - break; - } /* sys_mmap */ case 71: { const struct compat_43_sys_mmap_args *p = params; @@ -4497,16 +4490,6 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; - /* sys_sstk */ - case 70: - switch(ndx) { - case 0: - p = "int"; - break; - default: - break; - }; - break; /* sys_mmap */ case 71: switch(ndx) { @@ -10236,11 +10219,6 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; - /* sys_sstk */ - case 70: - if (ndx == 0 || ndx == 1) - p = "int"; - break; /* sys_mmap */ case 71: if (ndx == 0 || ndx == 1) Index: src/sys/rump/librump/rumpkern/rump_syscalls.c diff -u src/sys/rump/librump/rumpkern/rump_syscalls.c:1.133 src/sys/rump/librump/rumpkern/rump_syscalls.c:1.134 --- src/sys/rump/librump/rumpkern/rump_syscalls.c:1.133 Fri Dec 8 01:20:53 2017 +++ src/sys/rump/librump/rumpkern/rump_syscalls.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: rump_syscalls.c,v 1.133 2017/12/08 01:20:53 christos Exp $ */ +/* $NetBSD: rump_syscalls.c,v 1.134 2017/12/19 08:48:19 kamil Exp $ */ /* * System call vector and marshalling for rump. @@ -15,7 +15,7 @@ #ifdef __NetBSD__ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.133 2017/12/08 01:20:53 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.134 2017/12/19 08:48:19 kamil Exp $"); #include <sys/fstypes.h> #include <sys/proc.h> @@ -6780,8 +6780,9 @@ struct sysent rump_sysent[] = { .sy_call = (sy_call_t *)rumpns_enosys, }, /* 69 = sbrk */ { + .sy_flags = SYCALL_NOSYS, .sy_call = (sy_call_t *)rumpns_enosys, -}, /* 70 = sstk */ + }, /* 70 = filler */ { .sy_flags = SYCALL_NOSYS, .sy_call = (sy_call_t *)rumpns_sys_nomodule, Index: src/sys/sys/syscall.h diff -u src/sys/sys/syscall.h:1.300 src/sys/sys/syscall.h:1.301 --- src/sys/sys/syscall.h:1.300 Fri Dec 8 01:20:53 2017 +++ src/sys/sys/syscall.h Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.h,v 1.300 2017/12/08 01:20:53 christos Exp $ */ +/* $NetBSD: syscall.h,v 1.301 2017/12/19 08:48:19 kamil Exp $ */ /* * System call numbers. @@ -216,9 +216,7 @@ /* syscall: "sbrk" ret: "int" args: "intptr_t" */ #define SYS_sbrk 69 -/* syscall: "sstk" ret: "int" args: "int" */ -#define SYS_sstk 70 - + /* 70 is obsolete sstk */ /* syscall: "compat_43_ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */ #define SYS_compat_43_ommap 71 Index: src/sys/sys/syscallargs.h diff -u src/sys/sys/syscallargs.h:1.284 src/sys/sys/syscallargs.h:1.285 --- src/sys/sys/syscallargs.h:1.284 Fri Dec 8 01:20:53 2017 +++ src/sys/sys/syscallargs.h Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: syscallargs.h,v 1.284 2017/12/08 01:20:53 christos Exp $ */ +/* $NetBSD: syscallargs.h,v 1.285 2017/12/19 08:48:19 kamil Exp $ */ /* * System call argument lists. @@ -435,13 +435,6 @@ check_syscall_args(sys_sbrk) #endif /* !RUMP_CLIENT */ #ifndef RUMP_CLIENT -struct sys_sstk_args { - syscallarg(int) incr; -}; -check_syscall_args(sys_sstk) -#endif /* !RUMP_CLIENT */ - -#ifndef RUMP_CLIENT struct compat_43_sys_mmap_args { syscallarg(void *) addr; syscallarg(size_t) len; @@ -3300,8 +3293,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 compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *); int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *); Index: src/sys/uvm/uvm_mmap.c diff -u src/sys/uvm/uvm_mmap.c:1.167 src/sys/uvm/uvm_mmap.c:1.168 --- src/sys/uvm/uvm_mmap.c:1.167 Fri Oct 27 12:01:08 2017 +++ src/sys/uvm/uvm_mmap.c Tue Dec 19 08:48:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_mmap.c,v 1.167 2017/10/27 12:01:08 utkarsh009 Exp $ */ +/* $NetBSD: uvm_mmap.c,v 1.168 2017/12/19 08:48:19 kamil Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -46,7 +46,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.167 2017/10/27 12:01:08 utkarsh009 Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.168 2017/12/19 08:48:19 kamil Exp $"); #include "opt_compat_netbsd.h" #include "opt_pax.h" @@ -108,21 +108,6 @@ sys_sbrk(struct lwp *l, const struct sys } /* - * sys_sstk: sstk system call. - */ - -/* ARGSUSED */ -int -sys_sstk(struct lwp *l, const struct sys_sstk_args *uap, register_t *retval) -{ - /* { - syscallarg(int) incr; - } */ - - return ENOSYS; -} - -/* * sys_mincore: determine if pages are in core or not. */