mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
27 lines
506 B
C
27 lines
506 B
C
|
/**
|
||
|
*
|
||
|
* @file WindowsSupport.h
|
||
|
* @author An Tao
|
||
|
*
|
||
|
* Public header file in trantor lib.
|
||
|
*
|
||
|
* Copyright 2018, An Tao. All rights reserved.
|
||
|
* Use of this source code is governed by a BSD-style license
|
||
|
* that can be found in the License file.
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <trantor/exports.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
struct iovec
|
||
|
{
|
||
|
void *iov_base; /* Starting address */
|
||
|
int iov_len; /* Number of bytes */
|
||
|
};
|
||
|
|
||
|
TRANTOR_EXPORT int readv(int fd, const struct iovec *vector, int count);
|