diff options
| author | mycroft <mycroft@NetBSD.org> | 1994-12-14 16:29:54 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1994-12-14 16:29:54 +0000 |
| commit | fcef736c87d0820ca6036934685ef08491d2cfed (patch) | |
| tree | fa4be9fb6a9d047abc98244bf87664b04551ba7b /sys/kern | |
| parent | ca65f2ce5deb715eedf925d5d9a2976cc3505e9c (diff) | |
Add undelete syscall, per CSRG.
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/init_sysent.c | 5 | ||||
| -rw-r--r-- | sys/kern/syscalls.c | 2 | ||||
| -rw-r--r-- | sys/kern/syscalls.master | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index a82755cfe01..9bc3dde66db 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -173,6 +173,7 @@ int ftruncate(); int __sysctl(); int mlock(); int munlock(); +int undelete(); #ifdef LKM int lkmnosys(); int lkmnosys(); @@ -856,8 +857,8 @@ struct sysent sysent[] = { mlock }, /* 203 = mlock */ { 2, s(struct munlock_args), munlock }, /* 204 = munlock */ - { 0, 0, - nosys }, /* 205 = unimplemented */ + { 1, s(struct undelete_args), + undelete }, /* 205 = undelete */ { 0, 0, nosys }, /* 206 = unimplemented */ { 0, 0, diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 6356aa8e8e6..7859b4520d4 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -250,7 +250,7 @@ char *syscallnames[] = { "__sysctl", /* 202 = __sysctl */ "mlock", /* 203 = mlock */ "munlock", /* 204 = munlock */ - "#205 (unimplemented)", /* 205 = unimplemented */ + "undelete", /* 205 = undelete */ "#206 (unimplemented)", /* 206 = unimplemented */ "#207 (unimplemented)", /* 207 = unimplemented */ "#208 (unimplemented)", /* 208 = unimplemented */ diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index ee494693b72..2fad040cf00 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.24 1994/10/21 00:14:36 mycroft Exp $ + $NetBSD: syscalls.master,v 1.25 1994/12/14 16:29:57 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; NetBSD system call name/number "master" file. @@ -330,7 +330,7 @@ size_t *oldlenp, void *new, size_t newlen); } 203 STD { int mlock(caddr_t addr, size_t len); } 204 STD { int munlock(caddr_t addr, size_t len); } -205 UNIMPL +205 STD { int undelete(char *path); } 206 UNIMPL 207 UNIMPL 208 UNIMPL |
