xref: /titanic_50/usr/src/lib/libbc/inc/include/ttyent.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright 1987 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate  */
5*7c478bd9Sstevel@tonic-gate 
6*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
7*7c478bd9Sstevel@tonic-gate 
8*7c478bd9Sstevel@tonic-gate /*
9*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1983 Regents of the University of California.
10*7c478bd9Sstevel@tonic-gate  * All rights reserved.  The Berkeley software License Agreement
11*7c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
12*7c478bd9Sstevel@tonic-gate  */
13*7c478bd9Sstevel@tonic-gate 
14*7c478bd9Sstevel@tonic-gate #ifndef _ttyent_h
15*7c478bd9Sstevel@tonic-gate #define _ttyent_h
16*7c478bd9Sstevel@tonic-gate 
17*7c478bd9Sstevel@tonic-gate struct	ttyent { /* see getttyent(3) */
18*7c478bd9Sstevel@tonic-gate 	char	*ty_name;	/* terminal device name */
19*7c478bd9Sstevel@tonic-gate 	char	*ty_getty;	/* command to execute, usually getty */
20*7c478bd9Sstevel@tonic-gate 	char	*ty_type;	/* terminal type for termcap (3X) */
21*7c478bd9Sstevel@tonic-gate 	int	ty_status;	/* status flags (see below for defines) */
22*7c478bd9Sstevel@tonic-gate 	char 	*ty_window;	/* command to start up window manager */
23*7c478bd9Sstevel@tonic-gate 	char	*ty_comment;	/* usually the location of the terminal */
24*7c478bd9Sstevel@tonic-gate };
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #define TTY_ON		0x1	/* enable logins (startup getty) */
27*7c478bd9Sstevel@tonic-gate #define TTY_SECURE	0x2	/* allow root to login */
28*7c478bd9Sstevel@tonic-gate #define TTY_LOCAL	0x4	/* local tty, supply software carrier */
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate extern struct ttyent *getttyent();
31*7c478bd9Sstevel@tonic-gate extern struct ttyent *getttynam();
32*7c478bd9Sstevel@tonic-gate 
33*7c478bd9Sstevel@tonic-gate #endif /*!_ttyent_h*/
34