diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | libgcompat/utmp.c | 14 |
2 files changed, 15 insertions, 0 deletions
@@ -24,6 +24,7 @@ LIBGCOMPAT_SRC = \ libgcompat/syslog.c \ libgcompat/ucontext.c \ libgcompat/unistd.c \ + libgcompat/utmp.c \ libgcompat/version.c \ libgcompat/wchar.c LIBGCOMPAT_OBJ = ${LIBGCOMPAT_SRC:.c=.o} diff --git a/libgcompat/utmp.c b/libgcompat/utmp.c new file mode 100644 index 0000000..c2bdd91 --- /dev/null +++ b/libgcompat/utmp.c @@ -0,0 +1,14 @@ +#include <stddef.h> /* NULL */ +#include <utmp.h> /* struct utmp */ + +/** + * Get user accounting database entries. + * + * LSB 5.0: LSB-Core-generic/baselib-getutent-r-3.html + */ +int getutent_r(struct utmp *buffer, struct utmp **result) +{ + /* musl does not implement getutent(). */ + *result = NULL; + return -1; +} |