mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-09-21 15:52:39 +02:00
libsys: don't try to expose yield
The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commitsabd529ceba
and0db2fac06a
). Avoid trying to export it now to avoid failures when linking with --no-undefined-version. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44236
This commit is contained in:
parent
39a15d7470
commit
cc4ffc9786
@ -353,8 +353,6 @@ FBSDprivate_1.0 {
|
||||
__sys_aio_cancel;
|
||||
_aio_error;
|
||||
__sys_aio_error;
|
||||
_yield;
|
||||
__sys_yield;
|
||||
_mlockall;
|
||||
__sys_mlockall;
|
||||
_munlockall;
|
||||
|
@ -924,6 +924,10 @@ local function handle_noncompat(sysnum, thr_flag, flags, sysflags, rettype,
|
||||
config.syscallprefix, funcalias, sysnum))
|
||||
write_line("sysmk", string.format(" \\\n\t%s.o",
|
||||
funcalias))
|
||||
-- yield has never been exposed as a syscall
|
||||
if funcalias == "yield" then
|
||||
return
|
||||
end
|
||||
if funcalias ~= "exit" and funcalias ~= "vfork" then
|
||||
write_line("libsysmap", string.format("\t_%s;\n",
|
||||
funcalias))
|
||||
|
Loading…
Reference in New Issue
Block a user