summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-05-30(getpwnam, getgrnam, getgrgid)Paul Eggert
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30Include <limits.h> unconditionally, since otherPaul Eggert
files have been getting away with it for years (MORE/BSD 4.3 is extinct now).
2005-05-30(getpwuid, getpwnam, getgrgid, getgrnam)Paul Eggert
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30(getuid, getgid, getuid, getegid)Paul Eggert
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:Paul Eggert
Define to 256, not 255, as per modern POSIX.
2005-05-28fts.c: Don't worry about debugging on pre-C99-comopatible hosts.Paul Eggert
2005-05-28Don't worry about debugging on pre-C99-comopatible hosts;Paul Eggert
the configuration hassle isn't worth it. Include inttypes.h and stdint.h unconditionally if FTS_DEBUG. (LONGEST_MODIFIER, PRIuMAX): Remove.
2005-05-27Break integer-in-string comparison code out from src/sort.Paul Eggert
2005-05-22(fd_safer) [_LGPL_PACKAGE]: New static function,Paul Eggert
so that unistd-safer.h (GPL'ed code) need not be included.
2005-05-21*** empty log message ***Jim Meyering
2005-05-21fix typo in a commentJim Meyering
2005-05-20Import chown fixes from gnulib.Paul Eggert
2005-05-20(rpl_chown): Return -1 on failure.Paul Eggert
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