michael@0: /* michael@0: * Copyright (C) 2007 The Android Open Source Project michael@0: * michael@0: * Licensed under the Apache License, Version 2.0 (the "License"); michael@0: * you may not use this file except in compliance with the License. michael@0: * You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, software michael@0: * distributed under the License is distributed on an "AS IS" BASIS, michael@0: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: * See the License for the specific language governing permissions and michael@0: * limitations under the License. michael@0: */ michael@0: michael@0: // michael@0: // implementation of sys/uio.h for platforms that don't have it (Win32) michael@0: // michael@0: #ifndef _LIBS_CUTILS_UIO_H michael@0: #define _LIBS_CUTILS_UIO_H michael@0: michael@0: #ifdef HAVE_SYS_UIO_H michael@0: #include michael@0: #else michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: #include michael@0: michael@0: struct iovec { michael@0: const void* iov_base; michael@0: size_t iov_len; michael@0: }; michael@0: michael@0: extern int readv( int fd, struct iovec* vecs, int count ); michael@0: extern int writev( int fd, const struct iovec* vecs, int count ); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif /* !HAVE_SYS_UIO_H */ michael@0: michael@0: #endif /* _LIBS_UTILS_UIO_H */ michael@0: