platform/upstream/coreutils.git
18 years ago(EXTRA_DIST): Add .x-sc_no_if_have_config_h.
Jim Meyering [Sat, 24 Sep 2005 13:41:48 +0000 (13:41 +0000)]
(EXTRA_DIST): Add .x-sc_no_if_have_config_h.

18 years ago(sc_no_if_have_config_h): New rule.
Jim Meyering [Sat, 24 Sep 2005 13:41:20 +0000 (13:41 +0000)]
(sc_no_if_have_config_h): New rule.
(syntax-check-rules): Add it.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 13:41:01 +0000 (13:41 +0000)]
*** empty log message ***

18 years agoUse `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with gnulib.
Jim Meyering [Sat, 24 Sep 2005 13:40:37 +0000 (13:40 +0000)]
Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with gnulib.

18 years ago.
Jim Meyering [Sat, 24 Sep 2005 13:36:20 +0000 (13:36 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 13:32:36 +0000 (13:32 +0000)]
*** empty log message ***

18 years agoUse `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with gnulib.
Jim Meyering [Sat, 24 Sep 2005 13:32:31 +0000 (13:32 +0000)]
Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with gnulib.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 13:27:41 +0000 (13:27 +0000)]
*** empty log message ***

18 years agoInclude <config.h> from strintcmp.c, not from here.
Jim Meyering [Sat, 24 Sep 2005 13:27:34 +0000 (13:27 +0000)]
Include <config.h> from strintcmp.c, not from here.

18 years agoInclude <config.h> here, not from strnumcmp-in.h.
Jim Meyering [Sat, 24 Sep 2005 13:26:41 +0000 (13:26 +0000)]
Include <config.h> here, not from strnumcmp-in.h.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 10:44:33 +0000 (10:44 +0000)]
*** empty log message ***

18 years ago(gl_GETADDRINFO): Check for gethostbyname
Jim Meyering [Sat, 24 Sep 2005 10:44:30 +0000 (10:44 +0000)]
(gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries.  Required on Solaris 5.7.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 10:06:36 +0000 (10:06 +0000)]
*** empty log message ***

18 years ago(eq-wid-1, eq-wid-2): Disable these tests for now.
Jim Meyering [Sat, 24 Sep 2005 10:06:29 +0000 (10:06 +0000)]
(eq-wid-1, eq-wid-2): Disable these tests for now.
They fail with non-gcc compilers and some combinations
of options and libraries on Solaris systems.

18 years ago*** empty log message ***
Jim Meyering [Sat, 24 Sep 2005 07:57:42 +0000 (07:57 +0000)]
*** empty log message ***

18 years ago(uninit-64): Restore this test.
Jim Meyering [Sat, 24 Sep 2005 07:57:36 +0000 (07:57 +0000)]
(uninit-64): Restore this test.
Add start-up code to detect, and work around, the cases in
which the test might fail.

18 years ago* tests/misc/date (uninit-64): Remove this test.
Paul Eggert [Sat, 24 Sep 2005 07:05:52 +0000 (07:05 +0000)]
* tests/misc/date (uninit-64): Remove this test.

18 years ago(uninit-64): Remove this test. It wasn't
Paul Eggert [Sat, 24 Sep 2005 07:05:27 +0000 (07:05 +0000)]
(uninit-64): Remove this test.  It wasn't
portable in theory (it doesn't work on hosts where 'int' is 64
bits, example) or in practice (Solaris 8 localtime returns garbage
in tm_year for the specified date, but that's not coreutils's
fault).

