date and time created 89/05/16 08:59:35 by bostic
[unix-history] / usr / src / contrib / connectd / include / ttyent.h
CommitLineData
91f6360c
KB
1/*
2 * Copyright (c) 1989 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Bill Jolitz.
7 *
8 * Redistribution and use in source and binary forms are permitted
9 * provided that the above copyright notice and this paragraph are
10 * duplicated in all such forms and that any documentation,
11 * advertising materials, and other materials related to such
12 * distribution and use acknowledge that the software was developed
13 * by the University of California, Berkeley. The name of the
14 * University may not be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 *
20 * @(#)ttyent.h 5.1 (Berkeley) %G%
21 */
22
23struct ttyent { /* see getttyent(3) */
24 char *ty_name; /* terminal device name */
25 char *ty_getty; /* command to execute, usually getty */
26 char *ty_type; /* terminal type for termcap (3X) */
27 int ty_status; /* status flags (see below for defines) */
28 char *ty_window; /* command to start up window manager */
29 char *ty_comment; /* usually the location of the terminal */
30 char **ty_flags ; /* list of flag strings, null terminated */
31};
32
33#define TTY_ON 0x1 /* enable logins (startup getty) */
34#define TTY_SECURE 0x2 /* allow root to login */
35
36extern struct ttyent *getttyent();
37extern struct ttyent *getttynam();