HomeFreeBSD

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

Description

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

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.

Reviewed By: jrtc27
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31226

Details

Provenance
arichardsonAuthored on Aug 2 2021, 8:45 AM
Reviewer
jrtc27
Differential Revision
D31226: tools/build: Don't redefine open() for the linux bootstrap
Parents
rG1b1bb6f17880: loader: tftp client should use server address from rootip
Branches
Unknown
Tags
Unknown