session.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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>
1, /* s_ref */
0555, /* s_mode */
0, /* s_uid */
0, /* s_gid */
0, /* s_ctime */
NODEV, /* s_dev */
NULL, /* s_vp */
&pid0, /* s_sidp */
NULL /* s_cred */
};
void
{
panic("sp == &session0");
}
}
void
sess_create(void)
{
/*
* We need to protect p_pgidp with p_lock because
* /proc looks at it while holding only p_lock.
*/
}
void
{
}
/*
* It is possible for the VOP_CLOSE below to call strctty
* and reallocate a new tty vnode. To prevent that the
* session is marked as closing here.
*/
/*
* This will be the only thread with access to
* this vnode, from this point on.
*/
}
/*
* ++++++++++++++++++++++++
* ++ SunOS4.1 Buyback ++
* ++++++++++++++++++++++++
*
* vhangup: Revoke access of the current tty by all processes
* Used by privileged users to give a "clean" terminal at login
*/
int
vhangup()
{
/*
* This routine used to call freectty() under a condition that
* could never happen. So this code has never actually done
* anything, and evidently nobody has ever noticed. 4098399.
*/
return (0);
}
{
return (NODEV);
}
void
{
else
}
int
{
int shift = 0;
shift += 3;
shift += 3;
}
if (mode == 0)
return (1);
}