123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef _UTMP_H
- #define _UTMP_H 1
- #include <features.h>
- #include <sys/types.h>
- __BEGIN_DECLS
- #include <bits/utmp.h>
- #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
|