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.5 (Berkeley) 06/01/90 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 #if __STDC__ || c_plusplus 29 extern struct ttyent *getttyent(void); 30 extern struct ttyent *getttynam(const char *); 31 extern int setttyent(void); 32 extern int endttyent(void); 33 #else 34 extern struct ttyent *getttyent(); 35 extern struct ttyent *getttynam(); 36 extern int setttyent(); 37 extern int endttyent(); 38 #endif 39