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
Unknown Object (File)
Sat, Mar 7, 3:16 AM
Unknown Object (File)
Tue, Mar 3, 11:39 PM
Unknown Object (File)
Sat, Feb 28, 12:54 PM
Unknown Object (File)
Feb 13 2026, 1:26 AM
Unknown Object (File)
Feb 8 2026, 12:19 PM
Unknown Object (File)
Feb 8 2026, 1:19 AM
Unknown Object (File)
Jan 31 2026, 2:16 PM
Unknown Object (File)
Jan 17 2026, 5:13 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40544
Build 37433: arc lint + arc unit

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