DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T u

⟦960378095⟧ TextFile

    Length: 1869 (0x74d)
    Types: TextFile
    Notes: @(#)uio.h 13.1 (RC International) 91/02/02 */
    Names: »uio.h«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/include/sys/uio.h« 

TextFile

/*	@(#)uio.h	13.1 (RC International) 91/02/02	*/

#ifndef __UIO
#define __UIO

#include <sys/iovec.h>

struct uio 
{
    struct	iovec *uio_iov;
    char	uio_iovcnt;		/* signed! */
    u_char	uio_segflg;
    u_short 	uio_xlatecnt;		/* total bytes io translation */
    int		uio_offset;
    int		uio_resid;
    struct
    {
	int		file_flags;	/* = fp->f_flag */
	union
	{
	    int			io_flags;	/* = uap->fdes & 0xffff0000
						     (use low bits to say
						     if ruid == 0 and
						     other useful info) */
	    int			file_how;	/* = uap->how */
	    struct semaphore	*sema;		/* semaphore */
	    struct queue	*q;		/* queue */
	} uap;
	UID_T		trid;		/* = u.u_trid */
	int		pid;		/* = u.u_procp->p->p_pid */
	union
	{
	    int		maxfilesize;	/* =u.u_rlimit[RLIMIT_FZIZE].rlim_cur */
	    struct
	    {
		short	sbb;		/* sbb id */
		bool_t	rsvp;		/* response required? */
	    } mx;
	} ush;
	int		timeout_val;	/* timeout interval */
	int		error_code;	/* return value for u_error */
    } uio_in;
};


/*
 * Values for uio_io_flags
 */

#define UIO_RUID	0x0001
#define	UIO_MXTRINVITE	0x0002	/* invite to join */

/*
 * Values for uio_segflg
 */

#define UIO_USERD	0	/* user process "D" segment */
#define UIO_SYS		1	/* system */
#define UIO_USERI	2	/* user process "I" segment */
#define	UIO_UAREA	3	/* user process u-area	*/
#define	UIO_PAGET	4	/* user process page table */

/*
 * Return values from vm_uio routines.
 */
 
#define UIO_OK 0
#define UIO_DOCOPY -1

#define uio_file_flags		uio_in.file_flags
#define uio_io_flags		uio_in.uap.io_flags
#define uio_file_how		uio_in.uap.file_how
#define uio_trid		uio_in.trid
#define uio_pid			uio_in.pid
#define uio_maxfilesize		uio_in.ush.maxfilesize
#define uio_sbb			uio_in.ush.mx.sbb
#define uio_rsvp		uio_in.ush.mx.rsvp
#define uio_timeout_val		uio_in.timeout_val
#define uio_error_code		uio_in.error_code

#endif __UIO