12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #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
|