summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2006-02-20.Jim Meyering
2006-02-16*** empty log message ***Jim Meyering
2006-02-16Include lstat.h, so that uses of lstat are convertedJim Meyering
to uses of rpl_lstat, e.g., on Solaris 9. Otherwise, programs like du (which now uses the openat-enabled fts and hence fstatat) would mistakenly fail to dereference a symlink-to-directory specified with a trailing slash.
2006-02-14Sync from gnulib.Paul Eggert
2006-02-11Fix typo in previous checkin: I deleted a '2' by mistake.Paul Eggert
2006-02-08(close_stdout): Don't assume 'bool' converts nonzeroPaul Eggert
ints to 0 or 1, as this isn't true for the stdbool.h substitute.
2006-02-02*** empty log message ***Jim Meyering
2006-02-02Eliminate the unwelcome (albeit unlikely) possibility of xmallocJim Meyering
failure on deficient systems, and simplify gnulib lgpl dependencies. (rpl_lstat): Rewrite to use stat() in place of the xmalloc/lstat combination. Based on a patch from Bruno Haible.
2006-01-27(L_): Renamed from L. All uses changed.Paul Eggert
2006-01-26Sync stdbool from gnulib.Paul Eggert
2006-01-25Merge stdbool from gnulib; we're still not quite there yet.Paul Eggert
2006-01-25(true, false) [defined __BEOS__]: undef, as before.Paul Eggert
(_Bool) [!@HAVE__BOOL@ && defined __GNUC__]: Use an enum rather than a #define.
2006-01-25.Jim Meyering
2006-01-25Remove useless parentheses in cpp directive.Jim Meyering
2006-01-25*** empty log message ***Jim Meyering
2006-01-25Remove useless parentheses in cpp directive.Jim Meyering
2006-01-24Import from gnulib.Paul Eggert
2006-01-23*** empty log message ***Jim Meyering
2006-01-23Remove unused definition of N_.Jim Meyering
2006-01-22(quotearg_buffer_restyled): Add "default: break;"Paul Eggert
to pacify gcc -Wswitch-default.
2006-01-21.Jim Meyering
2006-01-17(openat_needs_fchdir): New function.Jim Meyering
2006-01-17*** empty log message ***Jim Meyering
2006-01-17(openat_needs_fchdir): Declare it.Jim Meyering
2006-01-17*** empty log message ***Jim Meyering
2006-01-17[struct FTS] (fts_cwd_fd): New member.Jim Meyering
[struct FTS] (fts_rft): Remove now-unused member. [struct FTS] (fts_cycle.state): Improve comment.
2006-01-17Rewrite fts.c not to change the current working directory,Jim Meyering
by using openat, fstatat, fdopendir, etc.. [! _LIBC]: Include "openat.h" and "unistd--.h". (HAVE_OPENAT_SUPPORT): Define. [_LIBC] (fchdir): Don't undef or define; no longer used. (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir. Now, this `function' always succeeds, and consumes its file descriptor parameter -- so callers must not close such FDs. Update callers. (diropen_fd, opendirat, cwd_advance_fd): New functions. (diropen): Add parameter, SP. Adjust all callers. Implement using diropen_fd, rather than open. (fts_open): Initialize new member, fts_cwd_fd. Remove fts_rft-setting code. (fts_close): Close fts_cwd_fd, if necessary. (__opendir2): Define in terms of opendir or opendirat, depending on whether the FST_NOCHDIR flag is set. (fts_build): Since fts_safe_changedir consumes its FD, and since this code must do `closedir(dirp)', dup the dirfd(dirp) argument, and close the dup'd file descriptor upon failure. (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat. (fts_safe_changedir): Tweak semantics to reflect that this function now calls cwd_advance_fd and hence consumes its FD argument.
2006-01-12.Jim Meyering
2006-01-12*** empty log message ***Jim Meyering
2006-01-12Remove useless parentheses in cpp directives, so thatJim Meyering
this file passes coreutils' `make syntax-check' tests.
2006-01-12Import from gnulib.Paul Eggert
2006-01-12Add stdint_.h.Paul Eggert
2006-01-12Adjust to md5 changes in gnulib, and make sha1 etc. more consistentPaul Eggert
with md5.
2006-01-12(struct sha512_ctx): Use a word buffer, not a byte buffer, so that wePaul Eggert
don't need to worry about alignment.
2006-01-12(struct sha256_ctx): Use a word buffer, not a byte buffer, so that wePaul Eggert
don't need to worry about alignment. All uses changed.
2006-01-12(struct sha1_ctx): Use a word buffer, not a byte buffer,Paul Eggert
so that we don't need to worry about alignment. All uses changed. This merges the 2005-10-28 md5 change into sha1.
2006-01-12Fix commentary to match md5 better. Adjust to .h file changes.Paul Eggert
2006-01-12(__attribute__): Remove; unused.Paul Eggert
2006-01-12Fix commentary typos.Paul Eggert
(alignof, UNALIGNED_P): No need for a GCC-specific version.
2006-01-12(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):Paul Eggert
Add gnulib snippet.
2006-01-12Add stdint.h.Paul Eggert
2006-01-11*** empty log message ***Jim Meyering
2006-01-11*** empty log message ***Jim Meyering
2006-01-11*** empty log message ***Jim Meyering
2006-01-11(fts_stat): When following a symlink-to-directory,Jim Meyering
don't interpret all stat-fails+lstat-succeeds as indicating a dangling symlink. That can also happen at least for ELOOP. The fix: return FTS_SLNONE only when the stat errno is ENOENT.
2006-01-11*** empty log message ***Jim Meyering
2006-01-11(fts_open): Put new (2006-01-04) maxarglen declaration and uses in theirJim Meyering
own block, so pre-c99 compilers don't object.
2006-01-11*** empty log message ***Jim Meyering
2006-01-11[!_LIBC]: Include "fcntl--.h", to map open to open_safer.Jim Meyering
2006-01-11*** empty log message ***Jim Meyering