summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-01-04(tee): Use xnmalloc rather than xmalloc.Jim Meyering
2004-01-04(re_protect): Use ASSIGN_STRDUPA rather than alloca and strcpy.Jim Meyering
(make_path_private): Likewise.
2004-01-04(copy_internal): Use ASSIGN_STRDUPA rather than alloca and strcpy.Jim Meyering
2004-01-04(main): Use memcpy, not strcpy.Jim Meyering
2004-01-04(main): Warn about following stdin.Jim Meyering
Fail when following by name but no names are specified.
2004-01-04(usage): Mention that, with its current meaning, -H is deprecated.Jim Meyering
2004-01-04revert last changeJim Meyering
2004-01-04Include "exitfail.h".Jim Meyering
(main): Set exit_failure.
2004-01-04Include "quote.h".Jim Meyering
(CHROOT_FOUND_BUT_CANNOT_INVOKE, CHROOT_FAILURE): Define. (main): Exit with status of 127, not 1, for too-few-args, chroot failure, or chdir failure. Give a better diagnostic upon execvp failure.
2003-12-30Include posixver.h.Jim Meyering
(obsolete_usage): New var. (longopts): Put obsolete options first. (OBSOLETE_LONG_OPTIONS): New constant. (get_option, add_file_name): New functions. (main): Use them to support new behavior. (usage): Remove documentation for -j1 FIELD and -j2 FIELD. Do not mark -j FIELD as obsolescent; it is longstanding UNIX tradition and is a valid extension to POSIX.
2003-12-30remove trailing blankJim Meyering
2003-12-30(add_field_list): Don't use alloca with unboundedJim Meyering
size; just modify the argument, which is no longer const *. Various other minor cleanups, mostly to avoid the need for casts. (extract_field): Renamed from ADD_FIELD, as it's now a function. (struct field.beg): Now char *, not unsigned char const *. All uses changed. It shouldn't be const since xmemcoll writes on its arguments. (extract_field): Likewise, for 2nd arg. (keycmp): Remove now-unnecessary cast of xmemcoll args. (is_blank): New function, to avoid need to cast arg to unsigned char. (extract_field): Use it. (xfields): Rewrite pretty much from scratch. (hard_LC_COLLATE): Now bool, not int. (get_line, getseq, add_field_list): Now returns bool, not int. (decode_field_spec, add_field_list): Return true on success (not false), for consistency with the rest of the code. All uses changed. (tab): Now char, not unsigned char. This wasn't 100% necessary but is slightly cleaner. (prjoin): Hoist (tab ? tab : ' ') expression, to help the compiler. (empty_filler): Now const *. (make_blank): Remove; wasn't needed. Remove all calls. (main): Don't set uni_blank.nfields; zero is fine.
2003-12-27Include "quote.h".Jim Meyering
(min, max): Remove definitions. Make a few function parameters and corresponding locals `const'. Use bool for boolean variables. Use size_t (not int) for all counters and related index variables. (prjoin): Remove now-useless assertion. (string_to_join_field): New function. (main): Accept join fields as large as SIZE_MAX. (keycmp): Rename `min' to MIN and max to MAX.
2003-12-27.Jim Meyering
2003-12-27fold -s didn't work on e.g., alpha-based systems.Jim Meyering
* src/fold.c (fold_file): Adjust types (int->size_t) so that using x2nrealloc works properly on systems with differing sizes for int and size_t. Reported by Nelson Beebe. * src/fold.c: Use `bool' (not int) as the type for a few global variables.
2003-12-24(length_of_file_names_and_frills):Jim Meyering
Remove forward decl; not needed. (print_file_name_and_frills, length_of_file_name_and_frills): With -m, don't output spaces before inum or size. (print_with_commas): Don't output space just before newline.
2003-12-21.Jim Meyering
2003-12-20.Jim Meyering
2003-12-20Change type of global, buff_allocated, to size_t.Jim Meyering
2003-12-20[struct seq]: Change types of members count and allocJim Meyering
from `int' to `size_t'.
2003-12-20Accept new option (-0, --null) that makes it so eachJim Meyering
output line is NUL-terminated rather than newline-terminated.
2003-12-20(apply_translations): Don't prohibit conv=unblock,sync.Jim Meyering
2003-12-19.Jim Meyering
2003-12-19(FTS_CROSS_CHECK, DEBUG_OPT): Define.Jim Meyering
(main): Make fts use FTS_TIGHT_CYCLE_CHECK. (main) [DU_DEBUG]: Accept -d option.
2003-12-18(format_user): Increment dired_pos via two statements,Jim Meyering
`dired_pos += width; dired_pos++;' rather than one, `dired_pos += width + 1;' since the latter could conceivably overflow. (format_group): Likewise.
2003-12-18.Jim Meyering
2003-12-12.Jim Meyering
2003-12-08(INODE_DIGITS, LOGIN_NAME_MAX, ID_LENGTH_MAX): Remove.Jim Meyering
(format_user_width, format_group_width, unsigned_file_size, format_group): New functions. (block_size_width): Renamed from block_size_size. (inode_number_width, nlink_width, owner_width, group_width, author_width, major_device_number_width, minor_device_number_width, file_size_width): New vars. (clear_files): Initialize them. (gobble_file): Set them. Don't ceiling block_size_width to 7. (print_long_file): Use them. (gobble_file): Use a new local variable 'f' to make the code smaller and more consistent with other functions. (format_user): Output to stdout, not to a buffer, so that we don't have to worry about buffer overrun. Update dired_pos. (print_long_file): Don't put owner, group, author into buffer; just print them directly. Don't assume link counts and major and minor numbers fit into unsigned long int. From Paul Eggert.
2003-12-03.Jim Meyering
2003-12-02Include sha1.h (reflect renaming: sha.h -> sha1.h.Jim Meyering
2003-11-27.Jim Meyering
2003-11-27Include "c-strtod.h".Jim Meyering
(parse_options): Update xstrtod call to include new argument, c_strtod.
2003-11-27Include "c-strtod.h".Jim Meyering
(main): Update xstrtod call to include new argument, c_strtod.
2003-11-27Include "c-strtod.h".Jim Meyering
(scan_double_arg): Update xstrtod call to include new argument, c_strtod.
2003-11-27Remove decls of strtod, strtol, strtoul; no longerJim Meyering
needed now that we assume C89. Include "c-strtod.h". (xstrtod): Call c_strtod, not strtod.
2003-11-24upgrade to automake-1.7dJim Meyering
2003-11-20(usage): Output bug-reporting address.Jim Meyering
2003-11-19(usage): Mention that FILE1 and FILE2 must be sortedJim Meyering
on the join fields. Suggestion from Bruce Robertson.
2003-11-18`od -c -w9999999' could segfaultJim Meyering
(dump): Use xnmalloc/free, not alloca.
2003-11-16Fix read-from-free'd-buffer error detected by valgrind.Jim Meyering
(remove_line): Don't return a pointer to data in a freed buffer. Instead, arrange to free the buffer on the subsequent call.
2003-11-12(extract_dirs_from_files): Avoid useless copy operations.Jim Meyering
This avoids a warning valgrind about memcpy with overlapping source and destination.
2003-11-09Support new options: --preserve-root and --no-preserve-root.Jim Meyering
2003-11-09Support new options: --preserve-root and --no-preserve-root.Jim Meyering
2003-11-09Include "root-dev-ino.h".Jim Meyering
(chopt_init): Initialize new member. (change_file_owner): Support rm's new --preserve-root option.
2003-11-09Include "root-dev-ino.h".Jim Meyering
(remove_cwd_entries): Remove now-obsolete FIXME comment. (remove_dir): Support rm's new --preserve-root option.
2003-11-09(usage): Describe new options.Jim Meyering
2003-11-09(usage): Describe new options.Jim Meyering
2003-11-09Include "root-dev-ino.h".Jim Meyering
(process_file): Use newly-factored-out ROOT_DEV_INO_CHECK and ROOT_DEV_INO_WARN macros. (get_root_dev_ino): Remove function definition, now that it's been moved to a separate file.
2003-11-09Initialized new member.Jim Meyering
2003-11-09.Jim Meyering