stropts.h revision 5d54f3d8999eac1762fe0a8c7177d20f1f201fae
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
#ifndef _sys_stropts_h
#define _sys_stropts_h
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Read options
*/
#define RNORM 0 /* read msg norm */
/*
* Flush options
*/
/*
* Events for which to be sent SIGPOLL signal
*/
/*
* Flags for recv() and send() syscall arguments
*/
/*
* Flags returned as value of recv() syscall
*/
#ifndef FMNAMESZ
#define FMNAMESZ 8
#endif
/*
* Stream Ioctl defines
*/
/*
* User level ioctl format for ioctl that go downstream I_STR
*/
struct strioctl {
int ic_cmd; /* command */
int ic_timout; /* timeout value */
int ic_len; /* length of data */
char *ic_dp; /* pointer to data */
};
/*
* Value for timeouts (ioctl, select) that denotes infinity
*/
#define INFTIM -1
/*
* Stream buffer structure for send and recv system calls
*/
struct strbuf {
int maxlen; /* no. of bytes in buffer */
int len; /* no. of bytes returned */
char *buf; /* pointer to data */
};
/*
* stream I_PEEK ioctl format
*/
struct strpeek {
long flags;
};
/*
* stream I_FDINSERT ioctl format
*/
struct strfdinsert {
long flags;
int fildes;
int offset;
};
/*
* receive file descriptor structure
*/
struct strrecvfd {
int fd;
unsigned short uid;
unsigned short gid;
char fill[8];
};
#endif /* !_sys_stropts_h */