lots of semantic sugar, do things the 4BSD way... ;-}
[unix-history] / usr / src / include / ttyent.h
CommitLineData
bb0cfa24 1/*
d6c17d94
KB
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
bb0cfa24 4 *
269a7923 5 * %sccs.include.redist.c%
7ca14059 6 *
d6c17d94 7 * @(#)ttyent.h 8.1 (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
20struct 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
34struct ttyent *getttyent __P((void));
35struct ttyent *getttynam __P((const char *));
36int setttyent __P((void));
37int endttyent __P((void));
38__END_DECLS
b890cc7a
KB
39
40#endif /* !_TTYENT_H_ */