syscall.master: Fix comments

Have more accruate comments. While #if, #else, etc are copied to the
header files, lines that don't start with # are not.  And #include files
are only output to sysinc (which winds up at the front of init_sysent.c
which seems a bit odd). This is all radically undocumented, and likely
has drifted somewhat from 4.4BSD and what other systems do (they've
drifted too, fwiw).

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-04-20 16:16:21 -06:00
parent c1e987e062
commit 559b94a122
5 changed files with 19 additions and 5 deletions

View File

@ -26,6 +26,10 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
; #include's, #defines's, etc. may be included, and are copied to the output
; files. However, #ifdef, etc will be copied, but any lines that don't start
; with # will not. Caveat Emptor.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
@ -36,8 +40,6 @@
; Isn't pretty, but there seems to be no other way to trap nosys
#define nosys linux_nosys
; #ifdef's, etc. may be included, and are copied to the output files.
0 AUE_NULL NOPROTO {
int read(
int fd,

View File

@ -26,6 +26,10 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
; #include's, #defines's, etc. may be included, and are copied to the output
; files. However, #ifdef, etc will be copied, but any lines that don't start
; with # will not. Caveat Emptor.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
@ -36,8 +40,6 @@
; Isn't pretty, but there seems to be no other way to trap nosys
#define nosys linux_nosys
; #ifdef's, etc. may be included, and are copied to the output files.
0 AUE_NULL UNIMPL setup
1 AUE_EXIT STD {
void linux_exit(

View File

@ -3,6 +3,10 @@
; Linux ABI system call generic name/number map, based on Linux file
; include/uapi/asm-generic/unistd.h
; #include's, #defines's, etc. may be included, and are copied to the output
; files. However, #ifdef, etc will be copied, but any lines that don't start
; with # will not. Caveat Emptor.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>

View File

@ -26,6 +26,10 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
; #include's, #defines's, etc. may be included, and are copied to the output
; files. However, #ifdef, etc will be copied, but any lines that don't start
; with # will not. Caveat Emptor.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>

View File

@ -108,7 +108,9 @@
; timet_ Object contains a time_t and varies between i386 and other
; ABIs.
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's, #defines's, etc. may be included, and are copied to the output
; files. However, #ifdef, etc will be copied, but any lines that don't start
; with # will not. Caveat Emptor.
#include <sys/param.h>
#include <sys/sysent.h>