# 2.11BSD#431 - /usr/src/sys/h/uio.h

##### Macros

    _SYS_UIO_H_       X

##### struct's

    iovec             X
    uio               X

##### enums's

    uio_rw            X
    uio_seg           X

       1: /*
       2:  * Copyright (c) 1982, 1986, 1993, 1994
       3:  *	The Regents of the University of California.  All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms, with or without
       6:  * modification, are permitted provided that the following conditions
       7:  * are met:
       8:  * 1. Redistributions of source code must retain the above copyright
       9:  *    notice, this list of conditions and the following disclaimer.
      10:  * 2. Redistributions in binary form must reproduce the above copyright
      11:  *    notice, this list of conditions and the following disclaimer in the
      12:  *    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.
      17:  * 4. Neither the name of the University nor the names of its contributors
      18:  *    may be used to endorse or promote products derived from this software
      19:  *    without specific prior written permission.
      20:  *
      21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
      22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
      25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      31:  * SUCH DAMAGE.
      32:  *
      33:  *	@(#)uio.h	8.5.2 (2.11BSD GTE) 12/20/94
      34:  *
      35:  * Copied from 4.4-Lite and modified for 2.11BSD.  Modifications were removal
      36:  * of prototypes, limits for dynamic allocation of iovec structs and changing
      37:  * uio_resid to u_short from int.
      38:  */
      39:
      40: #ifndef _SYS_UIO_H_
      41: #define _SYS_UIO_H_
      42:
      43: /*
      44:  * XXX
      45:  * iov_base should be a void *.
      46:  */
      47: struct iovec {
      48:     char    *iov_base;  /* Base address. */
      49:     size_t   iov_len;   /* Length. */
      50: };
      51:
      52: enum    uio_rw { UIO_READ, UIO_WRITE };
      53:
      54: /* Segment flag values. */
      55: enum uio_seg {
      56:     UIO_USERSPACE,      /* from user data space */
      57:     UIO_SYSSPACE,       /* from system space */
      58:     UIO_USERISPACE      /* from user I space */
      59: };
      60:
      61: struct uio {
      62:     struct  iovec *uio_iov;
      63:     int uio_iovcnt;
      64:     off_t   uio_offset;
      65:     u_short uio_resid;
      66:     enum    uio_seg uio_segflg;
      67:     enum    uio_rw uio_rw;
      68: };
      69: #endif /* !_SYS_UIO_H_ */

#### Defined struct's

iovec defined in line 47; used 100 times

- in line 62(2)
- in /usr/src/bin/tcsh/alloc11.c line 22-23(4)
- in /usr/src/lib/libc/gen/disklabel.c line 452(2)
- in /usr/src/lib/libc/gen/malloc.c line 20-21(4)
- in /usr/src/lib/libc/gen/perror.c line 49-50(4)
- in /usr/src/lib/libc/gen/syserrlst.c line 51(2)
- in /usr/src/lib/libc/gen/syslog.c line 152-153(4)
- in /usr/src/lib/libc/net/herror.c line 32-33(4)
- in /usr/src/lib/libc/net/res_send.c line 63(2)
- in /usr/src/sys/h/socket.h line 176(2)
- in /usr/src/sys/pdp/mem.c line 26(2)
- in /usr/src/sys/pdpstand/makesimtape.c line 27-28(4)
- in /usr/src/sys/sys/kern_subr.c line 23(2), 93(2), 134(2), 182(2)
- in /usr/src/sys/sys/sys_generic.c line 47(2), 61-65(4), 75(2), 92(2), 106-110(4), 120(2), 134(2)
- in /usr/src/sys/sys/sys_inode.c line 87(2)
- in /usr/src/sys/sys/sys_net.c line 310(2)
- in /usr/src/sys/sys/uipc_syscalls.c line 308(2), 330(2), 351(2), 376(2), 444(2), 471(2), 492(2), 519(2)
- in /usr/src/sys/sys/vm_swp.c line 131(2)
- in /usr/src/ucb/pascal/px/int.c line 125(2)
- in /usr/src/ucb/pascal/pxp/subr.c line 109(2)
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 35(2)
- in /usr/src/usr.sbin/named/named/ns_req.c line 600(2)
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 105(2)
- in /usr/src/usr.sbin/syslogd/syslogd.c line 465-466(4), 634(2)

uio defined in line 61; used 70 times

