ttyent.h
#ifndef _TTYENT_H
#define _TTYENT_H 1
#include
#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
|
|