platform/upstream/coreutils.git
19 years agoUse only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
Paul Eggert [Sat, 9 Jul 2005 07:37:58 +0000 (07:37 +0000)]
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.

19 years agostrtopt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:37:19 +0000 (07:37 +0000)]
strtopt.h -> stropts.h

19 years agostrtopt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:36:54 +0000 (07:36 +0000)]
strtopt.h -> stropts.h

19 years agoUndo previous change, and remove AC_HEADER_TIOCGWINSZ.
Paul Eggert [Sat, 9 Jul 2005 07:36:33 +0000 (07:36 +0000)]
Undo previous change, and remove AC_HEADER_TIOCGWINSZ.

19 years agoUpdate to Eric Blake porting problems.
Paul Eggert [Sat, 9 Jul 2005 07:36:03 +0000 (07:36 +0000)]
Update to Eric Blake porting problems.

19 years ago(getloadavg) [__CYGWIN__]: Port to cygwin.
Paul Eggert [Fri, 8 Jul 2005 23:41:43 +0000 (23:41 +0000)]
(getloadavg) [__CYGWIN__]: Port to cygwin.
[__linux__]: Allocate a big enough buffer for /proc/loadavg.
[!LDAV_DONE]: Avoid unused variable warning.

19 years agoRegenerate.
Paul Eggert [Fri, 8 Jul 2005 22:57:38 +0000 (22:57 +0000)]
Regenerate.

19 years agoFix porting problems reported by Eric Blake.
Paul Eggert [Fri, 8 Jul 2005 22:57:09 +0000 (22:57 +0000)]
Fix porting problems reported by Eric Blake.

19 years ago(gl_CHECK_ALL_HEADERS): Check for stropt.h.
Paul Eggert [Fri, 8 Jul 2005 22:56:17 +0000 (22:56 +0000)]
(gl_CHECK_ALL_HEADERS): Check for stropt.h.

19 years ago(print_user): Don't assume uid fits in unsigned int.
Paul Eggert [Fri, 8 Jul 2005 22:55:44 +0000 (22:55 +0000)]
(print_user): Don't assume uid fits in unsigned int.
(print_group): Likewise, for gid.

19 years agoInclude stropt.h if available.
Paul Eggert [Fri, 8 Jul 2005 22:54:40 +0000 (22:54 +0000)]
Include stropt.h if available.

19 years agoInclude stropt.h if available.
Paul Eggert [Fri, 8 Jul 2005 22:54:15 +0000 (22:54 +0000)]
Include stropt.h if available.
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.

19 years agoAdd check for HAVE_FIONREAD_IN_SYS_IOCTL.
Paul Eggert [Fri, 8 Jul 2005 22:53:50 +0000 (22:53 +0000)]
Add check for HAVE_FIONREAD_IN_SYS_IOCTL.

