modernc.org/cc@v1.0.1/v2/headers/linux_arm/usr/include/arm-linux-gnueabihf/sys/uio.h (about)

     1  /* Copyright (C) 1991-2016 Free Software Foundation, Inc.
     2     This file is part of the GNU C Library.
     3  
     4     The GNU C Library is free software; you can redistribute it and/or
     5     modify it under the terms of the GNU Lesser General Public
     6     License as published by the Free Software Foundation; either
     7     version 2.1 of the License, or (at your option) any later version.
     8  
     9     The GNU C Library is distributed in the hope that it will be useful,
    10     but WITHOUT ANY WARRANTY; without even the implied warranty of
    11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    12     Lesser General Public License for more details.
    13  
    14     You should have received a copy of the GNU Lesser General Public
    15     License along with the GNU C Library; if not, see
    16     <http://www.gnu.org/licenses/>.  */
    17  
    18  #ifndef _SYS_UIO_H
    19  #define _SYS_UIO_H	1
    20  
    21  #include <features.h>
    22  
    23  #include <sys/types.h>
    24  
    25  __BEGIN_DECLS
    26  /* This file defines `struct iovec'.  */
    27  #include <bits/uio.h>
    28  /* Read data from file descriptor FD, and put the result in the
    29     buffers described by IOVEC, which is a vector of COUNT 'struct iovec's.
    30     The buffers are filled in the order specified.
    31     Operates just like 'read' (see <unistd.h>) except that data are
    32     put in IOVEC instead of a contiguous buffer.
    33  
    34     This function is a cancellation point and therefore not marked with
    35     __THROW.  */
    36  extern ssize_t readv(int __fd, const struct iovec *__iovec, int __count) __wur;
    37  
    38  /* Write data pointed by the buffers described by IOVEC, which
    39     is a vector of COUNT 'struct iovec's, to file descriptor FD.
    40     The data is written in the order specified.
    41     Operates just like 'write' (see <unistd.h>) except that the data
    42     are taken from IOVEC instead of a contiguous buffer.
    43  
    44     This function is a cancellation point and therefore not marked with
    45     __THROW.  */
    46  extern ssize_t writev(int __fd, const struct iovec *__iovec, int __count) __wur;
    47  
    48  #ifdef __USE_MISC
    49  #ifndef __USE_FILE_OFFSET64
    50  /* Read data from file descriptor FD at the given position OFFSET
    51     without change the file pointer, and put the result in the buffers
    52     described by IOVEC, which is a vector of COUNT 'struct iovec's.
    53     The buffers are filled in the order specified.  Operates just like
    54     'pread' (see <unistd.h>) except that data are put in IOVEC instead
    55     of a contiguous buffer.
    56  
    57     This function is a cancellation point and therefore not marked with
    58     __THROW.  */
    59  extern ssize_t preadv(int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __wur;
    60  
    61  /* Write data pointed by the buffers described by IOVEC, which is a
    62     vector of COUNT 'struct iovec's, to file descriptor FD at the given
    63     position OFFSET without change the file pointer.  The data is
    64     written in the order specified.  Operates just like 'pwrite' (see
    65     <unistd.h>) except that the data are taken from IOVEC instead of a
    66     contiguous buffer.
    67  
    68     This function is a cancellation point and therefore not marked with
    69     __THROW.  */
    70  extern ssize_t pwritev(int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __wur;
    71  #else
    72  #ifdef __REDIRECT
    73  extern ssize_t __REDIRECT(preadv, (int __fd, const struct iovec * __iovec, int __count, __off64_t __offset), preadv64) __wur;
    74  extern ssize_t __REDIRECT(pwritev, (int __fd, const struct iovec * __iovec, int __count, __off64_t __offset), pwritev64) __wur;
    75  #else
    76  #define preadv preadv64
    77  #define pwritev pwritev64
    78  #endif
    79  #endif
    80  
    81  #ifdef __USE_LARGEFILE64
    82  /* Read data from file descriptor FD at the given position OFFSET
    83     without change the file pointer, and put the result in the buffers
    84     described by IOVEC, which is a vector of COUNT 'struct iovec's.
    85     The buffers are filled in the order specified.  Operates just like
    86     'pread' (see <unistd.h>) except that data are put in IOVEC instead
    87     of a contiguous buffer.
    88  
    89     This function is a cancellation point and therefore not marked with
    90     __THROW.  */
    91  extern ssize_t preadv64(int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __wur;
    92  
    93  /* Write data pointed by the buffers described by IOVEC, which is a
    94     vector of COUNT 'struct iovec's, to file descriptor FD at the given
    95     position OFFSET without change the file pointer.  The data is
    96     written in the order specified.  Operates just like 'pwrite' (see
    97     <unistd.h>) except that the data are taken from IOVEC instead of a
    98     contiguous buffer.
    99  
   100     This function is a cancellation point and therefore not marked with
   101     __THROW.  */
   102  extern ssize_t pwritev64(int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __wur;
   103  #endif
   104  #endif				/* Use misc.  */
   105  
   106  __END_DECLS
   107  #endif				/* sys/uio.h */