summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-06-02Regenerate.Paul Eggert
2005-06-02Use "file name" when talking about file names, instead of "filename"Paul Eggert
or "path", as per the GNU coding standards. As part of this, rename makepath.c to mkdir-p.c, and path-concat.c to filenamecat.c, and likewise for the .h files.
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names.
2005-06-02(excluded_file_name): Renamed from excluded_filename.Paul Eggert
All uses changed.
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names. (excluded_file_name): Renamed from excluded_filename. All uses changed.
2005-06-02Renamed from path-concat.c.Paul Eggert
(file_name_concat): Renamed from path_concat. All callers changed. [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
2005-06-02Renamed from path-concat.h. All includers changed.Paul Eggert
(file_name_concat): Renamed from path_concat. All callers changed.
2005-06-02Renamed from makepath.h. All includers changed.Paul Eggert
(make_dir_parents): Renamed from make_path. All callers changed.
2005-06-02Renamed from makepath.c.Paul Eggert
(make_dir_parents): Renamed from make_path. All callers changed.
2005-05-30Regenerate.Paul Eggert
2005-05-30_POSIX_VERSION cleanupPaul Eggert
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