Do not include system call wrappers in libc for old FreeBSD system calls.
The base system libc is only used to run binaries built on FreeBSD 7.0 and later. It does not need to include system call wrappers for system calls only used by FreeBSD binaries built on versions older than 7.0. This was already true for "COMPAT" system calls, but now wrappers for system calls used on FreeBSD 4 and 6 are excluded as well. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5597
This commit is contained in:
parent
1329d41cb6
commit
f479b2ac89
@ -131,7 +131,7 @@ s/\$//g
|
||||
printf "/*\n * System call numbers.\n *\n" > syshdr
|
||||
printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr
|
||||
printf " * $%s$\n", "FreeBSD" > syshdr
|
||||
printf "# FreeBSD system call names.\n" > sysmk
|
||||
printf "# FreeBSD system call object files.\n" > sysmk
|
||||
printf "# DO NOT EDIT-- this file is automatically generated.\n" > sysmk
|
||||
printf "# $%s$\n", "FreeBSD" > sysmk
|
||||
|
||||
@ -559,9 +559,9 @@ s/\$//g
|
||||
printf("/* %d = %s %s */\n", syscall, descr, funcalias) > sysent
|
||||
printf("\t\"%s.%s\",\t\t/* %d = %s %s */\n",
|
||||
wrap, funcalias, syscall, descr, funcalias) > sysnames
|
||||
if (flag("COMPAT")) {
|
||||
printf("\t\t\t\t/* %d is old %s */\n",
|
||||
syscall, funcalias) > syshdr
|
||||
if (flag("COMPAT") || flag("COMPAT4") || flag("COMPAT6")) {
|
||||
printf("\t\t\t\t/* %d is %s %s */\n",
|
||||
syscall, descr, funcalias) > syshdr
|
||||
} else if (!flag("NODEF")) {
|
||||
printf("#define\t%s%s%s\t%d\n", syscallprefix,
|
||||
prefix, funcalias, syscall) > syshdr
|
||||
|
Loading…
Reference in New Issue
Block a user