summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-26 20:27:51 +0000
committerphk <phk@FreeBSD.org>1997-10-26 20:27:51 +0000
commit66ca2aae2b17cc17d077a3d8e16c3f0cf176c348 (patch)
treecfddd04d240acbf44dcb83a7b8dffda09a0132af
parent07d68f3e52b048de6dd51a856bf9dc0b5b56aabc (diff)
downloadFreeBSD-src-66ca2aae2b17cc17d077a3d8e16c3f0cf176c348.zip
FreeBSD-src-66ca2aae2b17cc17d077a3d8e16c3f0cf176c348.tar.gz
Add "NOIMPL" for syscalls we know what is, but don't implement as "STD".
Use this for getfh & nfssvc.
-rw-r--r--sys/kern/makesyscalls.sh23
-rw-r--r--sys/kern/syscalls.master16
2 files changed, 21 insertions, 18 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index 8373010..b7794e7 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -1,6 +1,6 @@
#! /bin/sh -
# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93
-# $Id: makesyscalls.sh,v 1.23 1997/06/16 00:29:31 dyson Exp $
+# $Id: makesyscalls.sh,v 1.24 1997/06/29 17:39:57 bde Exp $
set -e
@@ -241,7 +241,8 @@ s/\$//g
for (i = 5; i <= NF; i++)
comment = comment " " $i
}
- $2 == "STD" || $2 == "NODEF" || $2 == "NOARGS" || $2 == "NOPROTO" {
+ $2 == "STD" || $2 == "NODEF" || $2 == "NOARGS" || $2 == "NOPROTO" \
+ || $2 == "NOIMPL" {
parseline()
if ((!nosys || funcname != "nosys") && \
(funcname != "lkmnosys")) {
@@ -268,11 +269,19 @@ s/\$//g
nosys = 1
if (funcname == "lkmnosys")
lkmnosys = 1
- printf("\t{ %d, (sy_call_t *)%s },\t\t", \
- argc+bigargc, funcname) > sysent
- if(length(funcname) < 11)
- printf("\t") > sysent
- printf("/* %d = %s */\n", syscall, funcalias) > sysent
+ if ($2 != "NOIMPL") {
+ printf("\t{ %d, (sy_call_t *)%s },\t\t", \
+ argc+bigargc, funcname) > sysent
+ if(length(funcname) < 11)
+ printf("\t") > sysent
+ printf("/* %d = %s */\n", syscall, funcalias) > sysent
+ } else {
+ printf("\t{ %d, (sy_call_t *)%s },\t\t", \
+ argc+bigargc, "nosys") > sysent
+ if(length("nosys") < 11)
+ printf("\t") > sysent
+ printf("/* %d = %s */\n", syscall, funcalias) > sysent
+ }
printf("\t\"%s\",\t\t\t/* %d = %s */\n", \
funcalias, syscall, funcalias) > sysnames
if ($2 != "NODEF")
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 62673fa..62f18c9 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
- $Id: syscalls.master,v 1.42 1997/09/14 02:22:05 peter Exp $
+ $Id: syscalls.master,v 1.43 1997/09/14 16:51:14 phk Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
;
; System call name/number master file.
@@ -238,22 +238,16 @@
152 UNIMPL NOHIDE sem_wakeup (BSD/OS 2.x)
153 UNIMPL NOHIDE asyncdaemon (BSD/OS 2.x)
154 UNIMPL NOHIDE nosys
-#ifdef NFS
-155 STD BSD { int nfssvc(int flag, caddr_t argp); }
-#else
-155 UNIMPL BSD nosys
-#endif
+; 155 is initialized by the NFS code, if present.
+155 NOIMPL BSD { int nfssvc(int flag, caddr_t argp); }
156 COMPAT BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
157 STD BSD { int statfs(char *path, struct statfs *buf); }
158 STD BSD { int fstatfs(int fd, struct statfs *buf); }
159 UNIMPL NOHIDE nosys
160 UNIMPL NOHIDE nosys
-#if defined(NFS) && !defined (NFS_NOSERVER)
-161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
-#else
-161 UNIMPL BSD nosys
-#endif
+; 161 is initialized by the NFS code, if present.
+161 NOIMPL BSD { int getfh(char *fname, struct fhandle *fhp); }
162 STD BSD { int getdomainname(char *domainname, int len); }
163 STD BSD { int setdomainname(char *domainname, int len); }
164 STD BSD { int uname(struct utsname *name); }
OpenPOWER on IntegriCloud