18 years ago.
Jim Meyering [Sat, 24 Sep 2005 06:53:27 +0000 (06:53 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 23:05:44 +0000 (23:05 +0000)]
*** empty log message ***

18 years ago(verify_type__): Use `unsigned int' as the bitfield type
Jim Meyering [Fri, 23 Sep 2005 23:05:39 +0000 (23:05 +0000)]
(verify_type__): Use `unsigned int' as the bitfield type
so we can once again use a positive bitfield width of 1 -- now we
don't have to explain why we were using a bitfield width of 2.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 23:05:16 +0000 (23:05 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 22:49:10 +0000 (22:49 +0000)]
*** empty log message ***

18 years agoAdd lib/gai_strerror.c.
Jim Meyering [Fri, 23 Sep 2005 22:49:05 +0000 (22:49 +0000)]
Add lib/gai_strerror.c.

18 years agoUse 2, not 1, for bitfield size in verify.h.
Paul Eggert [Fri, 23 Sep 2005 21:49:59 +0000 (21:49 +0000)]
Use 2, not 1, for bitfield size in verify.h.

18 years ago(verify_type__): Use 2, not 1, for bitfield size, to avoid
Paul Eggert [Fri, 23 Sep 2005 21:49:31 +0000 (21:49 +0000)]
(verify_type__): Use 2, not 1, for bitfield size, to avoid
a warning with Irix 6.5 cc.

18 years agoLog recent changes.
Paul Eggert [Fri, 23 Sep 2005 21:40:12 +0000 (21:40 +0000)]
Log recent changes.

18 years ago(gl_REGEX): If replacing, define regcomp to rpl_regcomp,
Paul Eggert [Fri, 23 Sep 2005 21:17:57 +0000 (21:17 +0000)]
(gl_REGEX): If replacing, define regcomp to rpl_regcomp,
and similarly for the other external symbols.  Problem reported
by James Gallager.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 20:56:54 +0000 (20:56 +0000)]
*** empty log message ***

18 years ago(install_file_in_file): Be more conservative about the previous patch:
Paul Eggert [Fri, 23 Sep 2005 20:50:49 +0000 (20:50 +0000)]
(install_file_in_file): Be more conservative about the previous patch:
set time stamps on all non-regular files.

18 years ago(change_timestamps): First arg is source
Paul Eggert [Fri, 23 Sep 2005 20:39:04 +0000 (20:39 +0000)]
(change_timestamps): First arg is source
struct stat, not file name.  All uses changed.
(install_file_in_file): Stat the source file if necessary.
Don't try to change time stamps if copy_file did it.

18 years ago(copy_reg): Preserve time stamps if
Paul Eggert [Fri, 23 Sep 2005 20:38:34 +0000 (20:38 +0000)]
(copy_reg): Preserve time stamps if
x->preserve_timestamps is set, using futimens so that
we needn't resolve the path again.
(copy_internal): Don't preserve time stamps if copy_reg did it
already.

18 years agoDon't include utime.h; not needed.
Paul Eggert [Fri, 23 Sep 2005 20:35:41 +0000 (20:35 +0000)]
Don't include utime.h; not needed.
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.

18 years ago(gl_MACROS): Don't require gl_CHECK_TYPE_STRUCT_UTIMBUF.
Paul Eggert [Fri, 23 Sep 2005 20:35:14 +0000 (20:35 +0000)]
(gl_MACROS): Don't require gl_CHECK_TYPE_STRUCT_UTIMBUF.
(gl_CHECK_ALL_HEADERS): Don't check for utime.h.

18 years agoUpdate copyright.
Paul Eggert [Fri, 23 Sep 2005 20:26:09 +0000 (20:26 +0000)]
Update copyright.

