2 * Copyright 1987 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 #pragma ident "%Z%%M% %I% %E% SMI"
9 * Copyright (c) 1983 Regents of the University of California.
10 * All rights reserved. The Berkeley software License Agreement
11 * specifies the terms and conditions for redistribution.
17 struct ttyent
{ /* see getttyent(3) */
18 char *ty_name
; /* terminal device name */
19 char *ty_getty
; /* command to execute, usually getty */
20 char *ty_type
; /* terminal type for termcap (3X) */
21 int ty_status
; /* status flags (see below for defines) */
22 char *ty_window
; /* command to start up window manager */
23 char *ty_comment
; /* usually the location of the terminal */
26 #define TTY_ON 0x1 /* enable logins (startup getty) */
27 #define TTY_SECURE 0x2 /* allow root to login */
28 #define TTY_LOCAL 0x4 /* local tty, supply software carrier */
30 extern struct ttyent
*getttyent();
31 extern struct ttyent
*getttynam();