1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef __INTERNAL_UTMP_H
- #define __INTERNAL_UTMP_H
- #include <utmpx.h>
- #include <utmp.h>
- #if (defined __UCLIBC_HAS_UTMPX__ && defined __UCLIBC_HAS_UTMP__) \
- || !defined __UCLIBC_HAS_UTMP__
- # define __set_unlocked __setutxent_unlocked
- # define set setutxent
- # define __get_unlocked __getutxent_unlocked
- # define get getutxent
- # define end endutxent
- # define __getid_unlocked __getutxid_unlocked
- # define getid getutxid
- # define getline getutxline
- # define putline pututxline
- # define name utmpxname
- # define updw updwtmpx
- # define UT utmpx
- # ifndef __DEFAULT_PATH_UTMP
- # define __DEFAULT_PATH_UTMP _PATH_UTMPX
- # endif
- # if defined __UCLIBC_HAS_UTMP__
- # define other(n,a) strong_alias_untyped(n,a)
- # else
- # define other(n,a)
- # endif
- #elif defined __UCLIBC_HAS_UTMP__
- # define __set_unlocked __setutent_unlocked
- # define set setutent
- # define __get_unlocked __getutent_unlocked
- # define get getutent
- # define end endutent
- # define __getid_unlocked __getutid_unlocked
- # define getid getutid
- # define getline getutline
- # define putline pututline
- # define name utmpname
- # define updw updwtmp
- # define UT utmp
- # ifndef __DEFAULT_PATH_UTMP
- # define __DEFAULT_PATH_UTMP _PATH_UTMP
- # endif
- # define other(n,a)
- #else
- #error You are supposed to either have UTMP or UTMPX or both here
- #endif
- #ifdef IS_IN_libutil
- # if (defined __UCLIBC_HAS_UTMPX__ && defined __UCLIBC_HAS_UTMP__) \
- || !defined __UCLIBC_HAS_UTMP__
-
- # define setutent setutxent
- # define getutline getutxline
- # define pututline pututxline
- # define endutent endutxent
- # define updwtmp updwtmpx
- # endif
- #endif
- #endif
|