add DR_NEWINODEFMT to indicate new format inodes on tape
[unix-history] / usr / src / include / ttyent.h
... / ...
CommitLineData
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.7 (Berkeley) %G%
8 */
9
10#ifndef _TTYENT_H_
11#define _TTYENT_H_
12
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 {
21 char *ty_name; /* terminal device name */
22 char *ty_getty; /* command to execute, usually getty */
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 */
27 char *ty_window; /* command to start up window manager */
28 char *ty_comment; /* comment field */
29};
30
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
39
40#endif /* !_TTYENT_H_ */