diff options
author | Warner Losh <imp@FreeBSD.org> | 2023-04-20 22:16:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-04-20 22:18:02 +0000 |
commit | 559b94a12257807115bf84264936f0de2ac3884e (patch) | |
tree | 73f4a0043ee481e3985fa82c1d8d84df54e12936 | |
parent | c1e987e0624ebf509a6d86099dd47ae6d72a8c03 (diff) | |
download | src-559b94a12257807115bf84264936f0de2ac3884e.tar.gz src-559b94a12257807115bf84264936f0de2ac3884e.zip |
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
-rw-r--r-- | sys/amd64/linux/syscalls.master | 6 | ||||
-rw-r--r-- | sys/amd64/linux32/syscalls.master | 6 | ||||
-rw-r--r-- | sys/arm64/linux/syscalls.master | 4 | ||||
-rw-r--r-- | sys/i386/linux/syscalls.master | 4 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 4 |
5 files changed, 19 insertions, 5 deletions
diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master index 90476b15433f..a2ac67c2d126 100644 --- a/sys/amd64/linux/syscalls.master +++ b/sys/amd64/linux/syscalls.master @@ -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, diff --git a/sys/amd64/linux32/syscalls.master b/sys/amd64/linux32/syscalls.master index 4561667dc3cc..f84d51c372a8 100644 --- a/sys/amd64/linux32/syscalls.master +++ b/sys/amd64/linux32/syscalls.master @@ -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( diff --git a/sys/arm64/linux/syscalls.master b/sys/arm64/linux/syscalls.master index 647fd0262e8c..f4c2acca435d 100644 --- a/sys/arm64/linux/syscalls.master +++ b/sys/arm64/linux/syscalls.master @@ -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> diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master index a5b246c0822a..96b74e1cc649 100644 --- a/sys/i386/linux/syscalls.master +++ b/sys/i386/linux/syscalls.master @@ -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> diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 92de51fc0d97..af2f4194e2c5 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -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> |