19 years ago(init_dfa, build_range_exp): Store __btowc value
Paul Eggert [Fri, 8 Jul 2005 17:58:35 +0000 (17:58 +0000)]
(init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t.  Remove now-unnecessary cast.

19 years agobackupfile.m4, same.m4 cleanup.
Paul Eggert [Fri, 8 Jul 2005 07:09:20 +0000 (07:09 +0000)]
backupfile.m4, same.m4 cleanup.

19 years ago(gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
Paul Eggert [Fri, 8 Jul 2005 07:08:56 +0000 (07:08 +0000)]
(gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.

19 years ago(gl_SAME): Use AC_CHECK_FUNCS_ONCE on pathconf.
Paul Eggert [Fri, 8 Jul 2005 07:08:41 +0000 (07:08 +0000)]
(gl_SAME): Use AC_CHECK_FUNCS_ONCE on pathconf.
Require AC_SYS_LONG_FILE_NAMES.

19 years agoRegenerate.
Paul Eggert [Fri, 8 Jul 2005 00:35:04 +0000 (00:35 +0000)]
Regenerate.

19 years agoSwitch to Isamu Hasegawa's implementation of regex, which is
Paul Eggert [Fri, 8 Jul 2005 00:23:15 +0000 (00:23 +0000)]
Switch to Isamu Hasegawa's implementation of regex, which is
now in gnulib.

19 years agoAdd regcomp.c, regex_internal.c, regex_internal.h.
Paul Eggert [Fri, 8 Jul 2005 00:22:14 +0000 (00:22 +0000)]
Add regcomp.c, regex_internal.c, regex_internal.h.

19 years ago(libcoreutils_a_SOURCES): Remove regex.h; gnulib
Paul Eggert [Fri, 8 Jul 2005 00:14:05 +0000 (00:14 +0000)]
(libcoreutils_a_SOURCES): Remove regex.h; gnulib
now does this automatically for us.

19 years ago.
Jim Meyering [Thu, 7 Jul 2005 17:59:05 +0000 (17:59 +0000)]
.

19 years agoremove stray `=' from comment
Jim Meyering [Wed, 6 Jul 2005 09:34:09 +0000 (09:34 +0000)]
remove stray `=' from comment

19 years ago(DECIMAL_DIGIT_ACCUMULATE): Generate a hard error
Paul Eggert [Tue, 5 Jul 2005 22:20:17 +0000 (22:20 +0000)]
(DECIMAL_DIGIT_ACCUMULATE): Generate a hard error
(not just a warning) if GCC is used and the types don't match.

19 years agofix typo in comment
Jim Meyering [Tue, 5 Jul 2005 07:33:50 +0000 (07:33 +0000)]
fix typo in comment

19 years agoRemove the need for typeof.
Paul Eggert [Tue, 5 Jul 2005 06:33:24 +0000 (06:33 +0000)]
Remove the need for typeof.

19 years agoAdjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is now
Paul Eggert [Tue, 5 Jul 2005 06:32:54 +0000 (06:32 +0000)]
Adjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is now
a type, not a value.

19 years ago(VERIFY_W_TYPEOF): Remove; no longer needed.
Paul Eggert [Tue, 5 Jul 2005 06:31:46 +0000 (06:31 +0000)]
(VERIFY_W_TYPEOF): Remove; no longer needed.
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value
to T itself.  All callers changed.  Check that T is unsigned, and
that Accum is of type T.  This fixes a bug in the unlikely case
where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do
the proper validity checks.

19 years agoRemove typeof test; no longer needed.
Paul Eggert [Tue, 5 Jul 2005 06:30:57 +0000 (06:30 +0000)]
Remove typeof test; no longer needed.

19 years ago(gl_PREREQ): Don't require gl_TYPEOF; no longer needed.
Paul Eggert [Tue, 5 Jul 2005 06:30:27 +0000 (06:30 +0000)]
(gl_PREREQ): Don't require gl_TYPEOF; no longer needed.

19 years agoAdjust to verify.h change.
Paul Eggert [Tue, 5 Jul 2005 05:17:10 +0000 (05:17 +0000)]
Adjust to verify.h change.

19 years ago(VERIFY_W_TYPEOF): Adjust to verify.h change.
Paul Eggert [Tue, 5 Jul 2005 05:16:57 +0000 (05:16 +0000)]
(VERIFY_W_TYPEOF): Adjust to verify.h change.

19 years agoverify.h improvements.
Paul Eggert [Tue, 5 Jul 2005 05:16:29 +0000 (05:16 +0000)]
verify.h improvements.

19 years ago* verify.h (GL_CONCAT0, GL_CONCAT): Define unconditionally; don't
Paul Eggert [Tue, 5 Jul 2005 05:16:08 +0000 (05:16 +0000)]
* verify.h (GL_CONCAT0, GL_CONCAT): Define unconditionally; don't
depend on whether verify_decl is defined.
(verify): Renamed from verify_decl.  All uses changed.
Use an extern function decl, as it can't possibly collide with other
decls.
(verify_expr): Renamed from verify.  All uses changed.
(verify_type__): New private macro.
(verify, verify_expr): Use it.

19 years agorename: s/verify_dcl/verify_decl/
Jim Meyering [Mon, 4 Jul 2005 17:40:37 +0000 (17:40 +0000)]
rename: s/verify_dcl/verify_decl/

19 years agorename: s/verify_dcl/verify_decl/
Jim Meyering [Mon, 4 Jul 2005 17:39:48 +0000 (17:39 +0000)]
rename: s/verify_dcl/verify_decl/

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:09:10 +0000 (16:09 +0000)]
*** empty log message ***

19 years ago(libcoreutils_a_SOURCES): Add verify.h here, temporarily.
Jim Meyering [Mon, 4 Jul 2005 16:09:03 +0000 (16:09 +0000)]
(libcoreutils_a_SOURCES): Add verify.h here, temporarily.
Eventually, it'll be pulled in via AC_LIBSOURCES.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:06:43 +0000 (16:06 +0000)]
*** empty log message ***

19 years agoInclude "verify.h".
Jim Meyering [Mon, 4 Jul 2005 16:06:41 +0000 (16:06 +0000)]
Include "verify.h".

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 16:05:44 +0000 (16:05 +0000)]
*** empty log message ***

19 years ago(verify, verify_dcl): New file/macros.
Jim Meyering [Mon, 4 Jul 2005 16:05:41 +0000 (16:05 +0000)]
(verify, verify_dcl): New file/macros.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 14:47:47 +0000 (14:47 +0000)]
*** empty log message ***

