diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-05-06 18:17:15 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-05-06 18:17:15 +0000 |
| commit | e97a07b5a43d5492084aa76bc973aaec10facaff (patch) | |
| tree | c2e75e1e13248fff0958cbf592039f75a18c9061 /sys/compat/linux | |
| parent | 2b0696ff3cf19c7acbd29cef6c756952d1242b3e (diff) | |
Add stub for linux_modify_ldt().
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/arch/i386/linux_machdep.c | 23 | ||||
| -rw-r--r-- | sys/compat/linux/i386/linux_machdep.c | 23 |
2 files changed, 44 insertions, 2 deletions
diff --git a/sys/compat/linux/arch/i386/linux_machdep.c b/sys/compat/linux/arch/i386/linux_machdep.c index 557dc41e591..b252d280690 100644 --- a/sys/compat/linux/arch/i386/linux_machdep.c +++ b/sys/compat/linux/arch/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.5 1995/05/01 19:45:42 mycroft Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.6 1995/05/06 18:17:15 mycroft Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -241,3 +241,24 @@ linux_sigreturn(p, uap, retval) return (EJUSTRETURN); } + +int +linux_modify_ldt(p, uap, retval) + struct proc *p; + struct linux_modify_ldt_args /* { + syscallarg(int) func; + syscallarg(void *) ptr; + syscallarg(size_t) bytecount; + } */ *uap; + register_t *retval; +{ + + switch (SCARG(uap, func)) { + case 0: + /* read */ + case 1: + /* write */ + default: + return (ENOSYS); + } +} diff --git a/sys/compat/linux/i386/linux_machdep.c b/sys/compat/linux/i386/linux_machdep.c index 557dc41e591..b252d280690 100644 --- a/sys/compat/linux/i386/linux_machdep.c +++ b/sys/compat/linux/i386/linux_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.5 1995/05/01 19:45:42 mycroft Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.6 1995/05/06 18:17:15 mycroft Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -241,3 +241,24 @@ linux_sigreturn(p, uap, retval) return (EJUSTRETURN); } + +int +linux_modify_ldt(p, uap, retval) + struct proc *p; + struct linux_modify_ldt_args /* { + syscallarg(int) func; + syscallarg(void *) ptr; + syscallarg(size_t) bytecount; + } */ *uap; + register_t *retval; +{ + + switch (SCARG(uap, func)) { + case 0: + /* read */ + case 1: + /* write */ + default: + return (ENOSYS); + } +} |
