Age | Commit message (Collapse) | Author |
|
|
|
or "path", as per the GNU coding standards. As part of this,
rename makepath.c to mkdir-p.c, and path-concat.c to filenamecat.c,
and likewise for the .h files.
|
|
in comments or local variable names.
|
|
All uses changed.
|
|
in comments or local variable names.
(excluded_file_name): Renamed from excluded_filename.
All uses changed.
|
|
or "path", as per the GNU coding standards.
|
|
"component", since we don't use the POSIX "path" nomenclature.
|
|
(gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
Rename files from path-concat.c to filenamecat.c,
and from path-concat.h to filenamecat.h.
|
|
(file_name_concat): Renamed from path_concat. All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
|
|
(file_name_concat): Renamed from path_concat. All callers changed.
|
|
(gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
Rename files from makepath.c to mkdir-p.c, and from
makepath.h to mkdir-p.h.
|
|
(make_dir_parents): Renamed from make_path. All callers changed.
|
|
(make_dir_parents): Renamed from make_path. All callers changed.
|
|
|
|
This is a crutch so that `make distcheck's sc_tight_scope rule
knows that they really are deliberately declared that way.
|
|
|
|
|
|
Use chown_failure_ok rather than our own code.
(cp_options_init): Use chown_privileges rather than getuid.
|
|
(struct cp_options): Remove myeuid member. Add chown_privileges
member.
(chown_privileges, chown_failure_ok): New function decls.
|
|
[HAVE_PRIV_H]: Include <priv.h>.
(DO_CHOWN): Remove. Replaced by chown_failure_ok. All callers
changed.
(copy_internal): If chown failed, don't worry about what happened
to the mode bits; they can't have changed.
(chown_privileges, chown_failure_ok): New functions.
|
|
|
|
|
|
|
|
|
|
|
|
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.
|
|
|
|
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.
|
|
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
|
|
[!defined _POSIX_VERSION]: Remove decls.
|
|
|
|
Remove decls.
|
|
|
|
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
|
|
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).
|
|
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
|
|
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
|
|
Define to 256, not 255, as per modern POSIX.
|
|
|
|
|
|
skipped due to encountering EOF.
(dd_copy): If the file wasn't seekable and EOF was encountered,
write zeros past EOF until the desired offset is reached.
|
|
and don't require gt_INTTYPES_PRI.
|
|
and don't require gt_INTTYPES_PRI.
|
|
|
|
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.
|
|
|
|
(whitespace, digit, digit_value, integer_expected_error): Remove.
(is_int): Remove; replaced by...
(find_int): New function.
(binary_operator): Don't let integers overflow in comparisons;
return the correct answer instead. Simplify the code.
(unary_operator): Convert the integer ourself, since find_int
no longer does so.
|
|
comparison functions.
Include "strnumcmp.h".
(NEGATION_SIGN, NUMERIC_ZERO, fraccompare):
Remove; moved to strnumcmp.
(decimal_point): Now int, to simplify converison overhead with
new API. All uses changed.
(thousands_sep): Now -1 if there isn't one, as per new API.
All uses changed.
(numcompare): Move contents to strnumcmp module, except for
skipping blanks.
|
|
(looks_like_integer): New function.
(toarith): Use it. Also, use xstrtoimax rather than rolling our
own diagnostics.
(eval2): Don't look for trouble if !evaluate; this simplifies things.
Compare numbers using string comparison, so that overflow is
not possible.
|
|
|