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)
Mon, Oct 20, 12:03 AM
Unknown Object (File)
Mon, Oct 20, 12:03 AM
Unknown Object (File)
Sun, Oct 19, 10:16 AM
Unknown Object (File)
Sun, Oct 19, 10:16 AM
Unknown Object (File)
Sat, Oct 18, 9:06 PM
Unknown Object (File)
Wed, Oct 15, 5:46 PM
Unknown Object (File)
Sep 21 2025, 5:46 AM
Unknown Object (File)
Sep 18 2025, 12:42 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.