18 years ago(_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
Paul Eggert [Fri, 23 Sep 2005 20:23:59 +0000 (20:23 +0000)]
(_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
bug reported by Jim Meyering.

18 years ago.
Jim Meyering [Fri, 23 Sep 2005 20:14:20 +0000 (20:14 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 20:14:01 +0000 (20:14 +0000)]
*** empty log message ***

18 years agoUse `verify' to ensure that our hard-coded
Jim Meyering [Fri, 23 Sep 2005 20:13:49 +0000 (20:13 +0000)]
Use `verify' to ensure that our hard-coded
bytes_to_*_digits arrays are long enough.  Of course, 17+-byte
integral types aren't on the near horizon, but just in case...
(MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use.
(bytes_to_oct_digits, bytes_to_signed_dec_digits):
(bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base
type from `char' to the clearer `unsigned int'.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 20:00:19 +0000 (20:00 +0000)]
*** empty log message ***

18 years ago(gl_MACROS): AC_REQUIRE([gl_SOCKLEN_T]) here,
Jim Meyering [Fri, 23 Sep 2005 19:59:07 +0000 (19:59 +0000)]
(gl_MACROS): AC_REQUIRE([gl_SOCKLEN_T]) here,
now that it's no longer required by getaddrinfo.m4.

18 years agonot needed, since socklen is a prerequisite module.
Paul Eggert [Fri, 23 Sep 2005 19:40:04 +0000 (19:40 +0000)]
not needed, since socklen is a prerequisite module.

18 years ago* lib/utimens.c (futimens): Use futimesat if available.
Paul Eggert [Fri, 23 Sep 2005 19:18:27 +0000 (19:18 +0000)]
* lib/utimens.c (futimens): Use futimesat if available.
Prefer it to futimes since it doesn't have the futimes bug.
* m4/utimens.m4 (gl_UTIMENS): Check for futimesat.

18 years agoFix typo in comment.
Paul Eggert [Fri, 23 Sep 2005 17:52:22 +0000 (17:52 +0000)]
Fix typo in comment.

18 years ago(GL_CONCAT0, GL_CONCAT): Remove.
Paul Eggert [Fri, 23 Sep 2005 17:47:15 +0000 (17:47 +0000)]
(GL_CONCAT0, GL_CONCAT): Remove.
(verify): Don't use the __LINE__ trick, as it doesn't work in general.
Instead, declare a function that returns a pointer to an array,
and use verify_type__ to declare the size of the array.
Problem and germ of a solution reported by Bruno Haible.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 14:50:22 +0000 (14:50 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 14:48:21 +0000 (14:48 +0000)]
*** empty log message ***

18 years agofrom gnulib
Jim Meyering [Fri, 23 Sep 2005 14:48:14 +0000 (14:48 +0000)]
from gnulib

18 years ago(gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
Jim Meyering [Fri, 23 Sep 2005 14:47:58 +0000 (14:47 +0000)]
(gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.

18 years ago*** empty log message ***
Jim Meyering [Fri, 23 Sep 2005 12:44:07 +0000 (12:44 +0000)]
*** empty log message ***

18 years agoInclude <config.h>. Otherwise builds with strict
Jim Meyering [Fri, 23 Sep 2005 12:42:45 +0000 (12:42 +0000)]
Include <config.h>.  Otherwise builds with strict
C89 (e.g., Sun's /opt/SUNWspro/bin/c89) would fail due to the use
of `inline'.

18 years ago(gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
Paul Eggert [Fri, 23 Sep 2005 05:13:15 +0000 (05:13 +0000)]
(gl_PREREQ_GETADDRINFO): Check for netinet/in.h.

18 years ago* lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
Paul Eggert [Fri, 23 Sep 2005 05:12:50 +0000 (05:12 +0000)]
* lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
Problem reported by Eric Blake.
(getaddrinfo): Initialize se so that it's not garbage.
Redo internal storage allocation so that it doesn't make unportable
assumptions about alignment.
Fix a memory leak.

18 years ago.
Jim Meyering [Thu, 22 Sep 2005 09:47:36 +0000 (09:47 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Thu, 22 Sep 2005 07:10:17 +0000 (07:10 +0000)]
*** empty log message ***

18 years agoRegenerate.
Paul Eggert [Thu, 22 Sep 2005 07:07:36 +0000 (07:07 +0000)]
Regenerate.

18 years agoSync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 07:06:16 +0000 (07:06 +0000)]
Sync from gnulib.

18 years agoInclude canon-host.h rather than declaring canon_host ourselves.
Paul Eggert [Thu, 22 Sep 2005 07:01:24 +0000 (07:01 +0000)]
Include canon-host.h rather than declaring canon_host ourselves.

18 years agoInclude canon-host.h rather than declaring
Paul Eggert [Thu, 22 Sep 2005 07:01:07 +0000 (07:01 +0000)]
Include canon-host.h rather than declaring
canon_host ourselves.

18 years agoInclude strcase.h.
Paul Eggert [Thu, 22 Sep 2005 07:00:49 +0000 (07:00 +0000)]
Include strcase.h.

18 years ago(gl_PREREQ): Require gl_FUNC_GETLINE rather than
Paul Eggert [Thu, 22 Sep 2005 07:00:24 +0000 (07:00 +0000)]
(gl_PREREQ): Require gl_FUNC_GETLINE rather than
AM_FUNC_GETLINE.  Require gl_FUNC_GETPASS_GNU rather than
gl_FUNC_GETPASS.  Require gl_MBCHAR and gl_MBITER.

18 years agono longer needed.
Paul Eggert [Thu, 22 Sep 2005 06:59:55 +0000 (06:59 +0000)]
no longer needed.
(gl_CHECK_ALL_HEADERS): Don't check for memory.h, mntent.h, mnttab.h,
netdb.h, stdlib.h, stdint.h, string.h, sys/filsys.h, sys/fs/s5param.h,
sys/fs_types.h, sys/fstyp.h, sys/mntent.h, sys/socket.h, sys/stafs.h,
sys/timeb.h, unistd.h.  No longer needed.

18 years ago(_gl_DECL_HEADERS): Don't bother checking for
Paul Eggert [Thu, 22 Sep 2005 06:59:24 +0000 (06:59 +0000)]
(_gl_DECL_HEADERS): Don't bother checking for
standard C headers, or for headers we no longer use.

18 years ago(libcoreutils_a_SOURCES): Add getaddrinfo.h,
Paul Eggert [Thu, 22 Sep 2005 06:58:56 +0000 (06:58 +0000)]
(libcoreutils_a_SOURCES): Add getaddrinfo.h,
mbchar.c, mbchar.h, mbuiter.h, strcase.h, strlen1.c, strnlen1.h,
strstr.h.

18 years ago(EEXIST, ENOTEMPTY): Remove unused macros.
Paul Eggert [Thu, 22 Sep 2005 06:56:21 +0000 (06:56 +0000)]
(EEXIST, ENOTEMPTY): Remove unused macros.

18 years agoNontrivial sync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:44:26 +0000 (06:44 +0000)]
Nontrivial sync from gnulib.

18 years agoAdd getline.h, getpass.c
Paul Eggert [Thu, 22 Sep 2005 06:43:48 +0000 (06:43 +0000)]
Add getline.h, getpass.c

18 years ago(GL_CONCAT): Remove.
Paul Eggert [Thu, 22 Sep 2005 06:39:14 +0000 (06:39 +0000)]
(GL_CONCAT): Remove.
Include "verify.h" instead.
(ARGMATCH_CONSTRAINT, ARGMATCH_ASSERT): Remove.
(ARGMATCH_VERIFY): Rewrite in terms of new verify macros.

18 years ago(X2NREALLOC, X2REALLOC): Moved here from
Paul Eggert [Thu, 22 Sep 2005 06:33:40 +0000 (06:33 +0000)]
(X2NREALLOC, X2REALLOC): Moved here from
../lib/xalloc.h, with args properly parenthesized, and using
verify_expr rather than the old VERIFY_EXPR.

18 years ago(VERIFY_EXPR, X2NREALLOC, X2REALLOC): Remove.
Paul Eggert [Thu, 22 Sep 2005 06:32:52 +0000 (06:32 +0000)]
(VERIFY_EXPR, X2NREALLOC, X2REALLOC): Remove.
The latter two macros are moving to ../src/system.h for now.
This reverts this file to the gnulib version.

18 years agoRemove; no longer used.
Paul Eggert [Thu, 22 Sep 2005 06:26:54 +0000 (06:26 +0000)]
Remove; no longer used.

18 years agoNew file, from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:22:44 +0000 (06:22 +0000)]
New file, from gnulib.

18 years agoAdd getaddrinfo.h, getdelim.h, mbchar.h,
Paul Eggert [Thu, 22 Sep 2005 06:22:31 +0000 (06:22 +0000)]
Add getaddrinfo.h, getdelim.h, mbchar.h,
mbuiter.h, strcase.h, strnlen.h, strnlen1.h.

18 years agoSync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:05:39 +0000 (06:05 +0000)]
Sync from gnulib.

18 years agoSort.
Paul Eggert [Thu, 22 Sep 2005 05:47:40 +0000 (05:47 +0000)]
Sort.

18 years ago(ENOSYS): Define to EEXIST if not defined.
Paul Eggert [Thu, 22 Sep 2005 05:42:26 +0000 (05:42 +0000)]
(ENOSYS): Define to EEXIST if not defined.
(make_dir_parents): Treat ENOSYS like EEXIST.

18 years ago.
Jim Meyering [Wed, 21 Sep 2005 17:07:09 +0000 (17:07 +0000)]
.

18 years ago.
Jim Meyering [Wed, 21 Sep 2005 16:43:17 +0000 (16:43 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Wed, 21 Sep 2005 14:05:50 +0000 (14:05 +0000)]
*** empty log message ***

18 years agoRequire that this test be run as non-root.
Jim Meyering [Wed, 21 Sep 2005 14:05:45 +0000 (14:05 +0000)]
Require that this test be run as non-root.
Otherwise, it fails due to the fact that the chmod 0 . doesn't
affect root.

18 years ago*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 17:48:07 +0000 (17:48 +0000)]
*** empty log message ***

18 years ago(write_protected_non_symlink): Change comment to agree with the code.
Jim Meyering [Tue, 20 Sep 2005 17:48:02 +0000 (17:48 +0000)]
(write_protected_non_symlink): Change comment to agree with the code.

18 years ago*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 13:51:20 +0000 (13:51 +0000)]
*** empty log message ***

18 years ago(fdopendir): Be sure to close the supplied
Jim Meyering [Tue, 20 Sep 2005 13:51:01 +0000 (13:51 +0000)]
(fdopendir): Be sure to close the supplied
file descriptor before returning.  This makes our replacement
implementation a little closer to Solaris's, where fdopendir
ties the file descriptor to the returned DIR* pointer.

18 years agotweak
Jim Meyering [Tue, 20 Sep 2005 13:24:29 +0000 (13:24 +0000)]
tweak

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 15:45:09 +0000 (15:45 +0000)]
*** empty log message ***

18 years ago(unlinkat): New function.
Jim Meyering [Mon, 19 Sep 2005 15:45:05 +0000 (15:45 +0000)]
(unlinkat): New function.

18 years ago(unlinkat): Add prototype.
Jim Meyering [Mon, 19 Sep 2005 15:44:57 +0000 (15:44 +0000)]
(unlinkat): Add prototype.

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 13:34:51 +0000 (13:34 +0000)]
*** empty log message ***

18 years ago(remove_dir): Return RM_ERROR, not `1',
Jim Meyering [Mon, 19 Sep 2005 13:34:47 +0000 (13:34 +0000)]
(remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 06:48:06 +0000 (06:48 +0000)]
*** empty log message ***

18 years ago(remove_cwd_entries): Syntactic tweak: move an
Jim Meyering [Mon, 19 Sep 2005 06:47:47 +0000 (06:47 +0000)]
(remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.

18 years ago*** empty log message ***
Jim Meyering [Sat, 17 Sep 2005 09:14:52 +0000 (09:14 +0000)]
*** empty log message ***

18 years ago(usage): Request that additions be sent to bug-coreutils@gnu.org, too.
Jim Meyering [Sat, 17 Sep 2005 09:14:48 +0000 (09:14 +0000)]
(usage): Request that additions be sent to bug-coreutils@gnu.org, too.

18 years agocoreutils.texi (who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 07:45:02 +0000 (07:45 +0000)]
coreutils.texi (who invocation): Remove a stray '+'.

18 years ago(who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 07:44:42 +0000 (07:44 +0000)]
(who invocation): Remove a stray '+'.

18 years ago(set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they were
Paul Eggert [Sat, 17 Sep 2005 06:54:22 +0000 (06:54 +0000)]
(set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they were
buggy in the HAVE_STRUCT_STAT_ST_SPARE1 case, and they were dubious
anyway.  I rewrote 'tar' to not use them any more.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:19:57 +0000 (18:19 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:07:50 +0000 (18:07 +0000)]
*** empty log message ***

18 years ago(rfc822-1): Compensate for Solaris 5.9's /bin/sh,
Jim Meyering [Fri, 16 Sep 2005 18:07:46 +0000 (18:07 +0000)]
(rfc822-1): Compensate for Solaris 5.9's /bin/sh,
which emits a diagnostic to stderr when this test's LC_ALL=de_DE
cannot be honored.