1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-01 14:27:02 +02:00
Commit Graph

4907 Commits

Author SHA1 Message Date
Paul Eggert 8c871e2391 (settime): Fix { typo in previous patch. Also, don't
boether returning ENOSYS; just let stime return whatever errno it
wants to return.
2005-09-29 17:19:30 +00:00
Paul Eggert 96e3593902 * xtime.h (XTIME_PRECISION): Now of type int, not long long int. 2005-09-29 16:51:58 +00:00
Paul Eggert 970dc8e4a8 (XTIME_PRECISION): Now of type int, not long long int,
so that the code works even with ancient cpp.  Portability problem
with GCC 2.7.2.1 reported by Thomas M.Ott.
2005-09-29 16:51:40 +00:00
Jim Meyering 6204a2d1bd *** empty log message *** 2005-09-29 13:13:53 +00:00
Jim Meyering 33b113c638 (settime): Move the HAVE_STIME block `up' into an #elif
block, so that we don't even try to compile it if settimeofday is
available.  This works around a compilation failure on OSF1 V5.1,
due to stime requiring a `long int*' while tv_sec is `int'.
2005-09-29 13:13:49 +00:00
Jim Meyering b2d2351330 *** empty log message *** 2005-09-27 08:59:54 +00:00
Jim Meyering 4e8e195401 *** empty log message *** 2005-09-27 08:59:04 +00:00
Jim Meyering 0ffc4a7d84 [HAVE_CONFIG_H]: Include <config.h>. 2005-09-27 08:58:55 +00:00
Jim Meyering 52e05089cc [HAVE_CONFIG_H]: Include <config.h> conditionally,
to be consistent with gnulib.
2005-09-27 08:44:07 +00:00
Jim Meyering 3cf3a44bbd Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef HAVE_CONFIG_H. 2005-09-27 08:33:47 +00:00
Jim Meyering 9346282a5d *** empty log message *** 2005-09-27 08:21:35 +00:00
Jim Meyering 2d7c20c891 Include <config.h> here, now that strnumcmp-in.h no longer includes it. 2005-09-27 08:21:28 +00:00
Paul Eggert 80065b498b utimens.c portability fixes. 2005-09-26 23:01:25 +00:00
Paul Eggert a6c8a8e6d4 Include unistd.h, for dup2.
(futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
(futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
2005-09-26 23:01:00 +00:00
Jim Meyering 2c5def0462 . 2005-09-25 17:01:54 +00:00
Jim Meyering 0e5662fd54 . 2005-09-25 12:54:04 +00:00
Jim Meyering 23b9299247 Protect against multiple inclusion. 2005-09-25 06:14:33 +00:00
Paul Eggert 7ee48d8ffb Support having a null PATH if the file descriptor is nonnegative. 2005-09-25 06:09:22 +00:00
Paul Eggert 4f001e7a13 (ENOSYS): Define if not already defined.
(ftimens): Support having a null PATH if the file descriptor
is nonnegative.
2005-09-25 06:08:45 +00:00
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 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 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 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 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
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
Jim Meyering a40376f4c5 . 2005-09-23 20:14:20 +00:00
Paul Eggert b9830cafa1 * 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.
2005-09-23 19:18:27 +00:00
Paul Eggert d6ed244c5a Fix typo in comment. 2005-09-23 17:52:22 +00:00
Paul Eggert ef999bc74a (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.
2005-09-23 17:47:15 +00:00
Jim Meyering a6821efce3 *** empty log message *** 2005-09-23 12:44:07 +00:00
Jim Meyering 81d380e377 Include <config.h>. Otherwise builds with strict
C89 (e.g., Sun's /opt/SUNWspro/bin/c89) would fail due to the use
of `inline'.
2005-09-23 12:42:45 +00:00
Paul Eggert 9fd31b8beb * 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.
2005-09-23 05:12:50 +00:00
Jim Meyering fc6f1f7f9c . 2005-09-22 09:47:36 +00:00
Paul Eggert 9bbbf30543 Regenerate. 2005-09-22 07:07:36 +00:00
Paul Eggert ca9acc01a6 Sync from gnulib. 2005-09-22 07:06:16 +00:00
Paul Eggert cab86383b8 (libcoreutils_a_SOURCES): Add getaddrinfo.h,
mbchar.c, mbchar.h, mbuiter.h, strcase.h, strlen1.c, strnlen1.h,
strstr.h.
2005-09-22 06:58:56 +00:00
Paul Eggert eba2793d11 Nontrivial sync from gnulib. 2005-09-22 06:44:26 +00:00
Paul Eggert da6ced8651 Add getline.h, getpass.c 2005-09-22 06:43:48 +00:00
Paul Eggert 75b92233d8 (GL_CONCAT): Remove.
Include "verify.h" instead.
(ARGMATCH_CONSTRAINT, ARGMATCH_ASSERT): Remove.
(ARGMATCH_VERIFY): Rewrite in terms of new verify macros.
2005-09-22 06:39:14 +00:00