Changeset 6d06a63 in rtems


Ignore:
Timestamp:
Jul 6, 2005, 9:56:42 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4b35e0e
Parents:
f74912ae
Message:

Partial update from FreeBSD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/sys/uio.h

    rf74912ae r6d06a63  
    1111 *    notice, this list of conditions and the following disclaimer in the
    1212 *    documentation and/or other materials provided with the distribution.
    13  * 3. All advertising materials mentioning features or use of this software
    14  *    must display the following acknowledgement:
    15  *      This product includes software developed by the University of
    16  *      California, Berkeley and its contributors.
    1713 * 4. Neither the name of the University nor the names of its contributors
    1814 *    may be used to endorse or promote products derived from this software
     
    3228 *
    3329 *      @(#)uio.h       8.5 (Berkeley) 2/22/94
     30 * $FreeBSD: src/sys/sys/uio.h,v 1.38 2005/01/07 02:29:24 imp Exp $
     31 */
     32
     33/*
    3434 * $Id$
    3535 */
     
    3737#ifndef _SYS_UIO_H_
    3838#define _SYS_UIO_H_
     39
     40#include <sys/cdefs.h>
    3941
    4042/*
     
    4749};
    4850
     51#if __BSD_VISIBLE
    4952enum    uio_rw { UIO_READ, UIO_WRITE };
    5053
     
    5659        UIO_NOCOPY              /* don't copy, already in object */
    5760};
     61#endif
    5862
    5963#ifdef _KERNEL
     64
    6065struct uio {
    6166        struct  iovec *uio_iov;
     
    7075/*
    7176 * Limits
     77 *
     78 * N.B.: UIO_MAXIOV must be no less than IOV_MAX from <sys/syslimits.h>
     79 * which in turn must be no less than _XOPEN_IOV_MAX from <limits.h>.  If
     80 * we ever make this tunable (probably pointless), then IOV_MAX should be
     81 * removed from <sys/syslimits.h> and applications would be expected to use
     82 * sysconf(3) to find out the correct value, or else assume the worst
     83 * (_XOPEN_IOV_MAX).  Perhaps UIO_MAXIOV should be simply defined as
     84 * IOV_MAX.
    7285 */
    7386#define UIO_MAXIOV      1024            /* max 1K of iov's */
    74 #define UIO_SMALLIOV    8               /* 8 on stack, else malloc */
    75 #endif /* _KERNEL */
    7687
    77 #ifdef _KERNEL
    78 
    79 int     uiomove __P((caddr_t, int, struct uio *));
     88int     uiomove(void *cp, int n, struct uio *uio);
    8089
    8190#else /* !_KERNEL */
    8291
    83 #include <sys/cdefs.h>
    84 
    8592__BEGIN_DECLS
    86 ssize_t readv __P((int, const struct iovec *, int));
    87 ssize_t writev __P((int, const struct iovec *, int));
     93ssize_t readv(int, const struct iovec *, int);
     94ssize_t writev(int, const struct iovec *, int);
    8895__END_DECLS
    8996
Note: See TracChangeset for help on using the changeset viewer.