syscalls: make syscall and __syscall SYSMUX

Rather than combining the declearation of nosys with the registration
of SYS_syscall, declare syscall(2) and __syscall(2) with the new
SYSMUX type in syscalls.master and declare nosys directly.  This
eliminates the last use of syscall aliases in the tree.

Reviewed by:	kib, imp
This commit is contained in:
Brooks Davis 2021-11-29 22:03:00 +00:00
parent d7f306c5be
commit a8efd4d1b3
2 changed files with 18 additions and 6 deletions

View file

@ -114,9 +114,12 @@
#include <sys/sysproto.h>
%%ABI_HEADERS%%
0 AUE_NULL STD {
int nosys(void);
} syscall nosys_args int
0 AUE_NULL SYSMUX {
int syscall(
int number,
...
);
}
1 AUE_EXIT STD|CAPENABLED {
void exit(
int rval
@ -1194,9 +1197,12 @@
off_t pos
);
}
198 AUE_NULL NOPROTO {
int nosys(void);
} __syscall __syscall_args int
198 AUE_NULL SYSMUX {
int __syscall(
int64_t number,
...
);
}
199 AUE_LSEEK COMPAT6|CAPENABLED {
off_t lseek(
int fd,

View file

@ -192,6 +192,12 @@ extern struct sysentvec aout_sysvec;
extern struct sysent sysent[];
extern const char *syscallnames[];
struct nosys_args {
register_t dummy;
};
int nosys(struct thread *, struct nosys_args *);
#define NO_SYSCALL (-1)
struct module;