utmp.h
#ifndef _UTMP_H
#define _UTMP_H 1
#include
#include
__BEGIN_DECLS
#include
#define UTMP_FILE _PATH_UTMP
#define UTMP_FILENAME _PATH_UTMP
#define WTMP_FILE _PATH_WTMP
#define WTMP_FILENAME _PATH_WTMP
extern int login_tty (int __fd) __THROW;
extern void login (__const struct utmp *__entry) __THROW;
extern int logout (__const char *__ut_line) __THROW;
extern void logwtmp (__const char *__ut_line, __const char *__ut_name,
__const char *__ut_host) __THROW;
extern void updwtmp (__const char *__wtmp_file, __const struct utmp *__utmp)
__THROW;
extern int utmpname (__const char *__file) __THROW;
extern struct utmp *getutent (void) __THROW;
extern void setutent (void) __THROW;
extern void endutent (void) __THROW;
extern struct utmp *getutid (__const struct utmp *__id) __THROW;
extern struct utmp *getutline (__const struct utmp *__line) __THROW;
extern struct utmp *pututline (__const struct utmp *__utmp_ptr) __THROW;
#ifdef __USE_MISC
extern int getutent_r (struct utmp *__buffer, struct utmp **__result) __THROW;
extern int getutid_r (__const struct utmp *__id, struct utmp *__buffer,
struct utmp **__result) __THROW;
extern int getutline_r (__const struct utmp *__line,
struct utmp *__buffer, struct utmp **__result) __THROW;
#endif
__END_DECLS
#endif
|
|