summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-12-10Avoid shred segfault on 64-bit systems.Jim Meyering
(isaac_refill): Don't try to negate a local of type uint32_t. Convert it to int32_t first.
2005-12-10* src/rand-isaac.h (isaac_mix): Remove declaration.Jim Meyering
2005-12-10* src/rand-isaac.c (isaac_mix): Declare to be static.Jim Meyering
Mark all other functions as `extern' so the tight-scope part of `make distcheck' passes once again. * src/rand-isaac.h (isaac_mix): Remove declaration.
2005-12-10(get_hash): Change position of `*' in parameter type to conform with convention.Jim Meyering
(main): Split a long line so it fits in 80 columns.
2005-12-10Don't include gethrxtime.h. No longer needed.Jim Meyering
2005-12-10(keycompare): Remove stray SPACE before TAB that wasJim Meyering
causing `make distcheck' to fail.
2005-12-10(short_options, long_options, WORDS, keycompare, main):Paul Eggert
(usage): Add options --random-sort and --seed to implement a random shuffle. Include md5.h and rand-isaac.h. (get_hash): New function. (rand_state): New var. (HASH_WORDS, HASH_SIZE): New macros.
2005-12-10Include rand-isaac.h. Move ISAAC code to rand-isaac.c.Paul Eggert
(fillrand, main): Adjust to the fact that the state size is now runtime-configurable.
2005-12-10(sort_LDADD): Add $(LIB_GETHRXTIME).Paul Eggert
(shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
2005-12-10New file, containing ISAAC code that was in shred.c.Paul Eggert
Make state size runtime-configurable. (isaac_new, isaac_copy): New functions.
2005-12-10Move ISAAC code out of shred.c.Paul Eggert
2005-12-09(usage): Mention white space vs -b and -t options.Jim Meyering
From The Wanderer.
2005-12-09(main): Fix misleading comment.Jim Meyering
2005-12-07(flags, usage): Add support for noatime flag.Paul Eggert
2005-12-07(O_NOATIME): Define to 0 if not already defined.Paul Eggert
2005-12-04(fchown) [!HAVE_FCHOWN]: Define fchown(...) to -1.Jim Meyering
(set_owner, preserve_author): New functions, factored out of copy_reg. (copy_reg): Use them. (copy_internal): Use them here, too. From Andreas Gruenbacher.
2005-12-04(usage): Say what happens with two or more arguments.Jim Meyering
2005-12-03(print_uptime): Move decl of local `upsecs' into scope where it's used.Jim Meyering
2005-12-03.Jim Meyering
2005-12-03(long_options): Change the name of each undocumented, for-Jim Meyering
testing-only option to start with `-', so that it cannot render ambiguous any prefix it happens to share with some other option name.
2005-12-03(long_opts): Change the name of each undocumented, for-Jim Meyering
testing-only option to start with `-', so that it cannot render ambiguous any prefix it happens to share with some other option name.
2005-11-26(show_point): Ignore inaccessible file systems.Paul Eggert
(usage): -a includes dummy file systems, not size-0 file systems.
2005-11-26(unsigned_long_long_int): Renamed from ulonglong_t,Paul Eggert
to avoid collision with POSIX name space. All uses changed.
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-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(AD_push): Remove debugging cruft.Jim Meyering
2005-11-22tweak commentsJim 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-18.Jim Meyering
2005-11-17(AD_mark_helper): Make a `char *' parameter `const'.Jim Meyering
(AD_mark_current_as_unremovable): Likewise, but for a local. (rm_1): Likewise.
2005-11-17(basename_is_dot_or_dotdot): Correct wording in comment.Jim Meyering
2005-11-16(do_link, usage): Improve quality of ln's diagnostics.Paul Eggert
(do_link): Don't use alloca on a buffer of unbounded size.
2005-11-12remove now-unused fileJim Meyering
2005-11-12.Jim Meyering
2005-11-08(decode_switches): ls now defaults to --time-style='locale', which inPaul Eggert
turn acts like --time-style='posix-long-iso' if the locale settings are messed up.
2005-11-07(usage): Fix descriptions of --sort, --time.Jim Meyering
2005-11-05Include filenamecat.c.Jim Meyering
(FILE_BASENAME_CONCAT): Remove. (do_link): Remove last arg DEST_IS_DIR. All callers changed. (main): Use file_name_concat, base_name, and strip_trailing_slashes instead of FILE_BASENAME_CONCAT. This simplifies the code, and avoids the use of alloca.
2005-11-04(process_file): Don't overflow for files of size >= 2^31Jim Meyering
on systems with stat.st_blocks of a signed 32-bit type. This bug causes trouble on some AIX 5.1 systems. Report and trivial patch from Paul Townsend: <http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>
2005-11-02(usage): Don't mention rm -d.Paul Eggert
2005-11-02(rm_option_init): Don't initialize unlink_dirs member, which went away.Paul Eggert
2005-11-02(struct rm_options): Remove unlink_dirs.Paul Eggert
2005-11-02(remove_entry): Emit a better diagnostic when rmJim Meyering
(without -r) fails to remove a directory on a non-Linux system. This change affects only newer Solaris systems (with priv_* functions like priv_allocset). Reported by Keith Thompson.
2005-11-01(main): Pass PDS_PRE_2000 to posixtime.Paul Eggert
2005-11-01(parse_obsolete_option): Implement fix for "tail -c 2 FILE".Paul Eggert
2005-10-31(skip): Fix off-by-one error reported by Theodoros V. Kalamatianos.Paul Eggert
2005-10-28(FILE_BASENAME_CONCAT): Omit unnecessary slashes in thePaul Eggert
boundary between DEST and SOURCE in the result.
2005-10-27(main) [!O_BINARY]: Changed default read modeJim Meyering
back to text, to sync with documentation and for backwards compatibility.
2005-10-26Add these: sha224sum sha256sum sha384sum sha512sumJim Meyering