19 years ago(verify_dcl): Rename from VERIFY. Update use.
Jim Meyering [Mon, 4 Jul 2005 14:47:42 +0000 (14:47 +0000)]
(verify_dcl): Rename from VERIFY.  Update use.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 14:00:03 +0000 (14:00 +0000)]
*** empty log message ***

19 years agoReflect name change: s/VERIFY/verify_dcl/.
Jim Meyering [Mon, 4 Jul 2005 13:59:54 +0000 (13:59 +0000)]
Reflect name change: s/VERIFY/verify_dcl/.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Jul 2005 13:56:21 +0000 (13:56 +0000)]
*** empty log message ***

19 years ago(verify): Rename from VERIFY_EXPR, to be lower case,
Jim Meyering [Mon, 4 Jul 2005 13:56:18 +0000 (13:56 +0000)]
(verify): Rename from VERIFY_EXPR, to be lower case,
like assert.  Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax.  Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.

19 years agoRemove the dependency of the strftime module on the tzset module.
Paul Eggert [Mon, 4 Jul 2005 05:07:30 +0000 (05:07 +0000)]
Remove the dependency of the strftime module on the tzset module.

19 years ago(my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
Paul Eggert [Mon, 4 Jul 2005 05:06:44 +0000 (05:06 +0000)]
(my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
Copy the input structure, to work around some of the bug with
Solaris 2.5.1 and Solaris 2.6.

19 years ago(gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.
Paul Eggert [Mon, 4 Jul 2005 05:06:11 +0000 (05:06 +0000)]
(gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.

19 years ago(gl_PREREQ): Add gl_FUNC_TZSET_CLOBBER.
Paul Eggert [Mon, 4 Jul 2005 05:05:55 +0000 (05:05 +0000)]
(gl_PREREQ): Add gl_FUNC_TZSET_CLOBBER.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 21:10:37 +0000 (21:10 +0000)]
*** empty log message ***

19 years ago(posixtime) [lint]: Initialize *all* of tm0, not just
Jim Meyering [Sun, 3 Jul 2005 21:10:31 +0000 (21:10 +0000)]
(posixtime) [lint]: Initialize *all* of tm0, not just
the .tm_year member, since otherwise gcc-4.0 would now warn about
tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 18:21:02 +0000 (18:21 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:58:52 +0000 (16:58 +0000)]
*** empty log message ***

19 years agoAdjust for new diagnostic.
Jim Meyering [Sun, 3 Jul 2005 16:58:48 +0000 (16:58 +0000)]
Adjust for new diagnostic.

19 years agoAdjust for new diagnostic.
Jim Meyering [Sun, 3 Jul 2005 16:54:37 +0000 (16:54 +0000)]
Adjust for new diagnostic.

19 years agocp and mv: the --reply=X option is deprecated
Jim Meyering [Sun, 3 Jul 2005 16:52:09 +0000 (16:52 +0000)]
cp and mv: the --reply=X option is deprecated

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:52:01 +0000 (16:52 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:49:26 +0000 (16:49 +0000)]
*** empty log message ***

19 years ago(main): Using --reply now evokes a warning.
Jim Meyering [Sun, 3 Jul 2005 16:49:15 +0000 (16:49 +0000)]
(main): Using --reply now evokes a warning.
(usage): Remove description of --reply.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 16:48:24 +0000 (16:48 +0000)]
*** empty log message ***

19 years ago(cp invocation): Mark --reply as deprecated.
Jim Meyering [Sun, 3 Jul 2005 16:48:19 +0000 (16:48 +0000)]
(cp invocation): Mark --reply as deprecated.
(mv invocation): Likewise.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 15:30:01 +0000 (15:30 +0000)]
*** empty log message ***

19 years agoRemove obsolete comment.
Jim Meyering [Sun, 3 Jul 2005 15:29:58 +0000 (15:29 +0000)]
Remove obsolete comment.

19 years ago.
Jim Meyering [Sun, 3 Jul 2005 13:47:39 +0000 (13:47 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 13:44:58 +0000 (13:44 +0000)]
*** empty log message ***

19 years ago(gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h.
Jim Meyering [Sun, 3 Jul 2005 13:44:52 +0000 (13:44 +0000)]
(gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h.

19 years ago.
Jim Meyering [Sun, 3 Jul 2005 11:58:11 +0000 (11:58 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 11:55:51 +0000 (11:55 +0000)]
*** empty log message ***

19 years ago(gl_FUNC_LSTAT): New file, from gnulib.
Jim Meyering [Sun, 3 Jul 2005 11:55:48 +0000 (11:55 +0000)]
(gl_FUNC_LSTAT): New file, from gnulib.

19 years agoLog today's changes.
Paul Eggert [Sun, 3 Jul 2005 09:37:52 +0000 (09:37 +0000)]
Log today's changes.

19 years agoMinor fixes for port to Solaris 8.
Paul Eggert [Sun, 3 Jul 2005 09:35:55 +0000 (09:35 +0000)]
Minor fixes for port to Solaris 8.

19 years agoMinor fixes for port to Solaris 8.
Paul Eggert [Sun, 3 Jul 2005 09:35:34 +0000 (09:35 +0000)]
Minor fixes for port to Solaris 8.

19 years agoUndo previous change.
Paul Eggert [Sun, 3 Jul 2005 09:35:02 +0000 (09:35 +0000)]
Undo previous change.

19 years agoInclude "lstat.h" rather than rolling our own.
Paul Eggert [Sun, 3 Jul 2005 09:31:19 +0000 (09:31 +0000)]
Include "lstat.h" rather than rolling our own.

19 years agoDon't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
Paul Eggert [Sun, 3 Jul 2005 09:30:00 +0000 (09:30 +0000)]
Don't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
module's job.

19 years agoRemove (sync from gnulib).
Paul Eggert [Sun, 3 Jul 2005 09:28:55 +0000 (09:28 +0000)]
Remove (sync from gnulib).

19 years agoNew file, from gnulib.
Paul Eggert [Sun, 3 Jul 2005 09:28:17 +0000 (09:28 +0000)]
New file, from gnulib.

19 years agoSync from gnulib.
Paul Eggert [Sun, 3 Jul 2005 09:27:38 +0000 (09:27 +0000)]
Sync from gnulib.

19 years ago[! _LIBC]: Include "lstat.h" rather than rolling our own.
Paul Eggert [Sun, 3 Jul 2005 09:27:22 +0000 (09:27 +0000)]
[! _LIBC]: Include "lstat.h" rather than rolling our own.

19 years ago(libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
Paul Eggert [Sun, 3 Jul 2005 09:26:59 +0000 (09:26 +0000)]
(libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
stdlib--.h, unistd--.h.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:14:58 +0000 (09:14 +0000)]
*** empty log message ***

19 years ago(gl_FCNTL_SAFER): Add fcntl--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:33 +0000 (09:13 +0000)]
(gl_FCNTL_SAFER): Add fcntl--.h to the list.

19 years ago(gl_STDIO_SAFER): Add stdio--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:27 +0000 (09:13 +0000)]
(gl_STDIO_SAFER): Add stdio--.h to the list.

19 years ago(gl_STDLIB_SAFER): Add stdlib--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:13:04 +0000 (09:13 +0000)]
(gl_STDLIB_SAFER): Add stdlib--.h to the list.

19 years ago(gl_UNISTD_SAFER): Add unistd--.h to the list.
Jim Meyering [Sun, 3 Jul 2005 09:12:57 +0000 (09:12 +0000)]
(gl_UNISTD_SAFER): Add unistd--.h to the list.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Jul 2005 09:07:28 +0000 (09:07 +0000)]
*** empty log message ***

19 years agoInclude <unistd.h> for declaration of close.
Jim Meyering [Sun, 3 Jul 2005 09:07:22 +0000 (09:07 +0000)]
Include <unistd.h> for declaration of close.

19 years ago(verify_numeric): Rename from verify.
Jim Meyering [Sun, 3 Jul 2005 08:46:05 +0000 (08:46 +0000)]
(verify_numeric): Rename from verify.
Update caller.

19 years agoRegenerate.
Paul Eggert [Sun, 3 Jul 2005 07:28:38 +0000 (07:28 +0000)]
Regenerate.

19 years agoCleanup to isolate "safer" functions to a small part of the code.
Paul Eggert [Sun, 3 Jul 2005 07:27:05 +0000 (07:27 +0000)]
Cleanup to isolate "safer" functions to a small part of the code.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:23:18 +0000 (07:23 +0000)]
Include fcntl--.h, not unistd-safer.h.
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.

19 years agoInclude stdio--.h, not stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:22:50 +0000 (07:22 +0000)]
Include stdio--.h, not stdio-safer.h.
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.

