ANSI
[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 *
91befe9c 7 * @(#)ttyent.h 5.6 (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
91befe9c
KB
28#include <sys/cdefs.h>
29
30__BEGIN_DECLS
31struct ttyent *getttyent __P((void));
32struct ttyent *getttynam __P((const char *));
33int setttyent __P((void));
34int endttyent __P((void));
35__END_DECLS