summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-05-20Regenerate.Paul Eggert
2005-05-20Split fts into LGPL'ed and GPL'ed parts.Paul Eggert
2005-05-20Don't include "cycle-check.h" or "hash.h".Paul Eggert
(setup_dir, free_dir): New functions. (enter_dir, leave_dir): Define trivial alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE. (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed. (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir. (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir): Move to fts-cycle.c. (fts_open): Use setup_dir. (fts_close): Use free_dir. (fts_read): Have just one copy of the ENTER_DIR code rather than three. This adds a label and some gotos, but the alternatives were messier. Check for memory allocation failure when entering a dir. (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
2005-05-20(_LGPL_PACKAGE) [defined _LIBC]: New macro.Paul Eggert
(FTS): New member fts_cycle, that is a union that contains the old active_dir_ht and cycle_state. All uses changed to mention fts_cycle.ht and fts_cycle.state.
2005-05-20New file, containing GPL'ed code migrated out ofPaul Eggert
fts.c, with the following changes: (setup_dir, free_dir): New functions. (enter_dir): Now returns bool. Return true if successful, false if memory exhausted. All callers changed. Do not bother partly cleaning up on memory allocation failure; that is free_dir's job. However, free ad if hash_insert fails, to avoid memory leak. (enter_dir, leave_dir): Accommodate change to FTS by inspecting fts->fts_options to see which union member to use.
2005-05-20*** empty log message ***Jim Meyering
2005-05-20(fts_open): Remove useless but otherwise harmless malloc call.Jim Meyering
Spotted by Paul Eggert.
2005-05-19*** empty log message ***Jim Meyering
2005-05-19(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:Jim Meyering
Use #define rather than a static function, to avoid a warning when the function was not used.
2005-05-18Regenerate.Paul Eggert
2005-05-18Remove some dependencies and old cruft from fts etc.Paul Eggert
2005-05-18Do not include hash.h or cycle-check.h; no longer needed.Paul Eggert
(FTS): Use struct hash_table * instead of Hash_table, so that we no longer need to include hash.h here.
2005-05-18Include fts_.h first, to check interface.Paul Eggert
Do not include intprops.h; no longer needed. Include cycle-check.h and hash.h, since fts_.h no longer does. Remove unnecessary casts of closedir to void. (fts_build): Use a simpler method (not involving TYPE_SIGNED) to decide whether to decrement nlinks.
2005-05-18Include canonicalize.h first, to test interface.Paul Eggert
Include <stddef.h> unconditionally, since we assume C89 now. All uses of PTR_INT_TYPE replaced by ptrdiff_t.
2005-05-15Use geteuid, not getuid. Set "initialized" only if it was clear.Paul Eggert
2005-05-14.Jim Meyering
2005-05-14Regenerate.Paul Eggert
2005-05-14tweak cpp indentation on one lineJim Meyering
2005-05-14* unlinkdir.c, unlinkdir.h: New files.Paul Eggert
2005-05-14remove recent temporary additionsJim Meyering
2005-05-14Correct cpp indentationJim Meyering
2005-05-14New unlinkdir module.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14One moreJim Meyering
gethrxtime.c
2005-05-14Add these temporarily:Jim Meyering
unlocked-io.h gethrxtime.h mountlist.h xtime.h path-concat.c
2005-05-14unlocked-io.hJim Meyering
2005-05-14.Jim Meyering
2005-05-14.Jim Meyering
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