mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 20:13:31 +00:00
c7a8cd21e9
This change improves copy_file_range(), sendfile(), splice(), openpty(), closefrom(), close_range(), fadvise() and posix_fadvise() in addition to writing tests that confirm things like errno and seeking behavior across platforms. We now less aggressively polyfill behavior with some of these functions when the platform support isn't available. Please see: https://justine.lol/cosmopolitan/functions.html
22 lines
642 B
C
22 lines
642 B
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FIO_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FIO_H_
|
|
#include "libc/runtime/symbolic.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const uint32_t FIOASYNC;
|
|
extern const uint32_t FIOCLEX;
|
|
extern const uint32_t FIONBIO;
|
|
extern const uint32_t FIONCLEX;
|
|
extern const uint32_t FIONREAD;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#define FIOASYNC SYMBOLIC(FIOASYNC)
|
|
#define FIOCLEX SYMBOLIC(FIOCLEX)
|
|
#define FIONBIO SYMBOLIC(FIONBIO)
|
|
#define FIONCLEX SYMBOLIC(FIONCLEX)
|
|
#define FIONREAD SYMBOLIC(FIONREAD)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FIO_H_ */
|