BSD 4_3_Tahoe release
[unix-history] / usr / include / ttyent.h
CommitLineData
bb0cfa24
DF
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
95f51977 6 * @(#)ttyent.h 5.1 (Berkeley) 5/30/85
bb0cfa24 7 */
bec2ec44
RC
8
9struct ttyent { /* see getttyent(3) */
10 char *ty_name; /* terminal device name */
3dded225 11 char *ty_getty; /* command to execute, usually getty */
bec2ec44
RC
12 char *ty_type; /* terminal type for termcap (3X) */
13 int ty_status; /* status flags (see below for defines) */
3dded225
RC
14 char *ty_window; /* command to start up window manager */
15 char *ty_comment; /* usually the location of the terminal */
bec2ec44
RC
16};
17
18#define TTY_ON 0x1 /* enable logins (startup getty) */
19#define TTY_SECURE 0x2 /* allow root to login */
20
21extern struct ttyent *getttyent();
22extern struct ttyent *getttynam();