mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-21 18:10:30 +00:00
Get Cosmopolitan into releasable state
A new rollup tool now exists for flattening out the headers in a way that works better for our purposes than cpp. A lot of the API clutter has been removed. APIs that aren't a sure thing in terms of general recommendation are now marked internal. There's now a smoke test for the amalgamation archive and gigantic header file. So we can now guarantee you can use this project on the easiest difficulty setting without the gigantic repository. A website is being created, which is currently a work in progress: https://justine.storage.googleapis.com/cosmopolitan/index.html
This commit is contained in:
parent
dba7552c1e
commit
ea0b5d9d1c
775 changed files with 6864 additions and 3963 deletions
57
libc/calls/struct/metastat.internal.h
Normal file
57
libc/calls/struct/metastat.internal.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_
|
||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_
|
||||
#ifndef __STRICT_ANSI__
|
||||
#include "libc/calls/struct/stat.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
union metastat {
|
||||
struct stat linux;
|
||||
|
||||
struct stat$xnu {
|
||||
int32_t st_dev;
|
||||
uint16_t st_mode, st_nlink;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_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;
|
||||
int32_t st_lspare;
|
||||
int64_t st_qspare[2];
|
||||
} xnu;
|
||||
|
||||
struct stat$freebsd {
|
||||
uint64_t st_dev, st_ino, st_nlink;
|
||||
uint16_t st_mode;
|
||||
int16_t st_padding0;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_t st_padding1;
|
||||
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;
|
||||
uint64_t st_gen;
|
||||
unsigned long st_spare[10];
|
||||
} freebsd;
|
||||
|
||||
struct stat$openbsd {
|
||||
uint32_t st_mode;
|
||||
int32_t st_dev;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_nlink, st_uid, st_gid;
|
||||
int32_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen;
|
||||
struct timespec __st_birthtim;
|
||||
} openbsd;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* !ANSI */
|
||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_METASTAT_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue