Module Name: src Committed By: kamil Date: Tue Dec 19 18:15:08 UTC 2017
Modified Files: src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c syscalls.master Log Message: compat/freebsd: 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.85 -r1.86 src/sys/compat/freebsd/freebsd_syscall.h cvs rdiff -u -r1.88 -r1.89 src/sys/compat/freebsd/freebsd_syscallargs.h \ src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.86 -r1.87 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.69 -r1.70 src/sys/compat/freebsd/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/freebsd/freebsd_syscall.h diff -u src/sys/compat/freebsd/freebsd_syscall.h:1.85 src/sys/compat/freebsd/freebsd_syscall.h:1.86 --- src/sys/compat/freebsd/freebsd_syscall.h:1.85 Tue Dec 19 08:27:05 2017 +++ src/sys/compat/freebsd/freebsd_syscall.h Tue Dec 19 18:15:08 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: freebsd_syscall.h,v 1.85 2017/12/19 08:27:05 kamil Exp $ */ +/* $NetBSD: freebsd_syscall.h,v 1.86 2017/12/19 18:15:08 kamil Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp + * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp */ #ifndef _FREEBSD_SYS_SYSCALL_H_ @@ -217,9 +217,7 @@ /* 67 is obsolete vread */ /* 68 is obsolete vwrite */ -/* syscall: "sbrk" ret: "int" args: "intptr_t" */ -#define FREEBSD_SYS_sbrk 69 - + /* 69 is obsolete sbrk */ /* 70 is obsolete sstk */ /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */ #define FREEBSD_SYS_ommap 71 Index: src/sys/compat/freebsd/freebsd_syscallargs.h diff -u src/sys/compat/freebsd/freebsd_syscallargs.h:1.88 src/sys/compat/freebsd/freebsd_syscallargs.h:1.89 --- src/sys/compat/freebsd/freebsd_syscallargs.h:1.88 Tue Dec 19 08:27:05 2017 +++ src/sys/compat/freebsd/freebsd_syscallargs.h Tue Dec 19 18:15:08 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: freebsd_syscallargs.h,v 1.88 2017/12/19 08:27:05 kamil Exp $ */ +/* $NetBSD: freebsd_syscallargs.h,v 1.89 2017/12/19 18:15:08 kamil Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp + * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp */ #ifndef _FREEBSD_SYS_SYSCALLARGS_H_ @@ -165,8 +165,6 @@ struct freebsd_sys_msync_args { }; check_syscall_args(freebsd_sys_msync) -struct sys_sbrk_args; - struct compat_43_sys_mmap_args; struct sys_ovadvise_args; @@ -738,8 +736,6 @@ int freebsd_sys_msync(struct lwp *, cons int sys_vfork(struct lwp *, const void *, register_t *); -int sys_sbrk(struct lwp *, const struct sys_sbrk_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/compat/freebsd/freebsd_sysent.c diff -u src/sys/compat/freebsd/freebsd_sysent.c:1.88 src/sys/compat/freebsd/freebsd_sysent.c:1.89 --- src/sys/compat/freebsd/freebsd_sysent.c:1.88 Tue Dec 19 08:27:05 2017 +++ src/sys/compat/freebsd/freebsd_sysent.c Tue Dec 19 18:15:08 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $ */ +/* $NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp + * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.88 2017/12/19 08:27:05 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.89 2017/12/19 18:15:08 kamil Exp $"); #if defined(_KERNEL_OPT) #include "opt_ktrace.h" @@ -340,9 +340,8 @@ struct sysent freebsd_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 */ Index: src/sys/compat/freebsd/freebsd_syscalls.c diff -u src/sys/compat/freebsd/freebsd_syscalls.c:1.86 src/sys/compat/freebsd/freebsd_syscalls.c:1.87 --- src/sys/compat/freebsd/freebsd_syscalls.c:1.86 Tue Dec 19 08:27:05 2017 +++ src/sys/compat/freebsd/freebsd_syscalls.c Tue Dec 19 18:15:08 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $ */ +/* $NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.68 2017/08/08 08:04:06 maxv Exp + * created from NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.86 2017/12/19 08:27:05 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.87 2017/12/19 18:15:08 kamil Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -104,7 +104,7 @@ const char *const freebsd_syscallnames[] /* 66 */ "vfork", /* 67 */ "#67 (obsolete vread)", /* 68 */ "#68 (obsolete vwrite)", - /* 69 */ "sbrk", + /* 69 */ "#69 (obsolete sbrk)", /* 70 */ "#70 (obsolete sstk)", /* 71 */ "ommap", /* 72 */ "vadvise", @@ -674,7 +674,7 @@ const char *const altfreebsd_syscallname /* 66 */ NULL, /* vfork */ /* 67 */ NULL, /* obsolete vread */ /* 68 */ NULL, /* obsolete vwrite */ - /* 69 */ NULL, /* sbrk */ + /* 69 */ NULL, /* obsolete sbrk */ /* 70 */ NULL, /* obsolete sstk */ /* 71 */ "mmap", /* 72 */ "ovadvise", Index: src/sys/compat/freebsd/syscalls.master diff -u src/sys/compat/freebsd/syscalls.master:1.69 src/sys/compat/freebsd/syscalls.master:1.70 --- src/sys/compat/freebsd/syscalls.master:1.69 Tue Dec 19 08:27:05 2017 +++ src/sys/compat/freebsd/syscalls.master Tue Dec 19 18:15:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.69 2017/12/19 08:27:05 kamil Exp $ + $NetBSD: syscalls.master,v 1.70 2017/12/19 18:15:08 kamil Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -157,7 +157,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 NOARGS { int|compat_43_sys||mmap(void *addr, size_t len, \ int prot, int flags, int fd, long pos); } ommap