2004-10-14 00:21:07 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-10-14 00:21:07 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OMPI_UIO_H
|
|
|
|
#define OMPI_UIO_H
|
|
|
|
|
2004-10-28 22:13:43 +04:00
|
|
|
#include "ompi_declspec.h"
|
2004-11-03 06:57:20 +03:00
|
|
|
#include <winsock2.h>
|
|
|
|
#include <ws2tcpip.h>
|
2004-10-14 00:21:07 +04:00
|
|
|
|
|
|
|
/* define the iovec structure */
|
2004-11-03 06:57:20 +03:00
|
|
|
struct iovec {
|
|
|
|
WSABUF data;
|
2004-10-14 00:21:07 +04:00
|
|
|
};
|
2004-11-03 06:57:20 +03:00
|
|
|
#define iov_base data.buf
|
|
|
|
#define iov_len data.len
|
2004-10-14 00:21:07 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined (__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
/*
|
|
|
|
* writev:
|
|
|
|
writev writes data to file descriptor fd, and from the buffers
|
|
|
|
described by iov. The number of buffers is specified by cnt. The
|
|
|
|
buffers are used in the order specified. Operates just like write
|
|
|
|
except that data is taken from iov instead of a contiguous buffer.
|
|
|
|
*/
|
2004-10-28 22:13:43 +04:00
|
|
|
OMPI_DECLSPEC int writev (int fd, struct iovec *iov, int cnt);
|
2004-10-14 00:21:07 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
readv reads data from file descriptor fd, and puts the result in the
|
|
|
|
buffers described by iov. The number of buffers is specified by
|
|
|
|
cnt. The buffers are filled in the order specified. Operates just
|
|
|
|
like read except that data is put in iov instead of a contiguous
|
|
|
|
buffer.
|
|
|
|
*/
|
2004-10-28 22:13:43 +04:00
|
|
|
OMPI_DECLSPEC int readv (int fd, struct iovec *iov, int cnt);
|
2004-10-14 00:21:07 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined (__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* OMPI_UIO_H */
|