Page MenuHomeFreeBSD

Allow building setmode.c on Linux/macOS
ClosedPublic

Authored by arichardson on Aug 3 2020, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 10 2024, 2:44 PM
Unknown Object (File)
Dec 20 2023, 4:17 AM
Unknown Object (File)
Dec 3 2023, 7:29 PM
Unknown Object (File)
Nov 29 2023, 2:31 PM
Unknown Object (File)
Aug 6 2023, 3:16 PM
Unknown Object (File)
Aug 6 2023, 3:08 PM
Unknown Object (File)
Aug 6 2023, 3:07 PM
Unknown Object (File)
Aug 1 2023, 10:21 AM
Subscribers

Details

Summary

We bootstrap this file to allow compiling FreeBSD on Linux systems since
some boostrap tools use setmode(). Unfortunately, glibc's sys/stat.h
declares a non-static getumask() function (which is unimplemented!) and
that conflicts with the local getumask() function. To work around this
simply use a different name here.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32720
Build 30164: arc lint + arc unit

Event Timeline

arichardson created this revision.

remove file that wasn't intended for this change

OK, this is sufficiently unobtrusive

This revision is now accepted and ready to land.Aug 3 2020, 3:00 PM
This revision was automatically updated to reflect the committed changes.