/* $Copyright:	$
 * Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
 * Sequent Computer Systems, Inc.   All rights reserved.
 *  
 * This software is furnished under a license and may be used
 * only in accordance with the terms of that license and with the
 * inclusion of the above copyright notice.   This software may not
 * be provided or otherwise made available to, or used by, any
 * other person.  No title to or ownership of the software is
 * hereby transferred.
 */

#ident	"$Header: uio.h 1.4 89/08/07 $"

#ifndef	_SYS_UIO_H_

/*
 * uio.h
 *	User IO description structures.
 */

/* $Log:	uio.h,v $
 */

struct iovec {
	caddr_t	iov_base;
	int	iov_len;
};

struct uio {
	struct	iovec *uio_iov;
	int	uio_iovcnt;
	int	uio_offset;
	int	uio_segflg;
	int	uio_resid;
};

enum	uio_rw { UIO_READ, UIO_WRITE };

/*
 * Segments.
 */

#define	UIOSEG_USER	0
#define	UIOSEG_KERNEL	1

#define	_SYS_UIO_H_
#endif	/* _SYS_UIO_H_ */
