/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/socketvar.h>
/*
* STREAMS system calls.
*/
int *flagsp);
int flags);
int
{
int error;
int localflags;
int realflags = 0;
unsigned char pri = 0;
int rv = 0;
/*
* Convert between old flags (localflags) and new flags (realflags).
*/
switch (localflags) {
case 0:
break;
case RS_HIPRI:
break;
default:
}
&realflags)) == 0) {
/*
* massage realflags based on localflags.
*/
else
localflags = 0;
}
if (error != 0)
return (rv);
}
int
{
unsigned char pri = 0;
int realflags;
int error;
int rv = 0;
switch (flags) {
case RS_HIPRI:
break;
break;
case MSG_XPG4:
break;
case 0:
break;
default:
}
if (error != 0)
return (rv);
}
int
int *flagsp)
{
int error;
int flags;
int intpri;
unsigned char pri;
int rv = 0;
if (error != 0)
return (rv);
}
int
int flags)
{
unsigned char pri;
int rv = 0;
int error;
if (error != 0)
return (rv);
}
/*
* Common code for getmsg and putmsg calls: check permissions,
* copy in args, do preliminary setup, and switch to
* appropriate stream routine.
*/
static int
{
int error;
int flag;
return (EBADF);
return (EBADF);
}
/*
* must use sd_vnode, could be named pipe
*/
} else {
return (ENOSTR);
}
return (ENOSTR);
}
return (EFAULT);
}
return (EFAULT);
}
} else {
}
if (error != 0) {
return (error);
}
return (EFAULT);
}
return (0);
}
/*
* FWRITE case
*/
flag);
} else {
}
return (error);
}
#if defined(_LP64) && defined(_SYSCALL32)
int
{
int error;
int realflags = 0;
unsigned char pri = 0;
int rv = 0;
/*
* Convert between old flags (localflags) and new flags (realflags).
*/
switch (localflags) {
case 0:
break;
case RS_HIPRI:
break;
default:
}
&realflags)) == 0) {
/*
* massage realflags based on localflags.
*/
else
localflags = 0;
}
if (error != 0)
return (rv);
}
int
{
unsigned char pri = 0;
int realflags;
int error;
int rv = 0;
switch (flags) {
case RS_HIPRI:
break;
break;
case MSG_XPG4:
break;
case 0:
break;
default:
}
if (error != 0)
return (rv);
}
int
{
int error;
unsigned char pri;
int rv = 0;
if (error != 0)
return (rv);
}
int
{
unsigned char pri;
int rv = 0;
int error;
if (error != 0)
return (rv);
}
/*
* Common code for getmsg and putmsg calls: check permissions,
* copy in args, do preliminary setup, and switch to
* appropriate stream routine.
*/
static int
{
int error;
int flag;
return (EBADF);
return (EBADF);
}
/*
* must use sd_vnode, could be named pipe
*/
} else {
return (ENOSTR);
}
return (ENOSTR);
}
return (EFAULT);
}
}
return (EFAULT);
}
}
} else {
}
if (error != 0) {
return (error);
}
/* XX64 - range check */
return (EFAULT);
}
}
/* XX64 - range check */
return (EFAULT);
}
}
return (0);
}
/*
* FWRITE case
*/
flag);
} else {
}
return (error);
}
#endif /* _LP64 && _SYSCALL32 */