- in /usr/src/sys/pdp/mem.c line 23(2)
- in /usr/src/sys/pdpuba/dn.c line 58(2)
- in /usr/src/sys/pdpuba/lp.c line 114(2)
- in /usr/src/sys/sys/ingreslock.c line 72(2)
- in /usr/src/sys/sys/kern_subr.c line 21(2), 91(2), 132(2), 181(2)
- in /usr/src/sys/sys/subr_log.c line 111(2)
- in /usr/src/sys/sys/sys_generic.c line 46(2), 64(2), 91(2), 109(2), 128(2), 531(2)
- in /usr/src/sys/sys/sys_inode.c line 40(2), 86(2), 109(2)
- in /usr/src/sys/sys/sys_net.c line 308(2)
- in /usr/src/sys/sys/sys_pipe.c line 91(2), 102(2), 156(2)
- in /usr/src/sys/sys/tty.c line 1138(2), 1317(2)
- in /usr/src/sys/sys/tty_pty.c line 102(2), 148(2), 236(2), 383(2)
- in /usr/src/sys/sys/tty_tb.c line 126(2)
- in /usr/src/sys/sys/uipc_socket.c line 302(2), 427(2)
- in /usr/src/sys/sys/uipc_syscalls.c line 375(2), 518(2)
- in /usr/src/sys/sys/vm_swp.c line 128(2), 217(2)

#### Defined enum's

uio_rw defined in line 52; used 4 times

- in line 67(2)
- in /usr/src/sys/sys/sys_inode.c line 77(2)

uio_seg defined in line 55; used 6 times

- in line 66(2)
- in /usr/src/sys/h/namei.h line 30(2)
- in /usr/src/sys/sys/sys_inode.c line 82(2)

#### Defined macros

_SYS_UIO_H_ defined in line 41; used 1 times

- in line 40

#### Usage of this include

uio.h used 47 times

- in /usr/src/bin/tcsh/alloc11.c line 8
- in /usr/src/games/hunt/hunt.h line 15
- in /usr/src/lib/libc/gen/disklabel.c line 42
- in /usr/src/lib/libc/gen/fstab.c line 44
- in /usr/src/lib/libc/gen/malloc.c line 7
- in /usr/src/lib/libc/gen/perror.c line 39
- in /usr/src/lib/libc/gen/syserrlst.c line 22
- in /usr/src/lib/libc/gen/syslog.c line 41
- in /usr/src/lib/libc/net/herror.c line 12
- in /usr/src/lib/libc/net/res_send.c line 24
- in /usr/src/sys/h/namei.h line 13-15(2)
- in /usr/src/sys/netns/ns.c line 22
- in /usr/src/sys/pdp/mem.c line 13
- in /usr/src/sys/pdpstand/makesimtape.c line 18
- in /usr/src/sys/pdpuba/dn.c line 14
- in /usr/src/sys/pdpuba/lp.c line 22
- in /usr/src/sys/pdpuba/tmscp.c line 260
- in /usr/src/sys/sys/ingreslock.c line 16
- in /usr/src/sys/sys/kern_subr.c line 15
- in /usr/src/sys/sys/quota_subr.c line 23
- in /usr/src/sys/sys/quota_sys.c line 22
- in /usr/src/sys/sys/quota_ufs.c line 23
- in /usr/src/sys/sys/subr_log.c line 35
- in /usr/src/sys/sys/sys_generic.c line 19
- in /usr/src/sys/sys/sys_inode.c line 22
- in /usr/src/sys/sys/sys_net.c line 26
- in /usr/src/sys/sys/sys_pipe.c line 17
- in /usr/src/sys/sys/tty.c line 17
- in /usr/src/sys/sys/tty_pty.c line 24
- in /usr/src/sys/sys/tty_tb.c line 25
- in /usr/src/sys/sys/ufs_bmap.c line 20
- in /usr/src/sys/sys/uipc_socket.c line 25
- in /usr/src/sys/sys/uipc_syscalls.c line 24
- in /usr/src/sys/sys/vm_swp.c line 19
- in /usr/src/sys/sys/vm_text.c line 18
- in /usr/src/ucb/pascal/px/int.c line 15
- in /usr/src/ucb/pascal/pxp/subr.c line 18
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 29
- in /usr/src/usr.sbin/named/named/ns_req.c line 19
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 44
- in /usr/src/usr.sbin/ntp/ntp.c line 89
- in /usr/src/usr.sbin/ntp/ntp_proto.c line 119
- in /usr/src/usr.sbin/ntp/ntpd.c line 98
- in /usr/src/usr.sbin/ntp/ntpdc.c line 82
- in /usr/src/usr.sbin/ntp/ntpsubs.c line 49
- in /usr/src/usr.sbin/syslogd/syslogd.c line 60

Last modified: 1994-12-20 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 759 |