mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 12:18:31 +00:00
Polyfill statfs() and fstatfs() on BSD distros
This commit is contained in:
parent
e3fe127ccd
commit
f7ee9d7d99
42 changed files with 968 additions and 287 deletions
16
libc/sysv/consts/seek.h
Normal file
16
libc/sysv/consts/seek.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SEEK_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SEEK_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const int SEEK_DATA;
|
||||
extern const int SEEK_HOLE;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define SEEK_DATA SYMBOLIC(SEEK_DATA)
|
||||
#define SEEK_HOLE SYMBOLIC(SEEK_HOLE)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SEEK_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue