mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
d57b81aac7
- Add GetCpuCount() API to redbean - Add unix.gmtime() API to redbean - Add unix.readlink() API to redbean - Add unix.localtime() API to redbean - Perfect the new redbean UNIX module APIs - Integrate with Linux clock_gettime() vDSO - Run Lua garbage collector when malloc() fails - Fix another regression quirk with linenoise repl - Fix GetProgramExecutableName() for systemwide installs - Fix a build flake with test/libc/mem/test.mk SRCS list
26 lines
1.2 KiB
C
26 lines
1.2 KiB
C
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_H_
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_H_
|
|
#include "libc/calls/struct/timespec.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
struct stat { /* cosmo abi */
|
|
uint64_t st_dev; /* 0: id of device with file */
|
|
uint64_t st_ino; /* 8: inode number in disk b-tree */
|
|
uint64_t st_nlink; /* 16: hard link count */
|
|
uint32_t st_mode; /* 24: octal file mask thing */
|
|
uint32_t st_uid; /* 28: user id of owner */
|
|
uint32_t st_gid; /* group id of owning group */
|
|
uint32_t st_flags; /* nt/xnu/bsd-only */
|
|
uint64_t st_rdev; /* id of device if a special file */
|
|
int64_t st_size; /* bytes in file */
|
|
int64_t st_blksize; /* preferred chunking for underlying filesystem */
|
|
int64_t st_blocks; /* number of 512-byte pages allocated to file */
|
|
struct timespec st_atim; /* access time */
|
|
struct timespec st_mtim; /* modified time */
|
|
struct timespec st_ctim; /* complicated time */
|
|
struct timespec st_birthtim;
|
|
uint64_t st_gen; /* xnu/bsd only */
|
|
};
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_STAT_H_ */
|