summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-08-13(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2001-08-13(cp_option_init): Adjust initialization of `interactive',Jim Meyering
and initialize new member, stdin_tty.
2001-08-13(cp_option_init): Adjust initialization of `interactive',Jim Meyering
and initialize new member, stdin_tty. (main): Adjust initialization(s) of `interactive',
2001-08-13(cp_option_init): Adjust initialization of `interactive',Jim Meyering
and initialize new member, stdin_tty. (main): Adjust initialization(s) of `interactive',
2001-08-13(enum Interactive): New type.Jim Meyering
(struct cp_options) [interactive]: Change type to Interactive. (struct cp_options) [stdin_tty]: New member.
2001-08-13(overwrite_prompt): New function.Jim Meyering
(copy_internal): Separate the mv-specific and non-move_mode code that determines whether to prompt the user. [move_mode]: Don't make mv fail (i.e. don't return 1) just because the user declined to remove one or more of the files.
2001-08-12Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'Jim Meyering
rather than with `#ifdef _POSIX_VERSION'.
2001-08-12(PATH_MAX_FOR): Use pathconf via wrapper.Jim Meyering
(NAME_MAX_FOR): Likewise. (pathconf_wrapper): New function. (validate_path): Declare length variables to be `long', not `int'. Adjust corresponding printf-style specs to use %ld.
2001-08-12Include gtod.h -- should have been part of preceding deltaJim Meyering
2001-08-12Include gtod.h.Jim Meyering
(main): `Call' GETTIMEOFDAY_INIT, just in case the code ever changes to make it necessary.
2001-08-12Work around non-compliant gettimeofday on Mac OS X 10.0.4,Jim Meyering
(aka Darwin 1.3.7) that caused the date of the first file listed in long output to be the current time rather than the file's mtime. The real work is in m4/gettimeofday.m4 and the wrapper function, lib/gettimeofday.c. Include gtod.h. (main): `Call' GETTIMEOFDAY_INIT. (print_long_format): Add a comment about gettimeofday.
2001-08-10(print_long_format): Simplify previous patch forJim Meyering
listing negative sizes, by adding OFF_T_MAX - OFF_T_MIN + 1 instead of doing a fancy conditional shift. This is simpler and it avoids GCC's bogus compile-time warning about shift counts. (As a bonus, it is portable to hosts that do not use twos-complement arithmetic. :-)
2001-08-10(print_long_format): Multiply the shift width by zeroJim Meyering
to avoid a warning from gcc on hosts with an unsigned type for the st_size member.
2001-08-10(print_long_format): If a file size is negative, assumeJim Meyering
the typical case where it has wrapped around from a positive value.
2001-08-07(cfcc_msg): Remove now-inaccurate part of comment.Jim Meyering
From Bruno Haible.
2001-08-06(copy_internal): Set *rename_succeeded, so thatJim Meyering
the caller (mv) doesn't remove the source file.
2001-08-06(usage): Correct the description of --update.Jim Meyering
2001-08-04(quote_name): Pass 0 to mbsnwidth, since the defaultJim Meyering
got changed and we want the default now.
2001-07-15Include "unlocked-io.h", rather than hard-coding the HAVE_*_UNLOCKED macros.Jim Meyering
2001-07-08revert unrelated part of last delta -- coming soon with a separate log entryJim Meyering
2001-07-08(usage): Reformat so help2man generates a properly indented man page.Jim Meyering
2001-07-08(get_dest_mode): Clear set-user-ID and set-group-ID bitsJim Meyering
when copying (i.e., not in move mode) and not preserving permissions.
2001-07-02(do_link): Test the boolean symbolic_link, not the function, symlink.Jim Meyering
Patch by Frederik Eaton.
2001-07-01(usage): Suggest setting LC_COLLATE=C, rather than LC_ALL=C.Jim Meyering
2001-06-16(main): Recheck global print_with_color after callingJim Meyering
parse_ls_color, since that function may have reset it. Based on a patch from Richard Dawe.
2001-06-16(print_long_format): Don't truncate user namesJim Meyering
or group names that are longer than 8 characters.
2001-06-09Add options to make `who' more POSIX compliant.Jim Meyering
Accept new options: --all (-a), --boot (-b), --dead (-d), --login, --process (-p), --runlevel (-r), --short (-s), --time (-t), --users (-u). The -u option now produces POSIX-specified results and is the same as the long option `--users'. --idle is no longer the same as -u. (time_string, print_line, print_boottime, print_deadprocs, print_login, print_initspawn, print_clockchange, print_runlevel): New functions. (print_user): Renamed from print_entry and reworked. (search_entries): Remove function. (who_am_i): Likewise. (usage): Describe new options. (main): Handle new options. Mostly from Michael Stone.
2001-05-27(main): Add `const' to declaration of local, `result'.Jim Meyering
2001-05-24Update from master source.Jim Meyering
2001-05-24Use `#if D_TYPE_IN_DIRENT && defined DTTOIF' toJim Meyering
determine whether to enable the DT_INIT definition, not the less portable `#if defined _DIRENT_HAVE_D_TYPE || defined DTTOIF'. Reported by Eli Zaretskii.
2001-05-24(main): Remove quotes around %s.Jim Meyering
The argument is already quoted via the quote function.
2001-05-20Include "hard-locale.h".Jim Meyering
(nstrftime): New decl. (enum time_style): New enum. (time_style_args, time_style_types): New constants. (full_time): Remove. (long_time_format): Initialize to POSIX defaults. (TIME_STYLE_OPTION): New constant. (long_options, decode_switches, usage): Add --time-style support. (long_time_expected_width): Use nstrftime, not strftime. (print_long_format): Likewise. Increase initial size to match new full-iso time style.
2001-05-20(parse_obsolescent_option): Accept a b suffix.Jim Meyering
2001-05-20Rename new option values: s/all/precede/ and s/minimum/separate/.Jim Meyering
2001-05-19(delimit_method_map): Remove trailing comma.Jim Meyering
2001-05-19Support new modes for uniq's --all-repeated option.Jim Meyering
The default behavior is unchanged. Include argmatch.h. (usage): Update. (check_file): Implement it. (main): Handle new, optional arguments. Patch by Padraig Brady.
2001-05-15(parse_obsolescent_option): Use t_count_lines, notJim Meyering
count_lines, in error message.
2001-05-15(struct fileinfo.linkmode): Now st_mode.Jim Meyering
(print_color_indicator, print_name_with_quoting, print_type_indicator, length_of_file_name_and_frills): Use mode_t, not unsigned int, to store modes. (dired_dump_obstack): Do not assume size fits in 'int'. (get_link_name): readlink returns ssize_t, not int. (make_link_path): Store buffer size as size_t, not int. (print_long_format): Use unsigned long, not unsigned, to print nlink_t, uid_t, gid_t, major_t, minor_t.
2001-05-13(main): Check for NODEV device only if NODEV is defined.Jim Meyering
2001-05-13(NODEV): Remove, undoing previous change.Jim Meyering
2001-05-13(dir_name, dir_len): Define to different namesJim Meyering
to avoid shadowing warnings due to new declarations from dirname.h.
2001-05-13(enum Dereference_symlink): New type.Jim Meyering
(dereference): New var, replacing trace_links, which was removed. (long_options, main, decode_switches, gobble_file, usage): Implement the changes.
2001-05-13(NODEV): New macro, if not already defined.Jim Meyering
2001-05-13(main): Check for overflow when converting out of uintmax_t.Jim Meyering
Do not assume that major_t and minor_t are no wider than int. Check for makedev failures. Convert device numbers via uintmax_t, not unsigned long, just in case. Coalesce duplicate code in the block and character device cases.
2001-05-12Include "dirname.h".Jim Meyering
(base_name): Remove decl; now in dirname.h.
2001-05-12Include "dirname.h".Jim Meyering
(base_name, strip_trailing_slashes): Remove decls; now in dirname.h. (main): Use base_len instead of strip_trailing_slashes to strip trailing slashes.
2001-05-12(strip_trailing_slashes): Remove decl; now in dirname.h.Jim Meyering
(main): Use dir_len rather than dir_name_r.
2001-05-12(strip_trailing_slashes): Likewise.Jim Meyering
(find_mount_point): No need to strip trailing slashes before invoking new dir_name.
2001-05-12(strip_trailing_slashes): Remove; now in dirname.h.Jim Meyering
(make_path_private): Use dir_len instead of dir_name, and avoid an extra mealloc call.
2001-05-12(copy_internal): Remove the code that tested for NULLJim Meyering
dir_name return value. That can't happen.