mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 02:08:30 +00:00
Add NetBSD support
This commit is contained in:
parent
2fdc19e7a7
commit
23ae9dfceb
4020 changed files with 8955 additions and 8128 deletions
|
@ -47,11 +47,24 @@ struct stat_openbsd {
|
|||
struct timespec __st_birthtim;
|
||||
};
|
||||
|
||||
struct stat_netbsd {
|
||||
uint64_t st_dev;
|
||||
uint32_t st_mode;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_nlink, st_uid, st_gid;
|
||||
uint64_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen, st_spare[2];
|
||||
};
|
||||
|
||||
union metastat {
|
||||
struct stat linux;
|
||||
struct stat_xnu xnu;
|
||||
struct stat_freebsd freebsd;
|
||||
struct stat_openbsd openbsd;
|
||||
struct stat_netbsd netbsd;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue