mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
f7c7b949fd
Justine says nay for the time being. Only XNU implements this. It's not clear what ABI XNU is using but it's obviously not the one in the POSIX documentation link below. Since all platforms implement vfork, it might be better to empirically gauge the intersection of consensus which will have better performance than this interface. https://pubs.opengroup.org/onlinepubs/009696699/xrat/xsh_chap03.html
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_POSIX_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_POSIX_H_
|
|
#include "libc/runtime/symbolic.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
hidden extern const long POSIX_FADV_DONTNEED;
|
|
hidden extern const long POSIX_FADV_NOREUSE;
|
|
hidden extern const long POSIX_FADV_NORMAL;
|
|
hidden extern const long POSIX_FADV_RANDOM;
|
|
hidden extern const long POSIX_FADV_SEQUENTIAL;
|
|
hidden extern const long POSIX_FADV_WILLNEED;
|
|
hidden extern const long POSIX_MADV_DONTNEED;
|
|
hidden extern const long POSIX_MADV_NORMAL;
|
|
hidden extern const long POSIX_MADV_RANDOM;
|
|
hidden extern const long POSIX_MADV_SEQUENTIAL;
|
|
hidden extern const long POSIX_MADV_WILLNEED;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#define POSIX_FADV_DONTNEED SYMBOLIC(POSIX_FADV_DONTNEED)
|
|
#define POSIX_FADV_NOREUSE SYMBOLIC(POSIX_FADV_NOREUSE)
|
|
#define POSIX_FADV_NORMAL SYMBOLIC(POSIX_FADV_NORMAL)
|
|
#define POSIX_FADV_RANDOM SYMBOLIC(POSIX_FADV_RANDOM)
|
|
#define POSIX_FADV_SEQUENTIAL SYMBOLIC(POSIX_FADV_SEQUENTIAL)
|
|
#define POSIX_FADV_WILLNEED SYMBOLIC(POSIX_FADV_WILLNEED)
|
|
#define POSIX_MADV_DONTNEED SYMBOLIC(POSIX_MADV_DONTNEED)
|
|
#define POSIX_MADV_NORMAL SYMBOLIC(POSIX_MADV_NORMAL)
|
|
#define POSIX_MADV_RANDOM SYMBOLIC(POSIX_MADV_RANDOM)
|
|
#define POSIX_MADV_SEQUENTIAL SYMBOLIC(POSIX_MADV_SEQUENTIAL)
|
|
#define POSIX_MADV_WILLNEED SYMBOLIC(POSIX_MADV_WILLNEED)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_POSIX_H_ */
|