xref: /titanic_52/usr/src/lib/libbc/inc/include/ttyent.h (revision d24234c24aeaca4ca56ee3ac2794507968f274c4)
1 /*
2  * Copyright 1987 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 /*
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.
12  */
13 
14 #ifndef _ttyent_h
15 #define _ttyent_h
16 
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 */
24 };
25 
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 */
29 
30 extern struct ttyent *getttyent();
31 extern struct ttyent *getttynam();
32 
33 #endif /*!_ttyent_h*/
34