aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/include/windows/sys/uio.h
blob: 47cc77784ad601337a7a284b8c830a63660d1f6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <stddef.h>
#include <BaseTsd.h>
#include <WinSock2.h>

#ifdef __cplusplus
extern "C" {
#endif

#define IOV_MAX INT_MAX

typedef SSIZE_T ssize_t;

struct iovec {
    char* iov_base;
    size_t iov_len;
};

ssize_t readv(SOCKET sock, struct iovec const* iov, int nvecs);
ssize_t writev(SOCKET sock, struct iovec const* iov, int nvecs);

#ifdef __cplusplus
}
#endif