HomeFreeBSD

stand: Add macros for file types from stat

Description

stand: Add macros for file types from stat

Add the familiar macros for file types for stat's st_mode
member. Prepend HOST_ to the start of these. Make sure all the values
match the linux nolibc and uapi headers. These values are the same as
native values since they appear to be required by POSIX. Define anyway
to allow the reader of the code to know that they are in the 'host (eg
Linux)' namespace rather than the 'loader' namespace.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D37967

(cherry picked from commit 2f5f17b80c2d030196e05b12b15d544b363eb058)

Details

Provenance
impAuthored on Jan 7 2023, 8:23 PM
Differential Revision
D37967: stand: Add macros for file types from stat
Parents
rG85d8155e9526: kboot: Disks should be at least 16MB
Branches
Unknown
Tags
Unknown