123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- #ifndef _UTMPX_H
- #define _UTMPX_H 1
- #include <features.h>
- #include <sys/time.h>
- #ifndef __pid_t_defined
- typedef __pid_t pid_t;
- # define __pid_t_defined
- #endif
- #include <bits/utmpx.h>
- #ifdef __USE_GNU
- # define UTMPX_FILE _PATH_UTMPX
- # define UTMPX_FILENAME _PATH_UTMPX
- # define WTMPX_FILE _PATH_WTMPX
- # define WTMPX_FILENAME _PATH_WTMPX
- #endif
- #ifdef __USE_GNU
- struct utmp;
- #endif
- __BEGIN_DECLS
- extern void setutxent (void);
- extern void endutxent (void);
- extern struct utmpx *getutxent (void);
- extern struct utmpx *getutxid (const struct utmpx *__id);
- extern struct utmpx *getutxline (const struct utmpx *__line);
- extern struct utmpx *pututxline (const struct utmpx *__utmpx);
- #ifdef __USE_GNU
- extern int utmpxname (const char *__file);
- extern void updwtmpx (const char *__wtmpx_file,
- const struct utmpx *__utmpx);
- extern void getutmp (const struct utmpx *__utmpx,
- struct utmp *__utmp);
- extern void getutmpx (const struct utmp *__utmp, struct utmpx *__utmpx);
- #endif
- __END_DECLS
- #endif
|