1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef _TTYENT_H
- #define _TTYENT_H 1
- #include <features.h>
- #define _PATH_TTYS "/etc/ttys"
- #define _TTYS_OFF "off"
- #define _TTYS_ON "on"
- #define _TTYS_SECURE "secure"
- #define _TTYS_WINDOW "window"
- struct ttyent {
- char *ty_name;
- char *ty_getty;
- char *ty_type;
- #define TTY_ON 0x01
- #define TTY_SECURE 0x02
- int ty_status;
- char *ty_window;
- char *ty_comment;
- };
- __BEGIN_DECLS
- extern struct ttyent *getttyent (void) __THROW;
- extern struct ttyent *getttynam (const char *__tty) __THROW;
- extern int setttyent (void) __THROW;
- extern int endttyent (void) __THROW;
- __END_DECLS
- #endif
|