1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #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
- #ifdef __UCLIBC_HAS_LIBUTIL__
- extern int login_tty (int __fd) __THROW;
- libutil_hidden_proto(login_tty)
- 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;
- #endif
- 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;
- #if 0
- 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
|