/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include "lint.h"
#include "libc.h"
#include "mtlib.h"
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <wait.h>
#include <spawn.h>
#include <grp.h>
#include "tsd.h"
static void itoa(int, char *);
/*
* Check that fd argument is a file descriptor of an opened master.
* Do this by sending an ISPTM ioctl message down stream. Ioctl()
* will fail if:(1) fd is not a valid file descriptor.(2) the file
* represented by fd does not understand ISPTM(not a master device).
* If we have a valid master, get its minor number via fstat().
* Concatenate it to PTSNAME and return it as the name of the slave
* device.
*/
static dev_t
{
return (NODEV);
}
char *
{
char *sname;
return (NULL);
return (NULL);
/*
* pty exists.
*/
return (sname);
return (NULL);
}
/*
* Send an ioctl down to the master device requesting the
*/
int
{
return (-1);
return (0);
}
int
{
/* validate the file descriptor before proceeding */
return (-1);
if (gr_name)
else
return (-1);
}
return (0);
}
/*
* be assigned to the given zone.
*/
int
{
return (-1);
}
return (0);
}
static void
{
int dig = 0;
int tempi;
tempi = i;
do {
dig++;
tempi /= 10;
} while (tempi);
*ptr = '\0';
while (--dig >= 0) {
i /= 10;
}
}
/*
* added for SUSv3 standard
*
* Open a pseudo-terminal device. External interface.
*/
int
{
}