web
Last change
on this file since f6f3e91 was
f6f3e91,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Preserve directory hierarchy (not sure what happened to it)
|
-
Property mode set to
100644
|
File size:
681 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Portability wrapper around <sys/uio.h>. |
---|
3 | * |
---|
4 | * Provides a definition of the iovec struct for platforms that don't have it |
---|
5 | * (primarily Windows). Currently, the corresponding readv and writev |
---|
6 | * functions are not provided or prototyped here. |
---|
7 | * |
---|
8 | * Written by Russ Allbery <rra@stanford.edu> |
---|
9 | * This work is hereby placed in the public domain by its author. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef PORTABLE_UIO_H |
---|
13 | #define PORTABLE_UIO_H 1 |
---|
14 | |
---|
15 | #include <sys/types.h> |
---|
16 | |
---|
17 | /* remctl.h provides its own definition of this struct on Windows. */ |
---|
18 | #if defined(HAVE_SYS_UIO_H) |
---|
19 | # include <sys/uio.h> |
---|
20 | #elif !defined(REMCTL_H) |
---|
21 | struct iovec { |
---|
22 | void *iov_base; |
---|
23 | size_t iov_len; |
---|
24 | }; |
---|
25 | #endif |
---|
26 | |
---|
27 | #endif /* !PORTABLE_UIO_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.