diff options
author | Salvatore Cro <salvatore.cro@st.com> | 2010-09-09 15:38:15 +0200 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2010-09-14 14:36:00 +0200 |
commit | 7ac7be14eb4c8927fddffbe01fed74c605bf8597 (patch) | |
tree | b71a3a55de3efc6332b5b085f587d8be3247354e /include/utmp.h | |
parent | 77f573c668505a3a408b3e8fb877b8f76bbdd6f6 (diff) |
misc: utmpx based logging support
misc: Added support for accessing user accounting database based
on utmpx structure.
Signed-off-by: Salvatore Cro <salvatore.cro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'include/utmp.h')
-rw-r--r-- | include/utmp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utmp.h b/include/utmp.h index 27454a66a..e80b65b7d 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -57,12 +57,15 @@ extern void logwtmp (__const char *__ut_line, __const char *__ut_name, /* Append entry UTMP to the wtmp-like file WTMP_FILE. */ extern void updwtmp (__const char *__wtmp_file, __const struct utmp *__utmp) __THROW; +libc_hidden_proto(updwtmp) /* Change name of the utmp file to be examined. */ extern int utmpname (__const char *__file) __THROW; +libc_hidden_proto(utmpname) /* Read next entry from a utmp-like file. */ extern struct utmp *getutent (void) __THROW; +libc_hidden_proto(getutent) /* Reset the input stream to the beginning of the file. */ extern void setutent (void) __THROW; @@ -70,6 +73,7 @@ libc_hidden_proto(setutent) /* Close the current open file. */ extern void endutent (void) __THROW; +libc_hidden_proto(endutent) /* Search forward from the current point in the utmp file until the next entry with a ut_type matching ID->ut_type. */ @@ -78,9 +82,11 @@ extern struct utmp *getutid (__const struct utmp *__id) __THROW; /* Search forward from the current point in the utmp file until the next entry with a ut_line matching LINE->ut_line. */ extern struct utmp *getutline (__const struct utmp *__line) __THROW; +libc_hidden_proto(getutline) /* Write out entry pointed to by UTMP_PTR into the utmp file. */ extern struct utmp *pututline (__const struct utmp *__utmp_ptr) __THROW; +libc_hidden_proto(pututline) #if 0 /* def __USE_MISC */ |