summaryrefslogtreecommitdiff
path: root/libc/misc/utmp/utent.c
diff options
context:
space:
mode:
authorSalvatore Cro <salvatore.cro@st.com>2010-09-09 13:38:15 (GMT)
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-09-14 12:36:00 (GMT)
commit7ac7be14eb4c8927fddffbe01fed74c605bf8597 (patch)
treeb71a3a55de3efc6332b5b085f587d8be3247354e /libc/misc/utmp/utent.c
parent77f573c668505a3a408b3e8fb877b8f76bbdd6f6 (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 'libc/misc/utmp/utent.c')
-rw-r--r--libc/misc/utmp/utent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c
index a678130..bf265c2 100644
--- a/libc/misc/utmp/utent.c
+++ b/libc/misc/utmp/utent.c
@@ -98,6 +98,7 @@ struct utmp *getutent(void)
__UCLIBC_MUTEX_UNLOCK(utmplock);
return ret;
}
+libc_hidden_def(getutent)
#endif
void endutent(void)
@@ -108,6 +109,7 @@ void endutent(void)
static_fd = -1;
__UCLIBC_MUTEX_UNLOCK(utmplock);
}
+libc_hidden_def(endutent)
/* This function must be called with the LOCK held */
static_if_threaded struct utmp *__getutid(const struct utmp *utmp_entry)
@@ -160,6 +162,7 @@ struct utmp *getutline(const struct utmp *utmp_entry)
__UCLIBC_MUTEX_UNLOCK(utmplock);
return lutmp;
}
+libc_hidden_def(getutline)
struct utmp *pututline(const struct utmp *utmp_entry)
{
@@ -178,6 +181,7 @@ struct utmp *pututline(const struct utmp *utmp_entry)
__UCLIBC_MUTEX_UNLOCK(utmplock);
return (struct utmp *)utmp_entry;
}
+libc_hidden_def(pututline)
int utmpname(const char *new_ut_name)
{
@@ -200,3 +204,4 @@ int utmpname(const char *new_ut_name)
__UCLIBC_MUTEX_UNLOCK(utmplock);
return 0; /* or maybe return -(static_ut_name != new_ut_name)? */
}
+libc_hidden_def(utmpname)