summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2003-11-09Include "dev-ino.h".Jim Meyering
(struct rm_options): Add new member: root_dev_ino.
2003-11-09Include "dev-ino.h".Jim Meyering
(struct Chown_option): Add new member: root_dev_ino.
2003-11-06whoops. One more.Jim Meyering
2003-11-06(paste_parallel): Use `sizeof *var' rather than hard-coding `sizeof FILE*'.Jim Meyering
2003-11-06(who): Free `utmp_buf' so there is no confusion aboutJim Meyering
whether it's leaked or not.
2003-11-06(main): Free `fstatus' so there is no confusion aboutJim Meyering
whether it's leaked or not.
2003-11-06Fix 'cut' problems with size_t overflow and unsigned int.Jim Meyering
More generally, resize integer variables to fit use more precisely. (ADD_RANGE_PAIR): Remove unnecessary parens. (struct range_pair): Make members to be of type size_t, not unsigned. (max_range_endpoint, eol_range_start): Now size_t, not unsigned. (suppress_non_delimited, output_delimiter_specified, have_read_stdin, print_kth, set_fields): Now bool, nt int. (delim): Now unsigned char, not int. (mark_printable_field, is_printable_field, is_range_start_index, set_fields, set_fields, cut_bytes, cut_fields): Use size_t, not unsigned, for field and byte counts. (hash_int): Use uintptr_t, not unsigned, for pointers converted to integers. This squeezes more info out of them. (set_fields, cut_bytes, cut_fields, main): Use bool, not int, for booleans. (set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
2003-11-05.Jim Meyering
2003-11-05Cast NULL to `(char *)' in call to variadic function,Jim Meyering
parse_long_options, so that it works even on systems for which sizeof char* != sizeof int.
2003-11-05(spec_init): Fix typo in last change.Jim Meyering
2003-11-05(main): Cast NULL to `(char *)' inJim Meyering
call to variadic version_etc function, so that it works even on systems for which sizeof char* != sizeof int.
2003-11-05(case_GETOPT_VERSION_CHAR): Cast NULL to `(char *)' inJim Meyering
call to variadic version_etc function, so that it works even on systems for which sizeof char* != sizeof int.
2003-11-05(users): Free `utmp_buf' explicitly so that peopleJim Meyering
don't mistake this for a real leak.
2003-11-04.Jim Meyering
2003-11-04(ADD_FIELD, initseq, getseq): Use x2nrealloc rather than xrealloc.Jim Meyering
2003-11-04(fold_file): Use x2nrealloc rather than xrealloc.Jim Meyering
2003-11-04(store_char): Use x2nrealloc rather than xrealloc.Jim Meyering
2003-11-04(memrchr): Remove #if-0'd function.Jim Meyering
(tac_stdin_to_mem): Clean up #if-0'd code.
2003-11-04(new_key): Use xzalloc, not xcalloc.Jim Meyering
2003-11-04(show_date): Use x2nrealloc rather than xrealloc.Jim Meyering
2003-11-04(decode_format_string): Remove unnecessary casts.Jim Meyering
Use more maintainable `sizeof *var'. (main): Call decode_format_string rather than decode_one_format, now that `spec' may be NULL.
2003-11-04(decode_format_string, dump_strings): Use x2nrealloc rather than xrealloc.Jim Meyering
2003-11-04(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,Jim Meyering
to avoid potential overflow in pointer arithmetic. (set_fields): Use not `1', but rather `sizeof *printable_field' as second argument to xcalloc.
2003-11-04(next_file_name): Use `sizeof *var' rather thanJim Meyering
hard-coding `sizeof size_t'.
2003-11-04(AUTHORS): Add my name.Jim Meyering