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
Paul Eggert
fe4ed6c408
(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.
2005-09-22 06:32:52 +00:00
Paul Eggert
8cec6716df
Remove; no longer used.
2005-09-22 06:26:54 +00:00
Paul Eggert
3833e2bc34
New file, from gnulib.
2005-09-22 06:22:44 +00:00
Paul Eggert
0ed6bb9a65
Add getaddrinfo.h, getdelim.h, mbchar.h,
...
mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
2005-09-22 06:22:31 +00:00
Paul Eggert
2d0c5eefd0
Sync from gnulib.
2005-09-22 06:05:39 +00:00
Paul Eggert
5a43b499b1
Sort.
2005-09-22 05:47:40 +00:00
Paul Eggert
0adb008b03
(ENOSYS): Define to EEXIST if not defined.
...
(make_dir_parents): Treat ENOSYS like EEXIST.
2005-09-22 05:42:26 +00:00
Jim Meyering
08c07f2a1c
.
2005-09-21 17:07:09 +00:00
Jim Meyering
b0ecfaf324
*** empty log message ***
2005-09-20 13:51:20 +00:00
Jim Meyering
5205b73810
(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.
2005-09-20 13:51:01 +00:00
Jim Meyering
ea66df2090
*** empty log message ***
2005-09-19 15:45:09 +00:00
Jim Meyering
ee8931ea8e
(unlinkat): New function.
2005-09-19 15:45:05 +00:00
Jim Meyering
a1052bb3d9
(unlinkat): Add prototype.
2005-09-19 15:44:57 +00:00
Paul Eggert
90306bc508
(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.
2005-09-17 06:54:22 +00:00
Paul Eggert
96971b59be
Regenerate.
2005-09-16 07:58:03 +00:00
Paul Eggert
555bbf598d
Import file time stamp resolution improvements from gnulib.
2005-09-16 07:55:12 +00:00
Paul Eggert
e9f5a9b719
Include stat-time.h.
...
(SYSCALL_RESOLUTION): Depend on whether various struct stat
members exist, not on the obsolescent ST_MTIM_NSEC.
(utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
2005-09-16 07:39:41 +00:00
Paul Eggert
b5a377a22b
(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
...
(MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
in a different way.
(timespec_cmp): New function.
2005-09-16 07:39:18 +00:00
Paul Eggert
24e27d10f9
New file.
2005-09-16 07:36:48 +00:00
Paul Eggert
2bc8e10316
Add stat-time.h.
2005-09-16 07:36:35 +00:00
Jim Meyering
3da8b9a6d8
*** empty log message ***
2005-09-16 07:35:32 +00:00
Jim Meyering
4fa029bd7d
(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.
2005-09-16 07:32:13 +00:00
Jim Meyering
5d8614cf2f
*** empty log message ***
2005-09-16 07:31:34 +00:00
Jim Meyering
0277ce3913
[FPRINTFTIME] (fprintftime): Provide a new interface:
...
size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
int utc, int nanoseconds);
Background:
date should not have to allocate a megabyte of virtual memory to
handle a format argument like +%1048575T. When implemented with
strftime, it must allocate such a buffer, use strftime to fill it
in, print it, then free it.
With fprintftime, it simply prints everything and exits.
With no need for memory allocation, that's one fewer way to fail.
2005-09-16 07:31:29 +00:00