Reduced #include spam in <sys/sysproto.h> and fixed things that depended
on it. makesyscalls.sh: This parsed $Id$. Fixed(?) to parse $FreeBSD$. The output is wrong when the id is not expanded in the source file. syscalls.master: Fixed declaration of sigsuspend(). There are still some bogons and spam involving sigset_t. Use `struct foo *' instead of the equivalent `foo_t *' for some nfs and lfs syscalls so that <sys/sysproto.h> doesn't depend on <sys/mount.h>.
This commit is contained in:
parent
306e292622
commit
ac0ad63f37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21776
@ -48,6 +48,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/filedesc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
@ -52,6 +52,7 @@
|
||||
#include <sys/syslog.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/sysproto.h>
|
||||
|
@ -87,7 +87,7 @@ s/\$//g
|
||||
printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshide
|
||||
}
|
||||
NR == 1 {
|
||||
gsub("[$]Id: ", "", $0)
|
||||
gsub("[$]FreeBSD: ", "", $0)
|
||||
gsub(" [$]", "", $0)
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > sysinc
|
||||
@ -103,9 +103,7 @@ s/\$//g
|
||||
printf " * created from%s\n */\n\n", $0 > sysarg
|
||||
printf("#ifndef %s\n", sysproto_h) > sysarg
|
||||
printf("#define\t%s\n\n", sysproto_h) > sysarg
|
||||
printf "#include <sys/types.h>\n", $0 > sysarg
|
||||
printf "#include <sys/param.h>\n", $0 > sysarg
|
||||
printf "#include <sys/mount.h>\n\n", $0 > sysarg
|
||||
printf "#include <sys/signal.h>\n\n", $0 > sysarg
|
||||
|
||||
printf " * created from%s\n */\n\n", $0 > sysnames
|
||||
printf "char *%s[] = {\n", namesname > sysnames
|
||||
|
@ -24,9 +24,7 @@
|
||||
|
||||
; #ifdef's, etc. may be included, and are copied to the output files.
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sysent.h>
|
||||
#include <sys/sysproto.h>
|
||||
|
||||
@ -98,6 +96,9 @@
|
||||
struct sigaction *osa); }
|
||||
47 STD POSIX { gid_t getgid(void); }
|
||||
48 STD POSIX { int sigprocmask(int how, sigset_t mask); }
|
||||
; XXX note nonstandard (bogus) calling convention - the libc stub passes
|
||||
; us the mask, not a pointer to it, and we return the old mask as the
|
||||
; (int) return value.
|
||||
49 STD BSD { int getlogin(char *namebuf, u_int namelen); }
|
||||
50 STD BSD { int setlogin(char *namebuf); }
|
||||
51 STD BSD { int acct(char *path); }
|
||||
@ -174,7 +175,9 @@
|
||||
struct sigvec *osv); }
|
||||
109 COMPAT BSD { int sigblock(int mask); }
|
||||
110 COMPAT BSD { int sigsetmask(int mask); }
|
||||
111 STD POSIX { int sigsuspend(int mask); }
|
||||
111 STD POSIX { int sigsuspend(sigset_t mask); }
|
||||
; XXX note nonstandard (bogus) calling convention - the libc stub passes
|
||||
; us the mask, not a pointer to it.
|
||||
112 COMPAT BSD { int sigstack(struct sigstack *nss, \
|
||||
struct sigstack *oss); }
|
||||
113 COMPAT BSD { int recvmsg(int s, struct omsghdr *msg, int flags); }
|
||||
@ -247,7 +250,7 @@
|
||||
159 UNIMPL NOHIDE nosys
|
||||
160 UNIMPL NOHIDE nosys
|
||||
#if defined(NFS) && !defined (NFS_NOSERVER)
|
||||
161 STD BSD { int getfh(char *fname, fhandle_t *fhp); }
|
||||
161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
|
||||
#else
|
||||
161 UNIMPL BSD nosys
|
||||
#endif
|
||||
@ -282,12 +285,14 @@
|
||||
182 STD BSD { int setegid(gid_t egid); }
|
||||
183 STD BSD { int seteuid(uid_t euid); }
|
||||
#ifdef LFS
|
||||
184 STD BSD { int lfs_bmapv(fsid_t *fsidp, \
|
||||
184 STD BSD { int lfs_bmapv(struct fsid **fsidp, \
|
||||
struct block_info *blkiov, int blkcnt); }
|
||||
185 STD BSD { int lfs_markv(fsid_t *fsidp, \
|
||||
185 STD BSD { int lfs_markv(struct fsid **fsidp, \
|
||||
struct block_info *blkiov, int blkcnt); }
|
||||
186 STD BSD { int lfs_segclean(fsid_t *fsidp, u_long segment); }
|
||||
187 STD BSD { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
|
||||
186 STD BSD { int lfs_segclean(struct fsid **fsidp, \
|
||||
u_long segment); }
|
||||
187 STD BSD { int lfs_segwait(struct fsid **fsidp, \
|
||||
struct timeval *tv); }
|
||||
#else
|
||||
184 UNIMPL BSD nosys
|
||||
185 UNIMPL BSD nosys
|
||||
|
Loading…
Reference in New Issue
Block a user