Paul Eggert [Fri, 10 Jun 2005 19:30:51 +0000 (19:30 +0000)]
ls no longer outputs an extra space between mode and link count.
Jim Meyering [Fri, 10 Jun 2005 16:42:33 +0000 (16:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jun 2005 16:42:28 +0000 (16:42 +0000)]
(VERIFY_W_TYPEOF): Add parentheses.
Jim Meyering [Thu, 9 Jun 2005 09:22:27 +0000 (09:22 +0000)]
Change filesystems to `file systems'.
Jim Meyering [Tue, 7 Jun 2005 06:41:18 +0000 (06:41 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jun 2005 06:40:40 +0000 (06:40 +0000)]
(ln invocation): Examples, from Bob Proulx.
Paul Eggert [Fri, 3 Jun 2005 04:49:30 +0000 (04:49 +0000)]
Fix typo in comment.
Paul Eggert [Thu, 2 Jun 2005 19:54:02 +0000 (19:54 +0000)]
Regenerate.
Paul Eggert [Thu, 2 Jun 2005 19:49:27 +0000 (19:49 +0000)]
Sync from gnulib.
Jim Meyering [Thu, 2 Jun 2005 11:38:49 +0000 (11:38 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 11:38:46 +0000 (11:38 +0000)]
Change makepath.c to mkdir-p.c here, too.
Jim Meyering [Thu, 2 Jun 2005 10:04:32 +0000 (10:04 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 10:02:29 +0000 (10:02 +0000)]
(usage): Put `Ordering options:' line where it belongs.
Paul Eggert [Thu, 2 Jun 2005 05:19:46 +0000 (05:19 +0000)]
Regenerate.
Paul Eggert [Thu, 2 Jun 2005 05:19:03 +0000 (05:19 +0000)]
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
Paul Eggert [Thu, 2 Jun 2005 05:17:24 +0000 (05:17 +0000)]
Don't use "path" or "filename".
Paul Eggert [Thu, 2 Jun 2005 05:15:07 +0000 (05:15 +0000)]
Don't use "path" or "filename".
(struct file_name): Renamed from struct Path. All uses changed.
(file_name_free): Renamed from path_free. All uses changed.
(file_name_init): Renamed from path_init. All uses changed.
(file_name_prepend): Renamed from path_prepend. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:14:32 +0000 (05:14 +0000)]
Don't use "path" or "filename".
(make_link_name): Renamed from make_link_path. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:13:57 +0000 (05:13 +0000)]
(FILE_BASENAME_CONCAT): Renamed from PATH_BASENAME_CONCAT.
All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:13:29 +0000 (05:13 +0000)]
Don't use "path" or "filename".
(install_file_in_file_parents): Renamed from
install_file_to_path. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:12:59 +0000 (05:12 +0000)]
Don't use "path" or "filename".
Don't include "path-concat.h"; not needed.
Paul Eggert [Thu, 2 Jun 2005 05:12:17 +0000 (05:12 +0000)]
Don't use "path" or "filename".
(usage): Don't use "path" to describe a file name.
(remove_empty_parents): Renamed from empty_paths.
All uses changed.
(longopts): Add comment that --path is deprecated.
Paul Eggert [Thu, 2 Jun 2005 05:11:32 +0000 (05:11 +0000)]
(usage): Don't use "path" to describe a file name.
Paul Eggert [Thu, 2 Jun 2005 05:11:01 +0000 (05:11 +0000)]
Don't use "path" or "filename".
(parents_option): Renamed from flag_path. All uses changed.
(make_dir_parents_private): Renamed from make_path_private.
All uses changed.
(usage): Don't use "path" to describe a file name.
Paul Eggert [Thu, 2 Jun 2005 05:09:44 +0000 (05:09 +0000)]
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.
Paul Eggert [Thu, 2 Jun 2005 05:08:51 +0000 (05:08 +0000)]
Don't use "path" or "filename" to mean "file name".
Paul Eggert [Thu, 2 Jun 2005 05:06:56 +0000 (05:06 +0000)]
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.
Paul Eggert [Thu, 2 Jun 2005 05:05:29 +0000 (05:05 +0000)]
Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
Paul Eggert [Thu, 2 Jun 2005 05:02:38 +0000 (05:02 +0000)]
(excluded_file_name): Renamed from excluded_filename.
All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:02:14 +0000 (05:02 +0000)]
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.
Paul Eggert [Thu, 2 Jun 2005 05:00:50 +0000 (05:00 +0000)]
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
Paul Eggert [Thu, 2 Jun 2005 05:00:24 +0000 (05:00 +0000)]
(readlink invocation): "path component" ->
"component", since we don't use the POSIX "path" nomenclature.
Paul Eggert [Thu, 2 Jun 2005 04:59:51 +0000 (04:59 +0000)]
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.
Paul Eggert [Thu, 2 Jun 2005 04:59:10 +0000 (04:59 +0000)]
Renamed from path-concat.c.
(file_name_concat): Renamed from path_concat. All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
Paul Eggert [Thu, 2 Jun 2005 04:58:26 +0000 (04:58 +0000)]
Renamed from path-concat.h. All includers changed.
(file_name_concat): Renamed from path_concat. All callers changed.
Paul Eggert [Thu, 2 Jun 2005 04:57:31 +0000 (04:57 +0000)]
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.
Paul Eggert [Thu, 2 Jun 2005 04:56:41 +0000 (04:56 +0000)]
Renamed from makepath.h. All includers changed.
(make_dir_parents): Renamed from make_path. All callers changed.
Paul Eggert [Thu, 2 Jun 2005 04:55:35 +0000 (04:55 +0000)]
Renamed from makepath.c.
(make_dir_parents): Renamed from make_path. All callers changed.
Jim Meyering [Tue, 31 May 2005 07:06:26 +0000 (07:06 +0000)]
*** empty log message ***
Jim Meyering [Tue, 31 May 2005 07:06:23 +0000 (07:06 +0000)]
(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.
Paul Eggert [Tue, 31 May 2005 06:16:51 +0000 (06:16 +0000)]
Port to Solaris 10's rules for whether programs can chown files.
Paul Eggert [Tue, 31 May 2005 06:16:09 +0000 (06:16 +0000)]
(cp_options_init): Use chown_privileges rather than geteuid.
Paul Eggert [Tue, 31 May 2005 06:15:48 +0000 (06:15 +0000)]
(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.
Paul Eggert [Tue, 31 May 2005 06:15:18 +0000 (06:15 +0000)]
Add copyright notice.
(struct cp_options): Remove myeuid member. Add chown_privileges
member.
(chown_privileges, chown_failure_ok): New function decls.
Paul Eggert [Tue, 31 May 2005 06:14:24 +0000 (06:14 +0000)]
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.
Paul Eggert [Tue, 31 May 2005 06:13:44 +0000 (06:13 +0000)]
* jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for priv.h.
Paul Eggert [Tue, 31 May 2005 06:13:25 +0000 (06:13 +0000)]
(gl_CHECK_ALL_HEADERS): Check for priv.h.
Jim Meyering [Mon, 30 May 2005 09:04:13 +0000 (09:04 +0000)]
.
Paul Eggert [Mon, 30 May 2005 07:41:32 +0000 (07:41 +0000)]
Regenerate.
Paul Eggert [Mon, 30 May 2005 07:37:02 +0000 (07:37 +0000)]
_POSIX_VERSION cleanup
Paul Eggert [Mon, 30 May 2005 07:34:23 +0000 (07:34 +0000)]
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.
Paul Eggert [Mon, 30 May 2005 07:33:55 +0000 (07:33 +0000)]
Don't bother mentioning _POSIX_VERSION in comment.
Paul Eggert [Mon, 30 May 2005 07:33:38 +0000 (07:33 +0000)]
(OPENOPTS, TEXT1T01, TEXTCNVT): Remove.
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.
Paul Eggert [Mon, 30 May 2005 07:33:16 +0000 (07:33 +0000)]
(getpwnam, getgrnam): Remove decl.
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
Paul Eggert [Mon, 30 May 2005 07:33:00 +0000 (07:33 +0000)]
(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
[!defined _POSIX_VERSION]: Remove decls.
Paul Eggert [Mon, 30 May 2005 07:32:16 +0000 (07:32 +0000)]
(geteuid) [!defined _POSIX_VERSION]: Remove decl.
Paul Eggert [Mon, 30 May 2005 07:31:51 +0000 (07:31 +0000)]
(getgrnam, getgrgid) [!defined _POSIX_VERSION]:
Remove decls.
Paul Eggert [Mon, 30 May 2005 07:31:31 +0000 (07:31 +0000)]
(getgrnam) [!defined _POSIX_VERSION]: Remove decl.
Paul Eggert [Mon, 30 May 2005 07:31:12 +0000 (07:31 +0000)]
(getpwnam, getgrnam, getgrgid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
Paul Eggert [Mon, 30 May 2005 07:30:51 +0000 (07:30 +0000)]
Include <limits.h> unconditionally, since other
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).
Paul Eggert [Mon, 30 May 2005 07:30:31 +0000 (07:30 +0000)]
(getpwuid, getpwnam, getgrgid, getgrnam)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
Paul Eggert [Mon, 30 May 2005 07:30:01 +0000 (07:30 +0000)]
(getuid, getgid, getuid, getegid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
Paul Eggert [Mon, 30 May 2005 07:05:07 +0000 (07:05 +0000)]
(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.
Paul Eggert [Sat, 28 May 2005 04:24:14 +0000 (04:24 +0000)]
dd seek=N now conforms to POSIX if the output isn't seekable.
Paul Eggert [Sat, 28 May 2005 04:22:43 +0000 (04:22 +0000)]
dd seek=N now conforms to POSIX if the output isn't seekable.
Paul Eggert [Sat, 28 May 2005 04:22:26 +0000 (04:22 +0000)]
(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.
Paul Eggert [Sat, 28 May 2005 00:01:15 +0000 (00:01 +0000)]
* fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.
Paul Eggert [Sat, 28 May 2005 00:01:00 +0000 (00:01 +0000)]
(gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.
Paul Eggert [Sat, 28 May 2005 00:00:38 +0000 (00:00 +0000)]
fts.c: Don't worry about debugging on pre-C99-comopatible hosts.
Paul Eggert [Sat, 28 May 2005 00:00:06 +0000 (00:00 +0000)]
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.
Paul Eggert [Fri, 27 May 2005 20:37:14 +0000 (20:37 +0000)]
expr and test now correctly compare integers of unlimited size.
Paul Eggert [Fri, 27 May 2005 20:36:58 +0000 (20:36 +0000)]
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.
Paul Eggert [Fri, 27 May 2005 20:36:40 +0000 (20:36 +0000)]
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.
Paul Eggert [Fri, 27 May 2005 20:36:20 +0000 (20:36 +0000)]
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.
Paul Eggert [Fri, 27 May 2005 20:35:33 +0000 (20:35 +0000)]
Break integer-in-string comparison code out from src/sort.
Paul Eggert [Fri, 27 May 2005 20:35:07 +0000 (20:35 +0000)]
(gl_PREREQ): Require gl_STRINTCMP, gl_STRNUMCMP.
Paul Eggert [Fri, 27 May 2005 20:34:48 +0000 (20:34 +0000)]
Compare numeric strings.
Paul Eggert [Fri, 27 May 2005 20:34:03 +0000 (20:34 +0000)]
Break integer-in-string comparison code out from src/sort.
Paul Eggert [Fri, 27 May 2005 20:32:43 +0000 (20:32 +0000)]
(eq-6, gt-5, lt-5): New tests.
Paul Eggert [Fri, 27 May 2005 20:32:28 +0000 (20:32 +0000)]
(bigcmp): New test.
Paul Eggert [Fri, 27 May 2005 20:31:59 +0000 (20:31 +0000)]
expr and test now correctly compare integers of unlimited size.
(Also, correct a comment that claimed that expr detects integer
overflow; it does so only when converting from strings.)
Paul Eggert [Thu, 26 May 2005 19:30:04 +0000 (19:30 +0000)]
Fix typo in comment.
Paul Eggert [Thu, 26 May 2005 19:27:50 +0000 (19:27 +0000)]
nohup now redirects a tty stdin to an unreadable fd instead of closing it.
Jim Meyering [Thu, 26 May 2005 18:35:59 +0000 (18:35 +0000)]
*** empty log message ***
Jim Meyering [Thu, 26 May 2005 18:35:33 +0000 (18:35 +0000)]
*** empty log message ***
Jim Meyering [Thu, 26 May 2005 18:34:18 +0000 (18:34 +0000)]
.
Jim Meyering [Thu, 26 May 2005 16:09:43 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Thu, 26 May 2005 16:09:38 +0000 (16:09 +0000)]
(toarith): Fix a sign error introduced on 2005-01-14.
Jim Meyering [Thu, 26 May 2005 16:09:29 +0000 (16:09 +0000)]
Add tests using arithmetic on negative integers.
Paul Eggert [Sun, 22 May 2005 17:29:46 +0000 (17:29 +0000)]
(fd_safer) [_LGPL_PACKAGE]: New static function,
so that unistd-safer.h (GPL'ed code) need not be included.
Jim Meyering [Sat, 21 May 2005 06:44:36 +0000 (06:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 May 2005 06:42:41 +0000 (06:42 +0000)]
fix typo in a comment
Paul Eggert [Fri, 20 May 2005 22:48:40 +0000 (22:48 +0000)]
Import chown fixes from gnulib.
Paul Eggert [Fri, 20 May 2005 22:48:25 +0000 (22:48 +0000)]
(gl_FUNC_CHOWN): Correct sense of test for honoring IDs of -1.
Paul Eggert [Fri, 20 May 2005 22:48:08 +0000 (22:48 +0000)]
(rpl_chown): Return -1 on failure.
Paul Eggert [Fri, 20 May 2005 22:38:38 +0000 (22:38 +0000)]
Regenerate.
Paul Eggert [Fri, 20 May 2005 22:37:58 +0000 (22:37 +0000)]
* config.guess: Sync from gnulib.
Paul Eggert [Fri, 20 May 2005 22:37:45 +0000 (22:37 +0000)]
Sync from gnulib.
Paul Eggert [Fri, 20 May 2005 22:34:44 +0000 (22:34 +0000)]
Split fts into LGPL'ed and GPL'ed parts.
Paul Eggert [Fri, 20 May 2005 22:34:19 +0000 (22:34 +0000)]
Don't include "cycle-check.h" or "hash.h".
(setup_dir, free_dir): New functions.
(enter_dir, leave_dir): Define trivial
alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
(HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
(LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
(struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
Move to fts-cycle.c.
(fts_open): Use setup_dir.
(fts_close): Use free_dir.
(fts_read): Have just one copy of the ENTER_DIR code rather than three.
This adds a label and some gotos, but the alternatives were messier.
Check for memory allocation failure when entering a dir.
(fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.