|
3bf58aa1
|
2010-06-15T10:29:07
|
|
select: Correct timeout.
|
|
823b6cf1
|
2010-06-14T12:20:22
|
|
priv-set: Don't assume that priv.h exists merely because getppriv does.
See Jan Andersen's bug report about AIX 5L in
http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
* m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
* lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
* lib/priv-set.h: Likewise.
* tests/test-priv-set.c: Likewise.
|
|
db74d417
|
2010-06-09T18:22:25
|
|
inttostr: add a new function, inttostr, and tests
The namesake function was not available. The existence of the
template file, inttostr.c makes its addition nontrivial.
* lib/anytostr.c: Rename from inttostr.c.
(anytostr): Rename from inttostr.
* lib/inttostr.c: New file.
* modules/inttostr (Files): Add anytostr.c.
(Makefile.am): Set lib_SOURCES instead of ...
* m4/inttostr.m4: Remove uses of AC_LIBOBJ.
* lib/imaxtostr.c: Update use. s/inttostr/anytostr/
* lib/offtostr.c: Likewise.
* lib/uinttostr.c: Likewise.
* lib/umaxtostr.c: Likewise.
* modules/inttostr-tests: New file.
* tests/test-inttostr.c: New file. Test these functions.
|
|
16290063
|
2010-06-09T15:30:40
|
|
Avoid relocwrapper link errors due to gnulib replacement functions.
|
|
fc06be3f
|
2010-06-09T12:47:59
|
|
Avoid relocwrapper link errors due to gnulib replacement functions.
|
|
7c59efd8
|
2010-06-09T12:40:40
|
|
Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
|
|
7873eb96
|
2010-06-07T07:58:49
|
|
regex: avoid new dead-code warning with gcc-4.6.0
* lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
if-block containing a while-loop. It's been unused for at least
5 years.
|
|
820ad111
|
2010-06-03T16:25:01
|
|
time: Undefine more broken macros.
|
|
df6774c0
|
2010-06-02T11:08:06
|
|
time: work with mingw + pthreads-win32 library
When using the pthreads-win32 library with mingw, struct timespec
is available in <pthread.h>. Meanwhile, that header has some
rather buggy macros for localtime_r and gmtime_r that interfere
with proper gnulib replacement header actions.
Tested in a cross-compilation environment: Fedora 13 with mingw32-gcc
and mingw32-pthreads installed.
* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
if timespec is defined only in pthread.h.
* modules/time (Makefile.am): Substitute it.
* lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
<pthread.h>, when needed.
(GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
from the library.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
d270926f
|
2010-05-24T23:00:42
|
|
Don't use conversion with transliteration in u{8,16,32}_strcoll.
|
|
5a4965c0
|
2010-05-24T12:23:03
|
|
regex: Don't require alloca.
|
|
e967460a
|
2010-05-23T18:03:16
|
|
git-merge-changelog: Enable --split-merged-entry by default.
|
|
1fcaaedf
|
2010-05-19T22:11:00
|
|
Avoid valgrind error reports from libunistring.
|
|
1495c20d
|
2010-05-18T20:11:42
|
|
New module 'libunistring-optional'.
|
|
a43e2416
|
2010-05-16T14:16:03
|
|
Fix collision between gnulib's and libintl's printf replacements.
|
|
047f9441
|
2010-05-09T12:16:00
|
|
error: Use system's fcntl function.
|
|
212eef10
|
2010-05-09T12:02:14
|
|
verify: adjust formatting to be more consistent
* lib/verify.h (_GL_GENSYM): Add a space before each of a few
argument-list '('s, and after one comma.
|
|
fa7bfb87
|
2010-05-09T12:00:55
|
|
error: More reliable output on mingw.
|
|
7f59c22a
|
2010-05-09T11:14:46
|
|
vasnprintf: Fix syntax errors in libintl build on mingw.
|
|
9f5ab735
|
2010-05-09T02:53:40
|
|
Update for Cygwin 1.7.
|
|
abe9c758
|
2010-05-06T23:18:34
|
|
exclude: Unescape hashed patterns in wildcard mode.
* lib/exclude.c (add_exclude): Unescape the pattern before adding it
to the hash list.
* tests/test-exclude8.sh: New test case.
* modules/exclude-tests: Add new test.
|
|
8a11db18
|
2010-05-05T13:57:26
|
|
Further improvements to verify.h, suggested by Eric Blake.
* lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
the GL_* versions, to avoid collision with OpenGL.
(_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
__COUNTER__ doesn't work. Test that __COUNTER__ increments rather
than testing merely whether it's defined.
|
|
8465329a
|
2010-05-05T12:50:00
|
|
Modify verify.h to pacify gcc -Wredundant_decls.
* lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
These use the prefix "GL_" since they're likely to be useful elsewhere.
We may need to break them out into a different .h file.
(__COUNTER__): Define to 0 if the compiler doesn't support it.
(verify) [!defined __cplusplus]: Use them to avoid duplicate decls
of verify_function__.
|
|
b111537c
|
2010-05-05T21:09:38
|
|
New module pwrite.
|
|
3a59228a
|
2010-05-03T10:07:34
|
|
wctob: Fix for weird platforms.
|
|
28f3679a
|
2010-05-02T23:03:16
|
|
wcwidth: Declare also when it's aliased.
|
|
55ca839e
|
2010-05-01T20:32:26
|
|
ftell, ftello: Work around Solaris bug.
|
|
2d0c228f
|
2010-05-01T20:23:22
|
|
freading: Adapt to special meaning of _IOREAD flag on Solaris.
|
|
2f2db8cb
|
2010-04-28T10:32:46
|
|
utimens: avoid compiler warning
* lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
is not declared as a const *; avoid warnings in that case.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
2b08ed06
|
2010-04-28T10:13:24
|
|
canonicalize-lgpl: avoid compiler warning
* lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
declaration' / 'extraneous semicolon' warning with some compilers.
Reported by Andreas Gruenbacher.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
ad8f1125
|
2010-04-26T10:25:56
|
|
netdb: Add support for GNULIB_POSIXCHECK.
|
|
1534c83a
|
2010-04-25T22:18:48
|
|
ptsname: Fix misuse of ttyname_r.
|
|
64ee0bac
|
2010-04-26T00:18:10
|
|
ttyname_r: Make it work on Solaris 10.
|
|
a731808a
|
2010-04-25T20:57:52
|
|
ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
|
|
e51d12c1
|
2010-04-24T17:18:48
|
|
vasnprintf: Correct errno value in case of out-of-memory.
|
|
fc4b90fa
|
2010-04-20T00:02:14
|
|
Fix typo in comment.
|
|
e768d427
|
2010-04-19T00:01:18
|
|
diffseq: Accommodate use-case with abstract arrays.
|
|
fef5e6b4
|
2010-04-16T17:04:58
|
|
test-stdbool: skip test that fails with Solaris CC
Solaris 9 CC has a bug; it allows (int)0.0 and (bool)0 in constant
expressions, but not (bool)0.0. Our replacement stdbool cannot
provide that guarantee of C99 for this particular compiler, but
since use of that feature causes compilation failure rather than
silent mis-compilation, we just skip the test.
* tests/test-stdbool.c (f): Skip test that causes compilation
error under buggy C++ compiler.
* lib/stdbool.in.h: Document the limitation.
* doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
e37c1207
|
2010-04-16T14:21:29
|
|
setenv: allow compilation with C++
* lib/setenv.c (__add_to_environ): Add a cast. Also, drop use of
register keyword.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
e7b3c4c7
|
2010-04-16T14:08:15
|
|
getopt: allow compilation with C++
A C++ compiler complains that REQUIRE_ORDER is unknown if it is
buried inside the struct.
* lib/getopt_int.h (__ordering): Hoist enum declaration outside
struct.
* lib/getopt.c (_getopt_internal_r): Use correct type.
Reported by Dagobert Michelson, via Joel E. Denny.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
94c98b77
|
2010-04-14T15:23:28
|
|
lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4.
|
|
db3e2806
|
2010-04-10T11:56:34
|
|
getopt: merge bug fixes from glibc
* lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
diagnostics. Honor '+:' correctly. Reject ';'.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
7baf2c51
|
2010-04-11T16:48:21
|
|
close-stream: declare local scalars to be "const"
* lib/close-stream.c (close_stream): Make boolean variables const
to document the fact that we set but do not change them.
|
|
3c79d510
|
2010-04-11T01:55:23
|
|
Update comment.
|
|
b969309b
|
2010-04-11T00:25:21
|
|
mkdir: Make it work on mingw64.
|
|
0167c192
|
2010-04-10T22:25:31
|
|
vasnprintf: Correct handling of unconvertible wide string arguments.
|
|
32d1664e
|
2010-04-10T22:17:02
|
|
vasnprintf: Fix crash in %ls directive.
|
|
067d1f10
|
2010-04-10T21:40:23
|
|
vasnprintf: Fix multiple test failures on mingw.
|
|
3c65a680
|
2010-04-10T21:11:00
|
|
write: Fix a C++ test error on mingw.
|
|
ccf404b1
|
2010-04-10T11:29:14
|
|
strnlen: Fix warning in C++ mode on MacOS X.
|
|
a1591128
|
2010-04-06T23:23:00
|
|
Assume rmdir exists.
|
|
097fd2f5
|
2010-04-05T21:14:58
|
|
New module 'strncat'.
|
|
ec518762
|
2010-04-05T18:34:08
|
|
sys_socket: Avoid #define replacements in C++ mode.
|
|
434a1ae5
|
2010-04-05T15:58:34
|
|
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
|
|
3e51bfce
|
2010-04-05T13:12:59
|
|
memchr: Avoid a possible C++ test error.
|
|
e995ac96
|
2010-04-05T01:37:37
|
|
btowc: Avoid warning.
|
|
a2c5c094
|
2010-04-05T01:33:24
|
|
wchar: Port to NetBSD 1.5.
|
|
478b8e3e
|
2010-04-05T01:13:18
|
|
Port extended stdio to NetBSD 1.5.
|
|
4f73e862
|
2010-04-04T22:42:59
|
|
stdio: Fix some C++ test errors on Solaris 8 with GCC.
|
|
e8c6a4c6
|
2010-04-04T21:18:03
|
|
math: Fix some C++ test errors on Solaris 8 and Cygwin.
|
|
c77f9c81
|
2010-04-04T20:49:44
|
|
Implement nanosleep for native Windows.
|
|
ca1938db
|
2010-04-04T20:15:21
|
|
math: Fix some C++ test errors on Solaris 8.
|
|
de6abddc
|
2010-04-04T19:59:32
|
|
math: Fix some C++ test errors on Cygwin.
|
|
ff25f0e9
|
2010-04-04T15:37:40
|
|
tmpfile: Fix C++ test error on mingw.
|
|
1a56eb40
|
2010-04-04T10:32:19
|
|
ioctl: Fix C++ test error on mingw.
|
|
ee1e85f8
|
2010-04-04T02:42:00
|
|
wcwidth: Fix C++ test error on mingw.
|
|
5bc553f7
|
2010-04-04T02:12:01
|
|
nanosleep: Fix C++ test error on mingw.
|
|
3361b6d4
|
2010-04-03T20:23:47
|
|
strptime: Fix C++ test error on mingw.
|
|
1ecf90d3
|
2010-04-03T19:15:04
|
|
timegm: Fix C++ test error on mingw.
|
|
40b24388
|
2010-04-03T18:52:49
|
|
time_r: Fix C++ test error on mingw.
|
|
1349ff1c
|
2010-04-03T18:43:42
|
|
time_r: Minor updates.
|
|
c51b01fd
|
2010-04-03T15:59:25
|
|
fchdir: Fix regression introduced on 2010-03-08.
|
|
e25c6d9c
|
2010-04-03T15:43:45
|
|
getpagesize: Fix C++ test error on mingw.
|
|
41ffca95
|
2010-04-03T14:34:57
|
|
stdio: Make C++ tests work on mingw.
|
|
1dea0e3d
|
2010-04-03T14:25:24
|
|
ftello: Fix C++ test error on mingw.
|
|
7434004b
|
2010-04-03T14:08:25
|
|
fseeko: Fix C++ test error on mingw.
|
|
eea8c922
|
2010-04-03T13:44:41
|
|
mkstemp: Fix C++ test error on mingw.
|
|
f550ae27
|
2010-04-03T13:21:17
|
|
stpncpy: Fix C++ test error on mingw.
|
|
759d93d5
|
2010-04-03T12:55:17
|
|
sys_stat: Fix C++ test error on mingw.
|
|
cba80c66
|
2010-04-03T12:30:09
|
|
unistd: Fix C++ test error on mingw.
|
|
564c0b8f
|
2010-04-03T12:07:56
|
|
stdlib: Avoid compilation failure of c-strtold on mingw.
|
|
1a785c48
|
2010-04-03T11:57:20
|
|
locale: Make C++ tests work on Cygwin and mingw.
|
|
57d231ae
|
2010-04-03T10:46:26
|
|
localename: Port to MacOS X 10.6.
|
|
b3119f18
|
2010-03-31T07:57:51
|
|
sys_time: avoid compiler warnings
sys/time uses #if/#else/#endif, and is therefore not subject
to the gcc optimization. The #pragma GCC system_header must
occur up front.
* lib/sys_time.in.h (includes): Ensure gcc pragma is
unconditional, fixing regression from 2010-03-29.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
497bb5fc
|
2010-03-29T15:08:59
|
|
fdopendir: work around FreeBSD bug
Without a declaration, at least tar would core dump on 64-bit
FreeBSD because gcc only used 32 bits of the resulting pointer.
* m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
* modules/dirent (Makefile.am): Substitute it.
* lib/dirent.in.h (fdopendir): Supply missing FreeBSD
declaration.
* doc/posix-functions/fdopendir.texi (fdopendir): Document the
fix.
Reported by Christian Weisgerber <naddy@mips.inka.de>.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
e046ffb1
|
2010-03-30T02:35:49
|
|
Emit #pragma system_header after the inclusion guard, not before.
|
|
f5e328c1
|
2010-03-30T02:33:35
|
|
Fix indentation.
|
|
7dfa1250
|
2010-03-29T12:30:23
|
|
save-cwd: don't leak a file descriptor when the caller execs
* lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
saved file descriptor.
* modules/save-cwd (Depends-on): Depend on cloexec.
|
|
6e0a75f9
|
2010-03-29T10:41:20
|
|
Remove vestiges of fts-lgpl module.
|
|
2169eadd
|
2010-03-29T02:27:39
|
|
Fix ioctl's protoype on glibc systems.
|
|
62072558
|
2010-03-28T20:42:01
|
|
exclude: fix the case of globs vs. EXCLUDE_INCLUDE
* lib/exclude.c (excluded_file_pattern_p): Fix logic error that
made it so grep -r --include=GLOB* ... did not work.
|
|
cd265999
|
2010-03-28T14:26:15
|
|
unistd: Avoid #define replacements in C++ mode.
|
|
2f8144ca
|
2010-03-28T14:21:28
|
|
Fix link errors on mingw.
|
|
0f04b66b
|
2010-03-27T20:09:55
|
|
Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
|
|
bc37553c
|
2010-03-27T14:30:20
|
|
Fix a compilation error on Cygwin with g++ >= 4.3.
|
|
40aa4775
|
2010-03-25T16:28:02
|
|
maint: use pragma consistently across replacement headers
Several headers set #pragma GCC system_header prior to checking
any multiple inclusion guards; maintenance is easiest if all
replacement headers follow the same paradigm.
* lib/ctype.in.h (system_header): Hoist for consistent placement.
* lib/dirent.in.h (system_header): Likewise.
* lib/errno.in.h (system_header): Likewise.
* lib/float.in.h (system_header): Likewise.
* lib/getopt.in.h (system_header): Likewise.
* lib/iconv.in.h (system_header): Likewise.
* lib/inttypes.in.h (system_header): Likewise.
* lib/langinfo.in.h (system_header): Likewise.
* lib/locale.in.h (system_header): Likewise.
* lib/math.in.h (system_header): Likewise.
* lib/netdb.in.h (system_header): Likewise.
* lib/netinet_in.in.h (system_header): Likewise.
* lib/pty.in.h (system_header): Likewise.
* lib/sched.in.h (system_header): Likewise.
* lib/se-selinux.in.h (system_header): Likewise.
* lib/search.in.h (system_header): Likewise.
* lib/spawn.in.h (system_header): Likewise.
* lib/stdarg.in.h (system_header): Likewise.
* lib/stdint.in.h (system_header): Likewise.
* lib/string.in.h (system_header): Likewise.
* lib/strings.in.h (system_header): Likewise.
* lib/sys_file.in.h (system_header): Likewise.
* lib/sys_ioctl.in.h (system_header): Likewise.
* lib/sys_socket.in.h (system_header): Likewise.
* lib/sys_times.in.h (system_header): Likewise.
* lib/sys_utsname.in.h (system_header): Likewise.
* lib/sys_wait.in.h (system_header): Likewise.
* lib/sysexits.in.h (system_header): Likewise.
* lib/unistd.in.h (system_header): Likewise.
* lib/wctype.in.h (system_header): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
1f87c50a
|
2010-03-24T17:25:49
|
|
arpa/inet: fix mingw compilation warning
Mingw doesn't have <arpa/inet.h>, so a conditional use of the
pragma was never encountered, and led to mingw's gcc issuing
warnings about duplicate declarations under -Wredundant-decls.
Making the #pragma unconditional (as was already done in at
least fcntl.in.h) shuts up gcc.
* lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
Reported by Matthew Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
|
|
784afc24
|
2010-03-25T08:06:00
|
|
Avoid collision between gnulib wrapper and libintl wrapper.
|
|
04b9e20e
|
2010-03-25T07:50:53
|
|
Use ANSI C.
|
|
aeb898d8
|
2010-03-25T07:48:14
|
|
Minor formatting changes.
|