Page MenuHomeFreeBSD

tools/build: Don't redefine open() for the linux bootstrap
ClosedPublic

Authored by arichardson on Jul 20 2021, 12:25 AM.
Tags
None
Referenced Files
F82052825: D31226.id92451.diff
Thu, Apr 25, 1:22 AM
F82013429: D31226.diff
Wed, Apr 24, 1:13 PM
Unknown Object (File)
Sun, Apr 21, 9:24 PM
Unknown Object (File)
Sun, Apr 21, 11:01 AM
Unknown Object (File)
Mar 21 2024, 12:26 AM
Unknown Object (File)
Mar 18 2024, 7:51 PM
Unknown Object (File)
Mar 15 2024, 12:28 AM
Unknown Object (File)
Mar 15 2024, 12:28 AM
Subscribers

Details

Summary

This is needed to bootstrap llvm-tblgen on Linux since LLVM calls
::open(...) which does not work if open is a statement macro.
Also stop defining O_SHLOCK/O_EXLOCK and update the only bootstrap tools
user of those flags to deal with missing definitions.

Split out from D31057

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/db/db/db.c
68

You missed dropping these changes

tools/build/cross-build/include/linux/fcntl.h
46–49

How come this is going away?

tools/build/cross-build/include/linux/fcntl.h
46–49

That should have been removed as part of the initial commit since it's in __unused_workaround_end.h. Forgot to remove that one when I moved it into a separate header.

This revision is now accepted and ready to land.Jul 20 2021, 7:28 PM