new copyright
[unix-history] / usr / src / include / ttyent.h
CommitLineData
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 *
269a7923 7 * @(#)ttyent.h 5.5 (Berkeley) %G%
bb0cfa24 8 */
bec2ec44 9
7ca14059
KB
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
17struct ttyent {
bec2ec44 18 char *ty_name; /* terminal device name */
3dded225 19 char *ty_getty; /* command to execute, usually getty */
7ca14059
KB
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 */
3dded225 24 char *ty_window; /* command to start up window manager */
7ca14059 25 char *ty_comment; /* comment field */
bec2ec44
RC
26};
27
6670c0eb 28#if __STDC__ || c_plusplus
e7ce7d7c
KB
29extern struct ttyent *getttyent(void);
30extern struct ttyent *getttynam(const char *);
31extern int setttyent(void);
32extern int endttyent(void);
33#else
34extern struct ttyent *getttyent();
35extern struct ttyent *getttynam();
36extern int setttyent();
37extern int endttyent();
38#endif