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 commits
abd529ceba and 0db2fac06a).  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:
Brooks Davis 2024-03-07 01:01:36 +00:00
parent 39a15d7470
commit cc4ffc9786
2 changed files with 4 additions and 2 deletions

View File

@ -353,8 +353,6 @@ FBSDprivate_1.0 {
__sys_aio_cancel;
_aio_error;
__sys_aio_error;
_yield;
__sys_yield;
_mlockall;
__sys_mlockall;
_munlockall;

View File

@ -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))