Jim Meyering
ed558df65b
*** empty log message ***
2005-10-04 15:51:25 +00:00
Jim Meyering
4dffc10f08
Merge from gnulib.
...
Include sys/types.h before other headers.
2005-10-04 15:51:20 +00:00
Paul Eggert
ca7be84526
Import getdelim.c from gnulib (to fix unused var warnings) then
...
apply the following fixes:
Include getdelim.h first. Include <limits.h>.
(SSIZE_MAX): New macro, if not already defined.
(getdelim): Fix buffer overrun on 64-bit hosts with lines longer
than 2 GiB.
2005-10-02 22:49:49 +00:00
Jim Meyering
4a6b465285
*** empty log message ***
2005-10-01 09:49:40 +00:00
Jim Meyering
8050751a86
Protect #include's of sys/socket.h and netdb.h.
...
Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
AI_* and EAI_* definitions. Protect function declarations.
2005-10-01 09:49:36 +00:00
Jim Meyering
f9c10dab98
*** empty log message ***
2005-09-30 15:21:26 +00:00
Jim Meyering
03866dcfb9
(fdopendir): Do not define if HAVE_FDOPENDIR.
2005-09-30 15:19:47 +00:00
Jim Meyering
5230885d13
(fdopendir): Do not define if HAVE_FDOPENDIR.
...
Remove AT_FDCWD test.
Do not consume the fd unless successful.
2005-09-30 15:19:24 +00:00
Paul Eggert
c683e67618
"they wants" -> "they want"
2005-09-29 17:24:21 +00:00
Paul Eggert
63e88f7cef
Rely on gettimeofday failure too.
2005-09-29 17:22:19 +00:00
Paul Eggert
37016136c9
(settime): If settimeofday fails, give up right away.
2005-09-29 17:21:44 +00:00
Paul Eggert
346afb38ab
* settime.c (settime): Fix { typo in previous patch. Also, don't
...
bother returning ENOSYS; just let stime return whatever errno it
wants to return.
2005-09-29 17:19:58 +00:00
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