Commit Graph

4132 Commits

Author SHA1 Message Date
Paul Eggert
ec764b0a95 (read_utmp): New arg OPTIONS. All uses changed.
(UT_PID): Moved here from ../src/who.c.
(READ_UTMP_CHECK_PIDS): New constant.
2005-03-30 05:19:11 +00:00
Paul Eggert
196fb1bc5c (read_utmp): New arg OPTIONS. All uses changed.
Include signal.h, stdbool.h.
(desirable_utmp_entry): New function.
(read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
using x2nrealloc, to simplify logic.
(read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
size calculation.
2005-03-30 05:18:37 +00:00
Jim Meyering
31927b4957 *** empty log message *** 2005-03-29 12:06:20 +00:00
Jim Meyering
363dc86fce (long_options): Use NULL, not `0'. 2005-03-29 11:56:10 +00:00
Jim Meyering
db632b64c4 *** empty log message *** 2005-03-27 16:40:43 +00:00
Jim Meyering
3cb5dca5ce (argmatch): Clarify comment: null-terminated -> NULL-terminated. 2005-03-27 16:40:02 +00:00
Paul Eggert
5bb064a261 Propagate intprops.h comment fixes to mktime.c and strftime.c. 2005-03-26 18:08:24 +00:00
Paul Eggert
759ae5e688 one's complement -> ones' complement 2005-03-26 17:55:33 +00:00
Paul Eggert
608c26a8fc one's complement -> ones' complement 2005-03-26 17:55:05 +00:00
Paul Eggert
e049d578cd Fix comment nits in intprops.h. 2005-03-26 17:49:37 +00:00
Paul Eggert
37a35280a4 Fix comment nits. 2005-03-26 17:49:22 +00:00
Jim Meyering
65118a9226 *** empty log message *** 2005-03-23 12:47:54 +00:00
Jim Meyering
94155d37e8 Remove duplicate `#include "stat-macros.h"'. 2005-03-23 12:47:46 +00:00
Jim Meyering
0c7d9eda5c . 2005-03-22 16:17:25 +00:00
Paul Eggert
4986d56f23 Regenerate. 2005-03-21 22:32:29 +00:00
Paul Eggert
3db2fe2c9f * Makefile.am (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.
2005-03-21 22:31:18 +00:00
Paul Eggert
e829931bd6 (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.
2005-03-21 22:31:05 +00:00
Paul Eggert
78fa4b674d Regenerate. 2005-03-21 20:37:19 +00:00
Paul Eggert
e0f53f4ecc Sync from gnulib. 2005-03-21 07:42:07 +00:00
Jim Meyering
33f2ed5c4d . 2005-03-19 14:20:47 +00:00
Paul Eggert
bd73d9d8b6 * strftime.c (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.
2005-03-19 05:33:16 +00:00
Paul Eggert
18445fac86 (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.
2005-03-19 05:33:01 +00:00
Paul Eggert
581b437d32 * strftime.c (my_strftime): Prepend space to format. 2005-03-16 01:01:36 +00:00
Paul Eggert
23f7577282 (my_strftime): Prepend space to format so that we can
reliably distinguish strftime failure from empty output on POSIX
hosts.
2005-03-16 01:01:23 +00:00
Paul Eggert
f7e5bc2908 Fix comments and indenting. 2005-03-15 00:44:29 +00:00
Paul Eggert
53d430be4e Sync mktime.c and strtol.c macros from intprops.h. 2005-03-15 00:40:17 +00:00
Paul Eggert
2f82566ff2 * strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
&& HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[].
2005-03-14 23:23:25 +00:00
Jim Meyering
e5d16d2b72 *** empty log message *** 2005-03-11 10:04:16 +00:00
Paul Eggert
4d645f3053 Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.
2005-03-09 23:22:14 +00:00
Jim Meyering
f0f31b512f *** empty log message *** 2005-03-09 23:21:10 +00:00
Jim Meyering
9d0f3eeb6c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.
2005-03-09 23:21:00 +00:00
Jim Meyering
5ccd8ce31d . 2005-03-09 23:16:07 +00:00
Jim Meyering
4f07deaab6 *** empty log message *** 2005-03-09 23:12:48 +00:00
Jim Meyering
d828d15348 (libfetish_a_SOURCES): Remove xstrtol.c and xstrtol.h. 2005-03-09 23:11:19 +00:00
Paul Eggert
707034f696 Factor int-properties macros into a single file, except for
glibc-related files.
2005-03-09 19:26:36 +00:00
Paul Eggert
f240872265 Include xstrtol.h first, to test interface.
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:58 +00:00
Paul Eggert
09aa89fc35 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:34 +00:00
Paul Eggert
d7506ef9cd Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
(utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
2005-03-09 19:25:14 +00:00
Paul Eggert
81e7c85bca Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:24:37 +00:00
Paul Eggert
6c5e34b431 Adjust comments to match intprops.h. 2005-03-09 19:24:15 +00:00
Paul Eggert
cb675ad062 (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
2005-03-09 19:23:59 +00:00
Paul Eggert
bdbdf51a00 Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:23:35 +00:00
Paul Eggert
5fd82cbf0d (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
2005-03-09 19:23:05 +00:00
Paul Eggert
064157578c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
2005-03-09 19:22:48 +00:00
Paul Eggert
111fada0c3 (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000. 2005-03-09 19:22:21 +00:00
Paul Eggert
67f958c224 Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
2005-03-09 19:22:05 +00:00
Paul Eggert
0040b0209c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:21:43 +00:00
Paul Eggert
b3c509e6ae * lib/fts.c: Include intprops.h.
(TYPE_SIGNED): Remove.
2005-03-09 19:21:20 +00:00
Paul Eggert
1c6661af1b Initial revision. 2005-03-09 19:20:59 +00:00
Jim Meyering
72a21d8bfe . 2005-03-09 10:17:51 +00:00