|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: pty.c,v 1.5 1996/08/09 00:26:15 deraadt Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: pty.c,v 1.6 1999/05/24 21:24:29 deraadt Exp $ */ |
|
|
/*- |
|
|
/*- |
|
|
* Copyright (c) 1990, 1993 |
|
|
* Copyright (c) 1990, 1993 |
|
|
* The Regents of the University of California. All rights reserved. |
|
|
* The Regents of the University of California. All rights reserved. |
|
@ -34,7 +34,7 @@ |
|
|
|
|
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
/* from: static char sccsid[] = "@(#)pty.c 8.1 (Berkeley) 6/4/93"; */ |
|
|
/* from: static char sccsid[] = "@(#)pty.c 8.1 (Berkeley) 6/4/93"; */ |
|
|
static char *rcsid = "$Id: pty.c,v 1.5 1996/08/09 00:26:15 deraadt Exp $"; |
|
|
|
|
|
|
|
|
static char *rcsid = "$Id: pty.c,v 1.6 1999/05/24 21:24:29 deraadt Exp $"; |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
|
|
|
|
|
|
#include <sys/cdefs.h> |
|
|
#include <sys/cdefs.h> |
|
@ -60,7 +60,7 @@ openpty(amaster, aslave, name, termp, winp) |
|
|
struct termios *termp; |
|
|
struct termios *termp; |
|
|
struct winsize *winp; |
|
|
struct winsize *winp; |
|
|
{ |
|
|
{ |
|
|
static char line[] = "/dev/ptyXX"; |
|
|
|
|
|
|
|
|
char line[] = "/dev/ptyXX"; |
|
|
register const char *cp1, *cp2; |
|
|
register const char *cp1, *cp2; |
|
|
register int master, slave, ttygid; |
|
|
register int master, slave, ttygid; |
|
|
struct group *gr; |
|
|
struct group *gr; |
|
|