summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-05-13.Jim Meyering
2005-05-09(fts_sort): Optimize the common case where all pointers smell the same.Paul Eggert
2005-05-09* fts_.h, fts.c: More C89 portability fixes.Paul Eggert
2005-05-09(__P): Remove. All uses rewritten to assume C89 or better.Paul Eggert
(fts_open): Don't cast a function value in a possibly-unsafe way. (fts_compar): New function. (fts_sort): Use it.
2005-05-09(FTS): Use correct type for fts_compar member.Paul Eggert
(FTSENT): New member fts_fts. Remove members fts_ino, fts_dev, fts_nlink; no longer needed now that fts_statp is always there. All uses changed to use fts_statp instead.
2005-05-08* yesno.c: Include getline.h, not ctype.h.Paul Eggert
(yesno): Don't remove leading white space; POSIX doesn't allow it. Use getline to remove arbitrary restriction on response length.
2005-05-05* makepath.c (make_path): chdir to "//", not "/", if the file namePaul Eggert
starts with exactly two slashes.
2005-05-05(make_path): chdir to "//", not "/", if the file namePaul Eggert
starts with exactly two slashes.
2005-05-04Regenerate.Paul Eggert
2005-05-02Sync from gnulib.Paul Eggert
2005-05-01* modechange.h (mode_free): Remove; all callers changed to invoke 'free'.Paul Eggert
* modechange.c: Likewise. Simplify internals a bit. Prohibit "+0".
2005-05-01(mode_free): Remove; all callers changed to invoke 'free'.Paul Eggert
2005-05-01(mode_free): Remove; all callers changed to invoke 'free'.Paul Eggert
xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed. (MODE_DONE): New constant. (struct mode_change): Remove 'next' member. (make_node_op_equals): New function; like the old one of the same name, except it allocates an array. (mode_compile, mode_create_from_ref): Use it. (mode_compile): Allocate result as an array, not a linked list. Parse octal string ourself, so that we catch mistakes like "+0". (mode_adjust): Arg is an array, not a linked list.
2005-04-30Regenerate.Paul Eggert
2005-04-30Log yesterday's changes.Paul Eggert
2005-04-29(S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.Paul Eggert
[!_LIBC] Include "stat-macros.h" instead.
2005-04-28* file-type.c: Include file-type.h first.Paul Eggert
* filetype.h: Don't assume <sys/stat.h> was included first.
2005-04-28(MODE_X_IF_ANY_X, MODE_COPY_EXISTING):Paul Eggert
(struct mode_change): Move to modechange.c; callers don't need to see this stuff. (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL): (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove. (mode_change, mode_adjust): Reflect the new signatures noted above.
2005-04-28Include stat-macros.h, xalloc.h.Paul Eggert
(S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR): (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU): (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS): Remove. This is now stat-macros.h's job. (talloc): Remove. All callers replaced by xalloc, so that our invokers don't have to worry about reporting memory failures. (make_node_op_equals): Remove. (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING): New constants. (struct mode_change): Moved here from modechange.h. (mode_append_entry): Remove. (mode_compile): Remove MASKED_OPS arg, since it encouraged apps to have incorrect behavior. Use simpler algorithm for head and tail. Don't futz with umask; that's now the job of mode_adjust. Detect more invalid usages rather than having somewhat-random behavior. Don't insert an "a=" action, as that leads to incorrect behavior. (mode_compile, mode_create_from_ref): Return NULL on error instead of an enum, since now there's only one way to have an error. All callers changed. (mode_adjust): Accept new arg UMASK_VALUE, and interpret it at the correct time. Simplify calculation of "+u" and its ilk. Don't mishandle "+X". (mode_free): Remove "register" and localize decls.
2005-04-18Regenerate.Paul Eggert
2005-04-18fetish -> coreutils in some more placesPaul Eggert
2005-04-18fetish->coreutils in compilation command.Paul Eggert
2005-04-18coreutils->fetish in comment.Paul Eggert
2005-04-18(noinst_LIBRARIES): fetish -> coreutils.Paul Eggert
(libcoreutils_a_SOURCES): Renamed from libfetish_a_SOURCES. All uses changed. (libcoreutils_a_LIBADD): Renamed from libfetish_a_LIBADD. All uses changed. (libcoreutils_a_DEPENDENCIES): Renamed from libfetish_a_DEPENDENCIES. All uses changed.
2005-04-13* getdate.y (zone): Allow relunit_snumber after tZONE.Paul Eggert
2005-04-13(zone): Allow relunit_snumber after tZONE, soPaul Eggert
that "UTC +1 second" continues to work. Problem reported by Dmitry V. Levin. (relunit_snumber): New rule. (relunit): Use it.
2005-04-12* getdate.y: Fix problem with parsing GMT time stamps during London summers.Paul Eggert
2005-04-12(universal_time_zone_table): New constant.Paul Eggert
(time_zone_table): Remove GMT, UT, UTC entries; they're now in universal_time_zone_table. (lookup_zone): Prefer universal_time_zone_table to local_time_zone_table, so that "GMT" time stamps are allowed in London during the summer. Problem reported by Ian Abbott.
2005-04-11Regenerate.Paul Eggert
2005-04-11Add bulletproofing for cases where stdin, stdout, or stderr are closed.Paul Eggert
2005-04-11Add bulletproofing for cases where stdin, stdout, or stderr are closed.Paul Eggert
2005-04-11(libfetish_a_SOURCES): Remove dup-safer.c,Paul Eggert
fcntl-safer.h, fopen-safer.c, open-safer.c, stdio-safer.h, unistd-safer.h.
2005-04-11(fd_safer): New decl.Paul Eggert
2005-04-11Include unistd-safer.h.Paul Eggert
(save_cwd): Use fd_safer.
2005-04-11Include stdio-safer.h.Paul Eggert
(getusershell): Use fopen_safer.
2005-04-11Include unistd-safer.h.Paul Eggert
(getloadavg): Use fd_safer.
2005-04-11Include unistd-safer.h.Paul Eggert
(fts_safe_changedir): Use fd_safer.
2005-04-11Include unistd-safer.h first, to test interface.Paul Eggert
(dup_safer) [!deefined F_DUPD]: Use new fd_safer function instead of rolling our own code.
2005-04-11Initial revisionPaul Eggert
2005-04-09.Jim Meyering
2005-04-09(__attribute__, ATTRIBUTE_UNUSED): Define.Jim Meyering
Mark parameter `sp' with ATTRIBUTE_UNUSED.
2005-04-09*** empty log message ***Jim Meyering
2005-04-09(__attribute__, ATTRIBUTE_UNUSED): Define.Jim Meyering
(exit_failure_callback, fallback_failure_callback): Mark unused parameters with ATTRIBUTE_UNUSED.
2005-04-09(canon_host) [HAVE_GETADDRINFO]: Use memsetJim Meyering
rather than `= { 0 };' to initialize local `hint'.
2005-04-09*** empty log message ***Jim Meyering
2005-04-09(posixtime) [lint]: Avoid spurious warning from gcc-4'sJim Meyering
-Wuninitialized: initialize tm0.tm_year.
2005-04-09*** empty log message ***Jim Meyering
2005-04-09(humblock): Set *options even when returning due toJim Meyering
xstrtoumax conversion failure. Thanks to a used-uninitialized warning from gcc-4.
2005-04-09Signal-handling cleanup motivated by core dumps in dd.Paul Eggert
2005-04-09(rpl_nanosleep): Include "timespec.h" before macrosPaul Eggert
that might redefine system include files. (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro. (my_usleep): Use NULL rather than (void *) 0. (rpl_nanosleep) [!defined SA_NOCLDSTOP]: Use siginterrupt to specify that system calls should be interrupted. (rpl_nanosleep): Move initialization of suspended closer to call of my_usleep.