mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +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_
|
||||
|
|
18
libc/calls/struct/sigaction-netbsd.h
Normal file
18
libc/calls/struct/sigaction-netbsd.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_
|
||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct sigset_netbsd {
|
||||
uint32_t sig[4];
|
||||
};
|
||||
|
||||
struct sigaction_netbsd {
|
||||
intptr_t sa_handler;
|
||||
struct sigset_netbsd sa_mask;
|
||||
uint32_t sa_flags;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_NETBSD_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue