2001-03-05 22:29:24 +01:00
|
|
|
/* sys/uio.h
|
|
|
|
|
2002-08-30 17:47:10 +02:00
|
|
|
Copyright 1996, 2000, 2001, 2002 Red Hat, Inc.
|
2001-03-05 22:29:24 +01:00
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#ifndef _UIO_H_
|
|
|
|
#define _UIO_H_
|
|
|
|
|
|
|
|
/* For size_t */
|
|
|
|
#include <stddef.h>
|
|
|
|
/* For ssize_t */
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2000-12-05 17:08:48 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
/*
|
|
|
|
* Define the uio buffers used for writev, readv.
|
|
|
|
*/
|
|
|
|
|
2002-08-30 17:47:10 +02:00
|
|
|
struct iovec
|
|
|
|
{
|
|
|
|
void *iov_base;
|
|
|
|
size_t iov_len;
|
2000-02-17 20:38:33 +01:00
|
|
|
};
|
|
|
|
|
2000-12-06 23:42:26 +01:00
|
|
|
extern ssize_t readv __P ((int filedes, const struct iovec *vector, int count));
|
|
|
|
extern ssize_t writev __P ((int filedes, const struct iovec *vector, int count));
|
2000-12-05 17:08:48 +01:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#endif /* _UIO_H_ */
|