summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2004-12-08Add support for time zones like +HH:MM and UTC+HH:MM.Paul Eggert
2004-12-08(textint): New member "negative".Paul Eggert
(time_zone_hhmm): New function. Expect 14 shift-reduce conflicts, not 13. (o_colon_minutes): New rule. (time, zone): Use it to add support for +HH:MM, UTC+HH:MM. (yylex): Set the "negative" member of signed numbers.
2004-12-06.Jim Meyering
2004-12-06*** empty log message ***Jim Meyering
2004-12-06(libfetish_a_SOURCES): Begin removing .c and .h file names, as theyJim Meyering
are added to AC_LIBSOURCES directives in the corresponding m4/*.m4 files.
2004-12-05.Jim Meyering
2004-12-05*** empty log message ***Jim Meyering
2004-12-05(unit-test): Depend on t-fpending.Jim Meyering
Make the target .PHONY.
2004-12-05*** empty log message ***Jim Meyering
2004-12-05.Jim Meyering
2004-12-05*** empty log message ***Jim Meyering
2004-12-05(LDADD): Define.Jim Meyering
2004-12-05.Jim Meyering
2004-12-05*** empty log message ***Jim Meyering
2004-12-05*** empty log message ***Jim Meyering
2004-12-05(unit-test): New target.Jim Meyering
(check): Depend on it. (noinst_PROGRAMS): Define.
2004-12-05Test the __fpending function.Jim Meyering
This ensures that if there is an error in the definition of the PENDING_OUTPUT_N_BYTES expression, we'll find about it right away; that value is used only in the rare event that close_stdout's fclose fails with EBADF.
2004-12-05revert to 1.8, now that we test the offendingJim Meyering
condition externally (via new t-fpending.c program)
2004-12-05*** empty log message ***Jim Meyering
2004-12-05*** empty log message ***Jim Meyering
2004-12-05Include <stdlib.h>.Jim Meyering
(__fpending): Abort if PENDING_OUTPUT_N_BYTES is negative. This ensures that if there is an error in the definition of the PENDING_OUTPUT_N_BYTES expression, we'll find about it right away; this value is used only in the rare event that close_stdout's fclose fails with EBADF.
2004-12-03Recent changes to save-cwd, openat.Paul Eggert
2004-12-03Import from gnulib.Paul Eggert
2004-12-03Add copyright and authorship notice.Paul Eggert
(AT_FDCWD): Use the same value Solaris 9 uses.
2004-12-03Include "openat.h" before other include files.Paul Eggert
Include "exitfail.h". (openat): Remove #undef; no longer needed now that we include openat.h first. (rpl_openat): Add comment about mode_t promotion. Simplify code a bit by moving initializations around. Use exit_failure rather than EXIT_FAILURE.
2004-12-03save-cwd.c: Include "save-cwd.h" before other include files.Paul Eggert
(O_DIRECTORY): Remove; not needed here, since "." must be a directory. All uses removed. (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is universal on Suns, and we also need to test for IRIX. Revamp code to use 'if' rather than '#if'. Avoid unnecessary comparison of cwd->desc to 0.
2004-12-02Assume setlocale, locale.h, and localeconv exist and work.Paul Eggert
2004-12-02Assume <locale.h> exists.Paul Eggert
(human_readable): Assume localeconv exists.
2004-12-02Assume <locale.h> exists.Paul Eggert
Include "strdup.h". (GLIBC_VERSION): New macro. (hard_locale): Assume setlocale exists. Rewrite to avoid #ifdef. Use strdup rather than malloc + strcpy.
2004-12-01* getcwd.c: Use system getcwd first, if appropriate.Paul Eggert
2004-12-01(is_ENAMETOOLONG): New macro.Paul Eggert
(__getcwd.c): Don't restore errno; glibc doesn't. [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd first, falling back to our code only if its results look suspicious. Ensure that the resulting buffer is only as large as necessary.
2004-12-01Go back to including <sys/types.h> rather than <stddef.h>; this isPaul Eggert
needed on OpenBSD since its <utmp.h> needs time_t without making sure that time_t is defined.
2004-11-30Make readutmp more consistent among its client code.Paul Eggert
2004-11-30Don't include <sys/types.h>, <errno.h>,Paul Eggert
<sys/param.h>, <time.h>; not needed to establish interface. Include <stddef.h> instead. (errno): Remove decl. (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
2004-11-30Include readutmp.h first.Paul Eggert
Include <errno.h>, since readutmp.h no longer does that.
2004-11-30.Jim Meyering
2004-11-30renamed to chdir-long.[ch]Jim Meyering
2004-11-30*** empty log message ***Jim Meyering
2004-11-30(libfetish_a_SOURCES): Reflect name changes: chdir.[ch] -> chdir-long.[ch]Jim Meyering
2004-11-30Include chdir-long.h rather than chdir.h.Jim Meyering
(restore_cwd): Use chdir_long, not chdir.
2004-11-30*** empty log message ***Jim Meyering
2004-11-30[!defined PATH_MAX]: Define chdir_long to chdir on systems like the Hurd.Jim Meyering
2004-11-30Renamed from chdir.h.Jim Meyering
2004-11-30Renamed from chdir.c.Jim Meyering
2004-11-30*** empty log message ***Jim Meyering
2004-11-30(O_DIRECTORY): Define, if necessary.Jim Meyering
(memchrcspn): Tiny wrapper around memchr. (rpl_chdir): Use memchrcspn rather than strcspn.
2004-11-28*** empty log message ***Jim Meyering
2004-11-28(rpl_openat): Also accept optional mode parameter.Jim Meyering
Adjust prototype
2004-11-28(rpl_openat): Also accept optional mode parameter.Jim Meyering
2004-11-28Don't let error uses in #if-0'd code trigger `make distcheck' failure.Jim Meyering