Paul Eggert
443ddc13e6
Upgrade regex_internal.h patch.
2005-09-25 04:18:54 +00:00
Paul Eggert
793ffcaac0
(__GNUC_PREREQ, always_inline, inline, pure):
...
Remove.
(__attribute): Define to empty unless GCC 3.1 or later.
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()). It also
simplifies other tests, since we really don't want to bother with
worrying about which ancient version of GCC supported what.
Original problem reported by Yoann Vandoorselaere, with part of
the fix suggested by Derek Price.
2005-09-25 04:18:39 +00:00
Paul Eggert
1e32f96bf2
Prefer fchown to chown and fchmod to chmod when copying regular files.
2005-09-25 03:08:40 +00:00
Paul Eggert
aa5f98288a
* jm-macros.m4 (gl_MACROS): Check for fchmod and fchown.
2005-09-25 03:08:15 +00:00
Paul Eggert
33247c7169
(gl_MACROS): Check for fchmod and fchown.
2005-09-25 03:07:53 +00:00
Paul Eggert
7fc308db7e
(HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
...
(copy_reg): New args CHOWN_SUCCEDED and DST_SB. All callers changed.
Add a "goto close_src_and_dst_desc;" that was missing in the
previous patch.
(copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown.
(copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod.
(copy_internal): Don't invoke chown if fchown worked,
and likewise for chmod and fchmod.
2005-09-25 03:07:33 +00:00
Paul Eggert
545dd954d9
* Makefile.am (libcoreutils_a_SOURCES): Remove mbchar.c.
2005-09-24 23:14:21 +00:00
Paul Eggert
944e020290
(libcoreutils_a_SOURCES): Remove mbchar.c, since
...
it doesn't build in OpenBSD 3.4. See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html >.
2005-09-24 23:14:04 +00:00
Paul Eggert
6c3d9ae4c4
* mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h.
2005-09-24 23:13:42 +00:00
Paul Eggert
a9d12230c8
(gl_MBCHAR): Check for wchar.h and wctype.h, and
...
don't compile mbchar.c unless both headers exist. See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html >.
2005-09-24 23:13:19 +00:00
Paul Eggert
fd02208ad2
* regex_internal.h (__attribute): Define to nothing for GCC 2.
2005-09-24 22:59:22 +00:00
Paul Eggert
5a29d2d430
(__attribute): Define to nothing for GCC 2.
...
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).
2005-09-24 22:59:06 +00:00
Jim Meyering
ed3a66aa5e
.
2005-09-24 13:42:39 +00:00
Jim Meyering
d3ddaff1a5
*** empty log message ***
2005-09-24 13:42:30 +00:00
Jim Meyering
0f6f7b428e
(EXTRA_DIST): Add .x-sc_no_if_have_config_h.
2005-09-24 13:41:48 +00:00
Jim Meyering
eae3fa54bf
(sc_no_if_have_config_h): New rule.
...
(syntax-check-rules): Add it.
2005-09-24 13:41:20 +00:00
Jim Meyering
26ddff0c17
*** empty log message ***
2005-09-24 13:41:01 +00:00
Jim Meyering
8daf4759f4
Use #ifdef HAVE_CONFIG_H', not #if HAVE_CONFIG_H', for consistency with gnulib.
2005-09-24 13:40:37 +00:00
Jim Meyering
26405733e9
.
2005-09-24 13:36:20 +00:00
Jim Meyering
5e6117b9ec
*** empty log message ***
2005-09-24 13:32:36 +00:00
Jim Meyering
58e399c289
Use #ifdef HAVE_CONFIG_H', not #if HAVE_CONFIG_H', for consistency with gnulib.
2005-09-24 13:32:31 +00:00
Jim Meyering
7bf8267334
*** empty log message ***
2005-09-24 13:27:41 +00:00
Jim Meyering
f6dbf542b4
Include <config.h> from strintcmp.c, not from here.
2005-09-24 13:27:34 +00:00
Jim Meyering
d447dba13d
Include <config.h> here, not from strnumcmp-in.h.
2005-09-24 13:26:41 +00:00
Jim Meyering
a14fc71370
*** empty log message ***
2005-09-24 10:44:33 +00:00
Jim Meyering
7a2163735e
(gl_GETADDRINFO): Check for gethostbyname
...
in the inet and nsl libraries. Required on Solaris 5.7.
2005-09-24 10:44:30 +00:00
Jim Meyering
b1ae384b23
*** empty log message ***
2005-09-24 10:06:36 +00:00
Jim Meyering
78e2e5d5a5
(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.
2005-09-24 10:06:29 +00:00
Jim Meyering
e122fe5ae9
*** empty log message ***
2005-09-24 07:57:42 +00:00
Jim Meyering
01b7701a24
(uninit-64): Restore this test.
...
Add start-up code to detect, and work around, the cases in
which the test might fail.
2005-09-24 07:57:36 +00:00
Paul Eggert
2cb5253b1f
* tests/misc/date (uninit-64): Remove this test.
2005-09-24 07:05:52 +00:00
Paul Eggert
0c42a4951b
(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).
2005-09-24 07:05:27 +00:00
Jim Meyering
0f31fc1440
.
2005-09-24 06:53:27 +00:00
Jim Meyering
8f4700c9e1
*** empty log message ***
2005-09-23 23:05:44 +00:00
Jim Meyering
8dbb507ee8
(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.
2005-09-23 23:05:39 +00:00
Jim Meyering
6d8b96f653
*** empty log message ***
2005-09-23 23:05:16 +00:00
Jim Meyering
b610709f70
*** empty log message ***
2005-09-23 22:49:10 +00:00
Jim Meyering
3e2b8d355e
Add lib/gai_strerror.c.
2005-09-23 22:49:05 +00:00
Paul Eggert
ebca458e8e
Use 2, not 1, for bitfield size in verify.h.
2005-09-23 21:49:59 +00:00
Paul Eggert
45079da973
(verify_type__): Use 2, not 1, for bitfield size, to avoid
...
a warning with Irix 6.5 cc.
2005-09-23 21:49:31 +00:00
Paul Eggert
28475f652b
Log recent changes.
2005-09-23 21:40:12 +00:00
Paul Eggert
7ba23f15c4
(gl_REGEX): If replacing, define regcomp to rpl_regcomp,
...
and similarly for the other external symbols. Problem reported
by James Gallager.
2005-09-23 21:17:57 +00:00
Jim Meyering
0fc8cac57d
*** empty log message ***
2005-09-23 20:56:54 +00:00
Paul Eggert
8e4680db2f
(install_file_in_file): Be more conservative about the previous patch:
...
set time stamps on all non-regular files.
2005-09-23 20:50:49 +00:00
Paul Eggert
63b77aac44
(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.
2005-09-23 20:39:04 +00:00
Paul Eggert
35044438af
(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.
2005-09-23 20:38:34 +00:00
Paul Eggert
2c4a088886
Don't include utime.h; not needed.
...
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-23 20:35:41 +00:00
Paul Eggert
cf37a8b41a
(gl_MACROS): Don't require gl_CHECK_TYPE_STRUCT_UTIMBUF.
...
(gl_CHECK_ALL_HEADERS): Don't check for utime.h.
2005-09-23 20:35:14 +00:00
Paul Eggert
061601cdd7
Update copyright.
2005-09-23 20:26:09 +00:00
Paul Eggert
588034d101
(_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
...
bug reported by Jim Meyering.
2005-09-23 20:23:59 +00:00