1 /* 2 * Copyright (c) 1989 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)ttyent.h 5.6 (Berkeley) 02/05/91 8 */ 9 10 #define _PATH_TTYS "/etc/ttys" 11 12 #define _TTYS_OFF "off" 13 #define _TTYS_ON "on" 14 #define _TTYS_SECURE "secure" 15 #define _TTYS_WINDOW "window" 16 17 struct ttyent { 18 char *ty_name; /* terminal device name */ 19 char *ty_getty; /* command to execute, usually getty */ 20 char *ty_type; /* terminal type for termcap */ 21 #define TTY_ON 0x01 /* enable logins (start ty_getty program) */ 22 #define TTY_SECURE 0x02 /* allow uid of 0 to login */ 23 int ty_status; /* status flags */ 24 char *ty_window; /* command to start up window manager */ 25 char *ty_comment; /* comment field */ 26 }; 27 28 #include <sys/cdefs.h> 29 30 __BEGIN_DECLS 31 struct ttyent *getttyent __P((void)); 32 struct ttyent *getttynam __P((const char *)); 33 int setttyent __P((void)); 34 int endttyent __P((void)); 35 __END_DECLS 36