Deleted Added
full compact
ttyent.h (1540) ttyent.h (21189)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37#define _TTYENT_H_
38
39#define _PATH_TTYS "/etc/ttys"
40
41#define _TTYS_OFF "off"
42#define _TTYS_ON "on"
43#define _TTYS_SECURE "secure"
44#define _TTYS_WINDOW "window"
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37#define _TTYENT_H_
38
39#define _PATH_TTYS "/etc/ttys"
40
41#define _TTYS_OFF "off"
42#define _TTYS_ON "on"
43#define _TTYS_SECURE "secure"
44#define _TTYS_WINDOW "window"
45#define _TTYS_GROUP "group"
46#define _TTYS_NOGROUP "none"
45
46struct ttyent {
47 char *ty_name; /* terminal device name */
48 char *ty_getty; /* command to execute, usually getty */
49 char *ty_type; /* terminal type for termcap */
50#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
51#define TTY_SECURE 0x02 /* allow uid of 0 to login */
52 int ty_status; /* status flags */
53 char *ty_window; /* command to start up window manager */
54 char *ty_comment; /* comment field */
47
48struct ttyent {
49 char *ty_name; /* terminal device name */
50 char *ty_getty; /* command to execute, usually getty */
51 char *ty_type; /* terminal type for termcap */
52#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
53#define TTY_SECURE 0x02 /* allow uid of 0 to login */
54 int ty_status; /* status flags */
55 char *ty_window; /* command to start up window manager */
56 char *ty_comment; /* comment field */
57 char *ty_group; /* tty group */
55};
56
57#include <sys/cdefs.h>
58
59__BEGIN_DECLS
60struct ttyent *getttyent __P((void));
61struct ttyent *getttynam __P((const char *));
62int setttyent __P((void));
63int endttyent __P((void));
64__END_DECLS
65
66#endif /* !_TTYENT_H_ */
58};
59
60#include <sys/cdefs.h>
61
62__BEGIN_DECLS
63struct ttyent *getttyent __P((void));
64struct ttyent *getttynam __P((const char *));
65int setttyent __P((void));
66int endttyent __P((void));
67__END_DECLS
68
69#endif /* !_TTYENT_H_ */