2022-08-13 13:11:56 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_
|
|
|
|
#include "libc/calls/struct/iovec.h"
|
2024-08-24 18:10:22 -07:00
|
|
|
#include "libc/intrin/fds.h"
|
2022-10-11 21:06:27 -07:00
|
|
|
#include "libc/mem/alloca.h"
|
2022-08-13 13:11:56 -07:00
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-07-24 08:31:54 -07:00
|
|
|
int64_t sys_preadv(int, struct iovec *, int, int64_t, int64_t);
|
|
|
|
int64_t sys_pwritev(int, const struct iovec *, int, int64_t, int64_t);
|
|
|
|
int64_t sys_readv(int32_t, const struct iovec *, int32_t);
|
|
|
|
int64_t sys_vmsplice(int, const struct iovec *, int64_t, uint32_t);
|
|
|
|
int64_t sys_writev(int32_t, const struct iovec *, int32_t);
|
2023-09-07 16:03:19 -07:00
|
|
|
ssize_t sys_read_nt(int, const struct iovec *, size_t, int64_t);
|
|
|
|
ssize_t sys_readv_metal(int, const struct iovec *, int);
|
|
|
|
ssize_t sys_readv_nt(int, const struct iovec *, int);
|
|
|
|
ssize_t sys_readv_serial(int, const struct iovec *, int);
|
2023-07-24 08:31:54 -07:00
|
|
|
ssize_t sys_write_nt(int, const struct iovec *, size_t, ssize_t);
|
|
|
|
ssize_t sys_writev_metal(struct Fd *, const struct iovec *, int);
|
|
|
|
ssize_t sys_writev_nt(int, const struct iovec *, int);
|
|
|
|
ssize_t sys_writev_serial(struct Fd *, const struct iovec *, int);
|
|
|
|
ssize_t sys_send_nt(int, const struct iovec *, size_t, uint32_t);
|
2023-09-01 20:49:13 -07:00
|
|
|
ssize_t sys_sendto_nt(int, const struct iovec *, size_t, uint32_t, const void *,
|
2023-07-24 08:31:54 -07:00
|
|
|
uint32_t);
|
2022-08-13 13:11:56 -07:00
|
|
|
|
2024-08-24 18:10:22 -07:00
|
|
|
const char *_DescribeIovec(char[300], ssize_t, const struct iovec *, int);
|
|
|
|
#define DescribeIovec(x, y, z) _DescribeIovec(alloca(300), x, y, z)
|
2022-10-11 21:06:27 -07:00
|
|
|
|
2022-08-13 13:11:56 -07:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_IOVEC_INTERNAL_H_ */
|