summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-11-24Add this:Jim Meyering
^lib/buffer-lcm\.c$
2005-11-24Improve performance a bit with src/copy.c.Paul Eggert
2005-11-24Improve performance a bit by optimizing awayPaul Eggert
unnecessary system calls and going to a block size of at least 8192 (on normal hosts, anyway). This improved performance 5% on my Debian stable host (2.4.27 kernel, x86, copying from root ext3 file system to itself). Include "buffer-lcm.h". (copy_reg): Omit last argument. All callers changed. Use xmalloc to allocate rather than trusting alloca (which is unwise with large block sizes). Declare locals more locally, if possible. Use uintptr_t words instead of int words, for a bit more speed when looking for null blocks on 64-bit hosts. Optimize away reads of zero bytes on regular files. In the typical case, insist on 8 KiB buffers, at least. Avoid unnecessary extra call to fstat when checking for sparse files. Avoid now-unnecessary cast to off_t, and "0L". Avoid unnecessary test of *new_dst when checking for same owner and group.
2005-11-24Add buffer-lcm.Paul Eggert
2005-11-24(libcoreutils_a_SOURCES): Add buffer-lcm.c, buffer-lcm.h.Paul Eggert
2005-11-24Initial versionPaul Eggert
2005-11-24Initial version, from diffutilsPaul Eggert
2005-11-23tweak grammar in commentsJim Meyering
2005-11-23*** empty log message ***Jim Meyering
2005-11-23(fdopendir): Don't change errno when returning non-NULL.Jim Meyering
2005-11-23(rm): Don't assume C99 for-loop syntax.Paul Eggert
2005-11-22whoops. Add back decl/definition of n_lengths.Jim Meyering
2005-11-22*** empty log message ***Jim Meyering
2005-11-22(AD_push): Remove debugging cruft.Jim Meyering
2005-11-22tweak commentsJim Meyering
2005-11-22*** empty log message ***Jim Meyering
2005-11-22.Jim Meyering
2005-11-22*** empty log message ***Jim Meyering
2005-11-22Add lib/euidaccess-stat.c.Jim Meyering
2005-11-22.Jim Meyering
2005-11-22Rewrite. Now, this module is reentrant on systemsJim Meyering
that provide openat (Solaris), and on systems like Linux+procfs where our openat emulation code is reentrant. This also fixes a few low-probability leaks and eliminates some code that could, in very unusual circumstances, cause rm() (via a callee) to exit.
2005-11-22*** empty log message ***Jim Meyering
2005-11-22Put copyright dates all on one line so theJim Meyering
emacs function that updates them works properly.
2005-11-22*** empty log message ***Jim Meyering
2005-11-22(rm): Change expected diagnostic, `cannot open directory' to `cannot remove',Jim Meyering
to align with new version of rm.
2005-11-22*** empty log message ***Jim Meyering
2005-11-22Ensure that rm now continues removing entries even after certain types of ↵Jim Meyering
failure.
2005-11-22*** empty log message ***Jim Meyering
2005-11-22Rewrite. Now, this module is reentrant on systemsJim Meyering
that provide openat (Solaris), and on systems like Linux+procfs where our openat emulation code is reentrant. This also fixes a few low-probability leaks and eliminates some code that could, in very unusual circumstances, cause rm() (via a callee) to exit.
2005-11-22*** empty log message ***Jim Meyering
2005-11-22(openat_permissive): Declare.Jim Meyering
(openat_ro): Define.
2005-11-22(EXPECTED_ERRNO): New macro.Jim Meyering
(openat_permissive): New function -- used in remove.c rewrite. (all functions): Set errno just before returning, only if there was an actual failure. Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
2005-11-21add ^lib/euidaccess-stat\.c$Jim Meyering
2005-11-20*** empty log message ***Jim Meyering
2005-11-20Remove spurious space-before-TAB.Jim Meyering
2005-11-20*** empty log message ***Jim Meyering
2005-11-20(gl_EUIDACCESS_STAT): New file/macro.Jim Meyering
2005-11-20*** empty log message ***Jim Meyering
2005-11-20.Jim Meyering
2005-11-20*** empty log message ***Jim Meyering
2005-11-20New file, mostly from euidaccess.c.Jim Meyering
2005-11-20*** empty log message ***Jim Meyering
2005-11-20Require gl_EUIDACCESS_STAT.Jim Meyering
2005-11-19tweak grammar in a commentJim Meyering
2005-11-18.Jim Meyering
2005-11-18* configure.ac (AC_PROG_CC_STDC): Use this instead of AC_PROG_CC.Paul Eggert
2005-11-18(AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so thatPaul Eggert
we get a standard-conforming compiler. This relies on the new m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals. m4/c.m4 can go away with Autoconf 2.60 comes out.
2005-11-18* c.m4: New file.Paul Eggert
2005-11-18New file, to work around bugs in AIX cc.Paul Eggert
Problem reported by James Lemley. This file can go away after Autoconf 2.60 comes out.
2005-11-18* configure.ac (AM_PROG_CC_C_O): Add.Paul Eggert