mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2026-10-24 00:48:56 +03:00
* m4/wtmpdb.m4: New file. * m4/readutmp.m4 (gl_READUTMP): Invoke gl_WTMPDB_CHOICE. Define READUTMP_USE_WTMPDB. Take it into account for READUTMP_LIB. * lib/readutmp.h (WTMPDB_FILE): New macro. * lib/readutmp.c: Include <wtmpdb.h>. (wtmpdb_time_to_timespec): New function. (struct wtmpdb_locals): New type. (wtmpdb_callback, read_utmp_from_wtmpdb): New functions. (read_utmp): For WTMP_FILE, conditionally use read_utmp_from_wtmpdb. * modules/readutmp (Files): Add m4/wtmpdb.m4. (Depends-on): Add str_endswith. * DEPENDENCIES: Mention libwtmpdb.
17 KiB
17 KiB