diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-14 23:46:06 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-15 00:43:49 -0600 |
commit | bf7102a303ec86f2d9bc9fd451db78a6815ca175 (patch) | |
tree | 561b592a27625663559f83d330c5b4d221ed7d81 /libgcompat | |
parent | 2d70dfb7ae8a3da8015ee9195fa600bf77358764 (diff) | |
download | gcompat-bf7102a303ec86f2d9bc9fd451db78a6815ca175.tar.gz gcompat-bf7102a303ec86f2d9bc9fd451db78a6815ca175.tar.bz2 gcompat-bf7102a303ec86f2d9bc9fd451db78a6815ca175.tar.xz gcompat-bf7102a303ec86f2d9bc9fd451db78a6815ca175.zip |
utmp: Implement the reentrant utmp function from LSB
This takes advantage of the (lack of a) musl implementation for
simplicity.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/utmp.c | 14 |
1 files changed, 14 insertions, 0 deletions
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; +} |