2022-08-13 20:11:56 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_
|
2022-08-15 22:18:37 +00:00
|
|
|
#include "libc/calls/struct/sigset.h"
|
|
|
|
#include "libc/calls/struct/timespec.h"
|
2022-11-02 05:36:03 +00:00
|
|
|
#include "libc/mem/alloca.h"
|
2022-08-13 20:11:56 +00:00
|
|
|
#include "libc/sock/struct/pollfd.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-11-08 19:39:50 +00:00
|
|
|
int32_t sys_poll(struct pollfd *, uint64_t, signed) _Hide;
|
2023-05-12 12:47:54 +00:00
|
|
|
int32_t __sys_poll(struct pollfd *, uint64_t, signed) _Hide;
|
2022-08-15 22:18:37 +00:00
|
|
|
int sys_ppoll(struct pollfd *, size_t, const struct timespec *,
|
2022-08-16 02:52:00 +00:00
|
|
|
const sigset_t *, size_t);
|
2022-08-13 20:11:56 +00:00
|
|
|
int sys_poll_metal(struct pollfd *, size_t, unsigned);
|
2022-11-08 19:39:50 +00:00
|
|
|
int sys_poll_nt(struct pollfd *, uint64_t, uint64_t *, const sigset_t *) _Hide;
|
2022-08-13 20:11:56 +00:00
|
|
|
|
2022-11-02 05:36:03 +00:00
|
|
|
const char *DescribePollFds(char[300], ssize_t, struct pollfd *, size_t);
|
|
|
|
#define DescribePollFds(x, y, z) DescribePollFds(alloca(300), x, y, z)
|
|
|
|
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_STRUCT_POLLFD_INTERNAL_H_ */
|