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