Add "NOIMPL" for syscalls we know what is, but don't implement as "STD".
Use this for getfh & nfssvc.
This commit is contained in:
parent
1b09ae776d
commit
e6e21bc0a4
@ -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")
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user