Paul Eggert
4c0486daa4
Don't use "path" or "filename" to mean "file name".
...
Hence, rename makepath.m4 to mkdir-p.m4, and rename path-concat.m4
to filenamecat.m4.
2005-06-02 05:09:44 +00:00
Paul Eggert
f3afac1d9d
Don't use "path" or "filename" to mean "file name".
2005-06-02 05:08:51 +00:00
Paul Eggert
ef12d7fb52
Use "file name" when talking about file names, instead of "filename"
...
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.
2005-06-02 05:06:56 +00:00
Paul Eggert
ab2edb9e33
Don't use "path" or "filename" to mean "file name"
...
in comments or local variable names.
2005-06-02 05:05:29 +00:00
Paul Eggert
1e6b9bd047
(excluded_file_name): Renamed from excluded_filename.
...
All uses changed.
2005-06-02 05:02:38 +00:00
Paul Eggert
d91f01988d
Don't use "path" or "filename" to mean "file name"
...
in comments or local variable names.
(excluded_file_name): Renamed from excluded_filename.
All uses changed.
2005-06-02 05:02:14 +00:00
Paul Eggert
4425cc8a08
Use "file name" when talking about file names, instead of "filename"
...
or "path", as per the GNU coding standards.
2005-06-02 05:00:50 +00:00
Paul Eggert
fa2ce4d932
(readlink invocation): "path component" ->
...
"component", since we don't use the POSIX "path" nomenclature.
2005-06-02 05:00:24 +00:00
Paul Eggert
034501ddef
Renamed from path-concat.m4.
...
(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.
2005-06-02 04:59:51 +00:00
Paul Eggert
1885506f1e
Renamed from path-concat.c.
...
(file_name_concat): Renamed from path_concat. All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
2005-06-02 04:59:10 +00:00
Paul Eggert
3a0841772c
Renamed from path-concat.h. All includers changed.
...
(file_name_concat): Renamed from path_concat. All callers changed.
2005-06-02 04:58:26 +00:00
Paul Eggert
0402bc1136
Renamed from makepath.m4.
...
(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.
2005-06-02 04:57:31 +00:00
Paul Eggert
6499782f2e
Renamed from makepath.h. All includers changed.
...
(make_dir_parents): Renamed from make_path. All callers changed.
2005-06-02 04:56:41 +00:00
Paul Eggert
78cd5b80f6
Renamed from makepath.c.
...
(make_dir_parents): Renamed from make_path. All callers changed.
2005-06-02 04:55:35 +00:00
Jim Meyering
b45e05bce2
*** empty log message ***
2005-05-31 07:06:26 +00:00
Jim Meyering
55076fb51f
(chown_privileges, chown_failure_ok): Mark as `extern'.
...
This is a crutch so that `make distcheck's sc_tight_scope rule
knows that they really are deliberately declared that way.
2005-05-31 07:06:23 +00:00
Paul Eggert
f707eb199e
Port to Solaris 10's rules for whether programs can chown files.
2005-05-31 06:16:51 +00:00
Paul Eggert
fe34f6c28d
(cp_options_init): Use chown_privileges rather than geteuid.
2005-05-31 06:16:09 +00:00
Paul Eggert
1b3bf65c51
(re_protect): Remove unnecessary call to geteuid.
...
Use chown_failure_ok rather than our own code.
(cp_options_init): Use chown_privileges rather than getuid.
2005-05-31 06:15:48 +00:00
Paul Eggert
d8ce6bf143
Add copyright notice.
...
(struct cp_options): Remove myeuid member. Add chown_privileges
member.
(chown_privileges, chown_failure_ok): New function decls.
2005-05-31 06:15:18 +00:00
Paul Eggert
e6a9bbce56
Port to Solaris 10's rules for whether programs can chown files.
...
[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.
2005-05-31 06:14:24 +00:00
Paul Eggert
ff3775ea5b
* jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for priv.h.
2005-05-31 06:13:44 +00:00
Paul Eggert
3809452e3e
(gl_CHECK_ALL_HEADERS): Check for priv.h.
2005-05-31 06:13:25 +00:00
Jim Meyering
275c4eb298
.
2005-05-30 09:04:13 +00:00
Paul Eggert
ff57f59217
Regenerate.
2005-05-30 07:41:32 +00:00
Paul Eggert
53d6509846
_POSIX_VERSION cleanup
2005-05-30 07:37:02 +00:00
Paul Eggert
3ada325679
Include sys/param.h if it exists, not if _POSIX_VERSION
...
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.
2005-05-30 07:34:23 +00:00
Paul Eggert
21c907252b
Don't bother mentioning _POSIX_VERSION in comment.
2005-05-30 07:33:55 +00:00
Paul Eggert
3068ea6b4d
(OPENOPTS, TEXT1T01, TEXTCNVT): Remove.
...
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.
2005-05-30 07:33:38 +00:00
Paul Eggert
003510fda2
(getpwnam, getgrnam): Remove decl.
...
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
2005-05-30 07:33:16 +00:00
Paul Eggert
db3e479ab3
(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
...
[!defined _POSIX_VERSION]: Remove decls.
2005-05-30 07:33:00 +00:00
Paul Eggert
f071607aa1
(geteuid) [!defined _POSIX_VERSION]: Remove decl.
2005-05-30 07:32:16 +00:00
Paul Eggert
6a9173f43e
(getgrnam, getgrgid) [!defined _POSIX_VERSION]:
...
Remove decls.
2005-05-30 07:31:51 +00:00
Paul Eggert
739904ab06
(getgrnam) [!defined _POSIX_VERSION]: Remove decl.
2005-05-30 07:31:31 +00:00
Paul Eggert
4ab39ecf75
(getpwnam, getgrnam, getgrgid)
...
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:31:12 +00:00
Paul Eggert
c86717d0dd
Include <limits.h> unconditionally, since other
...
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).
2005-05-30 07:30:51 +00:00
Paul Eggert
fcb5c87adb
(getpwuid, getpwnam, getgrgid, getgrnam)
...
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:30:31 +00:00
Paul Eggert
241ed9e339
(getuid, getgid, getuid, getegid)
...
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:30:01 +00:00
Paul Eggert
b224f94761
(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
...
Define to 256, not 255, as per modern POSIX.
2005-05-30 07:05:07 +00:00
Paul Eggert
47db304b3c
dd seek=N now conforms to POSIX if the output isn't seekable.
2005-05-28 04:24:14 +00:00
Paul Eggert
5923469a3c
dd seek=N now conforms to POSIX if the output isn't seekable.
2005-05-28 04:22:43 +00:00
Paul Eggert
8f10bd11cf
(skip): Return the number of records that were not
...
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.
2005-05-28 04:22:26 +00:00
Paul Eggert
c3dc98bb5e
* fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
...
and don't require gt_INTTYPES_PRI.
2005-05-28 00:01:15 +00:00
Paul Eggert
abe28983a6
(gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
...
and don't require gt_INTTYPES_PRI.
2005-05-28 00:01:00 +00:00
Paul Eggert
a73860cb2f
fts.c: Don't worry about debugging on pre-C99-comopatible hosts.
2005-05-28 00:00:38 +00:00
Paul Eggert
644cca3ead
Don't worry about debugging on pre-C99-comopatible hosts;
...
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.
2005-05-28 00:00:06 +00:00
Paul Eggert
42a4ba9143
expr and test now correctly compare integers of unlimited size.
2005-05-27 20:37:14 +00:00
Paul Eggert
a2b86be295
Include inttostr.h, strnumcmp.h.
...
(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.
2005-05-27 20:36:58 +00:00
Paul Eggert
58aa95b54b
Refactor so that others can use large-integer
...
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.
2005-05-27 20:36:40 +00:00
Paul Eggert
6d740fd9ee
Include strnumcmp.h, xstrtol.h.
...
(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.
2005-05-27 20:36:20 +00:00