mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
20 lines
852 B
C
20 lines
852 B
C
#ifndef COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_
|
|
#include "libc/calls/struct/sigset.h"
|
|
#include "libc/calls/struct/timespec.h"
|
|
#include "libc/mem/alloca.h"
|
|
#include "libc/sock/struct/pollfd.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
int32_t sys_poll(struct pollfd *, uint64_t, signed);
|
|
int32_t __sys_poll(struct pollfd *, uint64_t, signed);
|
|
int sys_ppoll(struct pollfd *, size_t, const struct timespec *,
|
|
const sigset_t *, size_t);
|
|
int sys_poll_metal(struct pollfd *, size_t, unsigned);
|
|
int sys_poll_nt(struct pollfd *, uint64_t, uint32_t *, const sigset_t *);
|
|
|
|
const char *DescribePollFds(char[300], ssize_t, struct pollfd *, size_t);
|
|
#define DescribePollFds(x, y, z) DescribePollFds(alloca(300), x, y, z)
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_ */
|