1*60593Sbostic /*-
2*60593Sbostic  * Copyright (c) 1993 The Regents of the University of California.
338024Sbostic  * All rights reserved.
438024Sbostic  *
538024Sbostic  * This code is derived from software contributed to Berkeley by
638024Sbostic  * Bill Jolitz.
738024Sbostic  *
8*60593Sbostic  * %sccs.include.redist.c%
938024Sbostic  *
10*60593Sbostic  *	@(#)ttyent.h	5.2 (Berkeley) 05/29/93
1138024Sbostic  */
1238024Sbostic 
1338024Sbostic struct	ttyent { /* see getttyent(3) */
1438024Sbostic 	char	*ty_name;	/* terminal device name */
1538024Sbostic 	char	*ty_getty;	/* command to execute, usually getty */
1638024Sbostic 	char	*ty_type;	/* terminal type for termcap (3X) */
1738024Sbostic 	int	ty_status;	/* status flags (see below for defines) */
1838024Sbostic 	char 	*ty_window;	/* command to start up window manager */
1938024Sbostic 	char	*ty_comment;	/* usually the location of the terminal */
2038024Sbostic 	char	**ty_flags ;	/* list of flag strings, null terminated */
2138024Sbostic };
2238024Sbostic 
2338024Sbostic #define TTY_ON		0x1	/* enable logins (startup getty) */
2438024Sbostic #define TTY_SECURE	0x2	/* allow root to login */
2538024Sbostic 
2638024Sbostic extern struct ttyent *getttyent();
2738024Sbostic extern struct ttyent *getttynam();
28