Age | Commit message (Collapse) | Author |
|
non-NLS versions into a single function.
(decimal_point): Now char, since we no longer convert to unsigned char.
(th_sep): Now int, since we use a value out of char range to denote
the absence of a thousands separator.
(IS_THOUSANDS_SEP): New macro.
(USE_NEW_FRAC_COMPARE): Remove.
(nls_set_fraction): Arg is now char, not unsigned char.
Set th_sep to CHAR_MAX + 1 if there is no thousands separator.
(numcompare): Don't convert to unsigned char unless necessary.
(main): Turn off decimal points and thousand separators if they
are multibyte characters, as we don't support that yet.
|
|
and all the *_MIN and *_MAX symbols): Remove definitions.
* src/sys2.h: Put the definitions here instead (this file is shared
between all three *utils packages, while system.h is not).
|
|
and all the *_MIN and *_MAX symbols): Remove definitions.
* src/sys2.h: Put the definitions here instead (this file is shared
between all three *utils packages, while system.h is not).
|
|
converts it to a string.
|
|
Resort to calling stat for directories, but only when necessary.
(usage): Mention --no-create.
|
|
create directory' rather than `cannot make directory'. The former
also matches the one in makepath.c.
|
|
|
|
numbers correctly in the ENABLE_NLS case.
|
|
to be a static one. For SunOS4's cc.
|
|
(HAVE_SYS_ACL_H && HAVE_ACL && defined GETACLCNT).
Use `USE_ACL' in place of `HAVE_ACL' everywhere else. From Kaveh Ghazi.
|
|
|
|
|
|
only 2. The strings had grown to be longer than 2048, which evokes
errors when compiling with Irix4's cc.
|
|
elicits a syntax error from SunOS4's cc. From Kaveh Ghazi.
|
|
[!STDC_HEADERS]: Remove definitions of ctype macros.
Convert e.g., isspace to ISSPACE to use definitions from sys2.h.
Reported by Kaveh Ghazi.
|
|
(TOUPPER): Define.
|
|
|
|
|
|
|
|
call getopt. Reported by Joseph S. Myers.
|
|
call getopt. Reported by Joseph S. Myers.
|
|
|
|
for output, to avoid confusion with closed input and output fds.
(input_fd, output_fd): Remove; all uses changed to STDIN_FILENO
and STDOUT_FILENO.
(open_fd): New function.
(main): Use it, instead of open, to ensure that file descriptors
don't get confused.
(skip): Don't fstat the input file; the result is no longer used.
|
|
obsolescent, +POS1[-POS2] form, and the POSIX -k option.
|
|
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block.
Prior to this change, `cp --one-file-system' would traverse a file-
system boundary if the destination directory existed.
From thospel@mail.dma.be.
|
|
That is, even though source and destination are `the same,' don't fail
if the destination is a symlink. From Peter Samuelson.
|
|
then open it for write and report an error if we can't seek.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
(mode, cp_option_init, DIR_MODE): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
|
|
Define if not defined.
(CHMOD_MODE_BITS): New macro.
|
|
guaranteed to be portable.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Don't assume the traditional Unix values for mode bits.
|
|
Instead, loop on `optind < argc' to protect use of argv[optind].
|
|
|
|
|
|
|
|
|
|
|
|
(struct control) [repeat]: Declare as uintmax_t, not int.
(struct control) [lines_required]: Likewise.
(handle_line_error): Use human_readable to print lines_required.
(parse_repeat_count): Parse a uintmax_t.
(parse_patterns): Parse a uintmax_t.
|
|
|
|
Change all U_LONG_LONG to uintmax_t.
(head_lines): Move a couple dcls into an inner scope.
(string_to_integer): Rename from string_to_ull.
|
|
|
|
|