1 /*- 2 * Copyright (c) 1993 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Bill Jolitz. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)ttyent.h 5.2 (Berkeley) 05/29/93 11 */ 12 13 struct ttyent { /* see getttyent(3) */ 14 char *ty_name; /* terminal device name */ 15 char *ty_getty; /* command to execute, usually getty */ 16 char *ty_type; /* terminal type for termcap (3X) */ 17 int ty_status; /* status flags (see below for defines) */ 18 char *ty_window; /* command to start up window manager */ 19 char *ty_comment; /* usually the location of the terminal */ 20 char **ty_flags ; /* list of flag strings, null terminated */ 21 }; 22 23 #define TTY_ON 0x1 /* enable logins (startup getty) */ 24 #define TTY_SECURE 0x2 /* allow root to login */ 25 26 extern struct ttyent *getttyent(); 27 extern struct ttyent *getttynam(); 28