19 years agoInclude fcntl--.h, not unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:49 +0000 (07:21 +0000)]
Include fcntl--.h, not unistd-safer.h.
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.

19 years agoInclude stdlib--.h rather than unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:31 +0000 (07:21 +0000)]
Include stdlib--.h rather than unistd-safer.h.
(copy_to_temp): Don't call fd_safer; no longer needed now
that we include stdlib--.h.

19 years agoInclude fd-reopen.h.
Paul Eggert [Sun, 3 Jul 2005 07:21:03 +0000 (07:21 +0000)]
Include fd-reopen.h.
(display_all, display_settings, display_window_size, set_window_size):
Remove fd arg, since we now assume stdin.  All callers changed.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.

19 years agoInclude fcntl--.h rather than unistd-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:20:33 +0000 (07:20 +0000)]
Include fcntl--.h rather than unistd-safer.h.
Include fd-reopen.h.
(input_desc): Remove.  All uses replaced by STDIN_FILENO.
(cwrite): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.

19 years agoInclude stdio--.h rather than stdio-safer.h.
Paul Eggert [Sun, 3 Jul 2005 07:20:04 +0000 (07:20 +0000)]
Include stdio--.h rather than stdio-safer.h.
Include stdlib--.h.  Do not include unistd-safer.h.
(create_temp_file): Don't call fd_safer; no longer needed
now that we include *--.h files.
(xfopen): Don't call fopen_safer, for similar reasons.