summaryrefslogtreecommitdiff
path: root/lib/readutmp.c
AgeCommit message (Collapse)Author
2004-10-04Sync from gnulib, to remove dependencies of other modules on unlocked-io.Paul Eggert
2004-08-02(read_utmp): Don't assume that the number of users is less than INT_MAX.Paul Eggert
Check for integer overflow in size calculations. Return -1 (not 1) on failure, since we set errno in that case.
2004-06-12(extract_trimmed_name): Don't apply strchr to aJim Meyering
non-string; this leads to undefined behavior.
2004-04-19(read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc failure,Jim Meyering
don't leak memory and do call END_UTMP_ENT.
2003-10-16Fix indentation, from gnulib.Jim Meyering
2003-09-17(read_utmp): Likewise.Jim Meyering
Check for fstat error. Close stream and free storage when failing.
2003-04-11Include <string.h> and <stdlib.h> unconditionally.Jim Meyering
2003-04-11Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.Jim Meyering
2003-01-10Don't declare functions declared by xalloc.h.Jim Meyering
Include "xalloc.h" instead.
2001-11-17Include unlocked-io.h.Jim Meyering
2000-04-05Include sys/types.h before sys/stat.h.Jim Meyering
Required for ultrix4.3.
2000-02-03(read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',Jim Meyering
rather than with `#if HAVE_UTMPNAME'.
2000-01-30(extract_trimmed_name): Use UT_USER instead of hard-codingJim Meyering
uses of ->ut_name. The latter doesn't work with new Linux header files where only utmpx.ut_user is declared.
1999-05-05(read_utmp): Use the new definitions.Jim Meyering
1999-05-03(read_utmp): Ignore the return value from utmpname.Jim Meyering
1999-03-02(read_utmp) [HAVE_UTMPNAME]: Rewrite.Jim Meyering
1999-02-08Include stdio.h.Jim Meyering
1999-02-08*** empty log message ***Jim Meyering
1998-05-16(read_utmp): Add variant for systems that have the utmpname function.Jim Meyering
Ansideclify.
1997-07-13don't include error.h.Jim Meyering
1997-07-13(read_utmp): Take new params: count and buffer.Jim Meyering
Return boolean indicating failure. Now, caller must give diagnostic upon.
1997-07-13.Jim Meyering