ff07901f65b4329f683d812a523077009132a47e
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'getsockname'.
4         * modules/getsockname-tests: New file.
5         * tests/test-getsockname.c: New file.
6
7         Tests for module 'getpeername'.
8         * modules/getpeername-tests: New file.
9         * tests/test-getpeername.c: New file.
10
11         Tests for module 'connect'.
12         * modules/connect-tests: New file.
13         * tests/test-connect.c: New file.
14
15         Tests for module 'bind'.
16         * modules/bind-tests: New file.
17         * tests/test-bind.c: New file.
18
19         accept4 tests: Fix for native Windows.
20         * tests/test-accept4.c: Include sockets.h.
21         (main): Invoke gl_sockets_startup.
22         * modules/accept4-tests (Depends-on): Add sockets.
23
24         accept tests: Fix for native Windows.
25         * tests/test-accept.c: Include sockets.h.
26         (main): Invoke gl_sockets_startup.
27         * modules/accept-tests (Depends-on): Add sockets.
28
29 2011-09-19  Bruno Haible  <bruno@clisp.org>
30
31         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
33         do...while(0).
34         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
35         Suggested by Paul Eggert.
36
37 2011-09-19  Bruno Haible  <bruno@clisp.org>
38
39         sched: Ensure pid_t is defined.
40         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
41         not define pid_t.
42         * lib/sched.in.h: Include <sys/types.h>.
43         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45
46 2011-09-19  Bruno Haible  <bruno@clisp.org>
47
48         msvc-inval: Ensure the entire expansion is a single statement.
49         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
50         of braces.
51
52 2011-09-19  Jim Meyering  <meyering@redhat.com>
53
54         tests: use printf, not echo in init.sh's warn_ function
55         * tests/init.sh (warn_): Use printf, not echo.  The latter would
56         misbehave when given strings containing a backslash or starting
57         with e.g., -n.  James Youngman suggested setting IFS.
58
59 2011-09-19  Eric Blake  <eblake@redhat.com>
60
61         futimens: enhance test
62         * tests/test-futimens.h (test_futimens): Also check for EBADF on
63         closed non-negative fd.
64
65         date: accept 'hence' as opposite of 'ago'
66         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
67         * tests/test-parse-datetime.c (main): Enhance test.
68         Suggested by Jesse Wilson.
69
70 2011-09-19  Jim Meyering  <meyering@redhat.com>
71
72         getcwd: don't fail in a deep directory on a system without openat
73         Before this change, getcwd would fail when called from a directory
74         of depth PATH_MAX / 3 or greater.  That was due to the fact that
75         the non-openat implementation used "..", "../..", "../../..", etc.
76         to access ancestor directories.  With too many, that string would
77         be longer than PATH_MAX.
78         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
79         using gnulib's openat replacement.
80         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
81         we're using the replacement function.
82
83 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
84
85         maint.mk: avoid warnings from perl about missing files
86         * top/maint.mk (def_sym_regex): Ignore files listed in
87         $(gl_other_headers_) that do not exist, say because a project
88         does not use a corresponding module.
89
90 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91
92         stat: use pathmax.h only if needed
93         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
94         This is better for Emacs, which does not have a mingw port and
95         therefore can avoid the pathmax module.
96
97         utimens: remove dependency on dup2
98         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
99         to work around the Linux kernel bug.
100         * modules/utimens (Depends-on): Remove dup2.
101
102 2011-09-18  Bruno Haible  <bruno@clisp.org>
103
104         inet_ntop, inet_pton: Look for it also in libresolv.
105         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
106         libnsl, search for it in libresolv.
107         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
108         Needed on Solaris 7.
109
110 2011-09-18  Bruno Haible  <bruno@clisp.org>
111
112         accept, accept4 tests: Avoid link error on Solaris.
113         * modules/accept-tests (Makefile.am): Link test-accept against
114         $(LIBSOCKET).
115         * modules/accept4-tests (Makefile.am): Link test-accept4 against
116         $(LIBSOCKET).
117
118         accept4: Avoid link error on Solaris.
119         * modules/accept4 (Link): New section.
120
121         socket functions: Avoid link errors on Solaris.
122         * modules/accept (Depends-on): Add socketlib.
123         (Link): New section.
124         * modules/bind (Depends-on): Add socketlib.
125         (Link): New section.
126         * modules/connect (Depends-on): Add socketlib.
127         (Link): New section.
128         * modules/getpeername (Depends-on): Add socketlib.
129         (Link): New section.
130         * modules/getsockname (Depends-on): Add socketlib.
131         (Link): New section.
132         * modules/getsockopt (Depends-on): Add socketlib.
133         (Link): New section.
134         * modules/listen (Depends-on): Add socketlib.
135         (Link): New section.
136         * modules/recv (Depends-on): Add socketlib.
137         (Link): New section.
138         * modules/recvfrom (Depends-on): Add socketlib.
139         (Link): New section.
140         * modules/send (Depends-on): Add socketlib.
141         (Link): New section.
142         * modules/sendto (Depends-on): Add socketlib.
143         (Link): New section.
144         * modules/setsockopt (Depends-on): Add socketlib.
145         (Link): New section.
146         * modules/shutdown (Depends-on): Add socketlib.
147         (Link): New section.
148         * modules/socket (Depends-on): Add socketlib.
149         (Link): New section.
150
151 2011-09-18  Bruno Haible  <bruno@clisp.org>
152
153         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
154         * tests/test-ptsname.c (main): Terminate the test if it takes longer
155         than 5 seconds.
156         * modules/ptsname-tests (configure.ac): Test for alarm.
157
158 2011-09-18  Bruno Haible  <bruno@clisp.org>
159
160         posix_spawn_file_actions_add*: Fix module dependencies.
161         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
162         posix_spawn_file_actions_init.
163         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
164         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
165
166 2011-09-18  Bruno Haible  <bruno@clisp.org>
167
168         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
169         * tests/test-rename.h (test_rename): Allow error code EEXIST.
170         * tests/test-renameat.c (main): Likewise.
171
172 2011-09-18  Bruno Haible  <bruno@clisp.org>
173
174         Tests for module 'accept4'.
175         * modules/accept4-tests: New file.
176         * tests/test-accept4.c: New file.
177
178 2011-09-18  Bruno Haible  <bruno@clisp.org>
179
180         Tests for module 'accept'.
181         * modules/accept-tests: New file.
182         * tests/test-accept.c: New file.
183
184 2011-09-18  Bruno Haible  <bruno@clisp.org>
185
186         dup2: Support for MSVC.
187         * lib/dup2.c: Include msvc-inval.h.
188         (rpl_dup2): Handle invalid parameter notifications during dup2 and
189         _get_osfhandle calls.
190         * modules/dup2 (Depends-on): Add msvc-inval.
191         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
192
193         New module 'msvc-inval'.
194         * lib/msvc-inval.h: New file.
195         * lib/msvc-inval.c: New file.
196         * m4/msvc-inval.m4: New file.
197         * modules/msvc-inval: New file.
198
199 2011-09-17  Bruno Haible  <bruno@clisp.org>
200
201         Tests for module 'pclose'.
202         * modules/pclose-tests: New file.
203
204         New module 'pclose'.
205         * lib/stdio.in.h (pclose): New declaration.
206         * lib/pclose.c: New file.
207         * m4/pclose.m4: New file.
208         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
209         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
210         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
211         * modules/pclose: New file.
212         * modules/popen-tests (Depends-on): Add pclose.
213         * modules/popen-safer-tests (Depends-on): Likewise.
214         * doc/posix-functions/pclose.texi: Mention the new module.
215
216 2011-09-17  Bruno Haible  <bruno@clisp.org>
217
218         popen: Support for MSVC.
219         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
220         * lib/popen.c (popen): Provide alternate definition for native Windows.
221         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
223         * modules/popen (Depends-on, configure.ac): Update condition.
224         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
225         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
226         fixed.
227
228 2011-09-17  Bruno Haible  <bruno@clisp.org>
229
230         isnanl, isnand, isnanf: Work around MSVC bug.
231         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
232
233 2011-09-17  Bruno Haible  <bruno@clisp.org>
234
235         sys_socket tests: Fix recent mistake.
236         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
237
238 2011-09-17  Bruno Haible  <bruno@clisp.org>
239
240         putenv: Support for MSVC.
241         * modules/putenv (Depends-on): Add environ.
242         * lib/putenv.c (environ): Disable declaration.
243         * lib/unistd.in.h: Update comment.
244
245 2011-09-17  Bruno Haible  <bruno@clisp.org>
246
247         math: Avoid macro redefinition warnings on MSVC.
248         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
249         Undefine before redefining.
250
251 2011-09-17  Bruno Haible  <bruno@clisp.org>
252
253         doc: Mention functions which are declared as macros.
254         * doc/posix-functions/*[fl].texi: Mention that some functions are
255         defined as macros with arguments only.
256
257 2011-09-17  Bruno Haible  <bruno@clisp.org>
258
259         Add dependencies to new dirent related modules.
260         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
261         * modules/fts (Depends-on): Likewise.
262         * modules/glob (Depends-on): Likewise.
263         * modules/savedir (Depends-on): Likewise.
264         * modules/scandir (Depends-on): Likewise.
265         * modules/dirent-safer (Depends-on): Add opendir, closedir.
266         * modules/fdopendir (Depends-on): Add opendir.
267
268 2011-09-17  Bruno Haible  <bruno@clisp.org>
269
270         inet_pton: Support for MSVC on Windows Vista or newer.
271         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
272         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
273         HAVE_DECL_INET_PTON is defined.
274         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
275         On platforms with <winsock2.h>, test whether inet_pton is declared in
276         <ws2tcpip.h>. If so, arrange to replace it.
277         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
278         REPLACE_INET_PTON.
279         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
280         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
281         (Depends-on, configure.ac): Update condition.
282         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
283
284 2011-09-17  Bruno Haible  <bruno@clisp.org>
285
286         inet_ntop: Support for MSVC on Windows Vista or newer.
287         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
288         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
289         HAVE_DECL_INET_NTOP is defined.
290         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
291         On platforms with <winsock2.h>, test whether inet_ntop is declared in
292         <ws2tcpip.h>. If so, arrange to replace it.
293         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
294         REPLACE_INET_NTOP.
295         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
296         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
297         (Depends-on, configure.ac): Update condition.
298         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
299
300 2011-09-16  Eric Blake  <eblake@redhat.com>
301
302         test-fsync: yet another enhancement
303         * tests/test-fsync.c (main): Also test behavior on read-only text
304         file.
305
306 2011-09-16  Bruno Haible  <bruno@clisp.org>
307
308         Enhance fsync, fdatasync tests.
309         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
310         * tests/test-fdatasync.c (main): Likewise.
311
312 2011-09-16  Bruno Haible  <bruno@clisp.org>
313
314         Support for MSVC compiler: Ensure mode_t gets defined.
315         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
316         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
318         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
319         * tests/test-fcntl-h.c: Check that mode_t is defined.
320         * tests/test-sys_stat.c: Likewise.
321         * tests/test-sys_types.c: Likewise.
322         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
323         * doc/posix-headers/sys_stat.texi: Likewise.
324         * doc/posix-headers/sys_types.texi: Likewise.
325
326 2011-09-16  Bruno Haible  <bruno@clisp.org>
327
328         sys_stat: Support for MSVC.
329         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
330         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
331         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
332         MSVC.
333
334 2011-09-16  Bruno Haible  <bruno@clisp.org>
335
336         Support for MSVC compiler: Ensure off_t gets defined.
337         * lib/unistd.in.h: Include <sys/types.h>.
338         * tests/test-fcntl-h.c: Check that off_t is defined.
339         * tests/test-sys_stat.c: Likewise.
340         * tests/test-sys_types.c: Likewise.
341
342 2011-09-16  Eric Blake  <eblake@redhat.com>
343
344         fdatasync: port to Solaris
345         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
346         * modules/fdatasync (Link): Document it.
347         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
348
349         fdatasync: port to MacOS X 10.7
350         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
351         declared.
352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
353         * modules/unistd (Makefile.am): Substitute it.
354         * lib/unistd.in.h (fdatasync): Declare on MacOS.
355         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
356
357         fdatasync: minor improvements
358         * modules/fdatasync (Depends-on): Add condition for fsync.
359         * lib/fdatasync.c (fdatasync): Add comment.
360         * tests/test-unistd-c++.cc: Test fdatasync.
361
362         unistd: update refs to newer POSIX
363         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
364         Suggested by Bruno Haible.
365
366         fdatasync: new module
367         * modules/fsync (Description): Document difference to fdatasync.
368         * modules/fdatasync: New module.
369         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
370         * lib/fdatasync.c (fdatasync): Likewise.
371         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
372         defaults.
373         * modules/unistd (Makefile.am): Set witnesses.
374         * lib/unistd.in.h (fdatasync): Declare.
375         * MODULES.html.sh: Document it.
376         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
377         * modules/fdatasync-tests: New test.
378         * tests/test-fdatasync.c: Likewise.
379
380 2011-09-16  Eric Blake  <eblake@redhat.com>
381
382         test-fsync: enhance tests
383         * modules/fsync-tests (Depends-on): Add errno, for mingw.
384         * tests/test-fsync.c (main): Enhance test.
385
386 2011-09-15  Bruno Haible  <bruno@clisp.org>
387
388         Support for MSVC compiler: Ensure ssize_t gets defined.
389         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
390         * doc/posix-headers/stdio.texi: Likewise.
391         * modules/stdio (Depends-on): Add ssize_t.
392         * modules/sys_socket (Depends-on): Likewise.
393         * modules/sys_types (Depends-on): Likewise.
394         * modules/sys_uio (Depends-on): Likewise.
395         * modules/unistd (Depends-on): Likewise.
396         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
397         * tests/test-sys_types.c: Check that ssize_t is defined.
398
399 2011-09-14  Bruno Haible  <bruno@clisp.org>
400
401         Avoid using #, the m4 comment starter character, near brackets.
402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
403         delimiter character in sed expressions.
404         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
405         Suggested by Eric Blake.
406
407         Properly quote AC_CHECK_DECLS' 4th argument.
408         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
409         argument.
410         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
411         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
412         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
413         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
414         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
415         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
417         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
418         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
419         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
420         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
421         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
422         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
423         * m4/isinf.m4 (gl_ISINF): Likewise.
424         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
425         * m4/readutmp.m4 (gl_READUTMP): Likewise.
426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
427         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
428         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
430         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
431         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
432         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
433         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
437         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
439         Reported by Eric Blake.
440
441         Properly quote AC_CHECK_DECL's 4th argument.
442         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
443         argument.
444         * m4/argp.m4 (gl_ARGP): Likewise.
445         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
446         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
447         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
448         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
449         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
450         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
451         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
452         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
453         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
454         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
455         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
456         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
457         Reported by Eric Blake.
458
459 2011-09-14  Eric Blake  <eblake@redhat.com>
460
461         opendir: avoid compile warning
462         * lib/opendir.c (includes): Always include errno.h.
463         Reported by Tatsuro MATSUOKA.
464
465 2011-09-14  Jim Meyering  <meyering@redhat.com>
466
467         maint.mk: sc_tight_scope: propagate failure from sub-make
468         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
469         Reported by Martin von Gagern.
470
471 2011-09-13  Bruno Haible  <bruno@clisp.org>
472
473         tempname: Support for MSVC.
474         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
475         MSVC.
476         * modules/tempname (Depends-on): Add fcntl-h.
477
478 2011-09-13  Bruno Haible  <bruno@clisp.org>
479
480         sys_time: Support for MSVC.
481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
482         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
483         include <winsock2.h>.
484         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
485         function declarations that collide with POSIX.
486         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
487         (Makefile.am): Substitute HAVE_WINSOCK2_H.
488
489 2011-09-13  Bruno Haible  <bruno@clisp.org>
490
491         stat: Support for MSVC.
492         * lib/stat.c: Include pathmax.h.
493         * modules/stat (Depends-on): Add pathmax.
494
495         pathmax: Support for native Windows.
496         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
497
498 2011-09-12  Bruno Haible  <bruno@clisp.org>
499
500         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
501         * lib/dirent.in.h (struct dirent): New type.
502         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
503         DT_WHT): New macros.
504         (DIR): New type.
505         (opendir, closedir): Declare only if the module 'opendir' is enabled.
506         (readdir, rewinddir): New declarations.
507         * lib/dirent-private.h: New file.
508         * lib/opendir.c: New file.
509         * lib/readdir.c: New file.
510         * lib/rewinddir.c: New file.
511         * lib/closedir.c: New file.
512         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
513         * m4/opendir.m4: New file.
514         * m4/readdir.m4: New file.
515         * m4/rewinddir.m4: New file.
516         * m4/closedir.m4: New file.
517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
518         REPLACE_CLOSEDIR here.
519         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
520         readdir, rewinddir are declared.
521         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
522         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
523         HAVE_REWINDDIR, HAVE_CLOSEDIR.
524         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
525         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
526         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
527         * modules/opendir: New file.
528         * modules/readdir: New file.
529         * modules/rewinddir: New file.
530         * modules/closedir: New file.
531         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
532         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
533         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
534         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
535         * NEWS: Mention the 'fchdir' change.
536
537 2011-09-11  Bruno Haible  <bruno@clisp.org>
538
539         asm-underscore.m4: Support for MSVC.
540         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
541         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
542
543 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
544
545         Doc about crypt functions.
546         * doc/posix-functions/crypt.texi: Expand range of glibc versions
547         needing for _GNU_SOURCE to get crypt.
548         * doc/posix-functions/encrypt.texi: Likewise.
549         * doc/posix-functions/setkey.texi: Likewise.
550
551 2011-09-11  Bruno Haible  <bruno@clisp.org>
552
553         doc: Update regarding MSVC 9.
554         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
555         tested".
556         * doc/posix-functions/*.texi: Update with info about MSVC 9.
557         * doc/posix-headers/*.texi: Likewise.
558         * doc/pastposix-functions/*.texi: Likewise.
559         * doc/glibc-functions/*.texi: Likewise.
560         * doc/glibc-headers/*.texi: Likewise.
561
562 2011-09-11  Bruno Haible  <bruno@clisp.org>
563
564         unistd et al.: Don't assume <unistd.h> exists.
565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
566         does not exist.
567         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
568         exist. But include <stdlib.h>.
569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
570         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
571         symlink() does not exist.
572         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
573         include <io.h> instead.
574         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
576         include <direct.h> instead.
577         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
578         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
579         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
580         <io.h> instead.
581         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
582         correctly if the system does not have hard links.
583         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
584         <direct.h> instead.
585         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
586         it when looking for function declarations.
587         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
588         <direct.h> and <io.h> instead.
589         * doc/posix-headers/unistd.texi: More details about MSVC problem.
590
591 2011-09-11  Bruno Haible  <bruno@clisp.org>
592
593         strcase: Support for MSVC.
594         * modules/strcase (Status, Notice): Remove obsoletion mark.
595         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
596         * doc/posix-functions/strncasecmp.texi: Likewise.
597
598         strings: Don't assume <strings.h> exists.
599         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
600         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
601         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
602         * doc/posix-headers/strings.texi: Mention the MSVC problem.
603
604 2011-09-11  Bruno Haible  <bruno@clisp.org>
605
606         dirent: Don't assume <dirent.h> exists.
607         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
608         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
609         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
610         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
611
612 2011-09-11  Bruno Haible  <bruno@clisp.org>
613
614         Fix wint_t on MSVC.
615         * lib/wchar.in.h (wint_t): On MSVC, override it.
616         * lib/wctype.in.h (wint_t): Likewise.
617         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
618         MSVC.
619         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
620         * doc/posix-headers/wctype.texi: Likewise.
621
622 2011-09-11  Bruno Haible  <bruno@clisp.org>
623
624         sys_types: Fix typo.
625         * lib/sys_types.in.h: Fix typo in comment.
626         Reported by Paul Eggert.
627
628         Support for MSVC compiler: Ensure size_t gets defined.
629         * modules/strings (Depends-on): Add 'sys_types'.
630         * modules/sys_uio (Depends-on): Likewise.
631         * lib/sys_uio.in.h: Update comment.
632
633         C++ tests for module 'sys_types'.
634         * modules/sys_types-c++-tests: New file.
635         * tests/test-sys_types-c++.cc: New file.
636
637         Tests for module 'sys_types'.
638         * modules/sys_types-tests: New file.
639         * tests/test-sys_types.c: New file.
640
641         New module 'sys_types'.
642         * lib/sys_types.in.h: New file.
643         * m4/sys_types_h.m4: New file.
644         * modules/sys_types: New file.
645         * doc/posix-headers/sys_types.texi: Mention the new module and the
646         size_t problem on MSVC 9.
647
648 2011-09-11  Bruno Haible  <bruno@clisp.org>
649
650         Support for MSVC compiler: Avoid division by a literal 0.
651         * lib/math.in.h (NAN): Define through a function call also on MSVC.
652         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
653         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
654         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
655         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
656         * tests/infinity.h: New file.
657         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
658         on MSVC.
659         * tests/test-ceilf1.c: Include infinity.h.
660         (main): Use Infinityf.
661         * tests/test-ceil1.c: Include infinity.h.
662         (main): Use Infinityd.
663         * tests/test-ceill.c: Include infinity.h.
664         (main): Use Infinityl.
665         * tests/test-dprintf-posix.c: Include infinity.h.
666         (test_function): Use Infinityd.
667         * tests/test-floorf1.c: Include infinity.h.
668         (main): Use Infinityf.
669         * tests/test-floor1.c: Include infinity.h.
670         (main): Use Infinityd.
671         * tests/test-floorl.c: Include infinity.h.
672         (main): Use Infinityl.
673         * tests/test-fprintf-posix.c: Include infinity.h.
674         (test_function): Use Infinityd.
675         * tests/test-frexp.c: Include infinity.h.
676         (main): Use Infinityd.
677         * tests/test-frexpl.c: Include infinity.h.
678         (main): Use Infinityl.
679         * tests/test-isfinite.c: Include infinity.h.
680         (test_isfinitef): Use Infinityf.
681         (test_isfinited): Use Infinityd.
682         (test_isfinitel): Use Infinityl.
683         * tests/test-isinf.c: Include infinity.h.
684         (test_isinff): Use Infinityf.
685         (test_isinfd): Use Infinityd.
686         (test_isinfl): Use Infinityl.
687         * tests/test-isnan.c: Include infinity.h.
688         (test_float): Use Infinityf.
689         (test_double): Use Infinityd.
690         (test_long_double): Use Infinityl.
691         * tests/test-isnanf.h: Include infinity.h.
692         (main): Use Infinityf.
693         * tests/test-isnand.h: Include infinity.h.
694         (main): Use Infinityd.
695         * tests/test-isnanl.h: Include infinity.h.
696         (main): Use Infinityl.
697         * tests/test-ldexpl.c: Include infinity.h.
698         (main): Use Infinityl.
699         * tests/test-printf-posix.h: Include infinity.h.
700         (test_function): Use Infinityd.
701         * tests/test-roundf1.c: Include infinity.h.
702         (main): Use Infinityf.
703         * tests/test-round1.c: Include infinity.h.
704         (main): Use Infinityd.
705         * tests/test-roundl.c: Include infinity.h.
706         (main): Use Infinityl.
707         * tests/test-signbit.c: Include infinity.h.
708         (test_signbitf): Use Infinityf.
709         (test_signbitd): Use Infinityd.
710         (test_signbitl): Use Infinityl.
711         * tests/test-snprintf-posix.h: Include infinity.h.
712         (test_function): Use Infinityd, Infinityl.
713         * tests/test-sprintf-posix.h: Include infinity.h.
714         (test_function): Use Infinityd, Infinityl.
715         * tests/test-truncf1.c: Include infinity.h.
716         (main): Use Infinityf.
717         * tests/test-trunc1.c: Include infinity.h.
718         (main): Use Infinityd.
719         * tests/test-truncl.c: Include infinity.h.
720         (main): Use Infinityl.
721         * tests/test-vasnprintf-posix.c: Include infinity.h.
722         (test_function): Use Infinityd, Infinityl.
723         * tests/test-vasprintf-posix.c: Include infinity.h.
724         (test_function): Use Infinityd, Infinityl.
725         * modules/ceilf-tests (Files): Add tests/infinity.h.
726         * modules/ceil-tests (Files): Likewise.
727         * modules/ceill-tests (Files): Likewise.
728         * modules/dprintf-posix-tests (Files): Likewise.
729         * modules/floorf-tests (Files): Likewise.
730         * modules/floor-tests (Files): Likewise.
731         * modules/floorl-tests (Files): Likewise.
732         * modules/fprintf-posix-tests (Files): Likewise.
733         * modules/frexp-tests (Files): Likewise.
734         * modules/frexp-nolibm-tests (Files): Likewise.
735         * modules/frexpl-tests (Files): Likewise.
736         * modules/frexpl-nolibm-tests (Files): Likewise.
737         * modules/isfinite-tests (Files): Likewise.
738         * modules/isinf-tests (Files): Likewise.
739         * modules/isnan-tests (Files): Likewise.
740         * modules/isnanf-tests (Files): Likewise.
741         * modules/isnanf-nolibm-tests (Files): Likewise.
742         * modules/isnand-tests (Files): Likewise.
743         * modules/isnand-nolibm-tests (Files): Likewise.
744         * modules/isnanl-tests (Files): Likewise.
745         * modules/isnanl-nolibm-tests (Files): Likewise.
746         * modules/ldexpl-tests (Files): Likewise.
747         * modules/printf-posix-tests (Files): Likewise.
748         * modules/roundf-tests (Files): Likewise.
749         * modules/round-tests (Files): Likewise.
750         * modules/roundl-tests (Files): Likewise.
751         * modules/signbit-tests (Files): Likewise.
752         * modules/snprintf-posix-tests (Files): Likewise.
753         * modules/sprintf-posix-tests (Files): Likewise.
754         * modules/truncf-tests (Files): Likewise.
755         * modules/trunc-tests (Files): Likewise.
756         * modules/truncl-tests (Files): Likewise.
757         * modules/vasnprintf-posix-tests (Files): Likewise.
758         * modules/vasprintf-posix-tests (Files): Likewise.
759         * modules/vdprintf-posix-tests (Files): Likewise.
760         * modules/vfprintf-posix-tests (Files): Likewise.
761         * modules/vprintf-posix-tests (Files): Likewise.
762         * modules/vsnprintf-posix-tests (Files): Likewise.
763         * modules/vsprintf-posix-tests (Files): Likewise.
764         * modules/xprintf-posix-tests (Files): Likewise.
765
766 2011-09-11  Bruno Haible  <bruno@clisp.org>
767
768         Ensure pid_t gets defined.
769         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
770         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
771         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
772         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
773         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
774         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
775         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
777         * tests/test-fcntl-h.c: Check that pid_t is defined.
778         * tests/test-sched.c: Likewise.
779         * tests/test-termios.c: Likewise.
780         * tests/test-time.c: Likewise.
781         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
782         * doc/posix-headers/signal.texi: Likewise.
783         * doc/posix-headers/sys_types.texi: Likewise.
784         * doc/posix-headers/time.texi: Likewise.
785
786 2011-09-11  Bruno Haible  <bruno@clisp.org>
787
788         acl: Fix compilation on Solaris 10 (older version).
789         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
790         of ACE_EVERYONE.
791         * lib/set-mode-acl.c (qset_acl): Likewise.
792         Reported by Christian Jullien <eligis@orange.fr>.
793
794 2011-09-10  Bruno Haible  <bruno@clisp.org>
795
796         iconv, unsetenv: Add support for MSVC compiler.
797         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
798         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
799
800 2011-09-10  Bruno Haible  <bruno@clisp.org>
801
802         *printf: Add support for MSVC compiler.
803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
804         handles the exception caused by the %n directive. When cross-compiling,
805         guess no on native Windows.
806         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
807         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
808         emulate it through vsnprintf.
809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
810         * doc/posix-functions/dprintf.texi: Update documentation regarding
811         MSVC 9.
812         * doc/posix-functions/fprintf.texi: Likewise.
813         * doc/posix-functions/printf.texi: Likewise.
814         * doc/posix-functions/snprintf.texi: Likewise.
815         * doc/posix-functions/sprintf.texi: Likewise.
816         * doc/posix-functions/swprintf.texi: Likewise.
817         * doc/posix-functions/vdprintf.texi: Likewise.
818         * doc/posix-functions/vfprintf.texi: Likewise.
819         * doc/posix-functions/vprintf.texi: Likewise.
820         * doc/posix-functions/vsnprintf.texi: Likewise.
821         * doc/posix-functions/vsprintf.texi: Likewise.
822         * doc/glibc-functions/asprintf.texi: Likewise.
823         * doc/glibc-functions/obstack_printf.texi: Likewise.
824         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
825         * doc/glibc-functions/vasprintf.texi: Likewise.
826
827 2011-09-10  Bruno Haible  <bruno@clisp.org>
828
829         nocrash: Add support for native Windows.
830         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
831
832 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
833             Bruno Haible  <bruno@clisp.org>
834
835         absolute-header, include-next: Add support for MSVC compiler.
836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
837         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
838         directory separator in #line directives.
839         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
840         recognize also backslash as directory separator in #line directives.
841
842 2011-09-08  Jim Meyering  <meyering@redhat.com>
843
844         maint.mk: mark the post-release commit log with "maint: " prefix
845         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
846         one-line commit-log summary.
847
848 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
849             Bruno Haible  <bruno@clisp.org>
850
851         Doc about crypt functions.
852         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
853         systems.
854         * doc/posix-functions/encrypt.texi: Likewise.
855         * doc/posix-functions/setkey.texi: Likewise.
856
857 2011-09-08  Simon Josefsson  <simon@josefsson.org>
858
859         * lib/gc.h: Fix copyright header.
860
861 2011-09-07  Bruno Haible  <bruno@clisp.org>
862
863         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
864         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
865         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
866
867 2011-09-07  Bruno Haible  <bruno@clisp.org>
868
869         openat: Work around compilation error with OSF/1 5.1 DTK cc.
870         * lib/fopen.c: Use different syntax for include of <stdio.h>.
871         * lib/freopen.c: Likewise.
872         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
873         * lib/lstat.c: Likewise.
874         * lib/stat.c: Likewise.
875         * lib/open.c: Use different syntax for include of <fcntl.h>.
876         * lib/openat.c: Include fcntl.h again, explicitly.
877
878 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
879
880         parse-datetime: document the newly accepted format
881         * doc/parse-datetime.texi (Combined date and time of day items):
882         New section.
883
884 2011-09-06  Bruno Haible  <bruno@clisp.org>
885
886         acl: Fix a test failure on newer Solaris 10 with ZFS.
887         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
888         ENOSYS as no ACL.
889         Reported by Jim Meyering.
890
891 2011-09-06  Bruno Haible  <bruno@clisp.org>
892
893         acl: Update for AIX >= 5.3 with NFS.
894         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
895         ENOSYS as no ACL.
896
897         acl: Fix a test failure on AIX >= 5.3 with NFS.
898         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
899         as no ACL.
900
901 2011-09-06  Bruno Haible  <bruno@clisp.org>
902
903         acl: Fix a test failure on IRIX 6.5 with NFS.
904         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
905         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
906         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
907         * lib/copy-acl.c (qcopy_acl): Likewise.
908
909 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
910
911         openat: port to AIX 7.1 with large files
912         AIX 7.1 does a "#define openat open64at" if large files are in use,
913         so we can't simply #undef openat.  Use the orig_openat trick (similar
914         to orig_open in lib/open.c) to work around the problem.  Problem
915         reported by Kevin Brott for GNU tar, in the thread containing
916         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
917         * lib/openat.c (__need_system_fcntl_h): Define first.
918         Include <fcntl.h> and <sys/types.h> before undefining.
919         (orig_openat) [HAVE_OPENAT]: New inline function.
920         (openat) [HAVE_OPENAT]: Do not undef.
921         (rpl_openat): Use orig_openat, not openat.
922
923 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
924             Bruno Haible  <bruno@clisp.org>
925
926         acl: Avoid errors on NonStop Kernel.
927         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
928         ENOTSUP errors.
929
930 2011-09-05  Bruno Haible  <bruno@clisp.org>
931
932         acl: Clean up Solaris code.
933         * lib/acl-internal.h: Remove no-op #if.
934         * lib/file-has-acl.c: Likewise.
935         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
936         * lib/copy-acl.c (qcopy_acl): Likewise.
937
938 2011-09-05  Bruno Haible  <bruno@clisp.org>
939
940         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
941         binaries built on the original Solaris 10.
942         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
943         trivial.
944
945 2011-09-05  Bruno Haible  <bruno@clisp.org>
946
947         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
948         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
949         10.
950         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
951         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
952         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
953         instead of acl_get, facl_get, acl_set, facl_set.
954
955 2011-09-05  Bruno Haible  <bruno@clisp.org>
956
957         copy-file: Try unit tests on more file systems.
958         * tests/test-copy-file-1.sh: New file.
959         * tests/test-copy-file-2.sh: New file.
960         * modules/copy-file-tests (Files): Add them.
961         (Makefile.am): Add them to TESTS.
962
963         acl: Try unit tests on more file systems.
964         * tests/test-file-has-acl-1.sh: New file.
965         * tests/test-file-has-acl-2.sh: New file.
966         * tests/test-set-mode-acl-1.sh: New file.
967         * tests/test-set-mode-acl-2.sh: New file.
968         * tests/test-copy-acl-1.sh: New file.
969         * tests/test-copy-acl-2.sh: New file.
970         * modules/acl-tests (Files): Add them.
971         (Makefile.am): Add them to TESTS.
972
973 2011-09-04  Bruno Haible  <bruno@clisp.org>
974
975         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
976         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
977         10.
978         (OLD_ALLOW, OLD_DENY): New macros.
979         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
980         ACE_ACCESS_ALLOWED_ACE_TYPE.
981         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
982         ACE_ACCESS_DENIED_ACE_TYPE.
983         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
984         (NEW_ACE_EXECUTE): Fix value.
985         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
986         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
987         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
988         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
989         NEW_ACE_SYNCHRONIZE): New macros.
990         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
991         instead of acl_fromtext, acl_set, facl_set.
992         Fixes a coreutils/tests/cp/perm failure.
993
994 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
995
996         openat: test for fstatat (..., 0) bug
997         Further testing with tar suggests that fstatat (..., 0)
998         does not work in general, on AIX 7.1; see
999         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1000         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1001         replacement fstatat (which is what older AIX releases were using
1002         anyway).
1003         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1004         use is now changed to orig_fstatat.  This was probably the right
1005         thing to do anyway.
1006         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1007         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1008         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1009         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1010         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1011         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1012         if the bug is found.
1013
1014         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1015         This tests for another fstatat bug on AIX 7.1:
1016         fstatat (AT_FDCWD, ..., 0) does not work.  See
1017         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1018         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1019         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1020         (rpl_fstatat): Adjust so that it works around either (or both)
1021         bugs if present.
1022         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1023
1024 2011-09-03  Karl Berry  <karl@gnu.org>
1025
1026         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1027         in index entries.
1028
1029 2011-09-02  Bruno Haible  <bruno@clisp.org>
1030
1031         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1032         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1033         values of AR, ARFLAGS, RANLIB.
1034         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1035
1036 2011-09-02  Bruno Haible  <bruno@clisp.org>
1037
1038         Find 'ar' program that fits with --host argument.
1039         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1040
1041 2011-09-02  Bruno Haible  <bruno@clisp.org>
1042
1043         tests: init.sh: Support any non-GNU diff.
1044         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1045         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1046         Solaris 8.
1047
1048 2011-09-02  Bruno Haible  <bruno@clisp.org>
1049
1050         tests: init.sh: work also with any non-GNU diff that supports -u
1051         * tests/init.sh: Relax check for diff -u support.
1052         Rather than checking for GNU diff via --version, simply check
1053         for support for -u itself.  Useful at least on OpenBSD 4.9,
1054         AIX 7.1, IRIX 6.5, and Solaris 10.
1055
1056 2011-09-01  Bruno Haible  <bruno@clisp.org>
1057
1058         strtoimax, strtoumax: Document problem on HP-UX 11.
1059         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1060         * doc/posix-functions/strtoumax.texi: Likewise.
1061
1062 2011-09-01  Bruno Haible  <bruno@clisp.org>
1063
1064         strtoumax: Avoid link error on OSF/1 with DTK cc.
1065         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1066         defined as a function.
1067         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1068         strtoumax is defined, not whether it is declared.
1069
1070 2011-09-01  Bruno Haible  <bruno@clisp.org>
1071
1072         strtoimax: Avoid link error on OSF/1 with DTK cc.
1073         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1074         defined as a function.
1075         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1076         strtoimax is defined, not whether it is declared.
1077
1078 2011-09-01  Bruno Haible  <bruno@clisp.org>
1079
1080         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1081         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1082         as a function.
1083         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1084         whether it is declared.
1085
1086 2011-09-01  Bruno Haible  <bruno@clisp.org>
1087
1088         imaxabs: Avoid link error on OSF/1 with DTK cc.
1089         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1090         as a function.
1091         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1092         whether it is declared.
1093
1094 2011-09-01  Bruno Haible  <bruno@clisp.org>
1095
1096         Tests for module 'strtoumax'.
1097         * modules/strtoumax-tests: New file.
1098         * tests/test-strtoumax.c: New file.
1099
1100         Tests for module 'strtoimax'.
1101         * modules/strtoimax-tests: New file.
1102         * tests/test-strtoimax.c: New file.
1103
1104         Tests for module 'imaxdiv'.
1105         * modules/imaxdiv-tests: New file.
1106         * tests/test-imaxdiv.c: New file.
1107
1108         Tests for module 'imaxabs'.
1109         * modules/imaxabs-tests: New file.
1110         * tests/test-imaxabs.c: New file.
1111
1112 2011-09-01  Bruno Haible  <bruno@clisp.org>
1113
1114         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1115         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1116         pthread_create.
1117
1118 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1119
1120         openat: work around AIX 7.1 fstatat issue
1121         This should fix the problem that was not properly fixed
1122         in the previous change, dated 2011-08-30.
1123         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1124         __need_system_stat_h defined.
1125         (orig_fstatat) [HAVE_FSTATAT]: New function.
1126         (rpl_fstatat): Go back to the old way of doing things,
1127         except call orig_fstatat instead of fstatat.
1128         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1129         Remove unnecessary check whether fstatat fills in st_size etc.
1130
1131 2011-09-01  Bruno Haible  <bruno@clisp.org>
1132
1133         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1134         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1135         just include the system's header.
1136
1137 2011-08-31  Jim Meyering  <meyering@redhat.com>
1138
1139         tests: avoid spurious assertion failure in test-float.c on ppc64
1140         * tests/test-float.c (test_long_double): Comment out an assertion,
1141         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1142         with gcc-4.4.4.
1143
1144         maint: indent with spaces, not TABs
1145         I need to get in the habit of running gnulib's "make check".
1146         Both of these would have been caught.
1147         * m4/largefile.m4: Indent with spaces, not TABs.
1148         * lib/parse-datetime.y (iso_8601_time): Likewise.
1149         Spotted by Pádraig Brady.
1150
1151         test-parse-datetime.c: accommodate a relatively strict gcc warning
1152         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1153         to avoid a warning from gcc's -Werror=missing-declarations.
1154         Insert a few spaces-before-funcall-parenthesis.
1155
1156 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1157
1158         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1159         The parser now accepts ISO 8601 date-time strings with "T" as the
1160         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1161         with a space between the date and time strings.  Now it also parses
1162         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1163         variants like "2004-02-29T16:21:42.333-07:00"
1164         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1165         of day representation using the 'T' separator character.
1166         * doc/parse-datetime.texi (General date syntax): replace use of
1167         deprecated --iso-8601 option with --rfc-3339 in example of date
1168         command output formats that can be parsed.
1169         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1170         lib/parse-datetime.y.
1171         (gmt_offset): New function.
1172         (main): Add additional test cases to validate ISO8601 extended
1173         date and time of day parsing.
1174
1175 2011-08-31  Bruno Haible  <bruno@clisp.org>
1176
1177         freopen: Documentation.
1178         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1179         name.
1180         Reported by Claudio Bley <claudio.bley@gmail.com>.
1181
1182 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1183
1184         freopen: Don't crash if the filename argument is NULL.
1185         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1186         NULL.
1187
1188 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1189
1190         openat: work around AIX 7.1 fstatat bug
1191         Problem reported by Kevin Brott for GNU tar, in the thread containing
1192         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1193         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1194         FSTATAT_ST_SIZE_ETC_BROKEN.
1195         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1196         rpl_fstatat.
1197         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1198         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1199         AC_CHECK_FUNCS_ONCE for fstatat.
1200         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1201         fchmodat, mkdirat, openat and unlinkat.
1202
1203 2011-08-30  Bruno Haible  <bruno@clisp.org>
1204
1205         Avoid endless recursions if config.h includes some header files.
1206         * lib/fopen.c (__need_FILE): Define already before including config.h.
1207         * lib/freopen.c (__need_FILE): Likewise.
1208         * lib/open.c (__need_system_fcntl_h): Likewise.
1209         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1210         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1211         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1212
1213 2011-08-25  Karl Berry  <karl@gnu.org>
1214
1215         * config/srclist.txt (ylwrap): new try.
1216         * build-aux/ylwrap: new file.
1217
1218 2011-08-23  Bruno Haible  <bruno@clisp.org>
1219
1220         tmpdir: Use a good default directory on native Windows.
1221         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1222         (P_tmpdir): Default to _P_tmpdir on native Windows.
1223         (path_search): On native Windows, try the value returned by GetTempPath
1224         before trying P_tmpdir.
1225         * modules/tmpdir (Depends-on): Add pathmax.
1226         Suggested by John Darrington <john@darrington.wattle.id.au>.
1227
1228 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1229
1230         doc: fix typo in README-release
1231         * top/README-release: Capitalize first word of a sentence.
1232
1233 2011-08-19  Jim Meyering  <meyering@redhat.com>
1234
1235         fts: do not exhaust memory when processing million-entry directories
1236         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1237         directory would require about 256*N bytes of memory.  Thus, it was
1238         easy to construct a directory too large to be processed by any of
1239         those tools.  With this change, fts' maximum memory utilization is
1240         now limited to around 30MB.
1241         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1242         (fts_read): When we've processed the final entry (i.e., when
1243         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1244         using the parent entry to read any remaining entries.  Dispatch
1245         depending on what fts_build returns:
1246         - NULL+stop, aka failure: stop
1247         - NULL otherwise: move up in the dir hierarchy
1248         - non-NULL: handle this new entry
1249         (fts_build): Declare and use new local, continue_readdir.
1250         Prepare to be called from fts_read, when the entries
1251         from a partially-read directory have just been exhausted.
1252         In that case, we'll skip the opendir and instead use the parent's
1253         fts_dirp and derive dir_fd from that.
1254         Finally, in the readdir loop, if we read max_entries entries,
1255         exit the loop ensuring *not* to call closedir.  This is required
1256         so that fts_dirp can be reused on a subsequent call.
1257         Prompted by Ben England's report of memory exhaustion in find
1258         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1259
1260         maint: fts: move decl of `dp' down into while loop; split a long line
1261         * lib/fts.c (fts_build): No semantic change.
1262
1263         fts: add/use new struct member, fts_dirp
1264         We are about to use this to manage any directory with
1265         too many entries to read all of them into memory at once.
1266         To do that, we'll need to save the DIR* pointer in each
1267         affected FTSENT struct.
1268         * lib/fts_.h: Include <dirent.h>.
1269         (struct FTSENT) [fts_dirp]: New member.
1270         * lib/fts.c (closedir_and_clear): Define.
1271         Use it in place of closedir so that we are sure to
1272         clear the new fts_dirp member when done with it.
1273         (fts_alloc): Initialize the new member.
1274         (fts_lfree): Free, if needed.
1275
1276         maint: fts: give __opendir2 a new parameter and rename
1277         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1278         than surreptitiously using sole caller's "dir_fd".
1279         (fts_opendir): Rename from __opendir2.
1280
1281         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1282         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1283
1284         maint: fts.c: correct off-by-one indentation
1285         * lib/fts.c (fts_build): Correct indentation, change style
1286         of a couple of block comments, and bracing style.
1287
1288         maint: fts.c: move __opendir2 #define "up" out of function body
1289         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1290
1291         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1292         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1293         out for a long time and besides was useful only on BSD systems.
1294
1295 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1296
1297         regex: port to Stratus OpenVOS
1298         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1299         define to empty, rather than attempting nonportable optimizations.
1300         Problem reported by Paul Green in:
1301         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1302         and fix suggested by Eric Blake in:
1303         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1304
1305 2011-08-17  Eric Blake  <eblake@redhat.com>
1306
1307         getcwd: fix test failures on mingw
1308         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1309         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1310         test if long directory cannot be created, and allow mingw errno.
1311
1312         getcwd-lgpl: fix m4 to match relaxed test for BSD
1313         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1314         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1315         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1316         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1317         signature problem.
1318
1319         getcwd: fix compilation on mingw64
1320         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1321         getcwd.
1322         Reported by Marc-André Lureau.
1323
1324         pipe2: silence compiler warning
1325         * lib/pipe2.c (pipe2): Hide label if it is not used.
1326
1327 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1328
1329         relocatable-prog: fix link error
1330         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1331         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1332         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1333         into modules/relocatable-lib without noticing that
1334         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1335         also needs to build relocatable.c.
1336
1337 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1338
1339         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1341         shell code: it contained a 'break' that was not in a loop.
1342         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1343         via a shell-language loop; this may have been true in old Autoconf
1344         versions, but it's not true in Autoconf 2.68.  I found this bug
1345         when testing coreutils git on Solaris 8, whose shell complains
1346         about the syntax error.
1347
1348 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1349
1350         * lib/base64.c: Fix comment to reference RFC 4648.
1351         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1352         <gvtulder@gmail.com>.
1353
1354 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1355
1356         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1357
1358         po/Makefile.in.in: fix make -q problem
1359         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1360         rule, since there's no file named 'check-macro-version' and its
1361         use as a file breaks make -q.
1362         (all): Don't depend on check-macro-version.
1363         (CHECK_MACRO_VERSION): New macro.
1364         (stamp-po): Use it.
1365
1366         configmake: fix make -q problem
1367         * modules/configmake (configmake.h): Update configmake.h's time stamp
1368         even if the file does not change.  Otherwise, 'make -q' fails.
1369         Problem reported by Simon Josefsson in
1370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1371
1372 2011-08-11  Jim Meyering  <meyering@redhat.com>
1373
1374         git-version-gen: correct the advice in a comment
1375         * build-aux/git-version-gen: Correct comment.
1376         Don't recommend to list .tarball-version in .gitignore.
1377
1378 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1379
1380         base64: fix off-by-one buffer size bug
1381         Problem and (trivial) fix reported by Gijs van Tulder in
1382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1383         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1384         * tests/test-base64.c (main): Catch the bug.
1385
1386 2011-08-10  Eric Blake  <eblake@redhat.com>
1387
1388         closein: correct comments
1389         * lib/closein.c (close_stdin): Improve comments.
1390
1391 2011-08-09  Bruno Haible  <bruno@clisp.org>
1392
1393         More tests for 'fseeko'.
1394         * tests/test-fseeko3.c: New file, from Eric Blake.
1395         * tests/test-fseeko3.sh: New file.
1396         * modules/fseeko-tests (Files): Add them.
1397         (TESTS): Add test-fseeko3.sh.
1398         (check_PROGRAMS): Add test-fseeko3.
1399
1400 2011-08-09  Eric Blake  <eblake@redhat.com>
1401
1402         fseeko: remove unneeded hack
1403         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1404
1405         fseeko: fix bug on glibc
1406         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1407         Reported by John W. Eaton.
1408
1409 2011-08-08  Bruno Haible  <bruno@clisp.org>
1410
1411         unictype/base: Fix interoperability with preinstalled libunistring.
1412         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1413         Reported by Simon Josefsson.
1414
1415 2011-08-08  Bruno Haible  <bruno@clisp.org>
1416
1417         iswblank: Detect declaration correctly.
1418         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1419         AC_CHECK_DECLS invocation.
1420
1421 2011-08-08  Bruno Haible  <bruno@clisp.org>
1422
1423         tcgetsid: Detect declaration correctly.
1424         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1425         AC_CHECK_DECLS invocation.
1426         Reported by Simon Josefsson.
1427
1428 2011-08-08  Eric Blake  <eblake@redhat.com>
1429
1430         largefile: fix typo that regressed large file support
1431         * modules/largefile (configure.ac-early): Fix section name.
1432
1433 2011-08-06  Karl Berry  <karl@gnu.org>
1434
1435         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1436         a separate module.
1437
1438 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1439
1440         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1441         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1442         get prototype for free.
1443
1444 2011-08-04  Bruno Haible  <bruno@clisp.org>
1445
1446         Tests for module 'pathmax'.
1447         * modules/pathmax-tests: New file.
1448         * tests/test-pathmax.c: New file.
1449
1450         canonicalize-lgpl: Support larger filenames on the Hurd.
1451         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1452         Reported by Paul Eggert.
1453
1454         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1455         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1456         * lib/chdir-long.h: Include pathmax.h.
1457         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1458         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1459         (PATH_MAX): Remove code that is done by pathmax.h.
1460         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1461         * lib/tmpfile.c: Add a comment.
1462         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1463         * modules/chdir-long (Depends-on): Add pathmax.
1464         * modules/getcwd (Depends-on): Add pathmax.
1465         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1466         is not defined.
1467         * doc/posix-headers/limits.texi: Mention the pathmax module.
1468         * NEWS: Mention the change.
1469
1470 2011-08-02  Bruno Haible  <bruno@clisp.org>
1471
1472         pthread_sigmask: Actually use results of gl_THREADLIB.
1473         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1474         gl_THREADLIB, not gl_[]THREADLIB.
1475         Reported by Eric Blake.
1476
1477 2011-08-02  Jim Meyering  <meyering@redhat.com>
1478
1479         maint.mk: relax the default _gl_TS_function_match regexp
1480         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1481         space between function name and "(" in an "extern" declaration.
1482         That would fail to match a decl with no space there: extern void foo();
1483
1484 2011-07-31  Iain Nicol  <iain@thenicols.net>
1485
1486         git-version-gen: document that EXTRA_DIST must include .version
1487         * build-aux/git-version-gen: In the how-to-use comment, document
1488         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1489         will fail when run from an unpacked distribution tarball.
1490
1491 2011-08-01  Bruno Haible  <bruno@clisp.org>
1492
1493         wctype-h: Fix last change.
1494         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1495         REPLACE_TOWLOWER to 0.
1496         Reported by Sam Steingold <sds@gnu.org>.
1497
1498 2011-07-31  Bruno Haible  <bruno@clisp.org>
1499
1500         frexpl: Update autoconf test.
1501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1502         according to changes of 2011-06-20.
1503
1504 2011-07-31  Bruno Haible  <bruno@clisp.org>
1505
1506         sys_utsname: Add support for Minix.
1507         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1508         <sys/utsname.h>.
1509         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1510         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1511
1512 2011-07-31  Bruno Haible  <bruno@clisp.org>
1513
1514         strings: Add support for Minix.
1515         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1516         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1517         * doc/posix-headers/strings.texi: Document the Minix problem.
1518
1519 2011-07-31  Bruno Haible  <bruno@clisp.org>
1520
1521         wctype-h: Add support for Minix.
1522         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1523         REPLACE_TOWLOWER.
1524         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1525         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1526         REPLACE_ISWCNTRL.
1527
1528 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1531         This is a performance improvement for 64-bit hosts: it causes the
1532         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1533
1534 2011-07-31  Bruno Haible  <bruno@clisp.org>
1535
1536         stdioext: Add support for Minix.
1537         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1538         * lib/fpurge.c (fpurge): Likewise.
1539         * lib/freadahead.c (freadahead): Likewise.
1540         * lib/freadable.c (freadable): Likewise.
1541         * lib/freading.c (freading): Likewise.
1542         * lib/freadptr.c (freadptr): Likewise.
1543         * lib/freadseek.c (freadptrinc): Likewise.
1544         * lib/fseeko.c (rpl_fseeko): Likewise.
1545         * lib/fseterr.c (fseterr): Likewise.
1546         * lib/fwritable.c (fwritable): Likewise.
1547         * lib/fwriting.c (fwriting): Likewise.
1548         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1549         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1550
1551 2011-07-31  Bruno Haible  <bruno@clisp.org>
1552
1553         errno: Port to Minix.
1554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1555         ECONNABORTED are defined.
1556         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1557         GNULIB_defined_ECONNABORTED): New macros.
1558         * lib/strerror-override.h (strerror_override): Test also
1559         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1560         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1561         ECONNABORTED.
1562         * doc/posix-headers/errno.texi: Mention the Minix problem.
1563
1564 2011-07-31  Bruno Haible  <bruno@clisp.org>
1565
1566         Work around declaration collisions on Minix.
1567         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1568         defined, set REPLACE_MBSINIT.
1569         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1570         defined, set REPLACE_MBRTOWC.
1571         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1572         set REPLACE_MBRLEN.
1573         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1574         defined, set REPLACE_MBSRTOWCS.
1575         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1576         defined, set REPLACE_WCRTOMB.
1577         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1578         defined, set REPLACE_WCSRTOMBS.
1579
1580 2011-07-31  Bruno Haible  <bruno@clisp.org>
1581
1582         Add support for Minix with ACK compiler.
1583         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1584         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1585         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1586
1587 2011-07-31  Bruno Haible  <bruno@clisp.org>
1588
1589         Documentation about Minix.
1590         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1591         * doc/glibc-headers/*.texi: Likewise.
1592         * doc/posix-functions/*.texi: Likewise.
1593         * doc/glibc-functions/*.texi: Likewise.
1594
1595 2011-07-31  Bruno Haible  <bruno@clisp.org>
1596
1597         snippet/warn-on-use: Fix indentation.
1598         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1599
1600 2011-07-25  Jim Meyering  <meyering@redhat.com>
1601
1602         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1603         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1604         commands.
1605
1606 2011-07-27  Jim Meyering  <meyering@redhat.com>
1607
1608         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1609         * top/maint.mk (gl_extract_significant_defines_): Now that
1610         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1611         gnulib/lib/signal.in.h, and now that we recommend to
1612         define-if-undefined those two symbols in application code,
1613         we must filter them out of the "significant" list.
1614         This avoids a "make syntax-check" failure in coreutils.
1615
1616 2011-07-26  Eric Blake  <eblake@redhat.com>
1617
1618         warnings: add comments about previous patch
1619         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1620         * m4/include_next.m4: Likewise.
1621         * m4/warn-on-use.m4: Likewise.
1622         * m4/warnings.m4: Likewise, and simplify use.
1623         Suggested by Stefano Lattarini.
1624
1625         include-next, warnings: support older autoconf
1626         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1627         AS_VAR_PUSHDEF in a way that works with older autoconf.
1628         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1629         Reported by Daniel P. Berrange.
1630
1631 2011-07-25  Bruno Haible  <bruno@clisp.org>
1632
1633         fseek, ftell: Fix doc.
1634         * doc/posix-functions/fseek.texi: Reword statement about
1635         AC_SYS_LARGEFILE.
1636         * doc/posix-functions/ftell.texi: Likewise.
1637
1638 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1639             Bruno Haible  <bruno@clisp.org>
1640
1641         Add dependencies to the 'largefile' module.
1642         * modules/fopen (Depends-on): Add 'largefile'.
1643         * modules/freopen (Depends-on): Likewise.
1644         * modules/fseeko (Depends-on): Likewise.
1645         * modules/ftello (Depends-on): Likewise.
1646         * modules/glob (Depends-on): Likewise.
1647         * modules/lseek (Depends-on): Likewise.
1648         * modules/lstat (Depends-on): Likewise.
1649         * modules/mkostemp (Depends-on): Likewise.
1650         * modules/mkostemps (Depends-on): Likewise.
1651         * modules/mkstemp (Depends-on): Likewise.
1652         * modules/mkstemps (Depends-on): Likewise.
1653         * modules/open (Depends-on): Likewise.
1654         * modules/openat (Depends-on): Likewise.
1655         * modules/pread (Depends-on): Likewise.
1656         * modules/pwrite (Depends-on): Likewise.
1657         * modules/scandir (Depends-on): Likewise.
1658         * modules/stat (Depends-on): Likewise.
1659         * modules/tmpfile (Depends-on): Likewise.
1660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1661         since the containing module now depends on the largefile module.
1662         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1663         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1664         off_t is fixed by gnulib.
1665         * doc/posix-functions/freopen.texi: Likewise.
1666         * doc/posix-functions/fseeko.texi: Likewise.
1667         * doc/posix-functions/fstatat.texi: Likewise.
1668         * doc/posix-functions/ftello.texi: Likewise.
1669         * doc/posix-functions/glob.texi: Likewise.
1670         * doc/posix-functions/lseek.texi: Likewise.
1671         * doc/posix-functions/lstat.texi: Likewise.
1672         * doc/posix-functions/mkstemp.texi: Likewise.
1673         * doc/posix-functions/open.texi: Likewise.
1674         * doc/posix-functions/openat.texi: Likewise.
1675         * doc/posix-functions/pread.texi: Likewise.
1676         * doc/posix-functions/pwrite.texi: Likewise.
1677         * doc/posix-functions/scandir.texi: Likewise.
1678         * doc/posix-functions/stat.texi: Likewise.
1679         * doc/posix-functions/tmpfile.texi: Likewise.
1680         * doc/glibc-functions/mkostemp.texi: Likewise.
1681         * doc/glibc-functions/mkostemps.texi: Likewise.
1682         * doc/glibc-functions/mkstemps.texi: Likewise.
1683
1684 2011-07-25  Bruno Haible  <bruno@clisp.org>
1685
1686         fcntl: Move AC_LIBOBJ invocation to module description.
1687         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1688         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1689
1690         fcntl: Remove call-in from fchdir.m4.
1691         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1693
1694         dup3: Remove potential call-in from fchdir.m4.
1695         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1697
1698         dup2: Move AC_LIBOBJ invocation to module description.
1699         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1700         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1701         Don't invoke AC_LIBOBJ.
1702         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1703
1704         dup2: Remove call-in from fchdir.m4.
1705         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1707
1708         fclose: Move AC_LIBOBJ invocation to module description.
1709         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1710         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1711         to 1.
1712         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1713
1714         fclose: Remove call-in from close.m4.
1715         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1716         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1717
1718         close: Move AC_LIBOBJ invocation to module description.
1719         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1720         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1721         1.
1722         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1723
1724         close: Remove call-in from fchdir.m4.
1725         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1727
1728         open: Move AC_LIBOBJ invocation to module description.
1729         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1730         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1731         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1732
1733         open: Remove call-in from fchdir.m4.
1734         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1736
1737         fchdir: Start to remove gl_REPLACE_* idiom.
1738         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1739         (gl_FUNC_FCHDIR): Invoke it.
1740
1741 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1742
1743         * lib/ftell.c (ftell): Comment out cast.
1744
1745         close: use gl_REPLACE_FCLOSE only if defined
1746         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1747         is defined.  The close module doesn't depend on the fclose module
1748         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1750         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1751
1752 2011-07-24  Jim Meyering  <meyering@redhat.com>
1753
1754         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1755         * tests/test-select.h (test_function): Declare as "static".
1756
1757 2011-07-24  Bruno Haible  <bruno@clisp.org>
1758
1759         doc: Mention the effects of AC_SYS_LARGEFILE.
1760         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1761         on this function.
1762         * doc/posix-functions/aio_error.texi: Likewise.
1763         * doc/posix-functions/aio_fsync.texi: Likewise.
1764         * doc/posix-functions/aio_read.texi: Likewise.
1765         * doc/posix-functions/aio_return.texi: Likewise.
1766         * doc/posix-functions/aio_suspend.texi: Likewise.
1767         * doc/posix-functions/aio_write.texi: Likewise.
1768         * doc/posix-functions/fgetpos.texi: Likewise.
1769         * doc/posix-functions/fopen.texi: Likewise.
1770         * doc/posix-functions/freopen.texi: Likewise.
1771         * doc/posix-functions/fsetpos.texi: Likewise.
1772         * doc/posix-functions/fstatvfs.texi: Likewise.
1773         * doc/posix-functions/ftruncate.texi: Likewise.
1774         * doc/posix-functions/ftw.texi: Likewise.
1775         * doc/posix-functions/getrlimit.texi: Likewise.
1776         * doc/posix-functions/glob.texi: Likewise.
1777         * doc/posix-functions/lio_listio.texi: Likewise.
1778         * doc/posix-functions/lockf.texi: Likewise.
1779         * doc/posix-functions/mkstemp.texi: Likewise.
1780         * doc/posix-functions/mmap.texi: Likewise.
1781         * doc/posix-functions/nftw.texi: Likewise.
1782         * doc/posix-functions/openat.texi: Likewise.
1783         * doc/posix-functions/opendir.texi: Likewise.
1784         * doc/posix-functions/posix_fadvise.texi: Likewise.
1785         * doc/posix-functions/posix_fallocate.texi: Likewise.
1786         * doc/posix-functions/pread.texi: Likewise.
1787         * doc/posix-functions/pwrite.texi: Likewise.
1788         * doc/posix-functions/readdir.texi: Likewise.
1789         * doc/posix-functions/readdir_r.texi: Likewise.
1790         * doc/posix-functions/rewinddir.texi: Likewise.
1791         * doc/posix-functions/scandir.texi: Likewise.
1792         * doc/posix-functions/seekdir.texi: Likewise.
1793         * doc/posix-functions/setrlimit.texi: Likewise.
1794         * doc/posix-functions/statvfs.texi: Likewise.
1795         * doc/posix-functions/telldir.texi: Likewise.
1796         * doc/posix-functions/tmpfile.texi: Likewise.
1797         * doc/posix-functions/truncate.texi: Likewise.
1798         * doc/glibc-functions/fallocate.texi: Likewise.
1799         * doc/glibc-functions/fstatfs.texi: Likewise.
1800         * doc/glibc-functions/fts_children.texi: Likewise.
1801         * doc/glibc-functions/fts_read.texi: Likewise.
1802         * doc/glibc-functions/getdirentries.texi: Likewise.
1803         * doc/glibc-functions/mkostemp.texi: Likewise.
1804         * doc/glibc-functions/mkostemps.texi: Likewise.
1805         * doc/glibc-functions/mkstemps.texi: Likewise.
1806         * doc/glibc-functions/preadv.texi: Likewise.
1807         * doc/glibc-functions/pwritev.texi: Likewise.
1808         * doc/glibc-functions/sendfile.texi: Likewise.
1809         * doc/glibc-functions/statfs.texi: Likewise.
1810
1811 2011-07-24  Bruno Haible  <bruno@clisp.org>
1812
1813         doc: Fix typo.
1814         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1815
1816 2011-07-24  Bruno Haible  <bruno@clisp.org>
1817
1818         doc: Mention fsusage.
1819         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1820
1821 2011-07-24  Bruno Haible  <bruno@clisp.org>
1822
1823         doc: Mention new glibc headers and functions.
1824         * doc/glibc-headers/gshadow.texi: New file.
1825         * doc/glibc-functions/endsgent.texi: New file.
1826         * doc/glibc-functions/fgetsgent.texi: New file.
1827         * doc/glibc-functions/fgetsgent_r.texi: New file.
1828         * doc/glibc-functions/getsgent.texi: New file.
1829         * doc/glibc-functions/getsgent_r.texi: New file.
1830         * doc/glibc-functions/getsgnam.texi: New file.
1831         * doc/glibc-functions/getsgnam_r.texi: New file.
1832         * doc/glibc-functions/putsgent.texi: New file.
1833         * doc/glibc-functions/setsgent.texi: New file.
1834         * doc/glibc-functions/sgetsgent.texi: New file.
1835         * doc/glibc-functions/sgetsgent_r.texi: New file.
1836         * doc/glibc-functions/malloc_info.texi: New file.
1837         * doc/glibc-functions/preadv.texi: New file.
1838         * doc/glibc-functions/pwritev.texi: New file.
1839         * doc/glibc-functions/register_printf_modifier.texi: New file.
1840         * doc/glibc-functions/register_printf_specifier.texi: New file.
1841         * doc/glibc-functions/register_printf_type.texi: New file.
1842         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1843         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1844         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1845         * doc/glibc-functions/pthread_getname_np.texi: New file.
1846         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1847         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1848         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1849         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1850         * doc/glibc-functions/pthread_setname_np.texi: New file.
1851         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1852         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1853         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1854         * doc/glibc-functions/qsort_r.texi: New file.
1855         * doc/glibc-functions/quick_exit.texi: New file.
1856         * doc/glibc-functions/syncfs.texi: New file.
1857         * doc/gnulib.texi: Include them.
1858         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1859         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1860         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1861         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1862         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1863         * doc/glibc-functions/execvpe.texi: Likewise.
1864
1865 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1866
1867         ftell: don't include <unistd.h>
1868         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1869         guaranteed to define off_t, and the ftell module depends on the
1870         stdio module.
1871
1872         ftell: do not assume wraparound signed arithmetic
1873         * lib/ftell.c: Include <limits.h>.
1874         (ftell): Don't assume wraparound signed arithmetic.
1875
1876 2011-07-24  Bruno Haible  <bruno@clisp.org>
1877
1878         close: No longer depend on module 'fclose'.
1879         * modules/close (Depends-on): Remove fclose.
1880         * NEWS: Mention the change.
1881         Suggested by Sam Steingold <sds@gnu.org>.
1882
1883 2011-07-24  Bruno Haible  <bruno@clisp.org>
1884
1885         fsusage: Enable large volume support on AIX >= 5.2.
1886         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1887         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1888         instead of STAT_STATVFS.
1889         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1890
1891         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1893         f_blocks field only on MacOS X.
1894
1895         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1897         * modules/fsusage (Depends-on): Add largefile.
1898
1899 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1900
1901         * README: Modernize discussion of signed integers.
1902         Assuming overflow wraparound is no longer safe.
1903         Mention ones' complement and signed magnitude.
1904
1905 2011-07-22  Bruno Haible  <bruno@clisp.org>
1906
1907         select tests, pselect tests: Refactor.
1908         * tests/test-select.h: New file, extracted from tests/test-select.c.
1909         (select_fn): New type.
1910         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1911         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1912         test_pipe): Add my_select argument.
1913         (test_function): Renamed from main. Add my_select argument.
1914         * tests/test-select.c: Move most code to tests/test-select.h. Include
1915         test-select.h.
1916         * modules/select-tests (Files): Add tests/test-select.h.
1917         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1918         (my_select, main): New functions.
1919         * modules/pselect-tests (Files): Add tests/test-select.h,
1920         tests/macros.h, tests/signature.h.
1921         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1922         (configure.ac): Check for <sys/wait.h>.
1923
1924 2011-07-22  Bruno Haible  <bruno@clisp.org>
1925
1926         sys_select tests: Check the signature of FD_*.
1927         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1928         signature tests from here...
1929         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1930         here.
1931         * modules/sys_select-tests (Files): Add tests/signature.h.
1932
1933 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1934
1935         largefile: new module, replacing large-inode
1936         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1937         * MODULES.html.sh: Add largefile, remove large-inode.
1938         * modules/largefile, m4/largefile.m4: New files.
1939         * modules/large-inode, m4/large-inode.m4: Remove.
1940
1941         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1943         implementations that use only 32 bits to count blocks.
1944         On typical hosts with 1024-byte blocks, this fails with file
1945         systems as small as 4 TiB.  Problem reported by Herb Wartens
1946         <http://debbugs.gnu.org/9140> and this should also fix a similar
1947         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1948
1949         large-inode: New module
1950         * MODULES.html.sh: Add it.
1951         * modules/large-inode, m4/large-inode.m4: New files.
1952
1953         extensions: Enable extensions on MacOS X 10.5 and later.
1954         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1955
1956 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1957
1958         file-has-acl: use acl_extended_file_nofollow if available
1959         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1960         (acl_extended_file): New macro.
1961         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1962         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1963
1964 2011-07-21  Bruno Haible  <bruno@clisp.org>
1965
1966         Declare system functions in a way that works with C++.
1967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1968         declare fdopendir as extern "C".
1969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1970         declare frexpl as extern "C".
1971         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1972         declare gai_strerror as extern "C".
1973         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1974         programs, declare gai_strerror as extern "C".
1975         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1976         declare getlogin_r as extern "C".
1977         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1978         as extern "C".
1979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1980         declare ldexpl as extern "C".
1981         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1982         as extern "C".
1983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1984         program, declare getmntinfo as extern "C".
1985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1986         stpncpy as extern "C".
1987         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1988         program, declare __xpg_strerror_r as extern "C".
1989         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1990         strndup as extern "C".
1991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1992         declare memset and bzero as extern "C".
1993         Reported by Sam Steingold <sds@gnu.org>.
1994
1995 2011-07-12  Jim Meyering  <meyering@redhat.com>
1996
1997         maint.mk: prohibit inclusion of "verify.h" without use
1998         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1999
2000 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2001
2002         timer-time: A new module to check for timer_settime()
2003         * m4/timer_time.m4: Check for the posix function.
2004         * modules/timer-time: Add the new module.
2005         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2006         Mention it.
2007
2008 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2009             Bruno Haible  <bruno@clisp.org>
2010
2011         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2012         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2013         not defined, assume POSIX threads and look for pthread_sigmask in
2014         $LIBS, without changing $CPPFLAGS.
2015
2016 2011-07-19  Bruno Haible  <bruno@clisp.org>
2017
2018         strstr: Update cross-compilation guess.
2019         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2020         CPUs, guess no, in view of glibc
2021         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2022         Suggested by Eric Blake. Reported by Reuben Thomas.
2023
2024 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2025
2026         getopt-gnu: suppress core dumps from detection code
2027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2028         to suppress core dumps that may well occur on glibc systems.
2029         * modules/getopt-gnu: Depend on nocrash.
2030
2031 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         pthread_sigmask: ensure usleep is declared
2034         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2035         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2036
2037 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2038
2039         doc: Document NonStop portability issues.
2040         * doc/posix-functions/sigaction.texi (sigaction):
2041         * doc/posix-headers/signal.texi (signal.h):
2042         Document NonStop.  See Joachim Schmitz in
2043         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2044
2045 2011-07-15  Bruno Haible  <bruno@clisp.org>
2046
2047         ffsl, ffsll: Avoid unportable behaviour.
2048         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2049
2050 2011-07-15  Bruno Haible  <bruno@clisp.org>
2051
2052         ffs: More tests.
2053         * tests/test-ffs.c (NBITS): New macro.
2054         (main): Add more tests.
2055         * tests/test-ffsl.c (NBITS): New macro.
2056         (main): Add more tests.
2057         * tests/test-ffsll.c (NBITS): New macro.
2058         (main): Add more tests.
2059
2060 2011-07-15  Eric Blake  <eblake@redhat.com>
2061
2062         ffsl, ffsll: new modules
2063         * modules/ffsl: New file.
2064         * modules/ffsll: Likewise.
2065         * m4/ffsl.m4: Likewise.
2066         * m4/ffsll.m4: Likewise.
2067         * lib/ffsl.c: Likewise.
2068         * lib/ffsl.h: Likewise.
2069         * lib/ffsll.c: Likewise.
2070         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2071         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2072         * modules/string (Makefile.am): Substitute witnesses.
2073         * lib/strings.in.h (ffsl, ffsll): Declare.
2074         * modules/ffsl-tests: New test file.
2075         * modules/ffsll-tests: Likewise.
2076         * tests/test-ffsl.c: Likewise.
2077         * tests/test-ffsll.c: Likewise.
2078         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2079         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2080         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2081
2082         ffs: fix m4 prerequisite
2083         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2084
2085         ffs: avoid undefined behavior
2086         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2087         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2088         Reported by Bruno Haible.
2089
2090 2011-07-12  Bruno Haible  <bruno@clisp.org>
2091
2092         pthread_sigmask: Rely on module 'threadlib'.
2093         * modules/pthread_sigmask (Depends-on): Add threadlib.
2094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2095         is defined.
2096
2097 2011-07-12  Bruno Haible  <bruno@clisp.org>
2098
2099         regex: Depend on module 'strcase'.
2100         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2101
2102 2011-07-12  Jim Meyering  <meyering@redhat.com>
2103
2104         warn-on-use: fix typo in file name
2105         * modules/snippet/warn-on-use (Files): Correct file name:
2106         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2107
2108 2011-07-12  Bruno Haible  <bruno@clisp.org>
2109
2110         strings: Document module.
2111         * doc/posix-headers/strings.texi: Mention module 'strings'.
2112
2113 2011-07-12  Bruno Haible  <bruno@clisp.org>
2114
2115         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2116         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2117         (Files, Makefile.am): Update.
2118         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2119         * modules/stdlib (Depends-on): Update.
2120
2121 2011-07-12  Bruno Haible  <bruno@clisp.org>
2122
2123         * NEWS: Mention the changes.
2124
2125         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2126         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2127         (Files, Makefile.am): Update.
2128         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2129         * modules/arpa_inet (Depends-on): Update.
2130         * modules/ctype (Depends-on): Update.
2131         * modules/dirent (Depends-on): Update.
2132         * modules/fcntl-h (Depends-on): Update.
2133         * modules/glob (Depends-on): Update.
2134         * modules/iconv-h (Depends-on): Update.
2135         * modules/inttypes-incomplete (Depends-on): Update.
2136         * modules/langinfo (Depends-on): Update.
2137         * modules/locale (Depends-on): Update.
2138         * modules/math (Depends-on): Update.
2139         * modules/netdb (Depends-on): Update.
2140         * modules/poll-h (Depends-on): Update.
2141         * modules/pty (Depends-on): Update.
2142         * modules/search (Depends-on): Update.
2143         * modules/signal (Depends-on): Update.
2144         * modules/spawn (Depends-on): Update.
2145         * modules/stdio (Depends-on): Update.
2146         * modules/stdlib (Depends-on): Update.
2147         * modules/string (Depends-on): Update.
2148         * modules/strings (Depends-on): Update.
2149         * modules/sys_file (Depends-on): Update.
2150         * modules/sys_ioctl (Depends-on): Update.
2151         * modules/sys_select (Depends-on): Update.
2152         * modules/sys_socket (Depends-on): Update.
2153         * modules/sys_stat (Depends-on): Update.
2154         * modules/sys_time (Depends-on): Update.
2155         * modules/sys_times (Depends-on): Update.
2156         * modules/sys_utsname (Depends-on): Update.
2157         * modules/sys_wait (Depends-on): Update.
2158         * modules/termios (Depends-on): Update.
2159         * modules/time (Depends-on): Update.
2160         * modules/unistd (Depends-on): Update.
2161         * modules/wchar (Depends-on): Update.
2162         * modules/wctype-h (Depends-on): Update.
2163         * MODULES.html.sh (Support for building libraries and executables):
2164         Update.
2165
2166         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2167         * modules/snippet/unused-parameter: Renamed from
2168         modules/unused-parameter.
2169         (Files, Makefile.am): Update.
2170         * build-aux/snippet/unused-parameter.h: Renamed from
2171         build-aux/unused-parameter.h.
2172         * modules/selinux-h (Depends-on): Update.
2173         * modules/unistr/base (Depends-on): Update.
2174         * MODULES.html.sh (Core language properties): Update.
2175
2176         Rename module 'link-warning' to 'snippet/link-warning'.
2177         * modules/snippet/link-warning: Renamed from modules/link-warning.
2178         (Files, Makefile.am): Update.
2179         * build-aux/snippet/link-warning.h: Renamed from
2180         build-aux/link-warning.h.
2181         * MODULES.html.sh (Support for building libraries and executables):
2182         Update.
2183
2184         Rename module 'c++defs' to 'snippet/c++defs'.
2185         * modules/snippet/c++defs: Renamed from modules/c++defs.
2186         (Files, Makefile.am): Update.
2187         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2188         * modules/arpa_inet (Depends-on): Update.
2189         * modules/ctype (Depends-on): Update.
2190         * modules/dirent (Depends-on): Update.
2191         * modules/fcntl-h (Depends-on): Update.
2192         * modules/glob (Depends-on): Update.
2193         * modules/iconv-h (Depends-on): Update.
2194         * modules/langinfo (Depends-on): Update.
2195         * modules/locale (Depends-on): Update.
2196         * modules/math (Depends-on): Update.
2197         * modules/netdb (Depends-on): Update.
2198         * modules/poll-h (Depends-on): Update.
2199         * modules/pty (Depends-on): Update.
2200         * modules/search (Depends-on): Update.
2201         * modules/signal (Depends-on): Update.
2202         * modules/spawn (Depends-on): Update.
2203         * modules/stdio (Depends-on): Update.
2204         * modules/stdlib (Depends-on): Update.
2205         * modules/string (Depends-on): Update.
2206         * modules/strings (Depends-on): Update.
2207         * modules/sys_ioctl (Depends-on): Update.
2208         * modules/sys_select (Depends-on): Update.
2209         * modules/sys_socket (Depends-on): Update.
2210         * modules/sys_stat (Depends-on): Update.
2211         * modules/sys_time (Depends-on): Update.
2212         * modules/sys_wait (Depends-on): Update.
2213         * modules/termios (Depends-on): Update.
2214         * modules/time (Depends-on): Update.
2215         * modules/unistd (Depends-on): Update.
2216         * modules/wchar (Depends-on): Update.
2217         * modules/wctype-h (Depends-on): Update.
2218
2219         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2220         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2221         (Files, Makefile.am): Update.
2222         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2223         * modules/argv-iter (Depends-on): Update.
2224         * modules/arpa_inet (Depends-on): Update.
2225         * modules/dirent (Depends-on): Update.
2226         * modules/fcntl-h (Depends-on): Update.
2227         * modules/fnmatch (Depends-on): Update.
2228         * modules/getopt-posix (Depends-on): Update.
2229         * modules/glob (Depends-on): Update.
2230         * modules/iconv-h (Depends-on): Update.
2231         * modules/inttypes-incomplete (Depends-on): Update.
2232         * modules/locale (Depends-on): Update.
2233         * modules/math (Depends-on): Update.
2234         * modules/netdb (Depends-on): Update.
2235         * modules/search (Depends-on): Update.
2236         * modules/signal (Depends-on): Update.
2237         * modules/spawn (Depends-on): Update.
2238         * modules/stdio (Depends-on): Update.
2239         * modules/stdlib (Depends-on): Update.
2240         * modules/string (Depends-on): Update.
2241         * modules/strings (Depends-on): Update.
2242         * modules/sys_socket (Depends-on): Update.
2243         * modules/sys_stat (Depends-on): Update.
2244         * modules/sys_time (Depends-on): Update.
2245         * modules/sys_times (Depends-on): Update.
2246         * modules/sys_utsname (Depends-on): Update.
2247         * modules/time (Depends-on): Update.
2248         * modules/unistd (Depends-on): Update.
2249         * modules/wchar (Depends-on): Update.
2250         * MODULES.html.sh (Support for building libraries and executables):
2251         Update.
2252
2253 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2254
2255         Improvements on _Noreturn and related modules.
2256
2257         modules/_Exit-tests: test _Noreturn too
2258         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2259         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2260         (main): Use them.
2261
2262         stdnoreturn, stdnoreturn-tests: remove modules
2263         They're not needed here and a bit premature for use elsewhere.  See
2264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2265         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2266         * tests/test-stdnoreturn.c: Remove files.
2267         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2268         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2269         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2270         and using noreturn.
2271         * modules/openat, modules/sigpipe-die, modules/xalloc:
2272         * modules/xmemdup0, modules/xstrtol:
2273         Remove dependency on stdnoreturn.
2274
2275         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2276         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2277         Reparenthesize to avoid GCC warning.
2278         Support Microsoft's syntax.
2279         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2280
2281         _Noreturn-tests: remove module
2282         * modules/_Noreturn-tests: Remove.
2283         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2284         * tests/test-_Noreturn.c: Remove.
2285         * tests/test-stdnoreturn.c: Merge from the old
2286         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2287
2288 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2289
2290         _Noreturn, stdnoreturn, and related modules.
2291
2292         * top/maint.mk: Adjust to new noreturn support.
2293         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2294         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2295
2296         xalloc: use stdnoreturn.h
2297         * lib/xalloc.h: Include <stdnoreturn.h>.
2298         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2299         * modules/xalloc (Depends-on): Add stdnoreturn.
2300
2301         xstrtol: use stdnoreturn.h
2302         * lib/xstrtol.h: Include <stdnoreturn.h>.
2303         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2304         * modules/xstrtol (Depends-on): Add stdnoreturn.
2305
2306         xmemdup0: use stdnoreturn.h
2307         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2308         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2309         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2310
2311         sigpipe-die: use stdnoreturn.h
2312         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2313         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2314         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2315
2316         openat: use stdnoreturn.h
2317         * lib/openat.h: Include <stdnoreturn.h>.
2318         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2319         * modules/openat (Depends-on): Add stdnoreturn.
2320
2321         * lib/openat-die.c (openat_save_fail): Modernize comment.
2322
2323         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2324
2325         * lib/glthread/thread.h: Modernize comment.
2326
2327         obstack: use _Noreturn
2328         * lib/obstack.c (__attribute__): Remove macro.
2329         (print_and_abort): Use _Noreturn.
2330
2331         c-stack: use _Noreturn
2332         * lib/c-stack.c (die, overflow_handler, segv_handler):
2333         Use _Noreturn rather than __attribute__((noreturn)).
2334
2335         argmatch-tests, exclude_tests: use _Noreturn
2336         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2337         Remove.
2338         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2339
2340         stdlib: use _Noreturn
2341         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2342         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2343         * modules/stdlib (Depends-on): Add _Noreturn.
2344         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2345
2346         stdnoreturn-tests: new module
2347         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2348
2349         stdnoreturn: new module
2350         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2351         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2352
2353         _Noreturn-tests: new module
2354         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2355
2356         _Noreturn: new module
2357         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2358         New section, mentioning it.
2359         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2360
2361         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2362
2363 2011-07-11  Eric Blake  <eblake@redhat.com>
2364
2365         ffs: new module
2366         * modules/ffs: New file.
2367         * m4/ffs.m4: Likewise.
2368         * lib/ffs.c: Likewise.
2369         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2370         * modules/strings (Makefile.am): Substitute witness.
2371         (Depends-on): Add c++defs.
2372         * lib/strings.in.h (ffs): Declare.
2373         * modules/ffs-tests: New test file.
2374         * tests/test-ffs.c: Test new module.
2375         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2376         * doc/posix-functions/ffs.texi (ffs): Likewise.
2377
2378         regex: avoid compiler warning
2379         * lib/regex.c (includes): Include <strings.h>, for use of
2380         strcasecmp in regcomp.c.
2381         Reported by Joachim Schmitz.
2382
2383 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         stdint: respect system's intmax_t if INTMAX_MAX
2386         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2387         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2388         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2389         long but int64_t is long long, and where we will clash with the
2390         system intmax_t if we override it.  See
2391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2392         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2393         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2394         similarly for UINTMAX_C.
2395
2396 2011-07-08  Bruno Haible  <bruno@clisp.org>
2397
2398         pthread_sigmask tests: Avoid a compiler warning.
2399         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2400         non-zero.
2401
2402         sigprocmask tests: A better way to avoid a compiler warning.
2403         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2404         (main): Complain if system() returns non-zero.
2405         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2406
2407 2011-07-08  Bruno Haible  <bruno@clisp.org>
2408
2409         pthread_sigmask: Work around IRIX bug.
2410         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2411         bug.
2412         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2413         there may be unblocked pending signals.
2414         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2415
2416 2011-07-08  Bruno Haible  <bruno@clisp.org>
2417
2418         pthread_sigmask: Work around Cygwin bug.
2419         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2420         bug.
2421         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2422         the system's pthread_sigmask function.
2423         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2424
2425 2011-07-08  Bruno Haible  <bruno@clisp.org>
2426
2427         pthread_sigmask: Work around bug in single-threaded implementation.
2428         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2429         FreeBSD, HP-UX, Solaris bug.
2430         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2431         * lib/pthread_sigmask.c: Include <stddef.h>.
2432         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2433         the system's pthread_sigmask function.
2434         * modules/pthread_sigmask (configure.ac): Invoke
2435         gl_PREREQ_PTHREAD_SIGMASK.
2436         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2437         HP-UX, Solaris.
2438
2439 2011-07-08  Eric Blake  <eblake@redhat.com>
2440
2441         test-sigprocmask: avoid compiler warning
2442         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2443         * tests/test-sigprocmask.c (main): Use it to silence warning.
2444         Reported by Jim Meyering.
2445
2446         test-snprintf: avoid compiler warning
2447         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2448         * tests/test-vsnprintf.c (main): Likewise.
2449         Reported by Jim Meyering.
2450
2451 2011-07-08  Bruno Haible  <bruno@clisp.org>
2452
2453         Tests for module 'pthread_sigmask'.
2454         * modules/pthread_sigmask-tests: New file.
2455         * tests/test-pthread_sigmask1.c: New file, based on
2456         tests/test-sigprocmask.c.
2457         * tests/test-pthread_sigmask2.c: New file.
2458
2459 2011-07-08  Jim Meyering  <meyering@redhat.com>
2460
2461         test-getopt.h: avoid warning about an unused variable
2462         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2463
2464 2011-07-07  Jim Meyering  <meyering@redhat.com>
2465
2466         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2467         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2468         now that it no longer contains leading TABs.
2469         Remove unused "url=FIXME" statement.
2470
2471 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2474         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2475         When gl_THREADLIB is not in use, assume that the POSIX sematics
2476         are desired.  This is better for Emacs, which uses POSIX semantics
2477         on GNUish and/or POSIXish platforms, and does not use threads at
2478         all otherwise.
2479
2480         pthread_sigmask: fix typo when testing for libraries
2481         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2482         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2483
2484 2011-07-08  Eric Blake  <eblake@redhat.com>
2485
2486         fts: introduce FTS_NOATIME
2487         * lib/fts_.h (FTS_NOATIME): New bit flag.
2488         (FTS_OPTIONMASK): Adjust.
2489         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2490         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2491
2492 2011-07-08  Bruno Haible  <bruno@clisp.org>
2493
2494         Tests for module 'thread'.
2495         * modules/thread-tests: New file.
2496         * tests/test-thread_self.c: New file.
2497         * tests/test-thread_create.cc: New file.
2498
2499 2011-07-08  Bruno Haible  <bruno@clisp.org>
2500
2501         thread: Avoid gcc warnings when using gl_thread_self().
2502         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2503         'void *'.
2504         (gl_thread_self_pointer): Update.
2505
2506 2011-07-07  Bruno Haible  <bruno@clisp.org>
2507
2508         signal-c++-tests: Check declaration of pthread_sigmask.
2509         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2510         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2511         $(LIB_PTHREAD_SIGMASK).
2512
2513 2011-07-07  Bruno Haible  <bruno@clisp.org>
2514
2515         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2516         * lib/signal.in.h (pthread_sigmask): Override if
2517         REPLACE_PTHREAD_SIGMASK is 1.
2518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2519         REPLACE_PTHREAD_SIGMASK.
2520         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2521         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2522         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2523         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2524         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2525
2526 2011-07-07  Bruno Haible  <bruno@clisp.org>
2527
2528         pthread_sigmask: Ensure declaration in <signal.h>.
2529         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2530         include <pthread.h>.
2531         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2532         problem.
2533
2534 2011-07-07  Bruno Haible  <bruno@clisp.org>
2535
2536         pthread_sigmask: Document the module.
2537         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2538
2539 2011-07-07  Bruno Haible  <bruno@clisp.org>
2540
2541         pthread_sigmask: Follow gnulib conventions.
2542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2543         gl_PTHREAD_SIGMASK.
2544         * modules/pthread_sigmask (configure.ac): Update.
2545
2546 2011-07-07  Bruno Haible  <bruno@clisp.org>
2547
2548         pthread_sigmask: Make declaration C++ safe.
2549         * lib/signal.in.h: In two special conditions, just do an #include_next.
2550         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2551         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2552         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2553         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2554         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2555         not REPLACE_PTHREAD_MASK.
2556         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2557         not REPLACE_PTHREAD_MASK.
2558         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2559
2560 2011-07-07  Bruno Haible  <bruno@clisp.org>
2561
2562         pthread_sigmask: Fix return value.
2563         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2564         * lib/pthread_sigmask.c: New file.
2565         * modules/pthread_sigmask (Files): Add it.
2566         (configure.ac): Invoke AC_LIBOBJ.
2567
2568 2011-07-07  Eric Blake  <eblake@redhat.com>
2569
2570         getopt: more portable argv creation
2571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2572         const, use char arrays rather than strings.
2573         Suggested by Paul Eggert.
2574
2575 2011-07-07  Bruno Haible  <bruno@clisp.org>
2576
2577         Tests for module 'sigprocmask'.
2578         * modules/sigprocmask-tests: New file.
2579         * tests/test-sigprocmask.c: New file.
2580
2581 2011-07-07  Bruno Haible  <bruno@clisp.org>
2582
2583         float tests: Tweak.
2584         * tests/test-float.c (main): Tweak skip message.
2585
2586 2011-07-07  Eric Blake  <eblake@redhat.com>
2587
2588         getopt: avoid compiler warning during configure
2589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2590         assigning string literals to non-const pointer.
2591
2592         getopt-gnu: avoid crash in glibc getopt
2593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2594         * tests/test-getopt.h (test_getopt): Enhance test.
2595         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2596         * doc/posix-functions/getopt.texi (getopt): Document it.
2597         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2598         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2599         Likewise.
2600
2601 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2602
2603         getopt: handle W; without long options in getopt [BZ #12922]
2604         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2605         but no long options are defined, just return 'W'.
2606
2607 2011-07-07  Bruno Haible  <bruno@clisp.org>
2608
2609         Avoid literal tabs.
2610         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2611         variable containing a tab instead of a literal tab.
2612         Reported by Jim Meyering.
2613
2614 2011-07-07  Bruno Haible  <bruno@clisp.org>
2615
2616         Comments.
2617         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2618
2619 2011-07-06  Bruno Haible  <bruno@clisp.org>
2620
2621         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2622         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2623         <winsock2.h>.
2624         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2625         lib/sys_socket.in.h.
2626         (close, gethostname): Hide declarations from <winsock2.h>.
2627         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2628         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2629         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2630         (select): Don't override if gnulib's <sys/select.h> was already
2631         included.
2632         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2633         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2634         setsockopt, shutdown, select): Tweak indentation.
2635
2636 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2639         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2640         in an application that does not use the sys_select module.
2641
2642 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2643
2644         poll: do not return 0 on timeout=-1
2645         * lib/poll.c: Loop with yield if no events occured
2646
2647 2011-07-06  Eric Blake  <eblake@redhat.com>
2648
2649         pthread_sigmask: always replace when not using pthread
2650         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2651         replacement when using some threading other than pthread.  Fix
2652         logic bug.
2653
2654 2011-07-06  Bruno Haible  <bruno@clisp.org>
2655
2656         Comments.
2657         * m4/printf.m4: Update comments about mingw.
2658
2659 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2660
2661         sys_select: define sigset_t more portably
2662         * lib/sys_select.in.h: Always include <sys/types.h>, since
2663         we now need sigset_t and mingw defines it there.
2664         Include <signal.h> before split inclusion guard, to avoid
2665         mishaps on Solaris, whose <signal.h> eventually includes us.
2666         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2667         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2668         which come from ...
2669         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2670         gl_CHECK_TYPE_SIGSET_T.
2671         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2672         does the real work.
2673         * modules/sys_select (Depends-on): Add 'signal'.
2674
2675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2676         Suggested by Bruno Haible.
2677
2678         pselect: Use pthread_sigmask, not sigprocmask.
2679         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2680         multithreaded apps better than sigprocmask does.
2681         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2682         sigprocmask directly.
2683
2684 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2685
2686         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2687         Don't #undef,  since we don't need any underlying pselect.
2688         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2689         (Depends-on): Add select.
2690         (Link): Add $(LIBSOCKET).
2691         These changes suggested by Bruno Haible.
2692
2693         pselect: document better
2694         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2695         * doc/posix-functions/pselect.texi (pselect): Document new module.
2696
2697         pthread_sigmask: new module
2698         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2699         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2700         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2701         This is done only as a macro; I don't know how well that'll
2702         work for C++.  Move <sys/types.h> include before the include_next,
2703         to avoid mishap on Solaris.
2704         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2705         * modules/signal (Makefile.am): Substitute the check's results.
2706         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2707
2708         test-pselect: new module
2709         * modules/pselect-tests, tests/test-pselect.c: New files.
2710         * tests/test-select.c, tests/test-sys_select-c++.cc:
2711         If TEST_PSELECT is defined, test pselect instead of testing select.
2712
2713         * tests/test-sys_select.c (sigset_t): Test for it, too.
2714         Suggested by Bruno Haible.
2715
2716 2011-07-05  Eric Blake  <eblake@redhat.com>
2717
2718         snprintf: guarantee %1$d, for libintl
2719         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2720         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2721         * doc/posix-functions/snprintf.texi (snprintf): Update.
2722         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2723         * tests/test-snprintf.c (main): Enhance test.
2724         * tests/test-vsnprintf.c (main): Likewise.
2725
2726 2011-07-05  Jim Meyering  <meyering@redhat.com>
2727
2728         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2729         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2730         per Bruno's request, to accommodate this idiom (no space after "#")
2731         even when the function is inside an #if block:
2732         char *
2733         gets (char *s)
2734         #undef gets
2735         {
2736           ...
2737         }
2738
2739 2011-07-04  Jim Meyering  <meyering@redhat.com>
2740
2741         maint: indent with spaces, not TABs, and add a rule to check this
2742         * tests/test-userspec.c: Indent with spaces, not TABs.
2743         * tests/test-argp.c: Likewise.
2744         * tests/test-c-stack2.sh: Likewise.
2745         * tests/test-parse-duration.sh: Likewise
2746         * m4/strtod.m4: Likewise.
2747         * m4/alloca.m4: Likewise.
2748         * m4/pselect.m4: Likewise.
2749         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2750
2751 2011-07-03  Jim Meyering  <meyering@redhat.com>
2752
2753         maint.mk: correct omissions in prohibit_argmatch_without_use check
2754         This rule would mistakenly report that argmatch.h is included without
2755         use even when both the argmatch and invalid_arg macro were used.
2756         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2757         of argmatch and invalid_arg.
2758
2759 2011-07-03  Bruno Haible  <bruno@clisp.org>
2760
2761         Comments about EINTR.
2762         * lib/safe-read.h: Explain the purpose of this module.
2763         * lib/safe-write.h: Likewise.
2764         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2765         module.
2766         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2767         module.
2768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2769
2770 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2771
2772         xnanosleep: Rewrite to use new dtotimespec module.
2773         It has the conversion code that used to be in xnanosleep.
2774         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2775         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2776         (TIME_T_MAX): Remove.
2777         (xnanosleep): Rewrite in terms of dtotimespec.
2778         * modules/xnanosleep (Depends-on): Add dtotimespec.
2779         Remove intprops, stdbool.
2780
2781         timespec-add, timespec-sub: new modules
2782         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2783         * lib/timespec-add.c, lib/timespec-sub.c:
2784         * modules/timespec-add, modules/timespec-sub: New files.
2785
2786         dtotimespec: new module
2787         * lib/timespec.h (dtotimespec): New decl.
2788         * lib/dtotimespec.c, modules/dtotimespec: New files.
2789
2790         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2791
2792         pselect: new module
2793         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2794         (pselect): New decls.
2795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2796         since the standard pselect decl uses 'restrict'.
2797         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2798         HAVE_PSELECT, REPLACE_PSELECT.
2799         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2800         HAVE_PSELECT, REPLACE_PSELECT.
2801         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2802
2803         sys_select: don't depend on sys_socket
2804         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2806         This fix works on GNU and GNU-like platforms, but has not been tested
2807         on native Windows.
2808         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2810         gl_HEADER_SYS_SOCKET.
2811         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2812         gl_PREREQ_SYS_H_WINSOCK2.
2813
2814 2011-06-29  Eric Blake  <eblake@redhat.com>
2815
2816         pipe2: fix C89 compile problem
2817         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2818         Reported by Bruno Haible.
2819
2820         pipe, pipe2: don't corrupt fd on error
2821         * lib/pipe.c (pipe): Leave fd unchanged on error.
2822         * lib/pipe2.c (pipe2): Likewise.
2823         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2824         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2825
2826 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2827
2828         mmap-anon: do not use regular expressions inadvertently
2829         * m4/mmap-anon.m4: Remove trailing period from strings sought
2830         in the output.
2831
2832 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2833
2834         nanosleep: fix integer overflow problem
2835         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2836         arithmetic wraps around on overflow.
2837
2838         nanosleep: simplify carrying
2839         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2840         first call to the underyling nanosleep, not for the last one.
2841         This doesn't fix any bugs, but it simplifies the computation of
2842         the remaining delay.  Found while auditing integer overflow issues.
2843
2844         dup2: remove test for existence of fcntl
2845         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2846         "#if HAVE_FCNTL", in the configure-time test program.
2847         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2848         and therefore speeds up "configure" a bit.  Found while
2849         adding the dup2 module to Emacs.
2850
2851 2011-06-24  Eric Blake  <eblake@redhat.com>
2852
2853         maint.mk: enhance useless header checks
2854         * top/maint.mk (_sc_header_without_use): Check both include
2855         styles.
2856         (sc_prohibit_assert_without_use)
2857         (sc_prohibit_close_stream_without_use)
2858         (sc_prohibit_getopt_without_use)
2859         (sc_prohibit_quotearg_without_use)
2860         (sc_prohibit_quote_without_use)
2861         (sc_prohibit_long_options_without_use)
2862         (sc_prohibit_inttostr_without_use)
2863         (sc_prohibit_ignore_value_without_use)
2864         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2865         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2866         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2867         (sc_prohibit_hash_pjw_without_use)
2868         (sc_prohibit_safe_read_without_use)
2869         (sc_prohibit_argmatch_without_use)
2870         (sc_prohibit_canonicalize_without_use)
2871         (sc_prohibit_root_dev_ino_without_use)
2872         (sc_prohibit_openat_without_use)
2873         (sc_prohibit_c_ctype_without_use)
2874         (sc_prohibit_signal_without_use)
2875         (sc_prohibit_stdio--_without_use)
2876         (sc_prohibit_stdio-safer_without_use)
2877         (sc_prohibit_strings_without_use)
2878         (sc_prohibit_intprops_without_use)
2879         (sc_prohibit_stddef_without_use)
2880         (sc_prohibit_xfreopen_without_use): Update clients.
2881
2882 2011-06-24  Jim Meyering  <meyering@redhat.com>
2883
2884         syntax-check: keep one maint.mk rule in sync with its header
2885         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2886         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2887         I prefer to avoid temporary files here, so use <(...), but that
2888         is not supported by /bin/sh, so...
2889         (SHELL): Define to /bin/bash.
2890
2891 2011-06-24  Eric Blake  <eblake@redhat.com>
2892
2893         maint.mk: update sc_prohibit_intprops_without_use
2894         * top/maint.mk (_intprops_names): Match recent changes.
2895
2896 2011-06-24  Bruno Haible  <bruno@clisp.org>
2897
2898         strerror-override: No-op tweak.
2899         * lib/strerror-override.h (strerror_override): Reorder conditions,
2900         for consistency with lib/strerror-override.c.
2901
2902 2011-06-23  Eric Blake  <eblake@redhat.com>
2903
2904         maint.mk: test further PATH_MAX issues
2905         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2906         (sc_prohibit_path_max_allocation): ...and also test alloca.
2907         Suggested by Jim Meyering.
2908
2909 2011-06-22  Eric Blake  <eblake@redhat.com>
2910
2911         maint.mk: add syntax-check to avoid char[PATH_MAX]
2912         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2913
2914         stat: be robust to PATH_MAX definition
2915         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2916         * modules/stat (Depends-on): Add verify.
2917
2918         link: work around IRIX bug
2919         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2920         * lib/link.c (rpl_link): Work around it.
2921         * tests/test-link.h (test_link): Enhance test.
2922         * doc/posix-functions/link.texi (link): Document the bug.
2923
2924         getopt: silence clang warning
2925         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2926         dereference.
2927         Reported by Gustavo Martin Domato.
2928
2929 2011-06-22  Jim Meyering  <meyering@redhat.com>
2930
2931         bootstrap: do not insert a blank line into each .gitignore file
2932         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2933
2934 2011-06-21  Eric Blake  <eblake@redhat.com>
2935
2936         perror: test for output mismatch
2937         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2938         perror on IRIX.
2939
2940         strerror_r: fix OpenBSD behavior on out-of-range
2941         * lib/strerror_r.c (strerror_r): Always use maximal string.
2942         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2943
2944         strerror_r: fix OpenBSD behavior on 0
2945         * lib/strerror-override.c (strerror_override): Also override 0
2946         when needed.
2947         * lib/strerror-override.h (strerror_override): Likewise.
2948         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2949         earlier.
2950         * lib/strerror_r.c (strerror_r): Likewise.
2951         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2952         behavior...
2953         (gl_FUNC_STRERROR_0): ...into new macro.
2954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2955         is overridden.
2956         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2957         * modules/strerror-override (Files): Add strerror.m4.
2958         (configure.ac): Also provide override for 0 when needed.
2959         * doc/posix-functions/strerror.texi (strerror): Document this.
2960         * doc/posix-functions/perror.texi (perror): Likewise.
2961
2962         perror: adjust array size
2963         * modules/perror (Depends-on): Add strerror-override.
2964         * lib/perror.c (perror): Use it to avoid magic number.
2965
2966         strerror-override: reduce size
2967         * lib/strerror-override.c (strerror_override): Use fewer lines.
2968
2969 2011-06-20  Bruno Haible  <bruno@clisp.org>
2970
2971         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2972         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2973
2974 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2975
2976         alloca: port to compilers that can optimize like GCC 4.6.0
2977         * lib/alloca.c (find_stack_direction): New signature, taken from
2978         Autoconf git.  This works with GCC 4.6.0.  This code should never
2979         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2980         be used with other compilers that optimize as well as GCC 4.6.0 does.
2981         (alloca): Adjust to new signature.
2982         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2983         New macro, which patches Autoconf in a similar way.
2984
2985         c-stack: stop worrying about stack direction
2986         * lib/c-stack.c (find_stack_direction): Remove.
2987         (segv_handler): Don't worry about stack direction growth, as it's
2988         too much of a pain to configure this correctly, given how compilers
2989         are optimizing-away our stack-growth detection code.  Instead, assume
2990         that any access to just before or just after the stack is OK.
2991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2992         Don't require AC_FUNC_ALLOCA; no longer needed.
2993
2994 2011-06-20  Eric Blake  <eblake@redhat.com>
2995
2996         test-stat: don't allocate PATH_MAX bytes
2997         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2998         PATH_MAX-sized buffer.
2999         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3000         * modules/stat-tests (Depends-on): Likewise.
3001         * tests/test-fstatat.c (includes): Drop pathmax.h.
3002         * tests/test-stat.c (includes): Likewise.
3003         Reported by Bruno Haible.
3004
3005 2011-06-20  Bruno Haible  <bruno@clisp.org>
3006
3007         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3008         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3009         * lib/float.c: New file.
3010         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3011         REPLACE_FLOAT_LDBL.
3012         * modules/float (Files): Add lib/float.c.
3013         (configure.ac): Invoke AC_LIBOBJ.
3014         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3015
3016 2011-06-20  Bruno Haible  <bruno@clisp.org>
3017
3018         Tests for module 'float'.
3019         * modules/float-tests: New file.
3020         * tests/test-float.c: New file.
3021
3022 2011-06-19  Bruno Haible  <bruno@clisp.org>
3023
3024         isinf: Coding style.
3025         * lib/isinf.c: Use GNU coding style.
3026
3027 2011-06-19  Bruno Haible  <bruno@clisp.org>
3028
3029         linkat test: Avoid test failure on AIX 7.1.
3030         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3031         * tests/test-link.h (test_link): Likewise.
3032
3033 2011-06-19  Bruno Haible  <bruno@clisp.org>
3034
3035         pread test: Avoid test failure on OpenBSD 4.9.
3036         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3037
3038 2011-06-19  Bruno Haible  <bruno@clisp.org>
3039
3040         sprintf-posix: Fix test failure on AIX 7.1.
3041         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3042         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3043         on AIX.
3044         * doc/posix-functions/fprintf.texi: Likewise.
3045         * doc/posix-functions/printf.texi: Likewise.
3046         * doc/posix-functions/snprintf.texi: Likewise.
3047         * doc/posix-functions/sprintf.texi: Likewise.
3048         * doc/posix-functions/vdprintf.texi: Likewise.
3049         * doc/posix-functions/vfprintf.texi: Likewise.
3050         * doc/posix-functions/vprintf.texi: Likewise.
3051         * doc/posix-functions/vsnprintf.texi: Likewise.
3052         * doc/posix-functions/vsprintf.texi: Likewise.
3053
3054 2011-06-19  Bruno Haible  <bruno@clisp.org>
3055
3056         roundl-ieee: Fix test failure on AIX 7.1.
3057         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3058         * doc/posix-functions/roundl.texi: Mention problem with negative
3059         arguments.
3060
3061 2011-06-19  Bruno Haible  <bruno@clisp.org>
3062
3063         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3064         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3065         * doc/posix-functions/round.texi: Mention problem with negative
3066         arguments.
3067         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3068
3069 2011-06-19  Bruno Haible  <bruno@clisp.org>
3070
3071         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3073         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3074         * doc/posix-functions/roundf.texi: Mention problem with negative
3075         arguments.
3076         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3077
3078 2011-06-19  Bruno Haible  <bruno@clisp.org>
3079
3080         ceilf-ieee: Work around bug on MacOS X 10.5.
3081         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3082
3083         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3084         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3085         IEEE compliant, avoid compiler optimizations.
3086         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3087         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3088         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3089         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3090         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3091         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3093         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3094         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3096
3097 2011-06-19  Bruno Haible  <bruno@clisp.org>
3098
3099         ceilf-ieee: Work around bug on AIX 7.1.
3100         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3101         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3102
3103 2011-06-19  Bruno Haible  <bruno@clisp.org>
3104
3105         ceil-ieee: Work around bug on AIX 7.1.
3106         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3107         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3108
3109 2011-06-18  Bruno Haible  <bruno@clisp.org>
3110
3111         fsync test: Avoid test failure on MacOS X and AIX.
3112         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3113         EINVAL.
3114
3115 2011-06-18  Bruno Haible  <bruno@clisp.org>
3116
3117         openat, fdopendir tests: Fix link errors.
3118         * modules/openat-tests (Depends-on): Add progname.
3119         * modules/fdopendir-tests (Depends-on): Likewise.
3120         * tests/test-fchownat.c: Include progname.h.
3121         (main): Call set_program_name.
3122         * tests/test-fstatat.c: Include progname.h.
3123         (main): Call set_program_name.
3124         * tests/test-mkdirat.c: Include progname.h.
3125         (main): Call set_program_name.
3126         * tests/test-openat.c: Include progname.h.
3127         (main): Call set_program_name.
3128         * tests/test-unlinkat.c: Include progname.h.
3129         (main): Call set_program_name.
3130         * tests/test-fdopendir.c: Include progname.h.
3131         (main): Call set_program_name.
3132
3133 2011-06-18  Bruno Haible  <bruno@clisp.org>
3134
3135         Doc update.
3136         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3137         HP-UX.
3138         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3139
3140 2011-06-18  Bruno Haible  <bruno@clisp.org>
3141
3142         getcwd tests: Avoid compilation error on HP-UX 11.31.
3143         * modules/getcwd-tests (Depends-on): Add pathmax.
3144         * tests/test-getcwd.c: Include pathmax.h.
3145
3146 2011-06-18  Bruno Haible  <bruno@clisp.org>
3147
3148         isfinite, isinf: Fix link error on AIX 6 and 7.
3149         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3150         needed, also test the macro with a 'float' argument.
3151         * m4/isinf.m4 (gl_ISINF): Likewise.
3152
3153 2011-06-18  Bruno Haible  <bruno@clisp.org>
3154
3155         getloadavg: Don't clobber LIBS. Regression from previous commit.
3156         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3157         AC_CHECK_LIB from here...
3158         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3159         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3160         gl_func_getloadavg_done.
3161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3162
3163 2011-06-18  Bruno Haible  <bruno@clisp.org>
3164
3165         clean-temp: Improve documentation.
3166         * lib/clean-temp.h: Explain better how to use this module.
3167         Reported by John Darrington <john@darrington.wattle.id.au>.
3168
3169 2011-06-17  Bruno Haible  <bruno@clisp.org>
3170
3171         pread, pwrite: Avoid cc warning on AIX.
3172         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3173         (pwrite): Likewise.
3174
3175 2011-06-17  Bruno Haible  <bruno@clisp.org>
3176
3177         spawn-pipe tests: Fix link error.
3178         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3180
3181 2011-06-17  Bruno Haible  <bruno@clisp.org>
3182
3183         Tests: Remove unnecessary dependency.
3184         * modules/canonicalize-tests (Depends-on): Remove progname.
3185         * modules/chown-tests (Depends-on): Likewise.
3186         * modules/dirname-tests (Depends-on): Likewise.
3187         * modules/fdopendir-tests (Depends-on): Likewise.
3188         * modules/fdutimensat-tests (Depends-on): Likewise.
3189         * modules/hash-tests (Depends-on): Likewise.
3190         * modules/lchown-tests (Depends-on): Likewise.
3191         * modules/linkat-tests (Depends-on): Likewise.
3192         * modules/renameat-tests (Depends-on): Likewise.
3193         * modules/spawn-pipe-tests (Depends-on): Likewise.
3194         * modules/utimensat-tests (Depends-on): Likewise.
3195
3196 2011-06-17  Bruno Haible  <bruno@clisp.org>
3197
3198         spawn-pipe tests: Fix link error.
3199         * tests/test-spawn-pipe-child.c: Undefine fflush.
3200
3201 2011-06-17  Bruno Haible  <bruno@clisp.org>
3202
3203         Fix tests link errors.
3204         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3205         * modules/chown-tests (Makefile.am): Don't link test-chown with
3206         LIBINTL.
3207         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3208         LIBINTL.
3209         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3210         LIBINTL.
3211         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3212         LIBINTL.
3213
3214 2011-06-16  Bruno Haible  <bruno@clisp.org>
3215
3216         crypto/gc-sha1: Fix recent regression.
3217         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3218         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3219
3220         crypto/gc-md5: Fix recent regression.
3221         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3222
3223         crypto/gc-md4: Fix recent regression.
3224         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3225         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3226
3227         crypto/gc-arctwo: Fix recent regression.
3228         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3229         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3230
3231         crypto/gc-rijndael: Fix recent regression.
3232         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3233         (configure.ac): Invoke AC_LIBOBJ here.
3234         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3236
3237         crypto/gc-hmac-sha1: Fix recent regression.
3238         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3239         (configure.ac): Invoke AC_LIBOBJ here.
3240         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3242
3243         crypto/gc-hmac-md5: Fix recent regression.
3244         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3245         (configure.ac): Invoke AC_LIBOBJ here.
3246         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3248
3249         crypto/gc-des: Fix recent regression.
3250         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3251         (configure.ac): Invoke AC_LIBOBJ here.
3252         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3254
3255         crypto/gc-arcfour: Fix recent regression.
3256         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3257         (configure.ac): Invoke AC_LIBOBJ here.
3258         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3259         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3260
3261 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3264         After the 2011-05-21 change, this macro requires
3265         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3266         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3267
3268 2011-06-16  Bruno Haible  <bruno@clisp.org>
3269
3270         fprintftime: Move AC_LIBOBJ invocations to module description.
3271         * m4/fprintftime.m4: Remove file.
3272         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3273         (configure.ac): Remove gl_FPRINTFTIME call.
3274         (Makefile.am): Augment lib_SOURCES.
3275         Reported by Jim Meyering.
3276
3277 2011-06-16  Bruno Haible  <bruno@clisp.org>
3278
3279         tmpfile-safer: Finish 2011-05-23 commit.
3280         * m4/stdio-safer.m4: Really remove file.
3281         Reported by Jim Meyering.
3282
3283 2011-06-16  Bruno Haible  <bruno@clisp.org>
3284
3285         syntax-check: Fix typo.
3286         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3287         printf-posix.m4.
3288         Reported by Jim Meyering.
3289
3290 2011-06-13  Jim Meyering  <meyering@redhat.com>
3291
3292         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3293         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3294
3295 2011-05-23  Bruno Haible  <bruno@clisp.org>
3296
3297         yesno: Move AC_LIBOBJ invocations to module description.
3298         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3299         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3300
3301 2011-05-23  Bruno Haible  <bruno@clisp.org>
3302
3303         xstrtol: Move AC_LIBOBJ invocations to module description.
3304         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3305         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3306
3307 2011-05-23  Bruno Haible  <bruno@clisp.org>
3308
3309         xstrtold: Move AC_LIBOBJ invocations to module description.
3310         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3311         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3312
3313 2011-05-23  Bruno Haible  <bruno@clisp.org>
3314
3315         xstrtod: Move AC_LIBOBJ invocations to module description.
3316         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3317         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3318
3319 2011-05-23  Bruno Haible  <bruno@clisp.org>
3320
3321         xnanosleep: Move AC_LIBOBJ invocations to module description.
3322         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3323         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3324
3325 2011-05-23  Bruno Haible  <bruno@clisp.org>
3326
3327         xgetcwd: Move AC_LIBOBJ invocations to module description.
3328         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3329         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3330
3331 2011-05-23  Bruno Haible  <bruno@clisp.org>
3332
3333         xalloc: Move AC_LIBOBJ invocations to module description.
3334         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3335         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3336
3337 2011-05-23  Bruno Haible  <bruno@clisp.org>
3338
3339         write-any-file: Move AC_LIBOBJ invocations to module description.
3340         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3341         invocation.
3342         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3343
3344 2011-05-23  Bruno Haible  <bruno@clisp.org>
3345
3346         utimens: Move AC_LIBOBJ invocations to module description.
3347         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3348         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3349
3350 2011-05-23  Bruno Haible  <bruno@clisp.org>
3351
3352         utimecmp: Move AC_LIBOBJ invocations to module description.
3353         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3354         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3355
3356 2011-05-23  Bruno Haible  <bruno@clisp.org>
3357
3358         userspec: Move AC_LIBOBJ invocations to module description.
3359         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3360         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3361
3362 2011-05-23  Bruno Haible  <bruno@clisp.org>
3363
3364         unlinkdir: Move AC_LIBOBJ invocations to module description.
3365         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3366         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3367
3368 2011-05-23  Bruno Haible  <bruno@clisp.org>
3369
3370         unistd-safer: Move AC_LIBOBJ invocations to module description.
3371         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3372         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3373
3374 2011-05-23  Bruno Haible  <bruno@clisp.org>
3375
3376         tempname: Move AC_LIBOBJ invocations to module description.
3377         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3378         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3379
3380 2011-05-23  Bruno Haible  <bruno@clisp.org>
3381
3382         strftime: Move AC_LIBOBJ invocations to module description.
3383         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3384         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3385
3386 2011-05-23  Bruno Haible  <bruno@clisp.org>
3387
3388         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3389         * m4/stdlib-safer.m4: Remove file.
3390         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3391         (configure.ac): Remove gl_STDLIB_SAFER call.
3392         (Makefile.am): Augment lib_SOURCES.
3393
3394 2011-05-23  Bruno Haible  <bruno@clisp.org>
3395
3396         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3397         * m4/stdio-safer.m4: Remove file.
3398         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3399         (configure.ac): Remove gl_TMPFILE_SAFER call.
3400         (Makefile.am): Augment lib_SOURCES.
3401
3402 2011-05-23  Bruno Haible  <bruno@clisp.org>
3403
3404         popen-safer: Move AC_LIBOBJ invocations to module description.
3405         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3406         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3407         (configure.ac): Remove gl_POPEN_SAFER call.
3408         (Makefile.am): Augment lib_SOURCES.
3409
3410 2011-05-23  Bruno Haible  <bruno@clisp.org>
3411
3412         freopen-safer: Move AC_LIBOBJ invocations to module description.
3413         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3414         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3415         (configure.ac): Remove gl_FREOPEN_SAFER call.
3416         (Makefile.am): Augment lib_SOURCES.
3417
3418 2011-05-23  Bruno Haible  <bruno@clisp.org>
3419
3420         fopen-safer: Move AC_LIBOBJ invocations to module description.
3421         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3422         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3423         (configure.ac): Remove gl_FOPEN_SAFER call.
3424         (Makefile.am): Augment lib_SOURCES.
3425
3426 2011-05-23  Bruno Haible  <bruno@clisp.org>
3427
3428         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3429         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3430         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3431
3432 2011-05-23  Bruno Haible  <bruno@clisp.org>
3433
3434         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3435         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3436         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3437
3438 2011-05-23  Bruno Haible  <bruno@clisp.org>
3439
3440         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3441         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3442         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3443
3444 2011-05-23  Bruno Haible  <bruno@clisp.org>
3445
3446         settime: Move AC_LIBOBJ invocations to module description.
3447         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3448         * modules/settime (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         savedir: Move AC_LIBOBJ invocations to module description.
3453         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3454         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3455
3456 2011-05-23  Bruno Haible  <bruno@clisp.org>
3457
3458         save-cwd: Move AC_LIBOBJ invocations to module description.
3459         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3460         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3461
3462 2011-05-23  Bruno Haible  <bruno@clisp.org>
3463
3464         same: Move AC_LIBOBJ invocations to module description.
3465         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3466         * modules/same (Makefile.am): Augment lib_SOURCES.
3467
3468 2011-05-23  Bruno Haible  <bruno@clisp.org>
3469
3470         safe-write: Move AC_LIBOBJ invocations to module description.
3471         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3472         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3473         instead of gl_SAFE_WRITE.
3474         (Makefile.am): Augment lib_SOURCES.
3475
3476 2011-05-23  Bruno Haible  <bruno@clisp.org>
3477
3478         safe-read: Move AC_LIBOBJ invocations to module description.
3479         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3480         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3481         of gl_SAFE_READ.
3482         (Makefile.am): Augment lib_SOURCES.
3483
3484 2011-05-23  Bruno Haible  <bruno@clisp.org>
3485
3486         safe-alloc: Move AC_LIBOBJ invocations to module description.
3487         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3488         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3489
3490 2011-05-23  Bruno Haible  <bruno@clisp.org>
3491
3492         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3493         * m4/rijndael.m4: Remove file.
3494         * modules/crypto/rijndael (Files): Remove it.
3495         (configure.ac): Remove gl_RIJNDAEL call.
3496         (Makefile.am): Augment lib_SOURCES.
3497
3498 2011-05-23  Bruno Haible  <bruno@clisp.org>
3499
3500         readtokens: Move AC_LIBOBJ invocations to module description.
3501         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3502         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3503
3504 2011-05-23  Bruno Haible  <bruno@clisp.org>
3505
3506         read-file: Move AC_LIBOBJ invocations to module description.
3507         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3508         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3509         of gl_FUNC_READ_FILE.
3510         (Makefile.am): Augment lib_SOURCES.
3511
3512 2011-05-23  Bruno Haible  <bruno@clisp.org>
3513
3514         quotearg: Move AC_LIBOBJ invocations to module description.
3515         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3516         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3517
3518 2011-05-23  Bruno Haible  <bruno@clisp.org>
3519
3520         quote: Move AC_LIBOBJ invocations to module description.
3521         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3522         * modules/quote (Makefile.am): Augment lib_SOURCES.
3523
3524 2011-05-23  Bruno Haible  <bruno@clisp.org>
3525
3526         posixver: Move AC_LIBOBJ invocations to module description.
3527         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3528         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3529
3530 2011-05-23  Bruno Haible  <bruno@clisp.org>
3531
3532         posixtm: Move AC_LIBOBJ invocations to module description.
3533         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3534         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3535
3536 2011-05-23  Bruno Haible  <bruno@clisp.org>
3537
3538         physmem: Move AC_LIBOBJ invocations to module description.
3539         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3540         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3541
3542 2011-05-23  Bruno Haible  <bruno@clisp.org>
3543
3544         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3545         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3546         invocation.
3547         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3548
3549 2011-05-23  Bruno Haible  <bruno@clisp.org>
3550
3551         mpsort: Move AC_LIBOBJ invocations to module description.
3552         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3553         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3554
3555 2011-05-23  Bruno Haible  <bruno@clisp.org>
3556
3557         modechange: Move AC_LIBOBJ invocations to module description.
3558         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3559         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3560
3561 2011-05-23  Bruno Haible  <bruno@clisp.org>
3562
3563         mkdir-p: Move AC_LIBOBJ invocations to module description.
3564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3565         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3566
3567 2011-05-23  Bruno Haible  <bruno@clisp.org>
3568
3569         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3570         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3571         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3572
3573 2011-05-23  Bruno Haible  <bruno@clisp.org>
3574
3575         mgetgroups: Move AC_LIBOBJ invocations to module description.
3576         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3577         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3578
3579 2011-05-23  Bruno Haible  <bruno@clisp.org>
3580
3581         memxor: Move AC_LIBOBJ invocations to module description.
3582         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3583         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3584
3585 2011-05-23  Bruno Haible  <bruno@clisp.org>
3586
3587         memcoll: Move AC_LIBOBJ invocations to module description.
3588         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3589         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3590
3591 2011-05-23  Bruno Haible  <bruno@clisp.org>
3592
3593         memcasecmp: Move AC_LIBOBJ invocations to module description.
3594         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3595         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3596
3597 2011-05-23  Bruno Haible  <bruno@clisp.org>
3598
3599         crypto/md5: Move AC_LIBOBJ invocations to module description.
3600         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3601         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3602
3603 2011-05-23  Bruno Haible  <bruno@clisp.org>
3604
3605         crypto/md4: Move AC_LIBOBJ invocations to module description.
3606         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3607         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3608
3609 2011-05-23  Bruno Haible  <bruno@clisp.org>
3610
3611         crypto/md2: Move AC_LIBOBJ invocations to module description.
3612         * m4/md2.m4: Remove file.
3613         * modules/crypto/md2 (Files): Remove it.
3614         (configure.ac): Remove gl_MD2 call.
3615         (Makefile.am): Augment lib_SOURCES.
3616
3617 2011-05-23  Bruno Haible  <bruno@clisp.org>
3618
3619         long-options: Move AC_LIBOBJ invocations to module description.
3620         * m4/long-options.m4: Remove file.
3621         * modules/long-options (Files): Remove it.
3622         (configure.ac): Remove gl_LONG_OPTIONS call.
3623         (Makefile.am): Augment lib_SOURCES.
3624
3625 2011-05-23  Bruno Haible  <bruno@clisp.org>
3626
3627         i-ring: Move AC_LIBOBJ invocations to module description.
3628         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3629         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3630
3631 2011-05-23  Bruno Haible  <bruno@clisp.org>
3632
3633         idcache: Move AC_LIBOBJ invocations to module description.
3634         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3635         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3636
3637 2011-05-23  Bruno Haible  <bruno@clisp.org>
3638
3639         human: Move AC_LIBOBJ invocations to module description.
3640         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3641         * modules/human (Makefile.am): Augment lib_SOURCES.
3642
3643 2011-05-23  Bruno Haible  <bruno@clisp.org>
3644
3645         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3646         * m4/hmac-sha1.m4: Remove file.
3647         * modules/crypto/hmac-sha1 (Files): Remove it.
3648         (configure.ac): Remove gl_HMAC_SHA1 call.
3649         (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3654         * m4/hmac-md5.m4: Remove file.
3655         * modules/crypto/hmac-md5 (Files): Remove it.
3656         (configure.ac): Remove gl_HMAC_MD5 call.
3657         (Makefile.am): Augment lib_SOURCES.
3658
3659 2011-05-23  Bruno Haible  <bruno@clisp.org>
3660
3661         hash: Move AC_LIBOBJ invocations to module description.
3662         * m4/hash.m4: Remove file.
3663         * modules/hash (Files): Remove it.
3664         (configure.ac): Remove gl_HASH call.
3665         (Makefile.am): Augment lib_SOURCES.
3666
3667 2011-05-23  Bruno Haible  <bruno@clisp.org>
3668
3669         hard-locale: Move AC_LIBOBJ invocations to module description.
3670         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3671         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3672
3673 2011-05-23  Bruno Haible  <bruno@clisp.org>
3674
3675         getugroups: Move AC_LIBOBJ invocations to module description.
3676         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3677         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         gettime: Move AC_LIBOBJ invocations to module description.
3682         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3683         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3684
3685 2011-05-23  Bruno Haible  <bruno@clisp.org>
3686
3687         getndelim2: Move AC_LIBOBJ invocations to module description.
3688         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3689         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3690
3691 2011-05-23  Bruno Haible  <bruno@clisp.org>
3692
3693         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3694         * m4/gc-pbkdf2-sha1.m4: Remove file.
3695         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3696         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3697         (Makefile.am): Augment lib_SOURCES.
3698
3699 2011-05-23  Bruno Haible  <bruno@clisp.org>
3700
3701         fts: Move AC_LIBOBJ invocations to module description.
3702         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3703         * modules/fts (configure.ac): ... to here.
3704
3705 2011-05-23  Bruno Haible  <bruno@clisp.org>
3706
3707         file-type: Move AC_LIBOBJ invocations to module description.
3708         * m4/file-type.m4: Remove file.
3709         * modules/file-type (Files): Remove it.
3710         (configure.ac): Remove gl_FILE_TYPE call.
3711         (Makefile.am): Augment lib_SOURCES.
3712
3713 2011-05-23  Bruno Haible  <bruno@clisp.org>
3714
3715         filenamecat*: Respect rules for use of AC_LIBOBJ.
3716         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3717         Remove AC_LIBOBJ invocation.
3718         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3719         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3720
3721 2011-05-23  Bruno Haible  <bruno@clisp.org>
3722
3723         filemode: Move AC_LIBOBJ invocations to module description.
3724         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3725         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3726
3727 2011-05-23  Bruno Haible  <bruno@clisp.org>
3728
3729         openat-safer: Move AC_LIBOBJ invocations to module description.
3730         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3731         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3732
3733 2011-05-23  Bruno Haible  <bruno@clisp.org>
3734
3735         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3736         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3737         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         exclude: Move AC_LIBOBJ invocations to module description.
3742         * m4/exclude.m4: Remove file.
3743         * modules/exclude (Files): Remove it.
3744         (configure.ac): Remove gl_EXCLUDE call.
3745         (Makefile.am): Augment lib_SOURCES.
3746
3747 2011-05-23  Bruno Haible  <bruno@clisp.org>
3748
3749         dirname*: Respect rules for use of AC_LIBOBJ.
3750         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3751         invocations.
3752         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3753         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3754
3755 2011-05-23  Bruno Haible  <bruno@clisp.org>
3756
3757         dirent-safer: Move AC_LIBOBJ invocations to module description.
3758         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3759         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         crypto/des: Move AC_LIBOBJ invocations to module description.
3764         * m4/des.m4: Remove file.
3765         * modules/crypto/des (Files): Remove it.
3766         (configure.ac): Remove gl_DES call.
3767         (Makefile.am): Augment lib_SOURCES.
3768
3769 2011-05-23  Bruno Haible  <bruno@clisp.org>
3770
3771         cycle-check: Move AC_LIBOBJ invocations to module description.
3772         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3773         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3774
3775 2011-05-23  Bruno Haible  <bruno@clisp.org>
3776
3777         c-strtold: Move AC_LIBOBJ invocations to module description.
3778         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3779         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3780
3781 2011-05-23  Bruno Haible  <bruno@clisp.org>
3782
3783         c-strtod: Move AC_LIBOBJ invocations to module description.
3784         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3785         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3786
3787 2011-05-23  Bruno Haible  <bruno@clisp.org>
3788
3789         crc: Move AC_LIBOBJ invocations to module description.
3790         * m4/crc.m4: Remove file.
3791         * modules/crc (Files): Remove it.
3792         (configure.ac): Remove gl_CRC call.
3793         (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         close-stream: Move AC_LIBOBJ invocations to module description.
3798         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3799         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3800
3801 2011-05-23  Bruno Haible  <bruno@clisp.org>
3802
3803         closeout: Move AC_LIBOBJ invocations to module description.
3804         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3805         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3806
3807 2011-05-23  Bruno Haible  <bruno@clisp.org>
3808
3809         closein: Move AC_LIBOBJ invocations to module description.
3810         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3811         * modules/closein (Makefile.am): Augment lib_SOURCES.
3812
3813 2011-05-23  Bruno Haible  <bruno@clisp.org>
3814
3815         cloexec: Move AC_LIBOBJ invocations to module description.
3816         * m4/cloexec.m4: Remove file.
3817         * modules/cloexec (Files): Remove it.
3818         (configure.ac): Remove gl_CLOEXEC call.
3819         (Makefile.am): Augment lib_SOURCES.
3820
3821 2011-05-23  Bruno Haible  <bruno@clisp.org>
3822
3823         check-version: Move AC_LIBOBJ invocations to module description.
3824         * m4/check-version.m4: Remove file.
3825         * modules/check-version (Files): Remove it.
3826         (configure.ac): Remove gl_CHECK_VERSION call.
3827         (Makefile.am): Augment lib_SOURCES.
3828
3829 2011-05-23  Bruno Haible  <bruno@clisp.org>
3830
3831         chdir-safer: Move AC_LIBOBJ invocations to module description.
3832         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3833         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3834
3835 2011-05-23  Bruno Haible  <bruno@clisp.org>
3836
3837         canonicalize: Move AC_LIBOBJ invocations to module description.
3838         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3839         AC_LIBOBJ invocation.
3840         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3841
3842 2011-05-23  Bruno Haible  <bruno@clisp.org>
3843
3844         canon-host: Move AC_LIBOBJ invocations to module description.
3845         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3846         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3847         instead of gl_CANON_HOST.
3848         (Makefile.am): Augment lib_SOURCES.
3849
3850 2011-05-23  Bruno Haible  <bruno@clisp.org>
3851
3852         backupfile: Move AC_LIBOBJ invocations to module description.
3853         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3854         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3855
3856 2011-05-23  Bruno Haible  <bruno@clisp.org>
3857
3858         argmatch: Move AC_LIBOBJ invocations to module description.
3859         * m4/argmatch.m4: Remove file.
3860         * modules/argmatch (Files): Remove it.
3861         (configure.ac): Remove gl_ARGMATCH call.
3862         (Makefile.am): Augment lib_SOURCES.
3863
3864 2011-05-23  Bruno Haible  <bruno@clisp.org>
3865
3866         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3867         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3868         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3869
3870 2011-05-23  Bruno Haible  <bruno@clisp.org>
3871
3872         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3873         * m4/arcfour.m4: Remove file.
3874         * modules/crypto/arcfour (Files): Remove it.
3875         (configure.ac): Remove gl_ARCFOUR call.
3876         (Makefile.am): Augment lib_SOURCES.
3877
3878 2011-05-22  Bruno Haible  <bruno@clisp.org>
3879
3880         write: Move AC_LIBOBJ invocations to module description.
3881         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3882         * modules/write (configure.ac): ... to here.
3883
3884 2011-05-22  Bruno Haible  <bruno@clisp.org>
3885
3886         wmemset: Move AC_LIBOBJ invocations to module description.
3887         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3888         here...
3889         * modules/wmemset (configure.ac): ... to here.
3890
3891 2011-05-22  Bruno Haible  <bruno@clisp.org>
3892
3893         wmemmove: Move AC_LIBOBJ invocations to module description.
3894         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3895         here...
3896         * modules/wmemmove (configure.ac): ... to here.
3897
3898 2011-05-22  Bruno Haible  <bruno@clisp.org>
3899
3900         wmemcpy: Move AC_LIBOBJ invocations to module description.
3901         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3902         here...
3903         * modules/wmemcpy (configure.ac): ... to here.
3904
3905 2011-05-22  Bruno Haible  <bruno@clisp.org>
3906
3907         wmemcmp: Move AC_LIBOBJ invocations to module description.
3908         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3909         here...
3910         * modules/wmemcmp (configure.ac): ... to here.
3911
3912 2011-05-22  Bruno Haible  <bruno@clisp.org>
3913
3914         wmemchr: Move AC_LIBOBJ invocations to module description.
3915         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3916         here...
3917         * modules/wmemchr (configure.ac): ... to here.
3918
3919 2011-05-22  Bruno Haible  <bruno@clisp.org>
3920
3921         wcswidth: Move AC_LIBOBJ invocations to module description.
3922         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3923         here...
3924         * modules/wcswidth (configure.ac): ... to here.
3925
3926 2011-05-22  Bruno Haible  <bruno@clisp.org>
3927
3928         wcwidth: Respect rules for use of AC_LIBOBJ.
3929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3930         invocation from here...
3931         * modules/wcwidth (configure.ac): ... to here.
3932         (Depends-on): Update conditions.
3933
3934 2011-05-22  Bruno Haible  <bruno@clisp.org>
3935
3936         wctype: Move AC_LIBOBJ invocations to module description.
3937         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3938         invocation from here...
3939         * modules/wctype (configure.ac): ... to here.
3940         (Depends-on): Update conditions.
3941
3942 2011-05-22  Bruno Haible  <bruno@clisp.org>
3943
3944         wctrans: Move AC_LIBOBJ invocations to module description.
3945         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3946         invocation from here...
3947         * modules/wctrans (configure.ac): ... to here.
3948
3949 2011-05-22  Bruno Haible  <bruno@clisp.org>
3950
3951         wctomb: Move AC_LIBOBJ invocations to module description.
3952         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3953         invocations from here...
3954         * modules/wctomb (configure.ac): ... to here.
3955
3956 2011-05-22  Bruno Haible  <bruno@clisp.org>
3957
3958         wctob: Move AC_LIBOBJ invocations to module description.
3959         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3960         gl_PREREQ_WCTOB invocations from here...
3961         * modules/wctob (configure.ac): ... to here.
3962         (Depends-on): Update conditions.
3963
3964 2011-05-22  Bruno Haible  <bruno@clisp.org>
3965
3966         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3967         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3968         here...
3969         * modules/wcsxfrm (configure.ac): ... to here.
3970
3971 2011-05-22  Bruno Haible  <bruno@clisp.org>
3972
3973         wcstok: Move AC_LIBOBJ invocations to module description.
3974         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3975         * modules/wcstok (configure.ac): ... to here.
3976
3977 2011-05-22  Bruno Haible  <bruno@clisp.org>
3978
3979         wcsstr: Move AC_LIBOBJ invocations to module description.
3980         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3981         * modules/wcsstr (configure.ac): ... to here.
3982
3983 2011-05-22  Bruno Haible  <bruno@clisp.org>
3984
3985         wcsspn: Move AC_LIBOBJ invocations to module description.
3986         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3987         * modules/wcsspn (configure.ac): ... to here.
3988
3989 2011-05-22  Bruno Haible  <bruno@clisp.org>
3990
3991         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3992         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3993         gl_PREREQ_WCSRTOMBS invocations from here...
3994         * modules/wcsrtombs (configure.ac): ... to here.
3995
3996 2011-05-22  Bruno Haible  <bruno@clisp.org>
3997
3998         wcsrchr: Move AC_LIBOBJ invocations to module description.
3999         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4000         here...
4001         * modules/wcsrchr (configure.ac): ... to here.
4002
4003 2011-05-22  Bruno Haible  <bruno@clisp.org>
4004
4005         wcspbrk: Move AC_LIBOBJ invocations to module description.
4006         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4007         here...
4008         * modules/wcspbrk (configure.ac): ... to here.
4009
4010 2011-05-22  Bruno Haible  <bruno@clisp.org>
4011
4012         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4013         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4014         gl_PREREQ_WCSNRTOMBS invocations from here...
4015         * modules/wcsnrtombs (configure.ac): ... to here.
4016
4017 2011-05-22  Bruno Haible  <bruno@clisp.org>
4018
4019         wcsnlen: Move AC_LIBOBJ invocations to module description.
4020         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4021         here...
4022         * modules/wcsnlen (configure.ac): ... to here.
4023
4024 2011-05-22  Bruno Haible  <bruno@clisp.org>
4025
4026         wcsncpy: Move AC_LIBOBJ invocations to module description.
4027         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4028         here...
4029         * modules/wcsncpy (configure.ac): ... to here.
4030
4031 2011-05-22  Bruno Haible  <bruno@clisp.org>
4032
4033         wcsncmp: Move AC_LIBOBJ invocations to module description.
4034         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4035         here...
4036         * modules/wcsncmp (configure.ac): ... to here.
4037
4038 2011-05-22  Bruno Haible  <bruno@clisp.org>
4039
4040         wcsncat: Move AC_LIBOBJ invocations to module description.
4041         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4042         here...
4043         * modules/wcsncat (configure.ac): ... to here.
4044
4045 2011-05-22  Bruno Haible  <bruno@clisp.org>
4046
4047         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4048         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4049         from here...
4050         * modules/wcsncasecmp (configure.ac): ... to here.
4051
4052 2011-05-22  Bruno Haible  <bruno@clisp.org>
4053
4054         wcslen: Move AC_LIBOBJ invocations to module description.
4055         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4056         * modules/wcslen (configure.ac): ... to here.
4057
4058 2011-05-22  Bruno Haible  <bruno@clisp.org>
4059
4060         wcsdup: Move AC_LIBOBJ invocations to module description.
4061         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4062         * modules/wcsdup (configure.ac): ... to here.
4063
4064 2011-05-22  Bruno Haible  <bruno@clisp.org>
4065
4066         wcscspn: Move AC_LIBOBJ invocations to module description.
4067         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4068         here...
4069         * modules/wcscspn (configure.ac): ... to here.
4070
4071 2011-05-22  Bruno Haible  <bruno@clisp.org>
4072
4073         wcscpy: Move AC_LIBOBJ invocations to module description.
4074         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4075         * modules/wcscpy (configure.ac): ... to here.
4076
4077 2011-05-22  Bruno Haible  <bruno@clisp.org>
4078
4079         wcscoll: Move AC_LIBOBJ invocations to module description.
4080         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4081         here...
4082         * modules/wcscoll (configure.ac): ... to here.
4083
4084 2011-05-22  Bruno Haible  <bruno@clisp.org>
4085
4086         wcscmp: Move AC_LIBOBJ invocations to module description.
4087         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4088         * modules/wcscmp (configure.ac): ... to here.
4089
4090 2011-05-22  Bruno Haible  <bruno@clisp.org>
4091
4092         wcschr: Move AC_LIBOBJ invocations to module description.
4093         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4094         * modules/wcschr (configure.ac): ... to here.
4095
4096 2011-05-22  Bruno Haible  <bruno@clisp.org>
4097
4098         wcscat: Move AC_LIBOBJ invocations to module description.
4099         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4100         * modules/wcscat (configure.ac): ... to here.
4101
4102 2011-05-22  Bruno Haible  <bruno@clisp.org>
4103
4104         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4105         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4106         here...
4107         * modules/wcscasecmp (configure.ac): ... to here.
4108
4109 2011-05-22  Bruno Haible  <bruno@clisp.org>
4110
4111         wcrtomb: Move AC_LIBOBJ invocations to module description.
4112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4113         invocations from here...
4114         * modules/wcrtomb (configure.ac): ... to here.
4115
4116 2011-05-22  Bruno Haible  <bruno@clisp.org>
4117
4118         wcpncpy: Move AC_LIBOBJ invocations to module description.
4119         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4120         here...
4121         * modules/wcpncpy (configure.ac): ... to here.
4122
4123 2011-05-22  Bruno Haible  <bruno@clisp.org>
4124
4125         wcpcpy: Move AC_LIBOBJ invocations to module description.
4126         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4127         * modules/wcpcpy (configure.ac): ... to here.
4128
4129 2011-05-22  Bruno Haible  <bruno@clisp.org>
4130
4131         waitpid: Move AC_LIBOBJ invocations to module description.
4132         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4133         invocation from here...
4134         * modules/waitpid (configure.ac): ... to here.
4135
4136 2011-05-22  Bruno Haible  <bruno@clisp.org>
4137
4138         utimensat: Move AC_LIBOBJ invocations to module description.
4139         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4140         here...
4141         * modules/utimensat (configure.ac): ... to here.
4142
4143 2011-05-22  Bruno Haible  <bruno@clisp.org>
4144
4145         usleep: Move AC_LIBOBJ invocations to module description.
4146         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4147         here...
4148         * modules/usleep (configure.ac): ... to here.
4149
4150 2011-05-22  Bruno Haible  <bruno@clisp.org>
4151
4152         unlockpt: Move AC_LIBOBJ invocations to module description.
4153         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4154         gl_PREREQ_UNLOCKPT invocations from here...
4155         * modules/unlockpt (configure.ac): ... to here.
4156
4157 2011-05-22  Bruno Haible  <bruno@clisp.org>
4158
4159         unlink: Respect rules for use of AC_LIBOBJ.
4160         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4161         * modules/unlink (configure.ac): ... to here.
4162
4163 2011-05-22  Bruno Haible  <bruno@clisp.org>
4164
4165         uname: Move AC_LIBOBJ invocations to module description.
4166         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4168         here...
4169         * modules/uname (configure.ac): ... to here.
4170
4171 2011-05-22  Bruno Haible  <bruno@clisp.org>
4172
4173         ttyname_r: Move AC_LIBOBJ invocations to module description.
4174         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4175         gl_PREREQ_TTYNAME_R invocations from here...
4176         * modules/ttyname_r (configure.ac): ... to here.
4177
4178 2011-05-22  Bruno Haible  <bruno@clisp.org>
4179
4180         tsearch: Move AC_LIBOBJ invocations to module description.
4181         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4182         invocations from here...
4183         * modules/tsearch (configure.ac): ... to here.
4184
4185 2011-05-22  Bruno Haible  <bruno@clisp.org>
4186
4187         towctrans: Move AC_LIBOBJ invocations to module description.
4188         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4189         AC_LIBOBJ invocation from here...
4190         * modules/towctrans (configure.ac): ... to here.
4191
4192 2011-05-22  Bruno Haible  <bruno@clisp.org>
4193
4194         tmpfile: Move AC_LIBOBJ invocations to module description.
4195         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4196         invocations from here...
4197         * modules/tmpfile (configure.ac): ... to here.
4198
4199 2011-05-22  Bruno Haible  <bruno@clisp.org>
4200
4201         times: Move AC_LIBOBJ invocations to module description.
4202         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4203         * modules/times (configure.ac): ... to here.
4204
4205 2011-05-22  Bruno Haible  <bruno@clisp.org>
4206
4207         time_r: Move AC_LIBOBJ invocations to module description.
4208         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4209         invocations from here...
4210         * modules/time_r (configure.ac): ... to here.
4211
4212 2011-05-22  Bruno Haible  <bruno@clisp.org>
4213
4214         timegm: Move AC_LIBOBJ invocations to module description.
4215         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4216         invocations from here...
4217         * modules/timegm (configure.ac): ... to here.
4218
4219 2011-05-22  Bruno Haible  <bruno@clisp.org>
4220
4221         tcgetsid: Move AC_LIBOBJ invocations to module description.
4222         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4223         and gl_PREREQ_TCGETSID invocations from here...
4224         * modules/tcgetsid (configure.ac): ... to here.
4225         (Depends-on): Update conditions.
4226
4227 2011-05-22  Bruno Haible  <bruno@clisp.org>
4228
4229         symlinkat: Move AC_LIBOBJ invocations to module description.
4230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4231         here...
4232         * modules/symlinkat (configure.ac): ... to here.
4233
4234 2011-05-22  Bruno Haible  <bruno@clisp.org>
4235
4236         symlink: Move AC_LIBOBJ invocations to module description.
4237         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4238         here...
4239         * modules/symlink (configure.ac): ... to here.
4240
4241 2011-05-22  Bruno Haible  <bruno@clisp.org>
4242
4243         strverscmp: Move AC_LIBOBJ invocations to module description.
4244         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4246         from here...
4247         * modules/strverscmp (configure.ac): ... to here.
4248
4249 2011-05-22  Bruno Haible  <bruno@clisp.org>
4250
4251         strtok_r: Move AC_LIBOBJ invocations to module description.
4252         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4253         and gl_PREREQ_STRTOK_R invocations from here...
4254         * modules/strtok_r (configure.ac): ... to here.
4255         (Depends-on): Update conditions.
4256
4257 2011-05-22  Bruno Haible  <bruno@clisp.org>
4258
4259         strtoumax: Move AC_LIBOBJ invocations to module description.
4260         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4262         from here...
4263         * modules/strtoumax (configure.ac): ... to here.
4264
4265 2011-05-22  Bruno Haible  <bruno@clisp.org>
4266
4267         strtoimax: Move AC_LIBOBJ invocations to module description.
4268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4270         from here...
4271         * modules/strtoimax (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         strtoull: Move AC_LIBOBJ invocations to module description.
4276         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4277         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4278         from here...
4279         * modules/strtoull (configure.ac): ... to here.
4280
4281 2011-05-22  Bruno Haible  <bruno@clisp.org>
4282
4283         strtoll: Move AC_LIBOBJ invocations to module description.
4284         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4286         here...
4287         * modules/strtoll (configure.ac): ... to here.
4288
4289 2011-05-22  Bruno Haible  <bruno@clisp.org>
4290
4291         strtoul: Move AC_LIBOBJ invocations to module description.
4292         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4293         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4294         * modules/strtoul (configure.ac): ... to here.
4295
4296 2011-05-22  Bruno Haible  <bruno@clisp.org>
4297
4298         strtol: Move AC_LIBOBJ invocations to module description.
4299         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4300         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4301         * modules/strtol (configure.ac): ... to here.
4302
4303 2011-05-22  Bruno Haible  <bruno@clisp.org>
4304
4305         strtod: Move AC_LIBOBJ invocations to module description.
4306         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4307         invocations from here...
4308         * modules/strtod (configure.ac): ... to here.
4309
4310 2011-05-22  Bruno Haible  <bruno@clisp.org>
4311
4312         strstr*: Move AC_LIBOBJ invocations to module description.
4313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4314         invocations from here...
4315         * modules/strstr-simple (configure.ac): ... to here.
4316         * modules/strstr (configure.ac): ... and here.
4317
4318 2011-05-22  Bruno Haible  <bruno@clisp.org>
4319
4320         strsignal: Move AC_LIBOBJ invocations to module description.
4321         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4322         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4323         * modules/strsignal (configure.ac): ... to here.
4324         (Depends-on): Update conditions.
4325
4326 2011-05-22  Bruno Haible  <bruno@clisp.org>
4327
4328         strsep: Move AC_LIBOBJ invocations to module description.
4329         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4331         here...
4332         * modules/strsep (configure.ac): ... to here.
4333
4334 2011-05-22  Bruno Haible  <bruno@clisp.org>
4335
4336         strptime: Move AC_LIBOBJ invocations to module description.
4337         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4338         gl_PREREQ_STRPTIME invocations from here...
4339         * modules/strptime (configure.ac): ... to here.
4340
4341 2011-05-22  Bruno Haible  <bruno@clisp.org>
4342
4343         strpbrk: Move AC_LIBOBJ invocations to module description.
4344         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4346         here...
4347         * modules/strpbrk (configure.ac): ... to here.
4348
4349 2011-05-22  Bruno Haible  <bruno@clisp.org>
4350
4351         strnlen: Move AC_LIBOBJ invocations to module description.
4352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4353         invocations from here...
4354         * modules/strnlen (configure.ac): ... to here.
4355
4356 2011-05-22  Bruno Haible  <bruno@clisp.org>
4357
4358         strndup: Move AC_LIBOBJ invocations to module description.
4359         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4360         invocations from here...
4361         * modules/strndup (configure.ac): ... to here.
4362         (Depends-on): Update conditions.
4363
4364 2011-05-22  Bruno Haible  <bruno@clisp.org>
4365
4366         strncat: Move AC_LIBOBJ invocations to module description.
4367         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4368         invocations from here...
4369         * modules/strncat (configure.ac): ... to here.
4370
4371 2011-05-22  Bruno Haible  <bruno@clisp.org>
4372
4373         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4374         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4375         invocations from here...
4376         * modules/strdup (configure.ac): ... to here.
4377         * modules/strdup-posix (configure.ac): ... and here.
4378
4379 2011-05-22  Bruno Haible  <bruno@clisp.org>
4380
4381         strcspn: Move AC_LIBOBJ invocations to module description.
4382         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4383         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4384         here...
4385         * modules/strcspn (configure.ac): ... to here.
4386
4387 2011-05-22  Bruno Haible  <bruno@clisp.org>
4388
4389         strchrnul: Move AC_LIBOBJ invocations to module description.
4390         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4391         gl_PREREQ_STRCHRNUL invocations from here...
4392         * modules/strchrnul (configure.ac): ... to here.
4393
4394 2011-05-22  Bruno Haible  <bruno@clisp.org>
4395
4396         strcasestr*: Move AC_LIBOBJ invocations to module description.
4397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4398         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4399         * modules/strcasestr-simple (configure.ac): ... to here.
4400         * modules/strcasestr (configure.ac): ... and here.
4401
4402 2011-05-22  Bruno Haible  <bruno@clisp.org>
4403
4404         strcase: Move AC_LIBOBJ invocations to module description.
4405         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4406         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4407         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4408         gl_PREREQ_STRNCASECMP invocations from here...
4409         * modules/strcase (configure.ac): ... to here.
4410
4411 2011-05-22  Bruno Haible  <bruno@clisp.org>
4412
4413         stpncpy: Move AC_LIBOBJ invocations to module description.
4414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4415         here...
4416         * modules/stpncpy (configure.ac): ... to here.
4417
4418 2011-05-22  Bruno Haible  <bruno@clisp.org>
4419
4420         stpcpy: Move AC_LIBOBJ invocations to module description.
4421         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4423         here...
4424         * modules/stpcpy (configure.ac): ... to here.
4425
4426 2011-05-21  Bruno Haible  <bruno@clisp.org>
4427
4428         stat: Move AC_LIBOBJ invocations to module description.
4429         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4430         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4431         here...
4432         * modules/stat (configure.ac): ... to here.
4433
4434 2011-05-21  Bruno Haible  <bruno@clisp.org>
4435
4436         sleep: Move AC_LIBOBJ invocations to module description.
4437         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4438         * modules/sleep (configure.ac): ... to here.
4439
4440 2011-05-21  Bruno Haible  <bruno@clisp.org>
4441
4442         signbit: Move AC_LIBOBJ invocations to module description.
4443         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4444         * modules/signbit (configure.ac): ... to here.
4445
4446 2011-05-21  Bruno Haible  <bruno@clisp.org>
4447
4448         sigprocmask: Move AC_LIBOBJ invocations to module description.
4449         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4450         gl_PREREQ_SIGPROMASK invocations from here...
4451         * modules/sigprocmask (configure.ac): ... to here.
4452
4453 2011-05-21  Bruno Haible  <bruno@clisp.org>
4454
4455         sigaction: Move AC_LIBOBJ invocations to module description.
4456         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4457         gl_PREREQ_SIGACTION invocations from here...
4458         * modules/sigaction (configure.ac): ... to here.
4459
4460 2011-05-21  Bruno Haible  <bruno@clisp.org>
4461
4462         sig2str: Move AC_LIBOBJ invocations to module description.
4463         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4464         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4465         here...
4466         * modules/sig2str (configure.ac): ... to here.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         setlocale: Move AC_LIBOBJ invocations to module description.
4471         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4472         gl_PREREQ_SETLOCALE invocations from here...
4473         * modules/setlocale (configure.ac): ... to here.
4474
4475 2011-05-21  Bruno Haible  <bruno@clisp.org>
4476
4477         unsetenv: Move AC_LIBOBJ invocations to module description.
4478         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4479         and gl_PREREQ_UNSETENV invocations from here...
4480         * modules/unsetenv (configure.ac): ... to here.
4481         (Depends-on): Update.
4482
4483 2011-05-21  Bruno Haible  <bruno@clisp.org>
4484
4485         setenv: Move AC_LIBOBJ invocations to module description.
4486         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4487         here...
4488         * modules/setenv (configure.ac): ... to here.
4489
4490 2011-05-21  Bruno Haible  <bruno@clisp.org>
4491
4492         selinux-h: Move AC_LIBOBJ invocations to module description.
4493         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4494         AC_LIBOBJ invocation from here...
4495         * modules/selinux-h (configure.ac): ... to here.
4496
4497 2011-05-21  Bruno Haible  <bruno@clisp.org>
4498
4499         select: Respect rules for use of AC_LIBOBJ.
4500         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4501         here...
4502         * modules/select (configure.ac): ... to here.
4503
4504 2011-05-21  Bruno Haible  <bruno@clisp.org>
4505
4506         scandir: Move AC_LIBOBJ invocations to module description.
4507         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4508         invocations from here...
4509         * modules/scandir (configure.ac): ... to here.
4510
4511 2011-05-21  Bruno Haible  <bruno@clisp.org>
4512
4513         rpmatch: Move AC_LIBOBJ invocations to module description.
4514         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4516         here...
4517         * modules/rpmatch (configure.ac): ... to here.
4518
4519 2011-05-21  Bruno Haible  <bruno@clisp.org>
4520
4521         rmdir: Respect rules for use of AC_LIBOBJ.
4522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4523         * modules/rmdir (configure.ac): ... to here.
4524
4525 2011-05-21  Bruno Haible  <bruno@clisp.org>
4526
4527         renameat: Move AC_LIBOBJ invocations to module description.
4528         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4529         here...
4530         * modules/renameat (configure.ac): ... to here.
4531
4532 2011-05-21  Bruno Haible  <bruno@clisp.org>
4533
4534         rename: Respect rules for use of AC_LIBOBJ.
4535         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4536         here...
4537         * modules/rename (configure.ac): ... to here.
4538
4539 2011-05-21  Bruno Haible  <bruno@clisp.org>
4540
4541         remove: Move AC_LIBOBJ invocations to module description.
4542         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4543         here...
4544         * modules/remove (configure.ac): ... to here.
4545
4546 2011-05-21  Bruno Haible  <bruno@clisp.org>
4547
4548         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4549         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4550         macro.
4551         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4552         * modules/relocatable-lib (configure.ac): ... to here.
4553         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4554         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4555
4556 2011-05-21  Bruno Haible  <bruno@clisp.org>
4557
4558         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4559         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4560         here...
4561         * modules/relocatable-prog (configure.ac): ... to here.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         regex: Move AC_LIBOBJ invocations to module description.
4566         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4567         invocations from here...
4568         * modules/regex (configure.ac): ... to here.
4569
4570 2011-05-21  Bruno Haible  <bruno@clisp.org>
4571
4572         realloc-*: Move AC_LIBOBJ invocations to module description.
4573         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4574         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4575         AC_LIBOBJ invocations from here...
4576         * modules/realloc-gnu (configure.ac): ... to here.
4577         * modules/realloc-posix (configure.ac): ... and here.
4578
4579 2011-05-21  Bruno Haible  <bruno@clisp.org>
4580
4581         readutmp: Move AC_LIBOBJ invocations to module description.
4582         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4583         * modules/readutmp (configure.ac): ... to here.
4584
4585 2011-05-21  Bruno Haible  <bruno@clisp.org>
4586
4587         readlinkat: Move AC_LIBOBJ invocations to module description.
4588         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4589         here...
4590         * modules/readlinkat (configure.ac): ... to here.
4591
4592 2011-05-21  Bruno Haible  <bruno@clisp.org>
4593
4594         readlink: Move AC_LIBOBJ invocations to module description.
4595         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4596         gl_PREREQ_READLINK invocations from here...
4597         * modules/readlink (configure.ac): ... to here.
4598
4599 2011-05-21  Bruno Haible  <bruno@clisp.org>
4600
4601         readline: Move AC_LIBOBJ invocations to module description.
4602         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4603         gl_PREREQ_READLINE invocations from here...
4604         * modules/readline (configure.ac): ... to here.
4605
4606 2011-05-21  Bruno Haible  <bruno@clisp.org>
4607
4608         read: Move AC_LIBOBJ invocations to module description.
4609         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4610         * modules/read (configure.ac): ... to here.
4611
4612 2011-05-21  Bruno Haible  <bruno@clisp.org>
4613
4614         rawmemchr: Move AC_LIBOBJ invocations to module description.
4615         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4617         from here...
4618         * modules/rawmemchr (configure.ac): ... to here.
4619
4620 2011-05-21  Bruno Haible  <bruno@clisp.org>
4621
4622         random_r: Move AC_LIBOBJ invocations to module description.
4623         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4624         gl_PREREQ_RANDOM_R invocations from here...
4625         * modules/random_r (configure.ac): ... to here.
4626
4627 2011-05-21  Bruno Haible  <bruno@clisp.org>
4628
4629         pwrite: Move AC_LIBOBJ invocations to module description.
4630         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4631         * modules/pwrite (configure.ac): ... to here.
4632
4633 2011-05-21  Bruno Haible  <bruno@clisp.org>
4634
4635         putenv: Move AC_LIBOBJ invocations to module description.
4636         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4637         * modules/putenv (configure.ac): ... to here.
4638
4639 2011-05-21  Bruno Haible  <bruno@clisp.org>
4640
4641         login_tty: Move AC_LIBOBJ invocations to module description.
4642         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4643         * modules/login_tty (configure.ac): ... to here.
4644
4645 2011-05-21  Bruno Haible  <bruno@clisp.org>
4646
4647         openpty: Move AC_LIBOBJ invocations to module description.
4648         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4649         * modules/openpty (configure.ac): ... to here.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         forkpty: Move AC_LIBOBJ invocations to module description.
4654         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4655         * modules/forkpty (configure.ac): ... to here.
4656
4657 2011-05-21  Bruno Haible  <bruno@clisp.org>
4658
4659         ptsname: Move AC_LIBOBJ invocations to module description.
4660         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4661         invocations from here...
4662         * modules/ptsname (configure.ac): ... to here.
4663
4664 2011-05-21  Bruno Haible  <bruno@clisp.org>
4665
4666         pread: Move AC_LIBOBJ invocations to module description.
4667         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4668         * modules/pread (configure.ac): ... to here.
4669
4670 2011-05-21  Bruno Haible  <bruno@clisp.org>
4671
4672         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4673         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4674         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4675         * modules/posix_spawn (configure.ac): ... to here.
4676         * modules/posix_spawnp (configure.ac): ... and here.
4677
4678 2011-05-21  Bruno Haible  <bruno@clisp.org>
4679
4680         popen: Move AC_LIBOBJ invocations to module description.
4681         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4682         invocations from here...
4683         * modules/popen (configure.ac): ... to here.
4684
4685 2011-05-21  Bruno Haible  <bruno@clisp.org>
4686
4687         poll: Move AC_LIBOBJ invocations to module description.
4688         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4689         invocations from here...
4690         * modules/poll (configure.ac): ... to here.
4691
4692 2011-05-21  Bruno Haible  <bruno@clisp.org>
4693
4694         pipe-posix: Move AC_LIBOBJ invocations to module description.
4695         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4696         * modules/pipe-posix (configure.ac): ... to here.
4697
4698 2011-05-21  Bruno Haible  <bruno@clisp.org>
4699
4700         openat: Respect rules for use of AC_LIBOBJ.
4701         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4702         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4703         * modules/openat (configure.ac): ... to here.
4704
4705 2011-05-21  Bruno Haible  <bruno@clisp.org>
4706
4707         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4708         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4709         invocation from here...
4710         * modules/obstack-printf (configure.ac): ... to here.
4711         * modules/obstack-printf-posix (configure.ac): ... and here.
4712
4713 2011-05-21  Bruno Haible  <bruno@clisp.org>
4714
4715         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4716         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4717         from here...
4718         * modules/nl_langinfo (configure.ac): ... to here.
4719
4720 2011-05-21  Bruno Haible  <bruno@clisp.org>
4721
4722         nanosleep: Move AC_LIBOBJ invocations to module description.
4723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4724         gl_PREREQ_NANOSLEEP invocations from here...
4725         * modules/nanosleep (configure.ac): ... to here.
4726
4727 2011-05-21  Bruno Haible  <bruno@clisp.org>
4728
4729         mountlist: Move AC_LIBOBJ invocations to module description.
4730         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4731         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4732         * modules/mountlist (configure.ac): ... to here.
4733
4734 2011-05-21  Bruno Haible  <bruno@clisp.org>
4735
4736         mktime: Respect rules for use of AC_LIBOBJ.
4737         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4738         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4739         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4740         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4741         * modules/mktime (configure.ac): ... to here.
4742         * modules/mktime-internal (configure.ac): ... and here.
4743         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4744
4745 2011-05-21  Bruno Haible  <bruno@clisp.org>
4746
4747         mkstemps: Move AC_LIBOBJ invocations to module description.
4748         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4749         here...
4750         * modules/mkstemps (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         mkstemp: Move AC_LIBOBJ invocations to module description.
4755         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4756         gl_PREREQ_MKSTEMP invocations from here...
4757         * modules/mkstemp (configure.ac): ... to here.
4758
4759 2011-05-21  Bruno Haible  <bruno@clisp.org>
4760
4761         mkostemps: Move AC_LIBOBJ invocations to module description.
4762         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4763         here...
4764         * modules/mkostemps (configure.ac): ... to here.
4765
4766 2011-05-21  Bruno Haible  <bruno@clisp.org>
4767
4768         mkostemp: Move AC_LIBOBJ invocations to module description.
4769         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4770         gl_PREREQ_MKOSTEMP invocations from here...
4771         * modules/mkostemp (configure.ac): ... to here.
4772
4773 2011-05-21  Bruno Haible  <bruno@clisp.org>
4774
4775         mknod: Move AC_LIBOBJ invocations to module description.
4776         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4777         * modules/mknod (configure.ac): ... to here.
4778
4779 2011-05-21  Bruno Haible  <bruno@clisp.org>
4780
4781         mkfifoat: Move AC_LIBOBJ invocations to module description.
4782         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4783         here...
4784         * modules/mkfifoat (configure.ac): ... to here.
4785
4786 2011-05-21  Bruno Haible  <bruno@clisp.org>
4787
4788         mkfifo: Respect rules for use of AC_LIBOBJ.
4789         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4790         here...
4791         * modules/mkfifo (configure.ac): ... to here.
4792
4793 2011-05-21  Bruno Haible  <bruno@clisp.org>
4794
4795         mkdtemp: Move AC_LIBOBJ invocations to module description.
4796         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4797         invocations from here...
4798         * modules/mkdtemp (configure.ac): ... to here.
4799
4800 2011-05-21  Bruno Haible  <bruno@clisp.org>
4801
4802         mkdir: Move AC_LIBOBJ invocations to module description.
4803         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4804         * modules/mkdir (configure.ac): ... to here.
4805
4806 2011-05-21  Bruno Haible  <bruno@clisp.org>
4807
4808         memset: Move AC_LIBOBJ invocations to module description.
4809         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4810         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4811         here...
4812         * modules/memset (configure.ac): ... to here.
4813
4814 2011-05-21  Bruno Haible  <bruno@clisp.org>
4815
4816         memrchr: Move AC_LIBOBJ invocations to module description.
4817         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4819         here...
4820         * modules/memrchr (configure.ac): ... to here.
4821
4822 2011-05-21  Bruno Haible  <bruno@clisp.org>
4823
4824         mempcpy: Move AC_LIBOBJ invocations to module description.
4825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4827         here...
4828         * modules/mempcpy (configure.ac): ... to here.
4829
4830 2011-05-21  Bruno Haible  <bruno@clisp.org>
4831
4832         memmove: Move AC_LIBOBJ invocations to module description.
4833         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4835         here...
4836         * modules/memmove (configure.ac): ... to here.
4837
4838 2011-05-21  Bruno Haible  <bruno@clisp.org>
4839
4840         memmem*: Move AC_LIBOBJ invocations to module description.
4841         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4842         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4843         here...
4844         (gl_FUNC_MEMMEM): ... and here...
4845         * modules/memmem-simple (configure.ac): ... to here.
4846         * modules/memmem (configure.ac): ... and here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         memcpy: Move AC_LIBOBJ invocations to module description.
4851         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4853         here...
4854         * modules/memcpy (configure.ac): ... to here.
4855
4856 2011-05-21  Bruno Haible  <bruno@clisp.org>
4857
4858         memcmp: Simplify autoconf macro.
4859         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4860         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4861         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4862
4863 2011-05-21  Bruno Haible  <bruno@clisp.org>
4864
4865         memcmp: Move AC_LIBOBJ invocations to module description.
4866         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4867         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4868         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4869         * modules/memcmp (configure.ac): ... to here.
4870         (Depends-on): Update conditions.
4871
4872 2011-05-21  Bruno Haible  <bruno@clisp.org>
4873
4874         memchr: Respect rules for use of AC_LIBOBJ.
4875         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4876         invocations from here...
4877         * modules/memchr (configure.ac): ... to here.
4878
4879 2011-05-21  Bruno Haible  <bruno@clisp.org>
4880
4881         mbtowc: Move AC_LIBOBJ invocations to module description.
4882         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4883         invocations from here...
4884         * modules/mbtowc (configure.ac): ... to here.
4885
4886 2011-05-21  Bruno Haible  <bruno@clisp.org>
4887
4888         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4889         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4890         gl_PREREQ_MBSRTOWCS invocations from here...
4891         * modules/mbsrtowcs (configure.ac): ... to here.
4892
4893 2011-05-21  Bruno Haible  <bruno@clisp.org>
4894
4895         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4896         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4897         gl_PREREQ_MBSNRTOWCS invocations from here...
4898         * modules/mbsnrtowcs (configure.ac): ... to here.
4899
4900 2011-05-21  Bruno Haible  <bruno@clisp.org>
4901
4902         mbsinit: Move AC_LIBOBJ invocations to module description.
4903         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4904         invocations from here...
4905         * modules/mbsinit (configure.ac): ... to here.
4906
4907 2011-05-21  Bruno Haible  <bruno@clisp.org>
4908
4909         mbrlen: Move AC_LIBOBJ invocations to module description.
4910         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4911         invocations from here...
4912         * modules/mbrlen (configure.ac): ... to here.
4913
4914 2011-05-21  Bruno Haible  <bruno@clisp.org>
4915
4916         mbrtowc: Respect rules for use of AC_LIBOBJ.
4917         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4918         invocations from here...
4919         * modules/mbrtowc (configure.ac): ... to here.
4920
4921 2011-05-21  Bruno Haible  <bruno@clisp.org>
4922
4923         malloc-*: Move AC_LIBOBJ invocations to module description.
4924         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4925         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4926         AC_LIBOBJ invocations from here...
4927         * modules/malloc-gnu (configure.ac): ... to here.
4928         * modules/malloc-posix (configure.ac): ... and here.
4929
4930 2011-05-21  Bruno Haible  <bruno@clisp.org>
4931
4932         lstat, openat: Respect rules for use of AC_LIBOBJ.
4933         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4934         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4935         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4936         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4937         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4938         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4939         here.
4940         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4941
4942 2011-05-21  Bruno Haible  <bruno@clisp.org>
4943
4944         lseek: Move AC_LIBOBJ invocations to module description.
4945         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4946         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4947         * modules/lseek (configure.ac): ... to here.
4948
4949 2011-05-21  Bruno Haible  <bruno@clisp.org>
4950
4951         linkat: Move AC_LIBOBJ invocations to module description.
4952         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4953         here...
4954         * modules/linkat (configure.ac): ... to here.
4955
4956 2011-05-21  Bruno Haible  <bruno@clisp.org>
4957
4958         link: Respect rules for use of AC_LIBOBJ.
4959         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4960         * modules/link (configure.ac): ... to here.
4961
4962 2011-05-21  Bruno Haible  <bruno@clisp.org>
4963
4964         lchown: Move AC_LIBOBJ invocations to module description.
4965         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4966         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4967         * modules/lchown (configure.ac): ... to here.
4968
4969 2011-05-21  Bruno Haible  <bruno@clisp.org>
4970
4971         iswctype: Move AC_LIBOBJ invocations to module description.
4972         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4973         here...
4974         * modules/iswctype (configure.ac): ... to here.
4975
4976 2011-05-21  Bruno Haible  <bruno@clisp.org>
4977
4978         iswblank: Move AC_LIBOBJ invocations to module description.
4979         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4980         here...
4981         * modules/iswblank (configure.ac): ... to here.
4982
4983 2011-05-21  Bruno Haible  <bruno@clisp.org>
4984
4985         atanl: Move AC_LIBOBJ invocations to module description.
4986         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4987         * modules/atanl (configure.ac): ... to here.
4988
4989 2011-05-21  Bruno Haible  <bruno@clisp.org>
4990
4991         acosl: Move AC_LIBOBJ invocations to module description.
4992         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4993         * modules/acosl (configure.ac): ... to here.
4994
4995 2011-05-21  Bruno Haible  <bruno@clisp.org>
4996
4997         asinl: Respect rules for use of AC_LIBOBJ.
4998         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4999         * modules/asinl (configure.ac): ... to here.
5000
5001 2011-05-21  Bruno Haible  <bruno@clisp.org>
5002
5003         tanl: Move AC_LIBOBJ invocations to module description.
5004         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5005         * modules/tanl (configure.ac): ... to here.
5006
5007 2011-05-21  Bruno Haible  <bruno@clisp.org>
5008
5009         cosl: Move AC_LIBOBJ invocations to module description.
5010         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5011         * modules/cosl (configure.ac): ... to here.
5012
5013 2011-05-21  Bruno Haible  <bruno@clisp.org>
5014
5015         sinl: Move AC_LIBOBJ invocations to module description.
5016         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5017         * modules/sinl (configure.ac): ... to here.
5018
5019 2011-05-21  Bruno Haible  <bruno@clisp.org>
5020
5021         logl: Move AC_LIBOBJ invocations to module description.
5022         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5023         * modules/logl (configure.ac): ... to here.
5024
5025 2011-05-21  Bruno Haible  <bruno@clisp.org>
5026
5027         expl: Move AC_LIBOBJ invocations to module description.
5028         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5029         * modules/expl (configure.ac): ... to here.
5030
5031 2011-05-21  Bruno Haible  <bruno@clisp.org>
5032
5033         roundl: Move AC_LIBOBJ invocations to module description.
5034         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5035         * modules/roundl (configure.ac): ... to here.
5036
5037 2011-05-21  Bruno Haible  <bruno@clisp.org>
5038
5039         round: Move AC_LIBOBJ invocations to module description.
5040         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5041         * modules/round (configure.ac): ... to here.
5042
5043 2011-05-21  Bruno Haible  <bruno@clisp.org>
5044
5045         roundf: Move AC_LIBOBJ invocations to module description.
5046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5047         * modules/roundf (configure.ac): ... to here.
5048
5049 2011-05-21  Bruno Haible  <bruno@clisp.org>
5050
5051         truncl: Move AC_LIBOBJ invocations to module description.
5052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5053         * modules/truncl (configure.ac): ... to here.
5054
5055 2011-05-21  Bruno Haible  <bruno@clisp.org>
5056
5057         trunc: Move AC_LIBOBJ invocations to module description.
5058         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5059         * modules/trunc (configure.ac): ... to here.
5060
5061 2011-05-21  Bruno Haible  <bruno@clisp.org>
5062
5063         truncf: Move AC_LIBOBJ invocations to module description.
5064         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5065         * modules/truncf (configure.ac): ... to here.
5066
5067 2011-05-21  Bruno Haible  <bruno@clisp.org>
5068
5069         ceill: Move AC_LIBOBJ invocations to module description.
5070         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5071         * modules/ceill (configure.ac): ... to here.
5072
5073 2011-05-21  Bruno Haible  <bruno@clisp.org>
5074
5075         ceil: Move AC_LIBOBJ invocations to module description.
5076         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5077         * modules/ceil (configure.ac): ... to here.
5078
5079 2011-05-21  Bruno Haible  <bruno@clisp.org>
5080
5081         ceilf: Move AC_LIBOBJ invocations to module description.
5082         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5083         * modules/ceilf (configure.ac): ... to here.
5084
5085 2011-05-21  Bruno Haible  <bruno@clisp.org>
5086
5087         floorl: Respect rules for use of AC_LIBOBJ.
5088         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5089         * modules/floorl (configure.ac): ... to here.
5090
5091 2011-05-21  Bruno Haible  <bruno@clisp.org>
5092
5093         floor: Respect rules for use of AC_LIBOBJ.
5094         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5095         * modules/floor (configure.ac): ... to here.
5096
5097 2011-05-21  Bruno Haible  <bruno@clisp.org>
5098
5099         floorf: Move AC_LIBOBJ invocations to module description.
5100         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5101         * modules/floorf (configure.ac): ... to here.
5102
5103 2011-05-20  Bruno Haible  <bruno@clisp.org>
5104
5105         sqrtl: Respect rules for use of AC_LIBOBJ.
5106         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5107         * modules/sqrtl (configure.ac): ... to here.
5108
5109 2011-05-20  Bruno Haible  <bruno@clisp.org>
5110
5111         ldexpl: Respect rules for use of AC_LIBOBJ.
5112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5113         * modules/ldexpl (configure.ac): ... to here.
5114
5115 2011-05-20  Bruno Haible  <bruno@clisp.org>
5116
5117         frexpl*: Respect rules for use of AC_LIBOBJ.
5118         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5119         invocation from here...
5120         * modules/frexpl (configure.ac): ... to here.
5121         * modules/frexpl-nolibm (configure.ac): ... and here.
5122
5123 2011-05-20  Bruno Haible  <bruno@clisp.org>
5124
5125         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5126         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5127         invocation from here...
5128         * modules/frexp (configure.ac): ... to here.
5129         * modules/frexp-nolibm (configure.ac): ... and here.
5130
5131 2011-05-20  Bruno Haible  <bruno@clisp.org>
5132
5133         isnan: Respect rules for use of AC_LIBOBJ.
5134         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5135         invocations here.
5136         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5137         REPLACE_ISNAN.
5138         * modules/isnand (configure.ac): Likewise.
5139         * modules/isnanl (configure.ac): Likewise.
5140
5141 2011-05-20  Bruno Haible  <bruno@clisp.org>
5142
5143         isnanl*: Respect rules for use of AC_LIBOBJ.
5144         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5145         invocation from here...
5146         * modules/isnanl (configure.ac): ... to here.
5147         * modules/isnanl-nolibm (configure.ac): ... and here.
5148
5149 2011-05-20  Bruno Haible  <bruno@clisp.org>
5150
5151         isnand*: Move AC_LIBOBJ invocations to module description.
5152         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5153         invocation from here...
5154         * modules/isnand (configure.ac): ... to here.
5155         * modules/isnand-nolibm (configure.ac): ... and here.
5156
5157 2011-05-20  Bruno Haible  <bruno@clisp.org>
5158
5159         isnanf*: Move AC_LIBOBJ invocations to module description.
5160         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5161         invocation from here...
5162         * modules/isnanf (configure.ac): ... to here.
5163         * modules/isnanf-nolibm (configure.ac): ... and here.
5164
5165 2011-05-20  Bruno Haible  <bruno@clisp.org>
5166
5167         isnan*: Separate the AC_LIBOBJ invocations.
5168         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5169         AC_LIBOBJ invocation.
5170         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5171         here.
5172         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5173         AC_LIBOBJ invocation.
5174         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5175         here.
5176         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5177         AC_LIBOBJ invocation.
5178         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5179         here.
5180         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5181
5182 2011-05-08  Bruno Haible  <bruno@clisp.org>
5183
5184         isinf: Move AC_LIBOBJ invocations to module description.
5185         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5186         * modules/isinf (configure.ac): ... to here.
5187
5188 2011-05-08  Bruno Haible  <bruno@clisp.org>
5189
5190         isfinite: Move AC_LIBOBJ invocations to module description.
5191         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5192         * modules/isfinite (configure.ac): ... to here.
5193
5194 2011-05-08  Bruno Haible  <bruno@clisp.org>
5195
5196         isblank: Move AC_LIBOBJ invocations to module description.
5197         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5198         here...
5199         * modules/isblank (configure.ac): ... to here.
5200
5201 2011-05-08  Bruno Haible  <bruno@clisp.org>
5202
5203         isapipe: Move AC_LIBOBJ invocations to module description.
5204         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5205         gl_PREREQ_ISAPIPE invocations from here...
5206         * modules/isapipe (configure.ac): ... to here.
5207         (Depends-on): Update condition.
5208
5209 2011-05-08  Bruno Haible  <bruno@clisp.org>
5210
5211         ioctl: Move AC_LIBOBJ invocations to module description.
5212         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5213         invocations from here...
5214         * modules/ioctl (configure.ac): ... to here.
5215         (Depends-on): Update condition.
5216
5217 2011-05-08  Bruno Haible  <bruno@clisp.org>
5218
5219         imaxdiv: Move AC_LIBOBJ invocations to module description.
5220         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5221         invocations from here...
5222         * modules/imaxdiv (configure.ac): ... to here.
5223
5224 2011-05-08  Bruno Haible  <bruno@clisp.org>
5225
5226         imaxabs: Move AC_LIBOBJ invocations to module description.
5227         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5228         invocations from here...
5229         * modules/imaxabs (configure.ac): ... to here.
5230
5231 2011-05-08  Bruno Haible  <bruno@clisp.org>
5232
5233         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5235         AC_LIBOBJ invocations from here...
5236         * modules/getaddrinfo (configure.ac): ... to here.
5237         (Depends-on): Add conditions.
5238
5239 2011-05-08  Bruno Haible  <bruno@clisp.org>
5240
5241         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5242         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5243         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5244         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5245         (gl_PREREQ_INET_PTON): ... from here.
5246         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5247         gl_PREREQ_INET_PTON here.
5248         (Depends-on): Update condition.
5249
5250 2011-05-08  Bruno Haible  <bruno@clisp.org>
5251
5252         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5253         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5254         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5255         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5256         (gl_PREREQ_INET_NTOP): ... from here.
5257         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5258         gl_PREREQ_INET_NTOP here.
5259         (Depends-on): Update condition.
5260
5261 2011-05-08  Bruno Haible  <bruno@clisp.org>
5262
5263         iconv_open: Move AC_LIBOBJ invocations to module description.
5264         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5265         AC_LIBOBJ invocations from here...
5266         * modules/iconv_open (configure.ac): ... to here.
5267
5268 2011-05-08  Bruno Haible  <bruno@clisp.org>
5269
5270         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5271         If module 'iconv_open' is among the main modules and module
5272         'iconv_open-utf' is among the tests dependencies, then
5273         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5274         return the special iconv_t values. Therefore iconv() and iconv_close()
5275         must support these special iconv_t values, already in lib, not only in
5276         tests.
5277         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5278         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5279         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5280         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5281         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5282         (Depends-on): Add the dependencies of iconv_open-utf.
5283         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5284         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5285         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5286
5287 2011-05-08  Bruno Haible  <bruno@clisp.org>
5288
5289         group-member: Move AC_LIBOBJ invocations to module description.
5290         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5291         gl_PREREQ_GROUP_MEMBER invocations from here...
5292         * modules/group-member (configure.ac): ... to here.
5293
5294 2011-05-08  Bruno Haible  <bruno@clisp.org>
5295
5296         grantpt: Move AC_LIBOBJ invocations to module description.
5297         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5298         invocations from here...
5299         * modules/grantpt (configure.ac): ... to here.
5300
5301 2011-05-08  Bruno Haible  <bruno@clisp.org>
5302
5303         glob: Move AC_LIBOBJ invocations to module description.
5304         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5305         from here...
5306         * modules/glob (configure.ac): ... to here.
5307
5308 2011-05-08  Bruno Haible  <bruno@clisp.org>
5309
5310         getusershell: Move AC_LIBOBJ invocations to module description.
5311         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5312         Move AC_LIBOBJ invocation from here...
5313         * modules/getusershell (configure.ac): ... to here.
5314         (Depends-on): Update condition.
5315
5316 2011-05-08  Bruno Haible  <bruno@clisp.org>
5317
5318         gettimeofday: Move AC_LIBOBJ invocations to module description.
5319         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5320         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5321         gl_PREREQ_GETTIMEOFDAY invocations from here...
5322         * modules/gettimeofday (configure.ac): ... to here.
5323
5324 2011-05-08  Bruno Haible  <bruno@clisp.org>
5325
5326         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5327         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5328         just gl_FUNC_TZSET.
5329         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5330         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5332         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5333
5334 2011-05-08  Bruno Haible  <bruno@clisp.org>
5335
5336         getsubopt: Move AC_LIBOBJ invocations to module description.
5337         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5338         gl_PREREQ_GETSUBOPT invocations from here...
5339         * modules/getsubopt (configure.ac): ... to here.
5340
5341 2011-05-08  Bruno Haible  <bruno@clisp.org>
5342
5343         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5344         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5345         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5346         * modules/getpass-gnu (configure.ac): ... to here.
5347
5348 2011-05-08  Bruno Haible  <bruno@clisp.org>
5349
5350         getpass: Move AC_LIBOBJ invocations to module description.
5351         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5352         gl_PREREQ_GETPASS invocations from here...
5353         * modules/getpass (configure.ac): ... to here.
5354
5355 2011-05-08  Bruno Haible  <bruno@clisp.org>
5356
5357         getpagesize: Move AC_LIBOBJ invocations to module description.
5358         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5359         from here...
5360         * modules/getpagesize (configure.ac): ... to here.
5361
5362 2011-05-08  Bruno Haible  <bruno@clisp.org>
5363
5364         getopt: Move AC_LIBOBJ invocations to module description.
5365         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5366         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5367         invocations from here...
5368         * modules/getopt-gnu (configure.ac): ... to here.
5369         * modules/getopt-posix (configure.ac): ... and here.
5370         (Depends-on): Update condition.
5371
5372 2011-05-08  Bruno Haible  <bruno@clisp.org>
5373
5374         getopt, argp: Respect rules for use of AC_LIBOBJ.
5375         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5376         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5377         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5378         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5379
5380 2011-05-08  Bruno Haible  <bruno@clisp.org>
5381
5382         getlogin_r: Move AC_LIBOBJ invocations to module description.
5383         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5384         gl_PREREQ_GETLOGIN_R invocations from here...
5385         * modules/getlogin_r (configure.ac): ... to here.
5386
5387 2011-05-08  Bruno Haible  <bruno@clisp.org>
5388
5389         getlogin: Move AC_LIBOBJ invocations to module description.
5390         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5391         here...
5392         * modules/getlogin (configure.ac): ... to here.
5393
5394 2011-05-08  Bruno Haible  <bruno@clisp.org>
5395
5396         getloadavg: Move AC_LIBOBJ invocations to module description.
5397         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5398         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5399         * modules/getloadavg (configure.ac): ... to here.
5400
5401 2011-05-08  Bruno Haible  <bruno@clisp.org>
5402
5403         gethrxtime: Move AC_LIBOBJ invocations to module description.
5404         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5405         LIB_GETHRXTIME from here...
5406         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5407         invocations from here...
5408         * modules/gethrxtime (configure.ac): ... to here.
5409
5410 2011-05-08  Bruno Haible  <bruno@clisp.org>
5411
5412         gethostname: Move AC_LIBOBJ invocations to module description.
5413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5414         gl_PREREQ_GETHOSTNAME invocations from here...
5415         * modules/gethostname (configure.ac): ... to here.
5416
5417 2011-05-08  Bruno Haible  <bruno@clisp.org>
5418
5419         getgroups: Move AC_LIBOBJ invocations to module description.
5420         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5421         here...
5422         * modules/getgroups (configure.ac): ... to here.
5423
5424 2011-05-08  Bruno Haible  <bruno@clisp.org>
5425
5426         getdtablesize: Move AC_LIBOBJ invocations to module description.
5427         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5428         invocation from here...
5429         * modules/getdtablesize (configure.ac): ... to here.
5430
5431 2011-05-08  Bruno Haible  <bruno@clisp.org>
5432
5433         getdomainname: Move AC_LIBOBJ invocations to module description.
5434         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5435         gl_PREREQ_GETDOMAINNAME invocations from here...
5436         * modules/getdomainname (configure.ac): ... to here.
5437
5438 2011-05-08  Bruno Haible  <bruno@clisp.org>
5439
5440         getline: Move AC_LIBOBJ invocations to module description.
5441         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5442         invocations from here...
5443         * modules/getline (configure.ac): ... to here.
5444
5445 2011-05-08  Bruno Haible  <bruno@clisp.org>
5446
5447         getline: Simplify.
5448         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5449         It's already handled through the module dependency.
5450
5451 2011-05-08  Bruno Haible  <bruno@clisp.org>
5452
5453         getdelim: Move AC_LIBOBJ invocations to module description.
5454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5455         and gl_PREREQ_GETDELIM invocations from here...
5456         * modules/getdelim (configure.ac): ... to here.
5457         (Depends-on): Fix condition.
5458
5459 2011-05-08  Bruno Haible  <bruno@clisp.org>
5460
5461         getcwd: Move AC_LIBOBJ invocations to module description.
5462         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5463         invocations from here...
5464         * modules/getcwd (configure.ac): ... to here.
5465
5466 2011-05-08  Bruno Haible  <bruno@clisp.org>
5467
5468         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5469         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5470         here...
5471         * modules/getcwd-lgpl (configure.ac): ... to here.
5472
5473 2011-05-07  Bruno Haible  <bruno@clisp.org>
5474
5475         crypto/gc: Move AC_LIBOBJ invocations to module description.
5476         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5477         * modules/crypto/gc (configure.ac): ... to here.
5478
5479 2011-05-07  Bruno Haible  <bruno@clisp.org>
5480
5481         fwriting: Move AC_LIBOBJ invocations to module description.
5482         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5483         here...
5484         * modules/fwriting (configure.ac): ... to here.
5485
5486 2011-05-07  Bruno Haible  <bruno@clisp.org>
5487
5488         fwritable: Move AC_LIBOBJ invocations to module description.
5489         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5490         here...
5491         * modules/fwritable (configure.ac): ... to here.
5492
5493 2011-05-07  Bruno Haible  <bruno@clisp.org>
5494
5495         futimens: Move AC_LIBOBJ invocations to module description.
5496         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5497         here...
5498         * modules/futimens (configure.ac): ... to here.
5499
5500 2011-05-07  Bruno Haible  <bruno@clisp.org>
5501
5502         ftruncate: Move AC_LIBOBJ invocations to module description.
5503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5504         gl_PREREQ_FTRUNCATE invocations from here...
5505         * modules/ftruncate (configure.ac): ... to here.
5506
5507 2011-05-07  Bruno Haible  <bruno@clisp.org>
5508
5509         fsync: Move AC_LIBOBJ invocations to module description.
5510         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5511         invocations from here...
5512         * modules/fsync (configure.ac): ... to here.
5513
5514 2011-05-07  Bruno Haible  <bruno@clisp.org>
5515
5516         fsusage: Move AC_LIBOBJ invocations to module description.
5517         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5518         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5519         * modules/fsusage (configure.ac): ... to here.
5520
5521 2011-05-07  Bruno Haible  <bruno@clisp.org>
5522
5523         freopen: Move AC_LIBOBJ invocations to module description.
5524         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5525         invocations from here...
5526         * modules/freopen (configure.ac): ... to here.
5527
5528 2011-05-07  Bruno Haible  <bruno@clisp.org>
5529
5530         free: Move AC_LIBOBJ invocations to module description.
5531         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5532         invocations from here...
5533         * modules/free (configure.ac): ... to here.
5534
5535 2011-05-07  Bruno Haible  <bruno@clisp.org>
5536
5537         freadable: Move AC_LIBOBJ invocations to module description.
5538         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5539         here...
5540         * modules/freadable (configure.ac): ... to here.
5541
5542 2011-05-07  Bruno Haible  <bruno@clisp.org>
5543
5544         fpurge: Move AC_LIBOBJ invocations to module description.
5545         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5546         invocations from here...
5547         * modules/fpurge (configure.ac): ... to here.
5548
5549 2011-05-07  Bruno Haible  <bruno@clisp.org>
5550
5551         fpending: Move AC_LIBOBJ invocations to module description.
5552         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5553         gl_FUNC_FPENDING.
5554         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5555         invocations from here...
5556         * modules/fpending (configure.ac): ... to here.
5557
5558 2011-05-07  Bruno Haible  <bruno@clisp.org>
5559
5560         fopen: Move AC_LIBOBJ invocations to module description.
5561         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5562         invocations from here...
5563         * modules/fopen (configure.ac): ... to here.
5564
5565 2011-05-07  Bruno Haible  <bruno@clisp.org>
5566
5567         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5568         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5569         gl_FUNC_FNMATCH_POSIX.
5570         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5571         invocations from here...
5572         * modules/fnmatch (configure.ac): ... to here.
5573         * modules/fnmatch-gnu (configure.ac): ... and here.
5574
5575 2011-05-07  Bruno Haible  <bruno@clisp.org>
5576
5577         flock: Move AC_LIBOBJ invocations to module description.
5578         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5579         invocations from here...
5580         * modules/flock (configure.ac): ... to here.
5581
5582 2011-05-07  Bruno Haible  <bruno@clisp.org>
5583
5584         fileblocks: Move AC_LIBOBJ invocations to module description.
5585         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5586         gl_PREREQ_FILEBLOCKS invocations from here...
5587         * modules/fileblocks (configure.ac): ... to here.
5588
5589 2011-05-06  Bruno Haible  <bruno@clisp.org>
5590
5591         fflush: Move AC_LIBOBJ invocations to module description.
5592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5593         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5594         invocations from here...
5595         * modules/fflush (configure.ac): ... to here.
5596
5597 2011-05-06  Bruno Haible  <bruno@clisp.org>
5598
5599         fdopendir: Move AC_LIBOBJ invocations to module description.
5600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5601         here...
5602         * modules/fdopendir (configure.ac): ... to here.
5603         (Depends-on): Improve conditions.
5604
5605 2011-05-06  Bruno Haible  <bruno@clisp.org>
5606
5607         _Exit: Move AC_LIBOBJ invocations to module description.
5608         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5609         invocations from here...
5610         * modules/_Exit (configure.ac): ... to here.
5611
5612 2011-05-21  Bruno Haible  <bruno@clisp.org>
5613
5614         euidaccess: Respect rules for use of AC_LIBOBJ.
5615         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5617         from here...
5618         * modules/euidaccess (configure.ac): ... to here.
5619
5620 2011-05-06  Bruno Haible  <bruno@clisp.org>
5621
5622         error: Move AC_LIBOBJ invocations to module description.
5623         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5624         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5625         invocations from here...
5626         * modules/error (configure.ac): ... to here.
5627
5628 2011-05-06  Bruno Haible  <bruno@clisp.org>
5629
5630         duplocale: Move AC_LIBOBJ invocations to module description.
5631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5632         gl_PREREQ_DUPLOCALE invocations from here...
5633         * modules/duplocale (configure.ac): ... to here.
5634
5635 2011-05-05  Bruno Haible  <bruno@clisp.org>
5636
5637         dirfd: Move AC_LIBOBJ invocations to module description.
5638         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5639         gl_FUNC_DIRFD.
5640         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5641         here...
5642         * modules/dirfd (configure.ac): ... to here.
5643         (Depends-on): Fix condition.
5644
5645 2011-05-05  Bruno Haible  <bruno@clisp.org>
5646
5647         chown: Respect rules for use of AC_LIBOBJ.
5648         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5649         * modules/chown (configure.ac): ... to here.
5650
5651 2011-05-05  Bruno Haible  <bruno@clisp.org>
5652
5653         chdir-long: Move AC_LIBOBJ invocations to module description.
5654         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5655         gl_PREREQ_CHDIR_LONG invocations from here...
5656         * modules/chdir-long (configure.ac): ... to here.
5657
5658 2011-05-05  Bruno Haible  <bruno@clisp.org>
5659
5660         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5661         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5662         from here...
5663         * modules/canonicalize-lgpl (configure.ac): ... to here.
5664
5665 2011-05-05  Bruno Haible  <bruno@clisp.org>
5666
5667         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5668         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5669         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5670         REPLACE_CALLOC.
5671         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5672         * modules/calloc-gnu (configure.ac): Likewise.
5673
5674 2011-05-05  Bruno Haible  <bruno@clisp.org>
5675
5676         btowc: Move AC_LIBOBJ invocations to module description.
5677         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5678         invocations from here...
5679         * modules/btowc (configure.ac): ... to here.
5680
5681 2011-05-21  Bruno Haible  <bruno@clisp.org>
5682
5683         atexit: Move AC_LIBOBJ invocations to module description.
5684         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5686         here...
5687         * modules/atexit (configure.ac): ... to here.
5688
5689 2011-05-05  Bruno Haible  <bruno@clisp.org>
5690
5691         atoll: Move AC_LIBOBJ invocations to module description.
5692         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5693         invocations from here...
5694         * modules/atoll (configure.ac): ... to here.
5695
5696 2011-05-05  Bruno Haible  <bruno@clisp.org>
5697
5698         argz: Move AC_LIBOBJ invocations to module description.
5699         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5700         * modules/argz (configure.ac): ... to here.
5701
5702 2011-05-05  Bruno Haible  <bruno@clisp.org>
5703
5704         alphasort: Move AC_LIBOBJ invocations to module description.
5705         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5706         gl_PREREQ_ALPHASORT invocations from here...
5707         * modules/alphasort (configure.ac): ... to here.
5708
5709 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5710
5711         verify: new macro verify_expr; verify_true deprecated
5712         * NEWS: Mention this.
5713         * doc/verify.texi (Compile-time Assertions): Document this.
5714         * lib/verify.h (verify_true): Deprecate.
5715         (verify_expr): New macro.
5716         * tests/test-verify.c (function): Test verify_expr.
5717
5718 2011-06-14  Jim Meyering  <meyering@redhat.com>
5719
5720         init.sh: give more portable redirection-related advice in a comment
5721         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5722         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5723         for lots of discussion.  Stefano Lattarini suggested the solution
5724         of putting "9>&2" after the command.  Reported by Bruno Haible.
5725
5726 2011-06-13  Bruno Haible  <bruno@clisp.org>
5727
5728         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5730         'none'.
5731
5732 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5733
5734         ftoastr: use strtof only if HAVE_STRTOF
5735         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5737         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5738         * modules/ftoastr (configure.ac): Check for strtof.
5739
5740 2011-06-13  Bruno Haible  <bruno@clisp.org>
5741
5742         gnulib-tool: Addendum to 2011-06-08 commit.
5743         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5744         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5745
5746 2011-06-13  Bruno Haible  <bruno@clisp.org>
5747
5748         fseeko: Provide a non-inline replacement of fseek().
5749         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5750         * modules/fseeko (Depends-on): Add fseek.
5751         * modules/fseek (License): Change to LGPLv2+.
5752
5753 2011-06-13  Bruno Haible  <bruno@clisp.org>
5754
5755         ftello: Provide a non-inline replacement of ftell().
5756         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5757         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5758         not have ftello() (such as on mingw).
5759         * modules/ftello (Depends-on): Add ftell.
5760         * modules/ftell (License): Change to LGPLv2+.
5761
5762 2011-05-07  Bruno Haible  <bruno@clisp.org>
5763
5764         ftell: Move AC_LIBOBJ invocations to module description.
5765         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5766         * modules/ftell (configure.ac): ... to here.
5767
5768 2011-05-07  Bruno Haible  <bruno@clisp.org>
5769
5770         ftello: Respect rules for use of AC_LIBOBJ.
5771         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5772         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5773         here...
5774         * modules/ftello (configure.ac): ... to here.
5775
5776 2011-05-07  Bruno Haible  <bruno@clisp.org>
5777
5778         fseeko: Simplify.
5779         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5780         (gl_FUNC_FSEEKO): Inline it here.
5781
5782 2011-05-07  Bruno Haible  <bruno@clisp.org>
5783
5784         fseek: Move AC_LIBOBJ invocations to module description.
5785         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5786         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5787         * modules/fseek (configure.ac): ... to here.
5788
5789 2011-05-07  Bruno Haible  <bruno@clisp.org>
5790
5791         fseek: Respect rules for use of AC_LIBOBJ.
5792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5793         here...
5794         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5795
5796 2011-05-07  Bruno Haible  <bruno@clisp.org>
5797
5798         fseeko: Respect rules for use of AC_LIBOBJ.
5799         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5800         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5801         here...
5802         * modules/fseeko (configure.ac): ... to here.
5803
5804 2011-06-13  Bruno Haible  <bruno@clisp.org>
5805
5806         gnulib-tool: Allow comments in the 'Depends-on' section.
5807         * doc/gnulib.texi (Module description): Mention comment syntax in the
5808         Depends-on section.
5809         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5810
5811 2011-06-13  Bruno Haible  <bruno@clisp.org>
5812
5813         file-set.h: guard __attibute__ use, now that it's not always defined
5814         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5815         versions that support it.  This fixes a coreutils build failure with
5816         the vendor cc on HP-UX 11.31.
5817
5818 2011-06-12  Bruno Haible  <bruno@clisp.org>
5819
5820         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5821         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5822         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5823         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5824         (acl, aclsort): New declarations.
5825         (aclv_nontrivial): New declaration.
5826         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5827         (file_has_acl): Read also the second kind of HP-UX ACLs.
5828         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5829         kind of HP-UX ACLs if the first kind fails.
5830         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5831         second kind of HP-UX ACLs.
5832         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5833         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5834         agree.
5835         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5836         hpuxjfs.
5837         Handle hpuxjfs.
5838         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5839         hpuxjfs.
5840         Handle hpuxjfs.
5841         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5842         (func_test_same_acls): Use both lsacl and getacl.
5843         Handle hpuxjfs.
5844         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5845         (func_test_same_acls): Use both lsacl and getacl.
5846         Handle hpuxjfs.
5847
5848 2011-06-12  Bruno Haible  <bruno@clisp.org>
5849
5850         acl: Complete the 2010-08-10 fix.
5851         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5852         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5853         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5854         explicitly.
5855         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5856         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5857
5858 2011-06-12  Bruno Haible  <bruno@clisp.org>
5859
5860         spawn-pipe tests: Comments.
5861         * tests/test-spawn-pipe-child.c (main): Update comment.
5862         Reported by James Youngman <jay@gnu.org>.
5863
5864 2011-06-11  James Youngman  <jay@gnu.org>
5865
5866         New module 'stat-size'.
5867         * modules/stat-size: New module.  Provides macros for accessing
5868         file size information in instances of struct stat.  Depends on the
5869         fileblocks module because it calls st_blocks.
5870         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5871         * doc/gnulib.texi: Include stat-size.texi.
5872         * doc/stat-size.texi: Documentation for this module.
5873         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5874         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5875         AC_STRUCT_ST_BLOCKS.
5876
5877 2011-06-09  Bruno Haible  <bruno@clisp.org>
5878
5879         thread: Support pthreads-win32.
5880         * lib/glthread/thread.h (gl_thread_self): Define differently on
5881         pthreads-win32.
5882         (gl_null_thread): New declaration.
5883         (gl_thread_self_pointer): New macro.
5884         * lib/glthread/thread.c (gl_null_thread): New constant.
5885         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5886         gl_thread_self.
5887         * tests/test-tls.c: Likewise.
5888         Suggested by Paul Eggert. Reported by Eric Blake.
5889
5890 2011-06-09  Bruno Haible  <bruno@clisp.org>
5891
5892         thread: Fix confusion between NULL and 0.
5893         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5894         Reported by Paul Eggert.
5895
5896 2011-06-09  Bruno Haible  <bruno@clisp.org>
5897
5898         spawn-pipe tests: Avoid test failure on HP-UX 11.
5899         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5900         is closed.
5901
5902 2011-06-09  Bruno Haible  <bruno@clisp.org>
5903
5904         acl tests: Fix compilation error on HP-UX 11.
5905         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5906
5907 2011-06-09  Bruno Haible  <bruno@clisp.org>
5908
5909         rmdir: Avoid test failure on HP-UX 10.20.
5910         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5911         EEXIST.
5912
5913 2011-06-08  Eric Blake  <eblake@redhat.com>
5914
5915         perror: fix test on mingw
5916         * modules/perror-tests (Depends-on): Add dup2.
5917
5918         strerror_r-posix: fix on MacOS
5919         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5921         logic bug.
5922         * lib/strerror_r.c (strerror_r): Fix the bug.
5923         * lib/strerror.c (strerror): Likewise.
5924         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5925         problem.
5926         * doc/posix-functions/strerror.texi (strerror): Likewise.
5927         * doc/posix-functions/perror.texi (perror): Likewise.
5928         * tests/test-strerror.c (main): Enhance test.
5929         * tests/test-strerror_r.c (main): Likewise.
5930
5931 2011-06-08  Bruno Haible  <bruno@clisp.org>
5932
5933         gnulib-tool: Better isolation between different gnulib-tool invocations.
5934         * gnulib-tool: New option --witness-c-macro.
5935         (witness_c_macro): New variable.
5936         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5937         AM_CPPFLAGS define it as a C macro.
5938         (func_emit_tests_Makefile_am): Likewise.
5939         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5940         read it from there.
5941         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5942         m4_define, not AC_DEFUN.
5943         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5944         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5945         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5946         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5947         s|...|...|, to substitute the values of the GNULIB_* module indicator
5948         variables.
5949         * modules/dirent (Makefile.am): Likewise.
5950         * modules/fcntl-h (Makefile.am): Likewise.
5951         * modules/iconv-h (Makefile.am): Likewise.
5952         * modules/langinfo (Makefile.am): Likewise.
5953         * modules/locale (Makefile.am): Likewise.
5954         * modules/math (Makefile.am): Likewise.
5955         * modules/netdb (Makefile.am): Likewise.
5956         * modules/poll-h (Makefile.am): Likewise.
5957         * modules/pty (Makefile.am): Likewise.
5958         * modules/search (Makefile.am): Likewise.
5959         * modules/signal (Makefile.am): Likewise.
5960         * modules/spawn (Makefile.am): Likewise.
5961         * modules/stdio (Makefile.am): Likewise.
5962         * modules/stdlib (Makefile.am): Likewise.
5963         * modules/string (Makefile.am): Likewise.
5964         * modules/sys_ioctl (Makefile.am): Likewise.
5965         * modules/sys_select (Makefile.am): Likewise.
5966         * modules/sys_socket (Makefile.am): Likewise.
5967         * modules/sys_stat (Makefile.am): Likewise.
5968         * modules/sys_times (Makefile.am): Likewise.
5969         * modules/sys_utsname (Makefile.am): Likewise.
5970         * modules/sys_wait (Makefile.am): Likewise.
5971         * modules/termios (Makefile.am): Likewise.
5972         * modules/time (Makefile.am): Likewise.
5973         * modules/unistd (Makefile.am): Likewise.
5974         * modules/wchar (Makefile.am): Likewise.
5975
5976 2011-06-08  Eric Blake  <eblake@redhat.com>
5977
5978         strerror: simplify replacement
5979         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5980         * modules/strerror (configure.ac): No prereqs needed here...
5981         * modules/strerror-override (configure.ac): ...but this needs it.
5982         (Files): Add file for needed prereq macro.
5983
5984 2011-06-08  Bruno Haible  <bruno@clisp.org>
5985
5986         strerror_r-posix: Tweaks.
5987         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5988         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5989         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5990         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5991         (gl_FUNC_STRERROR_R): ... to here.
5992         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5993
5994 2011-06-07  Eric Blake  <eblake@redhat.com>
5995
5996         perror: document fixed bugs
5997         * doc/posix-functions/perror.texi (perror): Document recent
5998         patches.
5999
6000 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         stat-time: get_stat_birthtime failure is better-defined
6003         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6004         return a timestamp whose tv_sec and tv_nsec values are both -1.
6005         Previously, the spec said only that the tv_nsec value was negative.
6006         This upward-compatible change simplifies GNU tar a bit.
6007
6008 2011-06-07  Eric Blake  <eblake@redhat.com>
6009
6010         strerror_r-posix: work around cygwin 1.7.9
6011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6012         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6013         bug without replacing strerror_r.
6014         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6015         strerror_r is buggy, but without requiring strerror_r compilation.
6016         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6017
6018         test-perror: relax test to ignore cygwin bug
6019         * tests/test-perror2.c (main): Relax test on requiring detection
6020         of stream errors, and use unbuffered stream.
6021         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6022         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6023         * doc/posix-functions/fputc.texi (fputc): Likewise.
6024         * doc/posix-functions/fputs.texi (fputs): Likewise.
6025         * doc/posix-functions/fputws.texi (fputws): Likewise.
6026         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6027         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6028         * doc/posix-functions/getopt.texi (getopt): Likewise.
6029         * doc/posix-functions/perror.texi (perror): Likewise.
6030         * doc/posix-functions/printf.texi (printf): Likewise.
6031         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6032         * doc/posix-functions/psignal.texi (psignal): Likewise.
6033         * doc/posix-functions/putc.texi (putc): Likewise.
6034         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6035         Likewise.
6036         * doc/posix-functions/putchar.texi (putchar): Likewise.
6037         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6038         Likewise.
6039         * doc/posix-functions/puts.texi (puts): Likewise.
6040         * doc/posix-functions/putwc.texi (putwc): Likewise.
6041         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6042         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6043         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6044         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6045         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6046         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6047         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6048         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6049
6050 2011-05-22  Bruno Haible  <bruno@clisp.org>
6051
6052         strerror: Move AC_LIBOBJ invocations to module description.
6053         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6054         gl_PREREQ_STRERROR invocations from here...
6055         * modules/strerror (configure.ac): ... to here.
6056
6057 2011-05-21  Bruno Haible  <bruno@clisp.org>
6058
6059         perror: Use common idiom.
6060         * modules/perror (configure.ac): Reorder statements.
6061
6062 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6063
6064         tests: fix usage message in 'mktempd_'
6065         * tests/init.sh (mktempd_): In the usage message, use literal
6066         'mktempd_', not '$ME' (which is even undefined), as the name of
6067         the subroutine.
6068
6069 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6070
6071         tests init: new function 'fatal_', for hard errors
6072         Before this patch, the only way offered by tests/init.sh to
6073         properly signal a hard error was the `framework_failure_'
6074         function.  But the error message issued by that function,
6075         as its name would suggest, refers to a set-up failure in the
6076         testsuite, while hard errors can obviously also be due to
6077         other reasons.  The best way to fix this inconsistency is to
6078         introduce a new function with a more general error message.
6079         * tests/init.sh (fatal_): New function.
6080
6081 2011-06-06  Eric Blake  <eblake@redhat.com>
6082
6083         canonicalize-lgpl: use common idiom
6084         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6085         over newer POSIX -Rf.
6086         Reported by Bruno Haible.
6087
6088         canonicalize-lgpl: work around AIX realpath bug
6089         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6090         * doc/posix-functions/realpath.texi (realpath): Document it.
6091         Reported by Bruno Haible.
6092
6093         strerror: work around FreeBSD bug
6094         * lib/strerror.c (strerror): Special case 0.
6095         Reported by Bruno Haible.
6096
6097         strerror-override: avoid bloating errno module
6098         * modules/errno (Files, configure.ac): Move replacement strings...
6099         * modules/strerror-override: ...to new module.
6100         * modules/strerror (Depends-on): Add strerror-override.
6101         * modules/strerror_r-posix (Depends-on): Likewise.
6102         * MODULES.html.sh: Document new module.
6103         Reported by Bruno Haible.
6104
6105 2011-06-06  Bruno Haible  <bruno@clisp.org>
6106
6107         spawn-pipe tests: Rename program.
6108         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6109         * tests/test-spawn-pipe-child.c: Update comment.
6110         * tests/test-spawn-pipe.sh: Update.
6111         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6112
6113         spawn-pipe tests: Link the child program only against libc.
6114         * tests/test-spawn-pipe-child.c: New file, extracted from
6115         tests/test-spawn-pipe.c.
6116         (main): Expect only one argument.
6117         (is_open): New function, copied from tests/test-pipe.c.
6118         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6119         (child_main): Remove function.
6120         (test_pipe): Pass only one argument to the child program.
6121         (main): Remove child process code. Expect the child program's name as
6122         first argument.
6123         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6124         argument.
6125         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6126         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6127         test-spawn-pipe-child against no libraries.
6128
6129 2011-06-06  Bruno Haible  <bruno@clisp.org>
6130
6131         careadlinkat: Avoid mismatch between ssize_t and int.
6132         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6133         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6134
6135 2011-06-06  Jim Meyering  <meyering@redhat.com>
6136
6137         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6138         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6139         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6140
6141 2011-06-05  Bruno Haible  <bruno@clisp.org>
6142
6143         ansi-c++-opt: Interoperability with libtool.
6144         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6145         set the variable to "no", not to ":".
6146         * NEWS: Mention the change.
6147
6148 2011-06-05  Bruno Haible  <bruno@clisp.org>
6149
6150         acl: Fix test failure on AIX 7.
6151         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6152         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6153
6154 2011-06-05  Bruno Haible  <bruno@clisp.org>
6155
6156         pipe-filter-ii: Fix test failure on AIX and IRIX.
6157         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6158         with EAGAIN, retry with a smaller buffer size.
6159
6160 2011-06-05  Bruno Haible  <bruno@clisp.org>
6161
6162         localename: Fix link dependencies.
6163         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6164         * modules/localename-tests (Makefile.am): Link test-localename with
6165         $(LIBTHREAD).
6166
6167 2011-06-05  Bruno Haible  <bruno@clisp.org>
6168
6169         error: Avoid gcc warning.
6170         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6171
6172 2011-06-05  Bruno Haible  <bruno@clisp.org>
6173
6174         unsetenv: Avoid gcc warning.
6175         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6176
6177 2011-06-05  Bruno Haible  <bruno@clisp.org>
6178
6179         setenv: Avoid gcc warning.
6180         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6181
6182 2011-06-05  Bruno Haible  <bruno@clisp.org>
6183
6184         sys_select: Ensure memset is declared also on AIX 7.
6185         * lib/sys_select.in.h: Include <string.h> also on AIX.
6186         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6187         self-contained also on AIX 7.1.
6188
6189 2011-06-04  Jim Meyering  <meyering@redhat.com>
6190
6191         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6192         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6193         function name, "error".
6194         (_gl_translatable_diag_func_re): New configurable variable.
6195
6196 2011-06-04  Bruno Haible  <bruno@clisp.org>
6197
6198         getopt: Avoid gcc warning.
6199         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6200
6201 2011-06-04  Bruno Haible  <bruno@clisp.org>
6202
6203         strerror_r: Fix comments.
6204         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6205         commit.
6206
6207 2011-06-04  Bruno Haible  <bruno@clisp.org>
6208
6209         perror: Fix compilation error.
6210         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6211         Undefine fprintf, not sprintf.
6212         * modules/perror (Depends-on): Remove intprops, verify.
6213
6214 2011-06-04  Bruno Haible  <bruno@clisp.org>
6215
6216         setlocale: Enable replacement on Cygwin 1.5.
6217         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6218         Cygwin 1.5.x.
6219         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6220         LC_CTYPE category also exists on Cygwin 1.5.x.
6221
6222 2011-06-04  Bruno Haible  <bruno@clisp.org>
6223
6224         strerror-override: Don't disable symbol renamings.
6225         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6226         * lib/strerror-override.c: Include config.h.
6227         (strerror_override): Don't undefine.
6228
6229 2011-06-03  Bruno Haible  <bruno@clisp.org>
6230
6231         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6232         * lib/localename.h: Update copyright header.
6233         * lib/localename.c: Likewise.
6234         * lib/relocatable.h: Likewise.
6235         * lib/relocatable.c: Likewise.
6236
6237 2011-06-02  Bruno Haible  <bruno@clisp.org>
6238
6239         doc: Fix a module name.
6240         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6241
6242 2011-06-02  Bruno Haible  <bruno@clisp.org>
6243
6244         pipe2: Remove dependency on 'nonblocking' module.
6245         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6246         O_NONBLOCK is defined by gnulib.
6247         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6248         is zero.
6249         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6250         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6251         defined by gnulib.
6252         (get_nonblocking_flag): New function.
6253         (main): Test O_NONBLOCK flag only if it is nonzero.
6254         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6255
6256 2011-06-03  Jim Meyering  <meyering@redhat.com>
6257
6258         maint: three new prohibit-header-without-use rules
6259         Prohibit use of cloexec.h, posixver.h, same.h without use.
6260         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6261         (sc_prohibit_posixver_without_use): Likewise.
6262         (sc_prohibit_same_without_use): Likewise.
6263
6264 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6265
6266         allocator: 'die' routine is now given requested size
6267         * lib/allocator.h (struct allocator.die): New size arg.
6268         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6269         If the actual problem is an ssize_t limitation, not a size_t or
6270         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6271
6272 2011-06-01  Eric Blake  <eblake@redhat.com>
6273
6274         strerror: drop strerror_r dependency
6275         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6276         * lib/strerror-override.c (strerror_override): ...to new file.
6277         * lib/strerror-override.h: Add prototype.
6278         * lib/strerror-impl.h: Delete.
6279         * lib/strerror.c (strerror): New implementation.
6280         * modules/errno (Files): Add new files.
6281         (configure.ac): Compile new file as appropriate.
6282         * modules/strerror (Files): Drop unused file.
6283         (Depends-on): Drop strerror_r-posix.
6284         * MODULES.html.sh: Document strerror_r-posix.
6285         Requested by Sam Steingold.
6286
6287         perror: call strerror_r directly
6288         * modules/perror (Files): Drop strerror-impl.h.
6289         * lib/perror.c (perror): Use our own stack buffer, rather than
6290         calling a wrapper that uses static storage.
6291         * doc/posix-functions/perror.texi (perror): Document a limitation
6292         of our replacement.
6293
6294         strerror_r: fix includes for FreeBSD
6295         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6296         since we use abort on some platforms.
6297         Reported by Matthias Bolte.
6298
6299 2011-05-31  Bruno Haible  <bruno@clisp.org>
6300
6301         Fix link errors in tests: openat-die uses gettext-h.
6302         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6303         against $(LIBINTL).
6304         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6305         against $(LIBINTL).
6306         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6307         $(LIBINTL).
6308         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6309         against $(LIBINTL).
6310         * modules/linkat-tests (Makefile.am): Link test-linkat against
6311         $(LIBINTL).
6312         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6313         $(LIBINTL).
6314         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6315         against $(LIBINTL).
6316         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6317         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6318         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6319         $(LIBINTL).
6320         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6321         $(LIBINTL).
6322         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6323         $(LIBINTL).
6324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6325
6326 2011-05-31  Bruno Haible  <bruno@clisp.org>
6327
6328         Fix link errors in tests: wait-process uses gettext-h.
6329         * modules/nonblocking-pipe-tests (Makefile.am): Set
6330         test_nonblocking_pipe_main_LDADD.
6331         * modules/nonblocking-socket-tests (Makefile.am): Link
6332         test-nonblocking-socket-main against $(LIBINTL).
6333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6334
6335 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6336
6337         assert-h: work around 'verify' incompatibility
6338         * lib/verify.h: Use @...@ directives, not ifdef.
6339         * modules/assert-h (assert.h): Implement the directives.
6340         (assert.h): Substitute the symbol-prefix more consistently.
6341
6342 2011-05-29  Jim Meyering  <meyering@redhat.com>
6343
6344         trim: remove three superfluous assignments
6345         * lib/trim.c (trim2): Remove three superfluous assignments
6346         and correct brace positioning.
6347
6348 2011-05-29  Bruno Haible  <bruno@clisp.org>
6349
6350         wctype-h: Avoid namespace pollution on Solaris 2.6.
6351         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6352         identifiers.
6353         * doc/posix-headers/wctype.texi: Mention the problem.
6354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6355
6356 2011-05-28  Jim Meyering  <meyering@redhat.com>
6357
6358         parse-datetime.y: accommodate -Wstrict-overflow
6359         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6360         placate -Wstrict-overflow.
6361
6362         trim: avoid a warning from -O2 -Wstrict-overflow
6363         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6364
6365 2011-05-29  Bruno Haible  <bruno@clisp.org>
6366
6367         gnulib-tool: Fix bug in yesterday's commit.
6368         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6369         twice.
6370
6371 2011-05-29  Bruno Haible  <bruno@clisp.org>
6372
6373         Allow multiple gnulib generated include files to be combined.
6374         * gnulib-tool (func_compute_include_guard_prefix): New function.
6375         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6376         ${gl_include_guard_prefix} references.
6377         (func_import, func_create_testdir): Invoke
6378         func_compute_include_guard_prefix.
6379         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6380         * lib/ctype.in.h: Likewise.
6381         * lib/dirent.in.h: Likewise.
6382         * lib/errno.in.h: Likewise.
6383         * lib/fcntl.in.h: Likewise.
6384         * lib/float.in.h: Likewise.
6385         * lib/getopt.in.h: Likewise.
6386         * lib/iconv.in.h: Likewise.
6387         * lib/langinfo.in.h: Likewise.
6388         * lib/locale.in.h: Likewise.
6389         * lib/math.in.h: Likewise.
6390         * lib/netdb.in.h: Likewise.
6391         * lib/netinet_in.in.h: Likewise.
6392         * lib/poll.in.h: Likewise.
6393         * lib/pthread.in.h: Likewise.
6394         * lib/pty.in.h: Likewise.
6395         * lib/sched.in.h: Likewise.
6396         * lib/se-selinux.in.h: Likewise.
6397         * lib/search.in.h: Likewise.
6398         * lib/signal.in.h: Likewise.
6399         * lib/spawn.in.h: Likewise.
6400         * lib/stdarg.in.h: Likewise.
6401         * lib/stddef.in.h: Likewise.
6402         * lib/stdint.in.h: Likewise.
6403         * lib/stdio.in.h: Likewise.
6404         * lib/stdlib.in.h: Likewise.
6405         * lib/string.in.h: Likewise.
6406         * lib/strings.in.h: Likewise.
6407         * lib/sys_file.in.h: Likewise.
6408         * lib/sys_ioctl.in.h: Likewise.
6409         * lib/sys_select.in.h: Likewise.
6410         * lib/sys_socket.in.h: Likewise.
6411         * lib/sys_stat.in.h: Likewise.
6412         * lib/sys_time.in.h: Likewise.
6413         * lib/sys_times.in.h: Likewise.
6414         * lib/sys_uio.in.h: Likewise.
6415         * lib/sys_utsname.in.h: Likewise.
6416         * lib/sys_wait.in.h: Likewise.
6417         * lib/sysexits.in.h: Likewise.
6418         * lib/termios.in.h: Likewise.
6419         * lib/time.in.h: Likewise.
6420         * lib/unistd.in.h: Likewise.
6421         * lib/wchar.in.h: Likewise.
6422         * lib/wctype.in.h: Likewise.
6423         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6424         * modules/ctype (Makefile.am): Likewise.
6425         * modules/dirent (Makefile.am): Likewise.
6426         * modules/errno (Makefile.am): Likewise.
6427         * modules/fcntl-h (Makefile.am): Likewise.
6428         * modules/float (Makefile.am): Likewise.
6429         * modules/getopt-posix (Makefile.am): Likewise.
6430         * modules/iconv-h (Makefile.am): Likewise.
6431         * modules/langinfo (Makefile.am): Likewise.
6432         * modules/locale (Makefile.am): Likewise.
6433         * modules/math (Makefile.am): Likewise.
6434         * modules/netdb (Makefile.am): Likewise.
6435         * modules/netinet_in (Makefile.am): Likewise.
6436         * modules/poll-h (Makefile.am): Likewise.
6437         * modules/pthread (Makefile.am): Likewise.
6438         * modules/pty (Makefile.am): Likewise.
6439         * modules/sched (Makefile.am): Likewise.
6440         * modules/search (Makefile.am): Likewise.
6441         * modules/selinux-h (Makefile.am): Likewise.
6442         * modules/signal (Makefile.am): Likewise.
6443         * modules/spawn (Makefile.am): Likewise.
6444         * modules/stdarg (Makefile.am): Likewise.
6445         * modules/stddef (Makefile.am): Likewise.
6446         * modules/stdint (Makefile.am): Likewise.
6447         * modules/stdio (Makefile.am): Likewise.
6448         * modules/stdlib (Makefile.am): Likewise.
6449         * modules/string (Makefile.am): Likewise.
6450         * modules/strings (Makefile.am): Likewise.
6451         * modules/sys_file (Makefile.am): Likewise.
6452         * modules/sys_ioctl (Makefile.am): Likewise.
6453         * modules/sys_select (Makefile.am): Likewise.
6454         * modules/sys_socket (Makefile.am): Likewise.
6455         * modules/sys_stat (Makefile.am): Likewise.
6456         * modules/sys_time (Makefile.am): Likewise.
6457         * modules/sys_times (Makefile.am): Likewise.
6458         * modules/sys_uio (Makefile.am): Likewise.
6459         * modules/sys_utsname (Makefile.am): Likewise.
6460         * modules/sys_wait (Makefile.am): Likewise.
6461         * modules/sysexits (Makefile.am): Likewise.
6462         * modules/termios (Makefile.am): Likewise.
6463         * modules/time (Makefile.am): Likewise.
6464         * modules/unistd (Makefile.am): Likewise.
6465         * modules/wchar (Makefile.am): Likewise.
6466         * modules/wctype-h (Makefile.am): Likewise.
6467         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6468
6469 2011-05-29  Bruno Haible  <bruno@clisp.org>
6470
6471         assert-h: Allow multiple gnulib generated replacements to coexist.
6472         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6473
6474 2011-05-29  Bruno Haible  <bruno@clisp.org>
6475
6476         argp: Allow coexistence with strerror_r-posix module.
6477         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6478         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6479         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6480         not the glibc signature.
6481
6482 2011-05-28  Bruno Haible  <bruno@clisp.org>
6483
6484         gnulib-tool: Alternative structure of testdirs, similar to --import.
6485         * gnulib-tool: New option --single-configure.
6486         (func_usage): Document it.
6487         (single_configure): New variable.
6488         (func_modules_transitive_closure_separately,
6489         func_modules_transitive_closure_separately,
6490         func_determine_use_libtests, func_modules_add_dummy_separately,
6491         func_modules_to_filelist_separately): New functions, extracted from
6492         func_import.
6493         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6494         (func_import): Use the new functions.
6495         (func_create_testdir): Set final_modules. Handle $single_configure =
6496         true case.
6497
6498 2011-05-28  Bruno Haible  <bruno@clisp.org>
6499
6500         getloadavg: Remove an unreliable safety check.
6501         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6502         getloadavg.c is in place.
6503         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6504         Reported by Sam Steingold <sds@gnu.org>.
6505
6506 2011-05-28  Bruno Haible  <bruno@clisp.org>
6507
6508         doc: Cleanup yet another file produced by texinfo.tex.
6509         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6510
6511 2011-05-28  Bruno Haible  <bruno@clisp.org>
6512
6513         Finish the conditional dependencies mechanism.
6514         * gnulib-tool: New option --no-conditional-dependencies.
6515         (func_usage): Document it. Don't mark --conditional-dependencies as
6516         experimental.
6517         (cond_dependencies): The possible values can now be true, false, empty.
6518         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6519         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6520         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6521
6522 2011-05-28  Bruno Haible  <bruno@clisp.org>
6523
6524         doc: Use a recent texinfo.tex.
6525         * doc/Makefile (tex_opts): New variable.
6526         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6527
6528 2011-05-28  Jim Meyering  <meyering@redhat.com>
6529
6530         intprops.h: adjust comment to match code change
6531         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6532         only once, it *may* have side effects.  Also fix an unrelated typo.
6533         (_GL_INT_SIGNED): Likewise.
6534
6535 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6536
6537         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6538
6539 2011-05-26  Bruno Haible  <bruno@clisp.org>
6540
6541         mbsrchr: Avoid collision with system function on Interix.
6542         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6543         Reported by Markus Duft <mduft@gentoo.org>.
6544
6545 2011-05-15  James Youngman  <jay@gnu.org>
6546
6547         getopt: for ambiguous options, enumerate the possibilities.
6548         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6549         the ambiguous options when an ambiguous prefix is given. This was
6550         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6551         glibc change was
6552         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6553
6554 2011-05-25  Eric Blake  <eblake@redhat.com>
6555
6556         getcwd: work around mingw bug
6557         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6558         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6559         Reported by Matthias Bolte.
6560
6561 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6562
6563         test-intprops: disable -Wtype-limits diagnostics
6564         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6565         diagnostics.  Otherwise, the integer overflow macros generate many
6566         diagnostics.  Reported by Jim Meyering in
6567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6568
6569         intprops: shorten, to pacify gcc -Woverlength-strings
6570         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6571         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6572         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6573         likely to run afoul of C compiler limits for string constant lengths.
6574         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6575
6576 2011-05-24  Eric Blake  <eblake@redhat.com>
6577
6578         docs: document recently fixed glibc printf bug
6579         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6580         * doc/posix-functions/printf.texi (printf): Likewise.
6581         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6582         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6583
6584         closein-tests: convert to init.sh
6585         * modules/closein-tests (Files): Add init.sh
6586         * tests/test-closein.sh Use it.
6587
6588         yesno-tests: convert to init.sh
6589         * modules/yesno-tests (Files): Add init.sh.
6590         * tests/test-yesno.sh: Use it.
6591
6592         atexit-tests: ensure reliable exit status
6593         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6594         Reported by Bruno Haible.
6595
6596 2011-05-24  Bruno Haible  <bruno@clisp.org>
6597
6598         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6600         gl_PREREQ_STRERROR_R invocations from here...
6601         * modules/strerror_r-posix (configure.ac): ... to here.
6602
6603 2011-05-24  Eric Blake  <eblake@redhat.com>
6604
6605         strerror_r: fix missing header
6606         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6607
6608         strerror_r: fix AIX test failures
6609         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6610         ERANGE failure.
6611
6612         strerror_r: fix Solaris test failures
6613         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6614         failures.
6615         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6616
6617         strerror_r: enforce POSIX recommendations
6618         * lib/strerror_r.c (safe_copy): New helper method.
6619         (strerror_r): Guarantee a non-empty string.
6620         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6621         recent POSIX rulings and to match our strerror guarantees.
6622         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6623
6624 2011-05-24  Jim Meyering  <meyering@redhat.com>
6625
6626         test-perror2.c: avoid warning about unused variable
6627         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6628
6629 2011-05-24  Eric Blake  <eblake@redhat.com>
6630
6631         perror: avoid spurious test failure on HP-UX
6632         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6633
6634         tests: fix logic bug in init.sh
6635         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6636         shell.
6637
6638 2011-05-24  Jim Meyering  <meyering@redhat.com>
6639
6640         utimensat: do not reference an out-of-scope buffer
6641         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6642         declared in an inner scope, yet "times" would be dereferenced outside
6643         the scope in which "ts" was valid.
6644         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6645         of ts[2] "out/up", so that the use of aliased "times" (via
6646         "times = ts;") does not end up referencing an out-of-scope "ts"
6647
6648         opendir-safer.c: don't clobber errno; don't close negative FD
6649         * lib/opendir-safer.c (opendir_safer):
6650         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6651         file descriptor, and more importantly, don't clobber the
6652         offending errno value with EINVAL.  Before, upon failure
6653         of dup_safer, we would pass the negative file descriptor to
6654         fdopendir, which would clobber errno.
6655
6656 2011-05-23  Bruno Haible  <bruno@clisp.org>
6657
6658         idcache: Fix module description.
6659         * modules/idcache (Include): Set to "idcache.h".
6660
6661 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         gnulib-tool: fix portability problem with MacOS sed
6664         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6665         before the "}".  Problem reported by Leo in
6666         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6667         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6668         sed_extract_condition1, sed_extract_condition2.
6669
6670 2011-05-23  Bruno Haible  <bruno@clisp.org>
6671
6672         hash: Simplify autoconf macro.
6673         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6674
6675 2011-05-23  Bruno Haible  <bruno@clisp.org>
6676
6677         getugroups: Fix module description.
6678         * modules/getugroups (Include): Set to "getugroups.h".
6679
6680 2011-05-23  Bruno Haible  <bruno@clisp.org>
6681
6682         linkat: Simplify autoconf macro.
6683         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6684
6685 2011-05-23  Bruno Haible  <bruno@clisp.org>
6686             Eric Blake  <eblake@redhat.com>
6687
6688         linkat, renameat: Update dependencies.
6689         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6690         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6691         symlinkat.
6692
6693 2011-05-23  Jim Meyering  <meyering@redhat.com>
6694
6695         maint.mk: more tight_scope improvements
6696         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6697         (_gl_TS_headers): Define only in if-0'd block.
6698         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6699         sometimes we must *not* use it.  Adjust uses accordingly.
6700         (sc_tight_scope): Use much simpler grep-based test to determine
6701         whether we skip this rule.
6702
6703         maint.mk: generalize/improve the tight-scope rule
6704         * top/maint.mk: Emit a warning when the test is skipped.
6705         (_gl_TS_dir): Add $(srcdir)/ prefix.
6706         (_gl_TS_function_match): Simplify, rather than trying
6707         to enumerate common types.  Otherwise, it would fail to match an
6708         "extern unsigned char const *" declaration in idutils.
6709         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6710         a way to support use of that type of macro.
6711         (_gl_TS_var_match): Simplify regexp.
6712         (_gl_TS_obj_files): New configurable variable.
6713         (_gl_TS_headers): Likewise.
6714
6715 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6716
6717         verify: fix bug when gnulib <assert.h> is also included
6718         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6719         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6720         Perhaps there's a better way, but this fixes the immediate problem.
6721         Problem reported by Bruno Haible in
6722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6723
6724 2011-05-22  Bruno Haible  <bruno@clisp.org>
6725
6726         xgetcwd: Simplify autoconf macro.
6727         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6728
6729 2011-05-22  Bruno Haible  <bruno@clisp.org>
6730
6731         New module 'mktime-internal'.
6732         * modules/mktime-internal: New file.
6733         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6734         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6735         mktime_internal as a C macro if libc has __mktime_internal.
6736         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6737         conditions.
6738         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6739
6740 2011-05-22  Bruno Haible  <bruno@clisp.org>
6741
6742         timegm: Correct mktime replacement statements.
6743         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6744         defining mktime as a C macro. This completes a 2009-07-28 commit.
6745
6746 2011-05-22  Bruno Haible  <bruno@clisp.org>
6747
6748         timegm: Simplify autoconf macro.
6749         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6750
6751 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         clock-time: change to LGPLv2+.
6754         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6755         BSD-like but we have no mark for that; this is good enough for now.
6756
6757 2011-05-21  Bruno Haible  <bruno@clisp.org>
6758
6759         strerror_r: Fix comments.
6760         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6761
6762 2011-05-21  Bruno Haible  <bruno@clisp.org>
6763
6764         relocatable-prog-wrapper: Fix possible link error.
6765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6766         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6767         (gl_FUNC_SETENV): ... to here.
6768         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6769         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6770
6771 2011-05-21  Bruno Haible  <bruno@clisp.org>
6772
6773         relocatable-prog-wrapper: Assume strerror() exists.
6774         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6775         m4/strerror.m4.
6776         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6777         * lib/relocwrapper.c: Remove mention of strerror module.
6778         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6780         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6781         C macro.
6782
6783 2011-05-21  Bruno Haible  <bruno@clisp.org>
6784
6785         select: Simplify replacement idiom.
6786         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6787         Win32 platforms.
6788         * lib/sys_select.in.h (select): Simplify accordingly.
6789         * modules/select (Depends-on): Likewise.
6790
6791 2011-05-21  Bruno Haible  <bruno@clisp.org>
6792
6793         mkdir-p: Simplify autoconf macro.
6794         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6795         gl_FUNC_LCHOWN.
6796
6797 2011-05-21  Eric Blake  <eblake@redhat.com>
6798
6799         strerror_r: avoid clobbering strerror on cygwin
6800         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6801         fall back instead to sys_errlist.
6802         * modules/strerror (configure.ac): Add witness.
6803         * tests/test-strerror_r.c (main): Enhance test.
6804         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6805         * tests/test-perror2.c (main): Free memory before exit.
6806
6807 2011-05-21  Bruno Haible  <bruno@clisp.org>
6808
6809         mkdtemp: Use gnulib naming conventions.
6810         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6811         * modules/mkdtemp (configure.ac): Update.
6812
6813 2011-05-20  Eric Blake  <eblake@redhat.com>
6814
6815         strerror_r: avoid corrupting errno on Solaris
6816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6817         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6818
6819         strerror_r: avoid compiler warning
6820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6821
6822         strerror_r: simplify AIX code
6823         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6824
6825         test-perror: avoid spurious failure on FreeBSD
6826         * modules/perror-tests (Depends-on): Add strerror, now that
6827         strerror_r no longer pulls it in.
6828
6829 2011-05-20  Bruno Haible  <bruno@clisp.org>
6830
6831         strerror_r-posix: Remove unused dependencies.
6832         * modules/strerror_r-posix (Depends-on): Remove strerror.
6833         Reported by Eric Blake.
6834
6835 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6836
6837         intprops: remove assumption about A|B representation
6838         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6839         is a valid integer if both A and B are.  Although this is true for
6840         all known practical hosts, the C standard doesn't guarantee it,
6841         and the code need not assume it.  Also, this change may work around
6842         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6844
6845 2011-05-20  Eric Blake  <eblake@redhat.com>
6846
6847         perror: work around FreeBSD bug
6848         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6849         is broken.  Move AC_LIBOBJ...
6850         * modules/perror (configure.ac): Here.
6851         * doc/posix-functions/perror.texi (perror): Document this.
6852         * tests/test-perror2.c (main): Enhance test.
6853
6854         test-perror: check for strerror interactions
6855         * tests/macros.h (STREQ): Add macro.
6856         * modules/perror-tests (Files): Add second test.
6857         * tests/test-perror2.c (main): New file.
6858         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6859
6860         test-perror: rewrite to use init script
6861         * modules/perror-tests (Files): Add init.sh.
6862         * tests/test-perror.sh: Use temporary directory.
6863
6864 2011-05-20  Jim Meyering  <meyering@redhat.com>
6865
6866         maint: replace misused "a" with "an"
6867         * doc/intprops.texi: "a integer"
6868         * doc/regex.texi: "a explanation"
6869         * lib/alignof.h: "a object"
6870         * lib/argmatch.h: "a explanation"
6871         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6872         * lib/stdint.in.h: "a integer"
6873         * lib/userspec.c: "a owner"
6874         * doc/gnulib.texi: Fix "a idea", and reword.
6875
6876 2011-05-19  Jim Meyering  <meyering@redhat.com>
6877
6878         maint: correct misuse of "a" and "an"
6879         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6880         * lib/argp-help.c: "an docum...": s/an/a/
6881         * lib/argp-parse.c: "An vector": s/An/A/
6882         * lib/execute.c: "an native": s/an/a/
6883         * lib/spawn-pipe.c: Likewise.
6884         * lib/gc.h: "an Gc_rc": s/an/a/
6885         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6886         * lib/fts.c: "an stat.st_dev": s/an/a/
6887
6888 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6889
6890         intprops-tests: work around HP-UX 11.23 cc bug with constants
6891         * tests/test-intprops.c (VERIFY): New macro.
6892         (main): Use it, instead of verify, to work around the compiler bug; see
6893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6894
6895         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6896         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6897         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6898         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6899         (_GL_REMAINDER_OVERFLOW): Use it.
6900
6901         intprops-tests: revert unsigned part of previous change
6902         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6903         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6904         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6906
6907 2011-05-19  Bruno Haible  <bruno@clisp.org>
6908
6909         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6910         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6911         strerror_r() returned without filling the buffer.
6912         Reported by Eric Blake.
6913
6914 2011-05-19  Eric Blake  <eblake@redhat.com>
6915
6916         strerror_r: guarantee unchanged errno
6917         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6918         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6919         failure.
6920         * tests/test-strerror_r.c (main): Enhance test.
6921
6922 2011-05-19  Bruno Haible  <bruno@clisp.org>
6923
6924         strerror_r: Reorder #if blocks.
6925         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6926         for consistency with the previous commit.
6927
6928 2011-05-19  Bruno Haible  <bruno@clisp.org>
6929
6930         perror: Avoid clobbering the strerror buffer when possible.
6931         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6932         * lib/strerror.c: Include it.
6933         * modules/strerror (Files): Add lib/strerror-impl.h.
6934         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6935         (my_strerror): New function, defined through lib/strerror-impl.h.
6936         (perror): Use it instead of strerror.
6937         * modules/perror (Files): Add lib/strerror-impl.h.
6938         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6939
6940 2011-05-19  Eric Blake  <eblake@redhat.com>
6941
6942         strerror_r: fix on newer cygwin
6943         * lib/strerror_r.c (strerror_r): Cygwin now has
6944         __xpg_strerror_r, use it.
6945
6946 2011-05-19  Bruno Haible  <bruno@clisp.org>
6947
6948         strerror_r: Avoid clobbering the strerror buffer when possible.
6949         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6950         (sys_nerr, sys_errlist): New declarations.
6951         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6952         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6953         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6954
6955 2011-05-19  Bruno Haible  <bruno@clisp.org>
6956
6957         strerror_r: Fix test failure on mingw.
6958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6959         EXTEND_STRERROR_R.
6960         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6961         macros from errno.in.h instead.
6962
6963 2011-05-19  Eric Blake  <eblake@redhat.com>
6964
6965         strerror: relax test for Solaris
6966         * tests/test-strerror.c (main): Permit Solaris behavior.
6967         * tests/test-strerror_r.c (main): Likewise.
6968
6969         strerror: enforce POSIX ruling on strerror(0)
6970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6972         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6973         * doc/posix-functions/strerror.texi (strerror): Document it.
6974         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6975         * tests/test-strerror.c (main): Strengthen test.
6976         * tests/test-strerror_r.c (main): Likewise.
6977
6978 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6979
6980         intprop-tests: port to older and more-pedantic compilers
6981         * modules/intprops-tests (Files): Add tests/macros.h.
6982         * tests/test-intprops.c: Include macros.h.
6983         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6984         it's no longer documented to expand to an integer constant expression.
6985         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6986         argument is floating point, as it's no longer documented to expand
6987         to an integer constant expression in that case.
6988         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6989         compiler bugs reported by Bruno Haible.  See
6990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6991         (U0, U1): New constants, to work around the same bugs.  Also,
6992         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6993
6994         intprops: work around C compiler bugs
6995         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6996         bug in Sun C 5.11 2010/08/13 and other compilers; see
6997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6998
6999         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7000         * doc/intprops.texi (Integer Type Determination): Fix
7001         documentation for TYPE_IS_INTEGER: it returns an constant
7002         expression, not an integer constant expression.  Fix doc for
7003         TYPE_SIGNED: it returns an integer constant expression only if its
7004         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7005         hardly worth documented that way....)
7006
7007 2011-05-18  Bruno Haible  <bruno@clisp.org>
7008
7009         strerror_r: Avoid clobbering the strerror buffer when possible.
7010         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7011         Handle gnulib defined errno values here. When strerror() returns NULL
7012         or an empty string, return EINVAL.
7013         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7014         gnulib defined errno values here.
7015         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7016
7017 2011-05-18  Eric Blake  <eblake@redhat.com>
7018
7019         fnmatch: avoid compiler warning
7020         * lib/fnmatch_loop.c (FCT): Use correct type.
7021         Reported by Matthias Bolte.
7022
7023 2011-05-13  Jim Meyering  <meyering@redhat.com>
7024
7025         maint.mk: three new prohibit_<HDR>_without_use rules
7026         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7027         (sc_prohibit_stdio-safer_without_use): Likewise.
7028         (sc_prohibit_xfreopen_without_use): Likewise.
7029
7030 2011-05-17  Jim Meyering  <meyering@redhat.com>
7031
7032         announce-gen: fail if the NEWS delta is empty
7033         If there's nothing noteworthy in NEWS, then either you forgot
7034         or you shouldn't be releasing.
7035         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7036
7037 2011-05-17  Pádraig Brady <P@draigBrady.com>
7038
7039         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7040         reserved symbols starting with double underscore from the check.
7041
7042 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7043
7044         intprops: add doc
7045         * doc/intprops.texi: New file, documenting intprops.
7046         * doc/gnulib.texi (Particular Modules): Include it.
7047
7048         verify: add doc to gnulib manual and fix example
7049         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7050         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7051         (Compile-time Assertions): Fix example so it can't overflow.
7052
7053 2011-05-17  Jim Meyering  <meyering@redhat.com>
7054
7055         warnings.m4: don't usurp save_CPPFLAGS variable name
7056         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7057
7058         doc: fix typo
7059         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7060
7061 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7062             Bruno Haible  <bruno@clisp.org>
7063
7064         doc: Tweak recent change.
7065         * README (Portability guidelines): Tweak new text.
7066         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7067         Interix 6.1.
7068
7069 2011-05-16  Eric Blake  <eblake@redhat.com>
7070
7071         inttypes: avoid autoconf warning
7072         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7073         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7074
7075 2011-05-16  Sam Steingold <sds@gnu.org>
7076         and Eric Blake  <eblake@redhat.com>
7077
7078         vc-list-files: accept multiple directory operands
7079         * build-aux/vc-list-files: Iterate over all remaining operands.
7080
7081 2011-05-16  Bruno Haible  <bruno@clisp.org>
7082
7083         Fix confusion regarding deprecated modules.
7084         * modules/calloc (Status, Notice): Mark module as deprecated, not
7085         obsolete.
7086         * modules/fnmatch-posix (Status, Notice): Likewise.
7087         * modules/getdate (Status, Notice): Likewise.
7088         * modules/getopt (Status, Notice): Likewise.
7089         * modules/malloc (Status, Notice): Likewise.
7090         * modules/pipe (Status, Notice): Likewise.
7091         * modules/realloc (Status, Notice): Likewise.
7092         * modules/rename-dest-slash (Status, Notice): Likewise.
7093         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7094         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7095         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7096         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7097         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7098
7099 2011-05-16  Bruno Haible  <bruno@clisp.org>
7100
7101         doc: List the target platforms.
7102         * doc/gnulib-intro.texi (Target Platforms): New section.
7103         * doc/gnulib.texi (Introduction): Update menu.
7104         * README (Portability guidelines): Refer to the new section. Update
7105         statement about oldest supported environment. Remove rationale why
7106         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7107         unportable C89 function.
7108         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7109         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7110
7111 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7112
7113         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7114
7115 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         intprops-tests: new module
7118         * modules/intprops-tests, tests/test-intprops.c: New files.
7119
7120         intprops: add safe, portable integer overflow checking
7121         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7122         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7123         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7124         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7125         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7126         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7127         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7128         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7129         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7130         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7131         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7132
7133 2011-05-12  James Youngman  <jay@gnu.org>
7134
7135         Add a test for glibc's Bugzilla bug #12378.
7136         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7137         doesn't allow the literal matching of a lone "[" (which is
7138         required by POSIX).
7139         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7140
7141 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7142
7143         Sync glibc change fixing Bugzilla bug #12378.
7144         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7145         beginning and fall back to matching as normal character if the
7146         string ends before the matching ']' is found.  This is what POSIX
7147         requires.
7148
7149 2011-05-13  Eric Blake  <eblake@redhat.com>
7150
7151         getcwd-lgpl: relax test for FreeBSD
7152         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7153         issue.
7154         * tests/test-getcwd-lgpl.c (main): Relax test.
7155         Reported by Matthias Bolte.
7156
7157 2011-05-11  Eric Blake  <eblake@redhat.com>
7158
7159         test-fflush: silence compiler warning
7160         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7161
7162 2011-05-11  Bruno Haible  <bruno@clisp.org>
7163
7164         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7165         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7166         * modules/canonicalize (Depends-on): Add 'nocrash'.
7167         * modules/canonicalize-lgpl (Depends-on): Likewise.
7168         * doc/posix-functions/realpath.texi: Update platforms list.
7169         Reported by Ryan Schmidt <ryandesign@macports.org>.
7170
7171 2011-05-11  Bruno Haible  <bruno@clisp.org>
7172
7173         group-member: Declare function in <unistd.h>.
7174         * lib/unistd.in.h (group_member): New declaration.
7175         * lib/group-member.h: Remove file.
7176         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7177         * tests/test-unistd-c++.cc: Check signature of group_member.
7178         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7179         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7180         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7181         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7182         HAVE_GROUP_MEMBER.
7183         * modules/group-member (Files): Remove lib/group-member.h.
7184         (Depends-on): Add unistd. Specify conditions.
7185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7186         (Include): Change to <unistd.h>.
7187         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7188         HAVE_GROUP_MEMBER.
7189         * NEWS: Mention the change.
7190         * lib/euidaccess.c: Don't include group-member.h.
7191
7192 2011-05-11  Bruno Haible  <bruno@clisp.org>
7193
7194         group-member: Document module.
7195         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7196         module.
7197
7198 2011-05-11  Bruno Haible  <bruno@clisp.org>
7199
7200         fclose: Fix mistake earlier today.
7201         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7202
7203 2011-05-11  Eric Blake  <eblake@redhat.com>
7204
7205         fclose: preserve fflush errors
7206         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7207         Reported by Jim Meyering.
7208
7209         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7210         * build-aux/bootstrap (check_versions): When no specific version
7211         is required, merely check that the app produces an exit status
7212         that indicates its existence.
7213
7214         maint.mk: drop redundant check
7215         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7216         the same but better.
7217
7218 2011-05-11  Bruno Haible  <bruno@clisp.org>
7219
7220         fclose: Fix possible link error.
7221         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7222         unregister_shadow_fd. Improve comments.
7223         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7224         Eric Blake.
7225
7226 2011-05-11  Jim Meyering  <meyering@redhat.com>
7227
7228         maint.mk: improve "can not" detection and generalize rule name
7229         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7230         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7231         Use the same technique as in sc_prohibit_doubled_word, so that
7232         we recognize "can not" also when the words are separated by a newline.
7233         Suggested by Eric Blake.
7234         (perl_filename_lineno_text_): Define.  Factored out of...
7235         (prohibit_doubled_word_): ...here.  Use the new definition.
7236         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7237         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7238         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7239
7240 2011-05-10  Eric Blake  <eblake@redhat.com>
7241
7242         fclose: avoid double close race when possible
7243         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7244         all but WINDOWS_SOCKETS.
7245
7246 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7247
7248         openat: correct new comment
7249         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7250
7251 2011-05-10  Jim Meyering  <meyering@redhat.com>
7252
7253         openat: add comments
7254         * lib/openat-proc.c (openat_proc_name): Add comments,
7255         mostly from Eric Blake.
7256
7257 2011-05-09  Eric Blake  <eblake@redhat.com>
7258
7259         openat: reduce syscalls in first probe of /proc
7260         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7261         be a directory.  Simplify the probe for .. bugs.
7262         * modules/openat (Depends-on): Drop same-inode.
7263         Reported by Bastien ROUCARIES.
7264
7265 2011-05-09  Jim Meyering  <meyering@redhat.com>
7266
7267         maint.mk: change semantics/name of tight_scope variables
7268         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7269         Rename variables to align with semantics that make them more useful.
7270
7271         maint.mk: tweak new rule's name not to impinge
7272         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7273         (sc_tight_scope): Use new rule name rather than $@-0.
7274
7275         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7276         * top/maint.mk (sc_tight_scope): New rule.
7277         (sc_tight_scope-0): New rule, ifdef'd out.
7278         (_gl_TS_dir): Default.
7279         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7280         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7281
7282 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7283
7284         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7285         Haible <bruno@clisp.org>.
7286
7287 2011-05-08  Bruno Haible  <bruno@clisp.org>
7288
7289         Comments.
7290         * m4/isnanf.m4: Add comment.
7291         * m4/isnanl.m4: Likewise.
7292
7293 2011-05-08  Bruno Haible  <bruno@clisp.org>
7294
7295         glob: Remove obsolete macro.
7296         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7297
7298 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7299
7300         intprops: Sun C 5.11 supports __typeof__
7301         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7302         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7303         which is new.
7304         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7305
7306         intprops: switch to usual gnulib indenting and naming
7307         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7308         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7309
7310         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7311
7312 2011-05-08  Jim Meyering  <meyering@redhat.com>
7313
7314         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7315         * top/maint.mk (release-prep): Use make's --no-print-directory
7316         option when generating the announcement.  This eliminates the
7317         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7318         generated announcement template.
7319
7320 2011-05-08  Bruno Haible  <bruno@clisp.org>
7321
7322         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7323         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7324         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7325
7326 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7327
7328         ignore-value, verify: Omit include files from lib_SOURCES.
7329         * modules/ignore-value, modules/verify (Makefile.am):
7330         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7331         that leads Automake to duplicate use of am__objects_... variables
7332         in Makefile.in.  See
7333         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7334
7335 2011-05-07  Bruno Haible  <bruno@clisp.org>
7336
7337         fclose: Simplify autoconf macro.
7338         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7339         defined.
7340
7341 2011-05-07  Bruno Haible  <bruno@clisp.org>
7342
7343         canonicalize-lgpl: Fix autoconf macro ordering bug.
7344         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7345         gl_STDLIB_H_DEFAULTS.
7346
7347 2011-05-06  Eric Blake  <eblake@redhat.com>
7348
7349         maintainer-makefile: make sc_po_check easier to tune
7350         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7351         to probe for strings, such as an alternate location for gnulib.
7352
7353         fclose: guarantee behavior on seekable stdin
7354         * modules/fclose (Depends-on): Add fflush.
7355         * doc/posix-functions/fclose.texi (fclose): Document this.
7356         * tests/test-fclose.c (main): Make test for this unconditional.
7357
7358 2011-05-06  Bruno Haible  <bruno@clisp.org>
7359
7360         fflush, fpurge: Relicense under LGPLv2+.
7361         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7362         * modules/fpurge (License): Likewise.
7363         With permission from Eric Blake and Jim Meyering.
7364         Suggested by Eric Blake.
7365
7366 2011-05-06  Karl Berry  <karl@gnu.org>
7367
7368         * MODULES.html.sh (func_all_modules): remove exit.
7369
7370 2011-05-06  Jim Meyering  <meyering@redhat.com>
7371
7372         maint.mk: use info-gnu@ as the default only for a stable release
7373         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7374         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7375         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7376         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7377
7378 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7379
7380         assert-h: new module, which supports C1X-style static_assert
7381         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7382         * lib/verify.h: Revamp so that this can be copied into assert.h,
7383         while retaining the ability to use it standalone as before.
7384         Rename private identifiers so as not to encroach on the
7385         standard C namespace, since this is now used by assert.h.
7386         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7387         the old verify_true.
7388         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7389         the old verify_true.  Use _GL_VERIFY_TYPE.
7390         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7391         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7392         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7393         defined when this file is copied into the replacement assert.h.
7394         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7395         and _Static_assert is not built in.
7396         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7397         defined, and use the new macros mentioned above.
7398         * doc/posix-headers/assert.texi: Document this.
7399
7400 2011-05-05  Bruno Haible  <bruno@clisp.org>
7401
7402         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7403         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7404         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7405         gl_REPLACE_FCLOSE here.
7406         * modules/fflush (Depends-on): Remove fclose.
7407         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7408         combination with module 'fclose'.
7409
7410 2011-05-05  Bruno Haible  <bruno@clisp.org>
7411
7412         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7413         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7414         gl_FUNC_FFLUSH.
7415         (gl_FUNC_FFLUSH): Use it.
7416         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7418         gl_REPLACE_FSEEKO here.
7419
7420 2011-05-05  Bruno Haible  <bruno@clisp.org>
7421
7422         tzset: Relicense under LGPL.
7423         * modules/tzset (License): Change to LGPL.
7424         No agreement needed; it's a no-op.
7425
7426         strtoimax, strtoumax: Relicense under LGPL.
7427         * modules/strtoimax (License): Change to LGPL.
7428         * modules/strtoumax (License): Likewise.
7429         With permission from Jim Meyering, Paul Eggert:
7430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7432
7433         getgroups: Relicense under LGPL.
7434         * modules/getgroups (License): Change to LGPL.
7435         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7439
7440         nanosleep: Relicense under LGPL.
7441         * modules/nanosleep (License): Change to LGPL.
7442         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7443         Haible:
7444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7448
7449         futimens: Relicense under LGPL.
7450         * modules/futimens (License): Change to LGPL.
7451         With permission from Eric Blake:
7452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7453
7454         fflush: Relicense under LGPL.
7455         * modules/fflush (License): Change to LGPL.
7456         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7460
7461         tmpfile: Relicense under LGPL.
7462         * modules/tmpfile (License): Change to LGPL.
7463         With permission from Ben Pfaff:
7464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7465
7466         isfinite: Relicense under LGPL.
7467         * modules/isfinite (License): Change to LGPL.
7468         With permission from Ben Pfaff, Bruno Haible:
7469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7471
7472         acosl..tanl: Relicense under LGPL.
7473         * modules/acosl (License): Change to LGPL.
7474         * modules/asinl (License): Likewise.
7475         * modules/atanl (License): Likewise.
7476         * modules/cosl (License): Likewise.
7477         * modules/expl (License): Likewise.
7478         * modules/logl (License): Likewise.
7479         * modules/sinl (License): Likewise.
7480         * modules/sqrtl (License): Likewise.
7481         * modules/tanl (License): Likewise.
7482         Source code originally from glibc and Paolo Bonzini. Agreements:
7483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7485
7486 2011-05-05  Bruno Haible  <bruno@clisp.org>
7487
7488         signal: Define sighandler_t.
7489         * lib/signal.in.h (sighandler_t): New type.
7490         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7491         whether sighandler_t is defined.
7492         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7493         * modules/signal (Depends-on): Add extensions.
7494         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7495         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7496         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7497
7498 2011-05-05  Eric Blake  <eblake@redhat.com>
7499
7500         maint: remove useless REPLACE_*_H macros
7501         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7502         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7503         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7504         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7505         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7506         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7507         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7508         * m4/btowc.m4: Update callers.
7509         * m4/dirfd.m4: Likewise.
7510         * m4/duplocale.m4: Likewise.
7511         * m4/fchdir.m4: Likewise.
7512         * m4/fdopendir.m4: Likewise.
7513         * m4/inet_ntop.m4: Likewise.
7514         * m4/inet_pton.m4: Likewise.
7515         * m4/ioctl.m4: Likewise.
7516         * m4/mbrlen.m4: Likewise.
7517         * m4/mbrtowc.m4: Likewise.
7518         * m4/mbsinit.m4: Likewise.
7519         * m4/mbsnrtowcs.m4: Likewise.
7520         * m4/mbsrtowcs.m4: Likewise.
7521         * m4/poll.m4: Likewise.
7522         * m4/setlocale.m4: Likewise.
7523         * m4/wcrtomb.m4: Likewise.
7524         * m4/wcsnrtombs.m4: Likewise.
7525         * m4/wcsrtombs.m4: Likewise.
7526         * m4/wctob.m4: Likewise.
7527         * m4/wcwidth.m4: Likewise.
7528         * modules/posix_spawn: Likewise.
7529         * modules/posix_spawn_file_actions_addclose: Likewise.
7530         * modules/posix_spawn_file_actions_adddup2: Likewise.
7531         * modules/posix_spawn_file_actions_addopen: Likewise.
7532         * modules/posix_spawn_file_actions_destroy: Likewise.
7533         * modules/posix_spawn_file_actions_init: Likewise.
7534         * modules/posix_spawnattr_destroy: Likewise.
7535         * modules/posix_spawnattr_getflags: Likewise.
7536         * modules/posix_spawnattr_getpgroup: Likewise.
7537         * modules/posix_spawnattr_getschedparam: Likewise.
7538         * modules/posix_spawnattr_getschedpolicy: Likewise.
7539         * modules/posix_spawnattr_getsigdefault: Likewise.
7540         * modules/posix_spawnattr_getsigmask: Likewise.
7541         * modules/posix_spawnattr_init: Likewise.
7542         * modules/posix_spawnattr_setflags: Likewise.
7543         * modules/posix_spawnattr_setpgroup: Likewise.
7544         * modules/posix_spawnattr_setschedparam: Likewise.
7545         * modules/posix_spawnattr_setschedpolicy: Likewise.
7546         * modules/posix_spawnattr_setsigdefault: Likewise.
7547         * modules/posix_spawnattr_setsigmask: Likewise.
7548         * modules/posix_spawnp: Likewise.
7549
7550 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7551
7552         Add option to do-release-commit-and-tag to specify branch.
7553         * build-aux/do-release-commit-and-tag: Add --branch.
7554
7555 2011-05-03  Bruno Haible  <bruno@clisp.org>
7556
7557         Avoid unnecessary compilation units, through conditional dependencies.
7558         * modules/accept (Depends-on): Add conditions to the dependencies.
7559         * modules/acosl (Depends-on): Likewise.
7560         * modules/argz (Depends-on): Likewise.
7561         * modules/asinl (Depends-on): Likewise.
7562         * modules/atanl (Depends-on): Likewise.
7563         * modules/atoll (Depends-on): Likewise.
7564         * modules/bind (Depends-on): Likewise.
7565         * modules/btowc (Depends-on): Likewise.
7566         * modules/canonicalize-lgpl (Depends-on): Likewise.
7567         * modules/ceil (Depends-on): Likewise.
7568         * modules/ceilf (Depends-on): Likewise.
7569         * modules/ceill (Depends-on): Likewise.
7570         * modules/chdir-long (Depends-on): Likewise.
7571         * modules/chown (Depends-on): Likewise.
7572         * modules/close (Depends-on): Likewise.
7573         * modules/connect (Depends-on): Likewise.
7574         * modules/cosl (Depends-on): Likewise.
7575         * modules/dirfd (Depends-on): Likewise.
7576         * modules/dprintf (Depends-on): Likewise.
7577         * modules/dprintf-posix (Depends-on): Likewise.
7578         * modules/error (Depends-on): Likewise.
7579         * modules/euidaccess (Depends-on): Likewise.
7580         * modules/expl (Depends-on): Likewise.
7581         * modules/faccessat (Depends-on): Likewise.
7582         * modules/fchdir (Depends-on): Likewise.
7583         * modules/fclose (Depends-on): Likewise.
7584         * modules/fcntl (Depends-on): Likewise.
7585         * modules/fdopendir (Depends-on): Likewise.
7586         * modules/fflush (Depends-on): Likewise.
7587         * modules/floor (Depends-on): Likewise.
7588         * modules/floorf (Depends-on): Likewise.
7589         * modules/floorl (Depends-on): Likewise.
7590         * modules/fnmatch (Depends-on): Likewise.
7591         * modules/fopen (Depends-on): Likewise.
7592         * modules/fprintf-posix (Depends-on): Likewise.
7593         * modules/frexp (Depends-on): Likewise.
7594         * modules/frexp-nolibm (Depends-on): Likewise.
7595         * modules/frexpl (Depends-on): Likewise.
7596         * modules/frexpl-nolibm (Depends-on): Likewise.
7597         * modules/fseek (Depends-on): Likewise.
7598         * modules/fsusage (Depends-on): Likewise.
7599         * modules/ftell (Depends-on): Likewise.
7600         * modules/ftello (Depends-on): Likewise.
7601         * modules/futimens (Depends-on): Likewise.
7602         * modules/getcwd (Depends-on): Likewise.
7603         * modules/getcwd-lgpl (Depends-on): Likewise.
7604         * modules/getdelim (Depends-on): Likewise.
7605         * modules/getdomainname (Depends-on): Likewise.
7606         * modules/getgroups (Depends-on): Likewise.
7607         * modules/gethostname (Depends-on): Likewise.
7608         * modules/getline (Depends-on): Likewise.
7609         * modules/getlogin_r (Depends-on): Likewise.
7610         * modules/getopt-posix (Depends-on): Likewise.
7611         * modules/getpeername (Depends-on): Likewise.
7612         * modules/getsockname (Depends-on): Likewise.
7613         * modules/getsockopt (Depends-on): Likewise.
7614         * modules/getsubopt (Depends-on): Likewise.
7615         * modules/getusershell (Depends-on): Likewise.
7616         * modules/glob (Depends-on): Likewise.
7617         * modules/grantpt (Depends-on): Likewise.
7618         * modules/iconv_open (Depends-on): Likewise.
7619         * modules/iconv_open-utf (Depends-on): Likewise.
7620         * modules/inet_ntop (Depends-on): Likewise.
7621         * modules/inet_pton (Depends-on): Likewise.
7622         * modules/ioctl (Depends-on): Likewise.
7623         * modules/isapipe (Depends-on): Likewise.
7624         * modules/isfinite (Depends-on): Likewise.
7625         * modules/isinf (Depends-on): Likewise.
7626         * modules/lchown (Depends-on): Likewise.
7627         * modules/ldexpl (Depends-on): Likewise.
7628         * modules/link (Depends-on): Likewise.
7629         * modules/linkat (Depends-on): Likewise.
7630         * modules/listen (Depends-on): Likewise.
7631         * modules/logl (Depends-on): Likewise.
7632         * modules/lstat (Depends-on): Likewise.
7633         * modules/mbrlen (Depends-on): Likewise.
7634         * modules/mbrtowc (Depends-on): Likewise.
7635         * modules/mbsinit (Depends-on): Likewise.
7636         * modules/mbsnrtowcs (Depends-on): Likewise.
7637         * modules/mbsrtowcs (Depends-on): Likewise.
7638         * modules/mbtowc (Depends-on): Likewise.
7639         * modules/memcmp (Depends-on): Likewise.
7640         * modules/mkdir (Depends-on): Likewise.
7641         * modules/mkdtemp (Depends-on): Likewise.
7642         * modules/mkfifo (Depends-on): Likewise.
7643         * modules/mkfifoat (Depends-on): Likewise.
7644         * modules/mknod (Depends-on): Likewise.
7645         * modules/mkostemp (Depends-on): Likewise.
7646         * modules/mkostemps (Depends-on): Likewise.
7647         * modules/mkstemp (Depends-on): Likewise.
7648         * modules/mkstemps (Depends-on): Likewise.
7649         * modules/mktime (Depends-on): Likewise.
7650         * modules/nanosleep (Depends-on): Likewise.
7651         * modules/open (Depends-on): Likewise.
7652         * modules/openat (Depends-on): Likewise.
7653         * modules/perror (Depends-on): Likewise.
7654         * modules/poll (Depends-on): Likewise.
7655         * modules/popen (Depends-on): Likewise.
7656         * modules/posix_spawn (Depends-on): Likewise.
7657         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7658         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7659         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7660         * modules/posix_spawnp (Depends-on): Likewise.
7661         * modules/pread (Depends-on): Likewise.
7662         * modules/printf-posix (Depends-on): Likewise.
7663         * modules/ptsname (Depends-on): Likewise.
7664         * modules/putenv (Depends-on): Likewise.
7665         * modules/pwrite (Depends-on): Likewise.
7666         * modules/readline (Depends-on): Likewise.
7667         * modules/readlink (Depends-on): Likewise.
7668         * modules/readlinkat (Depends-on): Likewise.
7669         * modules/recv (Depends-on): Likewise.
7670         * modules/recvfrom (Depends-on): Likewise.
7671         * modules/regex (Depends-on): Likewise.
7672         * modules/remove (Depends-on): Likewise.
7673         * modules/rename (Depends-on): Likewise.
7674         * modules/renameat (Depends-on): Likewise.
7675         * modules/rmdir (Depends-on): Likewise.
7676         * modules/round (Depends-on): Likewise.
7677         * modules/roundf (Depends-on): Likewise.
7678         * modules/roundl (Depends-on): Likewise.
7679         * modules/rpmatch (Depends-on): Likewise.
7680         * modules/select (Depends-on): Likewise.
7681         * modules/send (Depends-on): Likewise.
7682         * modules/sendto (Depends-on): Likewise.
7683         * modules/setenv (Depends-on): Likewise.
7684         * modules/setlocale (Depends-on): Likewise.
7685         * modules/setsockopt (Depends-on): Likewise.
7686         * modules/shutdown (Depends-on): Likewise.
7687         * modules/sigaction (Depends-on): Likewise.
7688         * modules/signbit (Depends-on): Likewise.
7689         * modules/sigprocmask (Depends-on): Likewise.
7690         * modules/sinl (Depends-on): Likewise.
7691         * modules/sleep (Depends-on): Likewise.
7692         * modules/snprintf (Depends-on): Likewise.
7693         * modules/snprintf-posix (Depends-on): Likewise.
7694         * modules/socket (Depends-on): Likewise.
7695         * modules/sprintf-posix (Depends-on): Likewise.
7696         * modules/sqrtl (Depends-on): Likewise.
7697         * modules/stat (Depends-on): Likewise.
7698         * modules/strchrnul (Depends-on): Likewise.
7699         * modules/strdup-posix (Depends-on): Likewise.
7700         * modules/strerror (Depends-on): Likewise.
7701         * modules/strerror_r-posix (Depends-on): Likewise.
7702         * modules/strndup (Depends-on): Likewise.
7703         * modules/strnlen (Depends-on): Likewise.
7704         * modules/strptime (Depends-on): Likewise.
7705         * modules/strsep (Depends-on): Likewise.
7706         * modules/strsignal (Depends-on): Likewise.
7707         * modules/strstr-simple (Depends-on): Likewise.
7708         * modules/strtod (Depends-on): Likewise.
7709         * modules/strtoimax (Depends-on): Likewise.
7710         * modules/strtok_r (Depends-on): Likewise.
7711         * modules/strtoumax (Depends-on): Likewise.
7712         * modules/symlink (Depends-on): Likewise.
7713         * modules/symlinkat (Depends-on): Likewise.
7714         * modules/tanl (Depends-on): Likewise.
7715         * modules/tcgetsid (Depends-on): Likewise.
7716         * modules/tmpfile (Depends-on): Likewise.
7717         * modules/trunc (Depends-on): Likewise.
7718         * modules/truncf (Depends-on): Likewise.
7719         * modules/truncl (Depends-on): Likewise.
7720         * modules/uname (Depends-on): Likewise.
7721         * modules/unlink (Depends-on): Likewise.
7722         * modules/unlockpt (Depends-on): Likewise.
7723         * modules/unsetenv (Depends-on): Likewise.
7724         * modules/usleep (Depends-on): Likewise.
7725         * modules/utimensat (Depends-on): Likewise.
7726         * modules/vasprintf (Depends-on): Likewise.
7727         * modules/vdprintf (Depends-on): Likewise.
7728         * modules/vdprintf-posix (Depends-on): Likewise.
7729         * modules/vfprintf-posix (Depends-on): Likewise.
7730         * modules/vprintf-posix (Depends-on): Likewise.
7731         * modules/vsnprintf (Depends-on): Likewise.
7732         * modules/vsnprintf-posix (Depends-on): Likewise.
7733         * modules/vsprintf-posix (Depends-on): Likewise.
7734         * modules/wcrtomb (Depends-on): Likewise.
7735         * modules/wcscasecmp (Depends-on): Likewise.
7736         * modules/wcscspn (Depends-on): Likewise.
7737         * modules/wcsdup (Depends-on): Likewise.
7738         * modules/wcsncasecmp (Depends-on): Likewise.
7739         * modules/wcsnrtombs (Depends-on): Likewise.
7740         * modules/wcspbrk (Depends-on): Likewise.
7741         * modules/wcsrtombs (Depends-on): Likewise.
7742         * modules/wcsspn (Depends-on): Likewise.
7743         * modules/wcsstr (Depends-on): Likewise.
7744         * modules/wcstok (Depends-on): Likewise.
7745         * modules/wcswidth (Depends-on): Likewise.
7746         * modules/wctob (Depends-on): Likewise.
7747         * modules/wctomb (Depends-on): Likewise.
7748         * modules/wctype (Depends-on): Likewise.
7749         * modules/wcwidth (Depends-on): Likewise.
7750         * modules/write (Depends-on): Likewise.
7751
7752 2011-05-03  Bruno Haible  <bruno@clisp.org>
7753
7754         Support for conditional dependencies.
7755         * doc/gnulib.texi (Module description): Document the syntax of
7756         conditional dependencies.
7757         * gnulib-tool: New option --conditional-dependencies.
7758         (func_usage): Document it.
7759         (cond_dependencies): New variable.
7760         (func_get_automake_snippet_conditional,
7761         func_get_automake_snippet_unconditional): New functions, extracted from
7762         func_get_automake_snippet.
7763         (func_get_automake_snippet): Use them.
7764         (sed_first_32_chars): New variable.
7765         (func_module_shellfunc_name): New function.
7766         (func_module_shellvar_name): New function.
7767         (func_module_conditional_name): New function.
7768         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7769         func_cond_module_condition): New functions.
7770         (func_modules_transitive_closure): Add support for conditional
7771         dependencies.
7772         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7773         conditional automake snippet in an automake conditional.
7774         (func_emit_autoconf_snippets): Emit shell functions that contain the
7775         code for conditional modules.
7776         (func_import, func_create_testdir): Update specification.
7777
7778 2011-05-03  Eric Blake  <eblake@redhat.com>
7779
7780         test-getaddrinfo: report error information
7781         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7782
7783 2011-05-03  Jim Meyering  <meyering@redhat.com>
7784
7785         bootstrap: avoid build failure when $GZIP is set
7786         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7787         program name.  If defined at all, it is supposed to list gzip options.
7788         Reported by Alan Curry in http://debbugs.gnu.org/8609
7789
7790 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7791
7792         readme-release: new module with release instructions
7793         * modules/readme-release: New module.
7794         * top/README-release: New file, from coreutils, grep, diffutils.
7795         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7796
7797 2011-05-02  Eric Blake  <eblake@redhat.com>
7798
7799         fflush: also replace fclose when fixing fflush
7800         * modules/fflush (Depends-on): Add fclose.
7801         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7802         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7803         memstreams with no backing fd.
7804         * doc/posix-functions/fclose.texi (fclose): Document the use of
7805         fflush module to fix the bug.
7806         * tests/test-fclose.c (main): Relax test when fclose is used in
7807         isolation.
7808
7809         fclose: add some tests
7810         * modules/fclose-tests: New test module.
7811         * tests/test-fclose.c: New file.
7812         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7813
7814         fclose: reduced dependencies
7815         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7816         simpler lseek.
7817         * lib/fclose.c (rpl_fclose): Likewise.
7818         Reported by Simon Josefsson.
7819
7820         exit: drop remaining clients
7821         * modules/argmatch (Depends-on): Replace exit with stdlib.
7822         * modules/copy-file (Depends-on): Likewise.
7823         * modules/execute (Depends-on): Likewise.
7824         * modules/exitfail (Depends-on): Likewise.
7825         * modules/obstack (Depends-on): Likewise.
7826         * modules/pagealign_alloc (Depends-on): Likewise.
7827         * modules/pipe-filter-gi (Depends-on): Likewise.
7828         * modules/pipe-filter-ii (Depends-on): Likewise.
7829         * modules/savewd (Depends-on): Likewise.
7830         * modules/spawn-pipe (Depends-on): Likewise.
7831         * modules/wait-process (Depends-on): Likewise.
7832         * modules/xsetenv (Depends-on): Likewise.
7833         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7834         * modules/git-merge-changelog (Depends-on): Likewise.
7835         * modules/long-options (Depends-on): Likewise.
7836         * modules/pt_chown (Depends-on): Likewise.
7837         * modules/sysexits (Depends-on): Likewise.
7838
7839         freading: relax license from LGPLv3+ to LGPLv2+
7840         * modules/freading (License): Relax LGPL version.
7841
7842 2011-05-02  Bruno Haible  <bruno@clisp.org>
7843
7844         fchdir: Remove unused dependencies.
7845         * modules/fchdir (Depends-on): Remove include_next.
7846
7847 2011-05-02  Bruno Haible  <bruno@clisp.org>
7848
7849         gnulib-tool: Refactor.
7850         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7851         from func_emit_autoconf_snippets.
7852         (func_emit_autoconf_snippets): Use it.
7853
7854 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7855
7856         * NEWS: Document removal of 'exit'.
7857         * modules/exit: Remove file.
7858
7859 2011-05-01  Bruno Haible  <bruno@clisp.org>
7860
7861         Update DEPENDENCIES.
7862         * DEPENDENCIES (gettext): Recommend the newest release.
7863         Reported by Simon Josefsson.
7864
7865 2011-05-01  Bruno Haible  <bruno@clisp.org>
7866
7867         gnulib-tool: Reduce code duplication.
7868         * gnulib-tool (func_emit_autoconf_snippets): New function.
7869         (func_import, func_create_testdir): Use it.
7870
7871 2011-04-30  Eric Blake  <eblake@redhat.com>
7872
7873         fclose: don't fail on non-seekable input stream
7874         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7875         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7876         since fflush is allowed to fail in that case.
7877
7878 2011-04-30  Bruno Haible  <bruno@clisp.org>
7879
7880         dup3: cleanup
7881         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7882
7883 2011-04-30  Bruno Haible  <bruno@clisp.org>
7884
7885         netdb: Make it work in C++ mode.
7886         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7887         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7888         module.
7889         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7890         gl_MODULE_INDICATOR_FOR_TESTS.
7891         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7892         * modules/netdb-c++-tests: New file.
7893         * tests/test-netdb-c++.cc: New file.
7894
7895 2011-04-30  Bruno Haible  <bruno@clisp.org>
7896
7897         New modules 'vfscanf', 'vscanf'.
7898         * modules/vfscanf: New file.
7899         * modules/vscanf: New file.
7900         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7901         here.
7902         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7903         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7904
7905 2011-04-30  Bruno Haible  <bruno@clisp.org>
7906
7907         passfd: Add comments.
7908         * lib/passfd.c: Add comments about platforms.
7909
7910 2011-04-30  Bruno Haible  <bruno@clisp.org>
7911
7912         sys_uio: Make <sys/uio.h> self-contained.
7913         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7914         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7915
7916 2011-04-30  Bruno Haible  <bruno@clisp.org>
7917
7918         sys_socket: Ensure 'struct iovec' definition.
7919         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7920         <sys/socket.h>.
7921         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7922
7923 2011-04-30  Bruno Haible  <bruno@clisp.org>
7924
7925         sys_uio: Protect definition of 'struct iovec'.
7926         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7927         it as a C struct.
7928
7929 2011-04-30  Bruno Haible  <bruno@clisp.org>
7930
7931         manywarnings: fix indentation
7932         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7933
7934 2011-04-30  Pádraig Brady <P@draigBrady.com>
7935
7936         manywarnings: add -Wno-missing-field-initializers if needed.
7937         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7938         option if it's needed to allow initialization with { 0, }
7939
7940 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7941
7942         announce-gen: cosmetic improvement
7943         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7944
7945 2011-04-29  Jim Meyering  <meyering@redhat.com>
7946
7947         vc-list-files: indent with spaces, not TABs
7948         * build-aux/vc-list-files: Convert leading TABs to spaces,
7949         to match the style of most other files in gnulib.
7950
7951         announce-gen: indent with spaces, not TABs
7952         * build-aux/announce-gen: Convert all TABs to spaces, to match
7953         the style of most other files in gnulib.
7954
7955 2011-04-29  Eric Blake  <eblake@redhat.com>
7956
7957         quotearg: avoid uninitialized variable use
7958         * lib/quotearg.c (quoting_options_from_style): Initialize
7959         remaining fields, and ensure that custom styles are only used via
7960         quoting_options rather than quoting_style.
7961
7962 2011-04-29  Jim Meyering  <meyering@redhat.com>
7963
7964         maint.mk: remove unused VC-tag variable
7965         * top/maint.mk (VC-tag): Remove unused variable.
7966
7967 2011-04-29  Bruno Haible  <bruno@clisp.org>
7968
7969         netdb: fix gai_strerror replacements
7970         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7971         * modules/netdb: Substitute it.
7972
7973 2011-04-29  Jim Meyering  <meyering@redhat.com>
7974
7975         test-getcwd.c: avoid new set-but-not-used warning
7976         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7977         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7978         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7979         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7980
7981         test-hash.c: avoid a new shadowing warning
7982         * tests/test-hash.c (main): Don't shadow "dup".
7983
7984 2011-04-28  Eric Blake  <eblake@redhat.com>
7985
7986         getaddrinfo: fix gai_strerror signature
7987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7988         and work around mingw with UNICODE defined.
7989         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7990         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7991         * modules/netdb (Makefile.am): Substitute it.
7992         * lib/netdb.in.h (gai_strerror): Declare replacement.
7993         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7994         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7995         the fix.
7996
7997         getsockopt: avoid compiler warning
7998         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7999         Reported by Matthias Bolte.
8000
8001         tests: drop unused link dependency
8002         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8003         * modules/dirent-safer-tests (Makefile.am): Likewise.
8004         * modules/fdopendir-tests (Makefile.am): Likewise.
8005         * modules/mkfifoat-tests (Makefile.am): Likewise.
8006         * modules/openat-safer-tests (Makefile.am): Likewise.
8007         * modules/openat-tests (Makefile.am): Likewise.
8008         * modules/readlinkat-tests (Makefile.am): Likewise.
8009         * modules/symlinkat-tests (Makefile.am): Likewise.
8010         * modules/linkat-tests (Makefile.am): Likewise.
8011         (Depends-on): Switch to filenamecat-lgpl.
8012         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8013         LIBINTL.
8014         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8015         * tests/test-linkat.c (main): Don't require xalloc.
8016
8017         hash, mgetgroups: drop xalloc dependency
8018         * lib/hash.c (includes): Adjust includes.
8019         * lib/mgetgroups.c (includes): Likewise.
8020         (xgetgroups): Move...
8021         * lib/xgetgroups.c: ...to new file.
8022         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8023         * modules/xgetgroups: New file, split from...
8024         * modules/mgetgroups: ...here.
8025         (Depends-on): Add xalloc-oversized.
8026         * modules/hash (Depends-on): Likewise.
8027         * modules/hash-tests (Depends-on): Drop xalloc.
8028         (test_hash_LDADD): Drop unused library.
8029         * tests/test-hash.c (main): Break xalloc dependency.
8030         (includes): Drop unused include.
8031
8032         xalloc-oversized: new module
8033         * modules/xalloc-oversized: New module.
8034         * modules/xalloc (Depends-on): Add it.
8035         * lib/xalloc.h (xalloc_oversized): Move...
8036         * lib/xalloc-oversized.h: ...into new file.
8037
8038         utimecmp: drop dependency on xmalloc
8039         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8040         due to memory pressure.
8041         * modules/utimecmp (Depends-on): Drop xalloc.
8042
8043 2011-04-27  Eric Blake  <eblake@redhat.com>
8044
8045         getcwd: fix mingw bugs
8046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8047         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8048         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8049
8050 2011-04-27  Bruno Haible  <bruno@clisp.org>
8051
8052         mkstemps: Ensure declaration on MacOS X 10.5.
8053         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8054         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8055         MacOS X.
8056
8057 2011-04-27  Bruno Haible  <bruno@clisp.org>
8058
8059         mkstemp: More documentation.
8060         * doc/posix-functions/mkstemp.texi: Document header file problem on
8061         MacOS X.
8062
8063 2011-04-27  Bruno Haible  <bruno@clisp.org>
8064
8065         mkstemp: Tweak configure message when cross-compiling.
8066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8067         result as a guess.
8068
8069 2011-04-27  Bruno Haible  <bruno@clisp.org>
8070
8071         clean-temp: Clarify what it does.
8072         * lib/clean-temp.h: Add more comments.
8073         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8074         module.
8075         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8076         * doc/glibc-functions/mkstemps.texi: Likewise.
8077         * doc/glibc-functions/mkostemps.texi: Likewise.
8078
8079 2011-04-27  Eric Blake  <eblake@redhat.com>
8080
8081         fchdir: avoid extra chdir and fix test
8082         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8083         getcwd-lgpl.
8084         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8085         have to be canonical.
8086         (canonicalize_file_name): Drop unused macro.
8087         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8088
8089         filenamecat-lgpl: fix licence
8090         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8091         when it was first created.
8092
8093         linkat, renameat: add missing dependency
8094         * modules/linkat (Depends-on): Require getcwd-lgpl.
8095         * modules/renameat (Depends-on): Likewise.
8096
8097         tests: reduce dependencies
8098         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8099         * tests/test-renameat.c (main): Likewise.
8100         * modules/linkat-tests (Depends-on): Relax dependency.
8101         * modules/renameat-tests (Depends-on): Likewise.
8102         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8103         dependency explicit.
8104
8105         save-cwd: reduce default dependency
8106         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8107         * lib/save-cwd.c: Update comments.
8108         * NEWS: Document the semantic change.
8109
8110         getcwd: enhance tests
8111         * tests/test-getcwd-lgpl.c: New file, taken from...
8112         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8113         repeat long path stress tests from m4 probe.
8114         * modules/getcwd-lgpl-tests: New module.
8115         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8116         * m4/getcwd-abort-bug.m4: Update comment.
8117         * m4/getcwd-path-max.m4: Likewise.
8118
8119         getcwd-lgpl: new module
8120         * modules/getcwd-lgpl: New module.
8121         * lib/getcwd-lgpl.c: New file.
8122         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8123         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8124         * modules/getcwd (configure.ac): Set C witness.
8125         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8126
8127         getcwd: tweak comments
8128         * m4/getcwd-abort-bug.m4: Fix comments.
8129         * m4/getcwd-path-max.m4: Likewise.
8130         * m4/getcwd.m4: Likewise.
8131
8132 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8133         and Eric Blake  <eblake@redhat.com>
8134
8135         mkstemp: replace if system version uses wrong permissions
8136         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8137         read/write mode bits set in file created by mkstemp.
8138         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8139
8140 2011-04-27  Eric Blake  <eblake@redhat.com>
8141
8142         passfd: avoid compiler warning
8143         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8144         Reported by Laine Stump.
8145
8146 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8147
8148         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8149         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8150
8151 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8152         and Eric Blake  <eblake@redhat.com>
8153
8154         mkstemp: mention clean-temp module
8155         * lib/mkstemp.c: Add comment.
8156         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8157
8158 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8159
8160         inttypes: also provide default values for 32-bit tests
8161         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8162         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8163
8164 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8165
8166         strtoumax: remove dependency on strtoimax
8167         This is like the strtoull change of yesterday.
8168         * modules/strtoumax (Files): Add lib/strtoimax.c.
8169         (Depends-on): Remove strtoimax and add verify.
8170
8171         inttypes-incomplete: new module
8172         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8173         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8174         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8175         of gl_INTTYPES_H.
8176         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8177         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8178         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8179         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8180         * modules/strtoumax, modules/xstrtol (Depends-on):
8181         Depend on inttypes-incomplete, not inttypes.
8182         * modules/inttypes-incomplete: New module, containing the contents
8183         of the old modules/inttypes module, except that the Files: section
8184         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8185         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8186         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8187         (Depends-on): Depend only on inttypes-incomplete.
8188         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8189
8190         inttypes: omit now-redundant strtoimax and strtoumax work
8191         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8192         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8193
8194         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8195         This supports apps that need pointers to strtoimax and strtoumax,
8196         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8197         nonexistent functions.  See
8198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8199         et seq.
8200         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8201         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8202         a macro.
8203         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8204
8205 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8206
8207         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8208
8209 2011-04-25  Bruno Haible  <bruno@clisp.org>
8210
8211         strtol, strtoul: Mark modules as obsolete.
8212         * modules/strtol (Status, Notice): New sections.
8213         * modules/strtoul (Status, Notice): New sections.
8214
8215 2011-04-25  Bruno Haible  <bruno@clisp.org>
8216
8217         strtod: Remove check for strtod, unless supporting old platforms.
8218         * modules/strtod-obsolete: New file.
8219         * m4/strtod-obsolete.m4: New file.
8220         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8221         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8222         * modules/strtod (Depends-on): Add strtod-obsolete.
8223         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8224
8225 2011-04-25  Bruno Haible  <bruno@clisp.org>
8226
8227         strcase: Make module obsolete.
8228         * modules/strcase (Status, Notice): New sections.
8229
8230 2011-04-25  Bruno Haible  <bruno@clisp.org>
8231
8232         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8233         * modules/dup2-obsolete: New file.
8234         * m4/dup2-obsolete.m4: New file.
8235         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8236         gl_FUNC_DUP2_OBSOLETE is not also defined.
8237         * modules/dup2 (Depends-on): Add dup2-obsolete.
8238         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8239
8240 2011-04-25  Bruno Haible  <bruno@clisp.org>
8241
8242         strnlen: Avoid memchr related link error on old obsolete platforms.
8243         * modules/memchr-obsolete: New file.
8244         * m4/memchr-obsolete.m4: New file.
8245         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8246         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8247         * modules/memchr (Depends-on): Add memchr-obsolete.
8248         * modules/strnlen (Depends-on): Likewise.
8249         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8250
8251 2011-04-25  Jim Meyering  <meyering@redhat.com>
8252
8253         maint.mk: makefile_at_at_check extend and clean up
8254         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8255         in addition to */Makefile.am.
8256         Exempt legitimate uses of @VAR@ notation, e.g.,
8257         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8258         Remove obsolete coreutils-specific comment.
8259         Prompted by discussion here:
8260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8261
8262 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         strtoul: remove dependency on strtol
8265         This is so that 'configure' need not check for strtol merely because
8266         the application needs strtoul.
8267         * modules/strtoul (Files): Add lib/strtol.c.
8268         (Depends-on): Remove strtol.
8269
8270         strtoull: remove dependency on strtoul
8271         This is like the strtoll change.
8272         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8273         (Depends-on): Remove strtoul.
8274
8275         strtoll: remove dependency on strtol
8276         This is so that 'configure' need not check for strtol merely because
8277         the application needs strtoll.
8278         * modules/strtoll (Files): Add lib/strtol.c.
8279         (Depends-on): Remove strtol.
8280
8281 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8282
8283         inttypes: Move some configure check to module 'imaxdiv'.
8284         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8285         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8286         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8287
8288 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8289
8290         inttypes: Move some configure check to module 'imaxabs'.
8291         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8292         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8293         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8294
8295 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8296
8297         inttypes: Remove configure tests that are not needed since 2009-12-31.
8298         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8299         gl_cv_header_working_inttypes_h.
8300
8301 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8302
8303         * modules/strnlen (Depends-on): Remove memchr.
8304         The strnlen implementation doesn't need the memchr module's fixes; see
8305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8306
8307         strtol: remove dependency on wchar
8308         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8309         * modules/strtol (Depends-on): Remove wchar.
8310
8311 2011-04-21  Eric Blake  <eblake@redhat.com>
8312
8313         passfd: fix test regression on Linux
8314         * modules/passfd-tests (configure.ac): Correct socketpair check.
8315
8316         passfd: speed up configure and drop unused code
8317         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8318         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8319         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8320         Instead of probing at configure for unix_scm_rights_bsd44_way,
8321         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8322         check to a struct member probe.
8323         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8324         (sendfd, recvfd): Update preprocessor checks.
8325         * modules/passfd (Files): Reflect rename, and drop unused file.
8326         (Depends-on): Drop unused dependency.
8327
8328         passfd: allow compilation on mingw
8329         * modules/sys_socket (Depends-on): Add sys_uio.
8330         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8331         iovec and a minimal struct msghdr.
8332         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8333         * tests/test-sys_socket.c (main): Enhance test.
8334         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8335         guaranteed to provide what we need.
8336         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8337         * modules/passfd-tests (Depends-on): Add sys_wait.
8338         * tests/test-passfd.c (main): Skip test on mingw, for now.
8339         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8340         partial 'struct msghdr' implementation.
8341
8342         sys_uio: new module
8343         * modules/sys_uio: New module.
8344         * modules/sys_uio-tests: Likewise.
8345         * lib/sys_uio.in.h: New file.
8346         * m4/sys_uio_h.m4: Likewise.
8347         * tests/test-sys_uio.c: Likewise.
8348         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8349         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8350
8351 2011-04-20  Jim Meyering  <meyering@redhat.com>
8352
8353         useless-if-before-free: avoid false-positive
8354         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8355         disjunct so that it too requires a terminating ";".  Without that,
8356         this script would identify as useless one statement from gcc that
8357         was not:
8358           if (aligned_ptr)
8359             free (((void **) aligned_ptr) [-1]);
8360
8361 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8362
8363         doc: update users.txt.
8364         * users.txt: Add barcode.
8365
8366 2011-04-19  Bruno Haible  <bruno@clisp.org>
8367
8368         ioctl: Remove link dependency on native Windows.
8369         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8370         (gl_close_fn, gl_ioctl_fn): New types.
8371         (struct fd_hook): Renamed from struct close_hook. Change type of
8372         private_close_fn field. Add private_ioctl_fn field.
8373         (close_hook_fn): Add parameter for primary close method.
8374         (execute_close_hooks, execute_all_close_hooks): Likewise.
8375         (ioctl_hook_fn): New type.
8376         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8377         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8378         argument.
8379         (unregister_fd_hook): Renamed from unregister_close_hook.
8380         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8381         Don't include <unistd.h>.
8382         (close): Remove undef.
8383         (anchor): Update.
8384         (execute_close_hooks): Add argument for primary close method.
8385         (execute_all_close_hooks): Likewise.
8386         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8387         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8388         argument. Allow each argument to be NULL.
8389         (unregister_fd_hook): Renamed from unregister_close_hook.
8390         * lib/close.c (rpl_close): Pass 'close' function pointer to
8391         execute_all_close_hooks.
8392         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8393         (primary_ioctl): New function.
8394         (ioctl): Don't call ioctlsocket here. Instead, call
8395         execute_all_ioctl_hooks.
8396         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8397         close method.
8398         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8399         (fd_sockets_hook): Renamed from close_sockets_hook.
8400         (gl_sockets_startup, gl_sockets_cleanup): Update.
8401         * modules/fd-hook: Renamed from modules/close-hook. Update.
8402         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8403         * modules/sockets (Depends-on): Likewise.
8404         * modules/ioctl (Depends-on): Add fd-hook.
8405         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8406         GNULIB_SOCKET.
8407
8408 2011-04-19  Bruno Haible  <bruno@clisp.org>
8409
8410         Move the support of O_NONBLOCK in open() to the 'open' module.
8411         * modules/nonblocking (Depends-on): Remove 'open'.
8412         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8413         gl_cv_have_open_O_NONBLOCK.
8414         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8415         O_NONBLOCK support.
8416         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8417
8418 2011-04-17  Bruno Haible  <bruno@clisp.org>
8419
8420         pipe2: Simplify code.
8421         * lib/pipe2.c (pipe2): Reduce code duplication.
8422
8423 2011-04-17  Bruno Haible  <bruno@clisp.org>
8424
8425         nonblocking: Add comment.
8426         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8427
8428 2011-04-17  Bruno Haible  <bruno@clisp.org>
8429
8430         nonblocking: Add tests for sockets.
8431         * tests/test-nonblocking-socket.sh: New file.
8432         * tests/test-nonblocking-socket-main.c: New file.
8433         * tests/test-nonblocking-socket-child.c: New file.
8434         * tests/test-nonblocking-socket.h: New file.
8435         * tests/socket-server.h: New file.
8436         * tests/socket-client.h: New file.
8437         * modules/nonblocking-socket-tests: New file.
8438         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8439
8440 2011-04-17  Bruno Haible  <bruno@clisp.org>
8441
8442         nonblocking: Add tests for pipes.
8443         * tests/test-nonblocking-pipe.sh: New file.
8444         * tests/test-nonblocking-pipe-main.c: New file.
8445         * tests/test-nonblocking-pipe-child.c: New file.
8446         * tests/test-nonblocking-pipe.h: New file.
8447         * tests/test-nonblocking-writer.h: New file.
8448         * tests/test-nonblocking-reader.h: New file.
8449         * tests/test-nonblocking-misc.h: New file.
8450         * modules/nonblocking-pipe-tests: New file.
8451         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8452
8453 2011-04-16  Bruno Haible  <bruno@clisp.org>
8454
8455         gettext: Clarify the needed programmer actions.
8456         * modules/gettext (Notice): New field.
8457         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8458
8459 2011-04-16  Bruno Haible  <bruno@clisp.org>
8460
8461         strchrnul: Tweak last commit.
8462         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8463         bug.
8464         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8465         as in _GL_FUNCDECL_SYS.
8466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8467         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8468
8469 2011-04-15  Eric Blake  <eblake@redhat.com>
8470
8471         strchrnul: work around cygwin bug
8472         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8475         * modules/string (Makefile.am): Substitute it.
8476         * lib/string.in.h (strchrnul): Use it.
8477
8478 2011-04-15  Bruno Haible  <bruno@clisp.org>
8479
8480         Don't require lib/stdio-write.c when only module 'stdio' is used.
8481         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8482         invocation.
8483         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8484
8485 2011-04-14  Bruno Haible  <bruno@clisp.org>
8486
8487         Support non-blocking pipe I/O in read() on native Windows.
8488         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8489         (read): New declaration.
8490         * lib/read.c: New file.
8491         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8492         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8493         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8494         vscanf): New declarations.
8495         * lib/stdio-read.c: New file.
8496         * m4/read.m4: New file.
8497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8498         REPLACE_READ.
8499         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8500         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8501         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8502         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8503         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8504         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8505         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8506         * modules/read: New file.
8507         * modules/nonblocking (Files): Add lib/stdio-read.c.
8508         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8509         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8510         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8511         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8512         * modules/pread (Depends-on): Add read.
8513         * modules/safe-read (Depends-on): Likewise.
8514         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8515         gets, scanf, vfscanf, vscanf): Verify signatures.
8516         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8517         problem with non-blocking pipes.
8518         * doc/posix-functions/fgetc.texi: Likewise.
8519         * doc/posix-functions/fgets.texi: Likewise.
8520         * doc/posix-functions/fread.texi: Likewise.
8521         * doc/posix-functions/fscanf.texi: Likewise.
8522         * doc/posix-functions/getc.texi: Likewise.
8523         * doc/posix-functions/getchar.texi: Likewise.
8524         * doc/posix-functions/gets.texi: Likewise.
8525         * doc/posix-functions/scanf.texi: Likewise.
8526         * doc/posix-functions/vfscanf.texi: Likewise.
8527         * doc/posix-functions/vscanf.texi: Likewise.
8528
8529 2011-04-14  Bruno Haible  <bruno@clisp.org>
8530
8531         Support non-blocking pipe I/O in write() on native Windows.
8532         * lib/write.c (rpl_write): Split a write request that failed merely
8533         because the byte count was larger than the pipe buffer's size.
8534         * doc/posix-functions/write.texi: Mention the problem with large byte
8535         counts.
8536
8537 2011-04-14  Bruno Haible  <bruno@clisp.org>
8538
8539         wchar: Ensure that wchar_t gets defined on uClibc.
8540         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8541         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8542
8543 2011-04-13  Bruno Haible  <bruno@clisp.org>
8544
8545         safe-write, full-read: Avoid unnecessary compilation units.
8546         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8547         (Depends-on): Remove safe-read. Add ssize_t.
8548         * modules/full-read (Files): Add lib/full-write.c.
8549         (Depends-on): Add full-write.
8550
8551 2011-04-13  Bruno Haible  <bruno@clisp.org>
8552
8553         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8554         * modules/pwrite (Depends-on): Add 'write'.
8555
8556 2011-04-13  Bruno Haible  <bruno@clisp.org>
8557
8558         Support non-blocking pipe I/O in write() on native Windows.
8559         * lib/unistd.in.h (write): Enable replacement also if
8560         GNULIB_UNISTD_H_NONBLOCKING is 1.
8561         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8562         (rpl_write): When failing to write on a non-blocking pipe, change
8563         errno from ENOSPC to EAGAIN.
8564         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8565         putchar, puts, vfprintf, vprintf): Enable replacement also if
8566         GNULIB_STDIO_H_NONBLOCKING is 1.
8567         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8568         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8569         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8570         CALL_WITH_SIGPIPE_EMULATION.
8571         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8572         * m4/nonblocking.m4: New file.
8573         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8574         for non-blocking I/O support.
8575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8576         GNULIB_UNISTD_H_NONBLOCKING.
8577         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8578         required for non-blocking I/O support.
8579         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8580         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8581         lib/stdio-write.c, m4/asm-underscore.m4.
8582         (Depends-on): Add stdio, unistd.
8583         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8584         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8585         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8586         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8587         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8588         problem with non-blocking pipes.
8589         * doc/posix-functions/fputc.texi: Likewise.
8590         * doc/posix-functions/fputs.texi: Likewise.
8591         * doc/posix-functions/fwrite.texi: Likewise.
8592         * doc/posix-functions/printf.texi: Likewise.
8593         * doc/posix-functions/putc.texi: Likewise.
8594         * doc/posix-functions/putchar.texi: Likewise.
8595         * doc/posix-functions/puts.texi: Likewise.
8596         * doc/posix-functions/vfprintf.texi: Likewise.
8597         * doc/posix-functions/vprintf.texi: Likewise.
8598         * doc/posix-functions/write.texi: Likewise.
8599
8600 2011-04-10  Jim Meyering  <meyering@redhat.com>
8601
8602         maint.mk: prohibit doubled words
8603         Detect them also when they're separated by a newline.
8604         There are 3 ways to customize it:
8605           - disable the test on a per file basis, as usual with rules using
8606             $(VC_LIST_EXCEPT)
8607           - replace the default doubled-word-selecting regexp (affects all files)
8608           - ignore a particular file-vs-doubled-word match
8609         I nearly used that last one to ignore the "is is" match in
8610         coreutils' NEWS file, since the text was "ls -is is ..."
8611         To do that, I would have added this line to cfg.mk:
8612           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8613         but it would have ignored any "is is" match in NEWS.
8614         Low probability, but still...
8615         Instead, I changed the text, slightly:
8616           -  ls -is is now consistent with ls -lis in ignoring values returned
8617           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8618         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8619         (prohibit_doubled_word_): Define.
8620         (sc_prohibit_doubled_word): New rule.
8621         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8622
8623 2011-04-10  Jim Meyering  <meyering@redhat.com>
8624
8625         maint: fix doubled-word typo in comment
8626         * m4/gethostname.m4: s/is is/it is/
8627         * m4/getdomainname.m4: Likewise.
8628
8629 2011-04-10  Jim Meyering  <meyering@redhat.com>
8630
8631         maint: remove doubled word: s/it it/it/
8632         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8633
8634 2011-04-10  Jim Meyering  <meyering@redhat.com>
8635
8636         maint.mk: remove useless semicolon and backslash
8637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8638         semicolon and backslash.
8639
8640 2011-04-10  Bruno Haible  <bruno@clisp.org>
8641
8642         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8643         * modules/stdint-tests (Depends-on): Add wchar.
8644
8645 2011-04-10  Jim Meyering  <meyering@redhat.com>
8646
8647         maint: remove doubled words in comments, e.g., s/a a/a/
8648         * lib/strptime.c (day_of_the_week): s/the the/the/
8649         * tests/test-chown.h (test_chown): s/a a/a/
8650
8651         test-chown.h: correct a cast
8652         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8653         when the destination is a stat.st_gid.
8654
8655 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8656
8657         getaddrinfo: Fix test for sa_len member.
8658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8659         include <sys/types.h> before <sys/socket.h>.
8660
8661 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8662
8663         maint: change "can not" to "cannot"
8664         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8665         boundaries.
8666
8667 2011-04-09  Jim Meyering  <meyering@redhat.com>
8668
8669         maint: change "a a" to "a"
8670         * tests/test-lchown.h (test_lchown): s/a a/a/
8671
8672         maint.mk: prohibit \<the the\>
8673         * top/maint.mk (sc_prohibit_the_the): New rule.
8674
8675         maint: fix "the the" in comment
8676         * lib/count-one-bits.h: s/the the/the/
8677
8678         maint: change "can not" to "cannot"
8679         But do not change the occurrences in maintain.texi or in
8680         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8681         * doc/gnulib-tool.texi: s/can not/cannot/
8682         * doc/posix-functions/accept.texi (accept): Likewise.
8683         * doc/posix-functions/socket.texi (socket): Likewise.
8684         * lib/mbrtowc.c: Likewise.
8685
8686         maint.mk: prohibit use of "can not"
8687         * top/maint.mk (sc_prohibit_can_not): New rule.
8688         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8689
8690 2011-04-09  Bruno Haible  <bruno@clisp.org>
8691
8692         careadlinkat: Guard against misuse of careadlinkatcwd.
8693         * lib/careadlinkat.c: Include <stdlib.h>.
8694         (careadlinkatcwd): Check that the fd argument is as expected.
8695
8696 2011-04-09  Bruno Haible  <bruno@clisp.org>
8697
8698         careadlinkat: Use common coding style.
8699         * lib/careadlinkat.c: Move gnulib includes after system includes.
8700
8701 2011-04-09  Bruno Haible  <bruno@clisp.org>
8702
8703         careadlinkat: Clarify specification.
8704         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8705         (careadlinkatcwd): Add comment.
8706         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8707
8708 2011-04-09  Bruno Haible  <bruno@clisp.org>
8709
8710         areadlinkat: Avoid link error on many platforms.
8711         * modules/areadlinkat (Depends-on): Add areadlink.
8712
8713 2011-04-09  Bruno Haible  <bruno@clisp.org>
8714
8715         allocator, careadlinkat: Fix double-inclusion guard.
8716         * lib/allocator.h: Fix double-inclusion guard.
8717         * lib/careadlinkat.h: Likewise.
8718
8719 2011-04-09  Bruno Haible  <bruno@clisp.org>
8720
8721         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8722         * lib/relocwrapper.c: Update dependencies hierarchy.
8723         * build-aux/install-reloc: Update list of files to be compiled.
8724         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8725         lib/allocator.[hc].
8726
8727 2011-04-08  Eric Blake  <eblake@redhat.com>
8728
8729         strftime: silence gnulib-tool warning
8730         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8731
8732 2011-04-08  Bruno Haible  <bruno@clisp.org>
8733
8734         verify: Fix syntax error with GCC 4.6 in C++ mode.
8735         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8736         (HAVE_STATIC_ASSERT): New macro.
8737         (verify_true, verify): Use 'static_assert' if it is supported and
8738         '_Static_assert' is not supported.
8739
8740 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8741
8742         allocator: New module.
8743         * modules/allocator, lib/allocator.c: New files.
8744         * lib/allocator.h (stdlib_allocator): New decl.
8745         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8746         Remove.  Do not include <stdlib.h>.
8747         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8748         * modules/careadlinkat (Files): Remove lib/allocator.h.
8749         (Depends-on): Add allocator.
8750
8751         stdlib: let modules use system malloc, realloc
8752         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8753         if !_GL_USE_STDLIB_ALLOC.
8754         (malloc, realloc): Limit this change to a smaller scope.
8755
8756         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8757         (malloc, realloc): Don't #undef; no longer needed.
8758         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8759         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8760         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8761         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8762         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8763         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8764         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8765         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8766
8767         careadlinkat: rename members to avoid problem
8768         * lib/allocator.h (struct allocator): Rename members from
8769         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8770         and realloc are #define'd.  Reported by Eric Blake in
8771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8772         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8773
8774 2011-04-08  Eric Blake  <eblake@redhat.com>
8775
8776         nonblocking: reduce dependency
8777         * tests/test-nonblocking.c: Only test sockets when in use.
8778         * modules/nonblocking-tests (Depends-on): Drop socket.
8779         (Makefile.am): Link even if sockets are not present.
8780         * modules/pipe2-tests (Makefile.am): Likewise.
8781         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8782
8783         pipe2: fix O_NONBLOCK support on mingw
8784         * modules/pipe2 (Depends-on): Add nonblocking.
8785         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8786         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8787         * tests/test-nonblocking.c (main): Likewise.
8788         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8789
8790         fcntl-h: fix O_ACCMODE on cygwin
8791         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8792         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8793
8794         pipe-filter: drop O_NONBLOCK workarounds
8795         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8796         * modules/pipe-filter-ii (Depends-on): Likewise.
8797         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8798
8799         nonblocking: provide O_NONBLOCK for mingw
8800         * modules/nonblocking (Depends-on): Add open.
8801         (configure.ac): Set new witness macro.
8802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8803         * modules/fcntl-h (Makefile.am): Substitute it.
8804         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8805         nonblocking module is in use.
8806         * lib/nonblocking.c: Adjust portability test.
8807         * lib/open.c (open): Don't let native open see gnulib flag.
8808         * tests/test-fcntl-h.c (main): Enhance test.
8809         * tests/test-open.h (test_open): Likewise.
8810         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8811
8812         careadlinkat: fix compilation error on mingw
8813         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8814         within struct allocator.
8815
8816 2011-04-06  Eric Blake  <eblake@redhat.com>
8817
8818         binary-io: relicense under LGPLv2+
8819         * modules/binary-io (License): Relax to LGPLv2+.
8820         Requested for libvirt, and required by pipe2.
8821
8822 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8823
8824         verify: use _Static_assert if available
8825         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8826         (verify_true, verify): Use it if available.  This generates better
8827         diagnostics with GCC 4.6.0 and later.
8828
8829 2011-04-05  Bruno Haible  <bruno@clisp.org>
8830
8831         Remove leftover generated .h files after config.status changed.
8832
8833         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8834         GL_GENERATE_ALLOCA_H.
8835         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8836         GL_GENERATE_ALLOCA_H evaluates to false.
8837
8838         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8839         GL_GENERATE_ARGZ_H.
8840         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8841         evaluates to false.
8842
8843         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8844         GL_GENERATE_BYTESWAP_H.
8845         * modules/byteswap (Makefile.am): Remove byteswap.h if
8846         GL_GENERATE_BYTESWAP_H evaluates to false.
8847
8848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8849         GL_GENERATE_ERRNO_H.
8850         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8851         evaluates to false.
8852
8853         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8854         GL_GENERATE_FLOAT_H.
8855         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8856         evaluates to false.
8857
8858         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8859         GL_GENERATE_FNMATCH_H.
8860         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8861         GL_GENERATE_FNMATCH_H evaluates to false.
8862
8863         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8864         GL_GENERATE_GLOB_H.
8865         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8866         evaluates to false.
8867
8868         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8869         automake conditional GL_GENERATE_ICONV_H.
8870         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8871         evaluates to false.
8872
8873         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8874         GL_GENERATE_NETINET_IN_H.
8875         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8876         GL_GENERATE_NETINET_IN_H evaluates to false.
8877
8878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8879         conditional GL_GENERATE_PTHREAD_H.
8880         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8881         * modules/pthread (Makefile.am): Remove pthread.h if
8882         GL_GENERATE_PTHREAD_H evaluates to false.
8883
8884         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8885         GL_GENERATE_SCHED_H.
8886         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8887         evaluates to false.
8888
8889         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8890         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8891         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8892         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8893
8894         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8895         GL_GENERATE_STDARG_H.
8896         * modules/stdarg (Makefile.am): Remove stdarg.h if
8897         GL_GENERATE_STDARG_H evaluates to false.
8898
8899         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8900         GL_GENERATE_STDBOOL_H.
8901         * modules/stdbool (Makefile.am): Remove stdbool.h if
8902         GL_GENERATE_STDBOOL_H evaluates to false.
8903
8904         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8905         conditional GL_GENERATE_STDDEF_H.
8906         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8907         * modules/stddef (Makefile.am): Remove stddef.h if
8908         GL_GENERATE_STDDEF_H evaluates to false.
8909
8910         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8911         GL_GENERATE_STDINT_H.
8912         * modules/stdint (Makefile.am): Remove stdint.h if
8913         GL_GENERATE_STDINT_H evaluates to false.
8914
8915         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8916         GL_GENERATE_SYSEXITS_H.
8917         * modules/sysexits (Makefile.am): Remove sysexits.h if
8918         GL_GENERATE_SYSEXITS_H evaluates to false.
8919
8920         Reported by Karl Berry and Ralf Wildenhues.
8921
8922 2011-04-05  Bruno Haible  <bruno@clisp.org>
8923
8924         Ensure to rebuild generated .h files when config.status has changed.
8925         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8926         config.status.
8927         * modules/ctype (Makefile.am): Likewise.
8928         * modules/dirent (Makefile.am): Likewise.
8929         * modules/errno (Makefile.am): Likewise.
8930         * modules/fcntl-h (Makefile.am): Likewise.
8931         * modules/float (Makefile.am): Likewise.
8932         * modules/getopt-posix (Makefile.am): Likewise.
8933         * modules/glob (Makefile.am): Likewise.
8934         * modules/iconv-h (Makefile.am): Likewise.
8935         * modules/inttypes (Makefile.am): Likewise.
8936         * modules/langinfo (Makefile.am): Likewise.
8937         * modules/locale (Makefile.am): Likewise.
8938         * modules/math (Makefile.am): Likewise.
8939         * modules/netdb (Makefile.am): Likewise.
8940         * modules/netinet_in (Makefile.am): Likewise.
8941         * modules/poll-h (Makefile.am): Likewise.
8942         * modules/pthread (Makefile.am): Likewise.
8943         * modules/pty (Makefile.am): Likewise.
8944         * modules/sched (Makefile.am): Likewise.
8945         * modules/search (Makefile.am): Likewise.
8946         * modules/selinux-h (Makefile.am): Likewise.
8947         * modules/signal (Makefile.am): Likewise.
8948         * modules/spawn (Makefile.am): Likewise.
8949         * modules/stdarg (Makefile.am): Likewise.
8950         * modules/stdbool (Makefile.am): Likewise.
8951         * modules/stddef (Makefile.am): Likewise.
8952         * modules/stdint (Makefile.am): Likewise.
8953         * modules/stdio (Makefile.am): Likewise.
8954         * modules/stdlib (Makefile.am): Likewise.
8955         * modules/string (Makefile.am): Likewise.
8956         * modules/strings (Makefile.am): Likewise.
8957         * modules/sys_file (Makefile.am): Likewise.
8958         * modules/sys_ioctl (Makefile.am): Likewise.
8959         * modules/sys_select (Makefile.am): Likewise.
8960         * modules/sys_socket (Makefile.am): Likewise.
8961         * modules/sys_stat (Makefile.am): Likewise.
8962         * modules/sys_time (Makefile.am): Likewise.
8963         * modules/sys_times (Makefile.am): Likewise.
8964         * modules/sys_utsname (Makefile.am): Likewise.
8965         * modules/sys_wait (Makefile.am): Likewise.
8966         * modules/sysexits (Makefile.am): Likewise.
8967         * modules/termios (Makefile.am): Likewise.
8968         * modules/time (Makefile.am): Likewise.
8969         * modules/unistd (Makefile.am): Likewise.
8970         * modules/wchar (Makefile.am): Likewise.
8971         * modules/wctype-h (Makefile.am): Likewise.
8972         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8973
8974 2011-04-05  Bruno Haible  <bruno@clisp.org>
8975
8976         pipe2: Relicense under LGPLv2+.
8977         * modules/pipe2 (License): Change to LGPLv2+.
8978         Requested by Eric Blake, for libvirt.
8979
8980 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8981
8982         bootstrap: compute gnulib_extra_files after updating build_aux
8983         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8984         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8985
8986 2011-04-05  Eric Blake  <eblake@redhat.com>
8987
8988         bootstrap: preserve git whitelist item sorting
8989         * build-aux/bootstrap (sort_patterns): New function.
8990         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8991
8992 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8993
8994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8995         sc_space_tab check.
8996
8997 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         areadlink, areadlinkat: rewrite in terms of careadlinkat
9000         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9001         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9002         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9003         (malloc, realloc): Remove #undefs.
9004         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9005         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9006         readlink, ssize_t, stdint, unistd.
9007         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9008         areadlink, stdint.
9009
9010         careadlinkat: new module
9011         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9012         * modules/careadlinkat: New files, written by me with
9013         a review and feedback from Ben Pfaff in
9014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9015
9016 2011-04-01  Bruno Haible  <bruno@clisp.org>
9017
9018         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9019         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9020         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9021         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9022         Reported by Bruce Korb <bruce.korb@gmail.com>.
9023
9024 2011-04-01  Bruno Haible  <bruno@clisp.org>
9025
9026         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9027         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9028         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9029         * modules/wcpcpy (Depends-on): Add extensions.
9030         * modules/wcpncpy (Depends-on): Likewise.
9031         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9032         systems.
9033         * doc/posix-functions/wcpncpy.texi: Likewise.
9034         * doc/posix-functions/wcwidth.texi: Likewise.
9035
9036 2011-03-31  Eric Blake  <eblake@redhat.com>
9037
9038         nonblocking: fix mingw test failures
9039         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9040         non-blocking flag on regular file.
9041         (get_nonblocking_flag): Set errno on invalid fd.
9042         * tests/test-nonblocking.c (main): Avoid test failure on
9043         directories if fchdir is not active.
9044         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9045
9046 2011-03-31  Bruno Haible  <bruno@clisp.org>
9047
9048         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9049         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9050         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9051         Reported by Simon Josefsson <simon@josefsson.org>.
9052
9053 2011-03-31  Bruno Haible  <bruno@clisp.org>
9054         and Eric Blake  <eblake@redhat.com>
9055
9056         nonblocking: new module
9057         * modules/nonblocking: New module.
9058         * modules/nonblocking-tests: Likewise.
9059         * lib/nonblocking.h: New file.
9060         * lib/nonblocking.c: Likewise.
9061         * tests/test-nonblocking.c: New test.
9062         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9063
9064 2011-03-30  Bruno Haible  <bruno@clisp.org>
9065
9066         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9067         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9068         instead of 'printf' format for GCC >= 4.4.
9069         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9070         (fprintf, printf, vfprintf, vprintf): Declare with
9071         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9072         the system's vfprintf() function.
9073         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9074
9075 2011-03-30  Eric Blake  <eblake@redhat.com>
9076
9077         passfd: fix scoping bug
9078         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9079         before sendmsg/recvmsg.
9080
9081         passfd: standardize coding conventions
9082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9083         can be learned at compile time.
9084         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9085         ifdefs.
9086         (sendfd, recvfd): Follow gnulib code conventions.
9087
9088         passfd: fix incorrect sendmsg arguments
9089         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9090         incorrect msg_controllen value.
9091         * modules/passfd-tests (Depends-on): Check for alarm.
9092         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9093         Reported by Bastien ROUCARIES.
9094
9095 2011-03-30  Bruno Haible  <bruno@clisp.org>
9096
9097         c-strcasestr: Relicense under LGPLv2+.
9098         * modules/c-strcasestr (License): Change to LGPLv2+.
9099         Requested by Eric Blake, for libvirt.
9100
9101 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9102
9103         * users.txt: Add libidn2.  Fix libtasn1 link.
9104
9105 2011-03-30  Jim Meyering  <meyering@redhat.com>
9106
9107         tests: readlink* ("",... fails with EINVAL on newer kernels
9108         readlink and readlinkat have typically failed with ENOENT for
9109         the invalid, empty file name,  "".  However, with the advent
9110         of linux-2.6.39, they fail with EINVAL.
9111         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9112         when operating on the empty file name.
9113         * tests/test-readlink.h (test_readlink): Likewise.
9114
9115 2011-03-29  Bruno Haible  <bruno@clisp.org>
9116
9117         Relicense some modules under LGPLv2+, for libidn2.
9118         * modules/array-mergesort (License): Change to LGPLv2+.
9119         * modules/c-strcaseeq (License): Likewise.
9120         * modules/striconveh (License): Likewise.
9121         * modules/striconveha (License): Likewise.
9122         * modules/uniconv/base (License): Likewise.
9123         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9124         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9125         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9126         * modules/unictype/base (License): Likewise.
9127         * modules/unictype/bidiclass-of (License): Likewise.
9128         * modules/unictype/category-M (License): Likewise.
9129         * modules/unictype/category-none (License): Likewise.
9130         * modules/unictype/category-of (License): Likewise.
9131         * modules/unictype/category-test (License): Likewise.
9132         * modules/unictype/category-test-withtable (License): Likewise.
9133         * modules/unictype/combining-class (License): Likewise.
9134         * modules/unictype/joiningtype-of (License): Likewise.
9135         * modules/unictype/scripts (License): Likewise.
9136         * modules/uninorm/base (License): Likewise.
9137         * modules/uninorm/canonical-decomposition (License): Likewise.
9138         * modules/uninorm/composition (License): Likewise.
9139         * modules/uninorm/decompose-internal (License): Likewise.
9140         * modules/uninorm/decomposition-table (License): Likewise.
9141         * modules/uninorm/nfc (License): Likewise.
9142         * modules/uninorm/nfd (License): Likewise.
9143         * modules/uninorm/u32-normalize (License): Likewise.
9144         * modules/unistr/base (License): Likewise.
9145         * modules/unistr/u32-cpy (License): Likewise.
9146         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9147         * modules/unistr/u32-to-u8 (License): Likewise.
9148         * modules/unistr/u32-uctomb (License): Likewise.
9149         * modules/unistr/u8-check (License): Likewise.
9150         * modules/unistr/u8-mblen (License): Likewise.
9151         * modules/unistr/u8-mbtouc (License): Likewise.
9152         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9153         * modules/unistr/u8-mbtoucr (License): Likewise.
9154         * modules/unistr/u8-prev (License): Likewise.
9155         * modules/unistr/u8-strlen (License): Likewise.
9156         * modules/unistr/u8-to-u32 (License): Likewise.
9157         * modules/unistr/u8-uctomb (License): Likewise.
9158         * modules/unitypes (License): Likewise.
9159         Requested by Simon Josefsson.
9160
9161 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9162
9163         lib-symbol-visibility: Add a notice.
9164         * modules/lib-symbol-visibility (Notice): New field.
9165
9166 2011-03-29  Bruno Haible  <bruno@clisp.org>
9167
9168         getaddrinfo: Doc fix.
9169         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9170         section "fixed in Gnulib".
9171
9172 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9173
9174         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9175         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9176
9177 2011-03-26  Bruno Haible  <bruno@clisp.org>
9178
9179         unictype/property-byname: Reduce the number of load-time relocations.
9180         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9181         (UC_PROPERTY_INDEX_*): New enumeration values.
9182         (uc_property_byname): Convert an index from the lookup table to an
9183         uc_property_t.
9184         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9185         values.
9186
9187 2011-03-26  Bruno Haible  <bruno@clisp.org>
9188
9189         unictype/property-byname: Allow omitted word separators and aliases.
9190         * lib/unictype/pr_byname.gperf: Add property names without word
9191         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9192         for 'space'.
9193
9194 2011-03-26  Bruno Haible  <bruno@clisp.org>
9195
9196         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9197         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9198         also hyphens to space.
9199         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9200         without spaces.
9201         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9202
9203 2011-03-26  Bruno Haible  <bruno@clisp.org>
9204
9205         unictype/joiningtype-byname: Recognize long names as well.
9206         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9207         a long name.
9208         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9209         unictype/joiningtype_byname.h.
9210         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9211         * lib/unictype/joiningtype_byname.gperf: New file.
9212         * modules/unictype/joiningtype-byname (Files): Add
9213         lib/unictype/joiningtype_byname.gperf.
9214         (Depends-on): Add gperf.
9215         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9216         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9217         long names.
9218
9219         Tests for module 'unictype/joiningtype-longname'.
9220         * modules/unictype/joiningtype-longname-tests: New file.
9221         * tests/unictype/test-joiningtype_longname.c: New file.
9222
9223         New module 'unictype/joiningtype-longname'.
9224         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9225         * lib/unictype/joiningtype_longname.c: New file.
9226         * modules/unictype/joiningtype-longname: New file.
9227         * modules/unictype/joiningtype-all (Depends-on): Add
9228         unictype/joiningtype-longname.
9229
9230 2011-03-26  Bruno Haible  <bruno@clisp.org>
9231
9232         unictype/bidiclass-byname: Recognize long names as well.
9233         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9234         name.
9235         * lib/unictype/bidi_byname.c: Include <string.h>,
9236         unictype/bidi_byname.h.
9237         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9238         * lib/unictype/bidi_byname.gperf: New file.
9239         * modules/unictype/bidiclass-byname (Files): Add
9240         lib/unictype/bidi_byname.gperf.
9241         (Depends-on): Add gperf.
9242         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9243         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9244         long names.
9245
9246         Tests for module 'unictype/bidiclass-longname'.
9247         * modules/unictype/bidiclass-longname-tests: New file.
9248         * tests/unictype/test-bidi_longname.c: New file.
9249
9250         New module 'unictype/bidiclass-longname'.
9251         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9252         * lib/unictype/bidi_longname.c: New file.
9253         * modules/unictype/bidiclass-longname: New file.
9254         * modules/unictype/bidiclass-all (Depends-on): Add
9255         unictype/bidiclass-longname.
9256
9257 2011-03-26  Bruno Haible  <bruno@clisp.org>
9258
9259         unictype/bidi*: Rename modules.
9260         * modules/unictype/bidiclass-all: Renamed from
9261         modules/unictype/bidicategory-all.
9262         * modules/unictype/bidiclass-name: Renamed from
9263         modules/unictype/bidiclass-name.
9264         (Description): Update.
9265         * modules/unictype/bidiclass-name-tests: Renamed from
9266         modules/unictype/bidicategory-name-tests.
9267         * modules/unictype/bidiclass-byname: Renamed from
9268         modules/unictype/bidicategory-byname.
9269         (Description): Update.
9270         * modules/unictype/bidiclass-byname-tests: Renamed from
9271         modules/unictype/bidicategory-byname-tests.
9272         * modules/unictype/bidiclass-of: Renamed from
9273         modules/unictype/bidicategory-of.
9274         (Description): Update.
9275         * modules/unictype/bidiclass-of-tests: Renamed from
9276         modules/unictype/bidicategory-of-tests.
9277         * modules/unictype/bidiclass-test: Renamed from
9278         modules/unictype/bidicategory-test.
9279         (Description): Update.
9280         * modules/unictype/bidiclass-test-tests: Renamed from
9281         modules/unictype/bidicategory-test-tests.
9282         * modules/unictype/bidicategory-all: New file, a simple redirection.
9283         * modules/unictype/bidicategory-name: Likewise.
9284         * modules/unictype/bidicategory-byname: Likewise.
9285         * modules/unictype/bidicategory-of: Likewise.
9286         * modules/unictype/bidicategory-test: Likewise.
9287         * modules/unictype/property-bidi-* (Dependencies): Update.
9288         * lib/unictype/bidi_*.c: Update comment.
9289
9290 2011-03-26  Bruno Haible  <bruno@clisp.org>
9291
9292         unictype/bidi*: Rename functions, part 2.
9293         * modules/unictype/bidicategory-name (configure.ac): Update required
9294         libunistring version.
9295         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9296
9297 2011-03-25  Bruno Haible  <bruno@clisp.org>
9298
9299         New module 'unictype/combining-class-all'.
9300         * modules/unictype/combining-class-all: New file.
9301
9302         Tests for module 'unictype/combining-class-byname'.
9303         * modules/unictype/combining-class-byname-tests: New file.
9304         * tests/unictype/test-combiningclass_byname.c: New file.
9305
9306         New module 'unictype/combining-class-byname'.
9307         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9308         * lib/unictype/combiningclass_byname.c: New file.
9309         * lib/unictype/combiningclass_byname.gperf: New file.
9310         * modules/unictype/combining-class-byname: New file.
9311
9312         Tests for module 'unictype/combining-class-longname'.
9313         * modules/unictype/combining-class-longname-tests: New file.
9314         * tests/unictype/test-combiningclass_longname.c: New file.
9315
9316         New module 'unictype/combining-class-longname'.
9317         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9318         * lib/unictype/combiningclass_longname.c: New file.
9319         * modules/unictype/combining-class-longname: New file.
9320
9321         Tests for module 'unictype/combining-class-name'.
9322         * modules/unictype/combining-class-name-tests: New file.
9323         * tests/unictype/test-combiningclass_name.c: New file.
9324
9325         New module 'unictype/combining-class-name'.
9326         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9327         * lib/unictype/combiningclass_name.c: New file.
9328         * modules/unictype/combining-class-name: New file.
9329
9330 2011-03-25  Bruno Haible  <bruno@clisp.org>
9331
9332         unictype/combining-class: Rename source files.
9333         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9334         of unictype/combining.h.
9335         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9336         Update.
9337         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9338         * modules/unictype/combining-class (Description): Fix.
9339         (Files, Makefile.am): Update.
9340         * tests/unictype/test-combiningclass.c: Renamed from
9341         tests/unictype/test-combining.c.
9342         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9343
9344 2011-03-25  Bruno Haible  <bruno@clisp.org>
9345
9346         unictype: Update list of canonical combining classes.
9347         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9348
9349 2011-03-25  Bruno Haible  <bruno@clisp.org>
9350
9351         unictype/category-byname: Recognize long names as well.
9352         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9353         a long name.
9354         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9355         unictype/categ_byname.h.
9356         (UC_CATEGORY_INDEX_*): New enumeration values.
9357         (uc_general_category_byname): Use uc_general_category_lookup and
9358         convert from index to value.
9359         * lib/unictype/categ_byname.gperf: New file.
9360         * modules/unictype/category-byname (Files): Add
9361         lib/unictype/categ_byname.gperf.
9362         (Depends-on): Add gperf.
9363         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9364         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9365         long names.
9366
9367         Tests for module 'unictype/category-longname'.
9368         * modules/unictype/category-longname-tests: New file.
9369         * tests/unictype/test-categ_longname.c: New file.
9370
9371         New module 'unictype/category-longname'.
9372         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9373         * lib/unictype/categ_longname.c: New file.
9374         * modules/unictype/category-longname: New file.
9375         * modules/unictype/category-all (Depends-on): Add it.
9376
9377 2011-03-25  Bruno Haible  <bruno@clisp.org>
9378
9379         Tests for module 'unictype/category-LC'.
9380         * modules/unictype/category-LC-tests: New file.
9381         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9382
9383         New module 'unictype/category-LC'.
9384         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9385         (UC_CATEGORY_LC): New declaration.
9386         (UC_CASED_LETTER): New macro.
9387         * lib/gen-uni-tables.c (is_category_LC): New function.
9388         (output_categories): Also handle category LC.
9389         (UC_CATEGORY_MASK_LC): New enumeration value.
9390         (general_category_byname): Also handle category LC.
9391         * lib/unictype/categ_LC.c: New file.
9392         * lib/unictype/categ_LC.h: New file, automatically generated.
9393         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9394         category LC.
9395         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9396         * modules/unictype/category-LC: New file.
9397         * modules/unictype/category-byname (Depends-on): Add
9398         unictype/category-LC.
9399         * modules/unictype/category-all (Depends-on): Likewise.
9400
9401 2011-03-25  Eric Blake  <eblake@redhat.com>
9402
9403         xmalloc: revert yesterday's regression
9404         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9405         realloc's underlying behavior (allowing allocation of zero-size
9406         objects, especially if malloc-gnu is also in use).
9407
9408 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9409
9410         maint.mk: add missing version to VC-tag
9411         * top/maint.mk: git tag was missing actual tag name; add it.
9412
9413         valgrind: do leak checking, and exit with code 1 on error (not 0)
9414         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9415         to VALGRIND.
9416
9417 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9418
9419         posix-modules: say what it does.
9420         * posix-modules: Add a line to the --help output saying what it does.
9421
9422 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9423
9424         xmalloc: Do not leak if underlying realloc is C99 compatible.
9425         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9426         This avoids a leak on C99-based systems.  See
9427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9428
9429 2011-03-24  Eric Blake  <eblake@redhat.com>
9430
9431         realloc: document portability problem
9432         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9433         passing 0 size to realloc.
9434
9435 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9436
9437         doc: update users.txt
9438         * users.txt: Add cvsps, tmpwatch
9439
9440 2011-03-23  Matt Rice  <ratmice@gmail.com>
9441
9442         doc: update users.txt
9443         * users.txt: Add gdb.
9444
9445 2011-03-23  Jim Meyering  <meyering@redhat.com>
9446
9447         doc: update users.txt
9448         Looking through matches up to the following URL (there are still
9449         several more pages), I found several projects that use gnulib:
9450         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9451         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9452         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9453
9454 2011-03-22  Bruno Haible  <bruno@clisp.org>
9455
9456         unictype/bidi*: Rename functions.
9457         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9458         uc_bidi_class, uc_is_bidi_class): New declarations.
9459         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9460         uc_bidi_category_byname.
9461         (uc_bidi_category_byname): New function.
9462         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9463         u_bidi_category_name.
9464         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9465         (uc_bidi_category_name): New function.
9466         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9467         uc_bidi_category.
9468         (uc_bidi_category): New function.
9469         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9470         uc_is_bidi_category. Invoke uc_bidi_class.
9471         (uc_is_bidi_category): New function.
9472         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9473         instead of uc_bidi_category_byname.
9474         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9475         instead of uc_bidi_category_name.
9476         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9477         uc_bidi_category.
9478         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9479         instead of uc_is_bidi_category.
9480
9481 2011-03-21  Bruno Haible  <bruno@clisp.org>
9482
9483         New module 'unictype/joininggroup-all'.
9484         * modules/unictype/joininggroup-all: New file.
9485
9486         Tests for module 'unictype/joininggroup-of'.
9487         * modules/unictype/joininggroup-of-tests: New file.
9488         * tests/unictype/test-joininggroup_of.c: New file.
9489         * tests/unictype/test-joininggroup_of.h: New file, automatically
9490         generated by gen-uni-tables.
9491
9492         New module 'unictype/joininggroup-of'.
9493         * modules/unictype/joininggroup-of: New file.
9494         * lib/unictype/joininggroup_of.c: New file.
9495         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9496         gen-uni-tables.
9497
9498         Tests for module 'unictype/joininggroup-byname'.
9499         * modules/unictype/joininggroup-byname-tests: New file.
9500         * tests/unictype/test-joininggroup_byname.c: New file.
9501
9502         New module 'unictype/joininggroup-byname'.
9503         * modules/unictype/joininggroup-byname: New file.
9504         * lib/unictype/joininggroup_byname.c: New file.
9505         * lib/unictype/joininggroup_byname.gperf: New file.
9506
9507         Tests for module 'unictype/joininggroup-name'.
9508         * modules/unictype/joininggroup-name-tests: New file.
9509         * tests/unictype/test-joininggroup_name.c: New file.
9510
9511         New module 'unictype/joininggroup-name'.
9512         * modules/unictype/joininggroup-name: New file.
9513         * lib/unictype/joininggroup_name.c: New file.
9514         * lib/unictype/joininggroup_name.h: New file.
9515
9516         New module 'unictype/joiningtype-all'.
9517         * modules/unictype/joiningtype-all: New file.
9518
9519         Tests for module 'unictype/joiningtype-of'.
9520         * modules/unictype/joiningtype-of-tests: New file.
9521         * tests/unictype/test-joiningtype_of.c: New file.
9522         * tests/unictype/test-joiningtype_of.h: New file, automatically
9523         generated by gen-uni-tables.
9524
9525         New module 'unictype/joiningtype-of'.
9526         * modules/unictype/joiningtype-of: New file.
9527         * lib/unictype/joiningtype_of.c: New file.
9528         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9529         gen-uni-tables.
9530
9531         Tests for module 'unictype/joiningtype-byname'.
9532         * modules/unictype/joiningtype-byname-tests: New file.
9533         * tests/unictype/test-joiningtype_byname.c: New file.
9534
9535         New module 'unictype/joiningtype-byname'.
9536         * modules/unictype/joiningtype-byname: New file.
9537         * lib/unictype/joiningtype_byname.c: New file.
9538
9539         Tests for module 'unictype/joiningtype-name'.
9540         * modules/unictype/joiningtype-name-tests: New file.
9541         * tests/unictype/test-joiningtype_name.c: New file.
9542
9543         New module 'unictype/joiningtype-name'.
9544         * modules/unictype/joiningtype-name: New file.
9545         * lib/unictype/joiningtype_name.c: New file.
9546
9547         unictype: Add support for Arabic shaping properties.
9548         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9549         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9550         declarations.
9551         (UC_JOINING_GROUP_*): New enumeration values.
9552         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9553         declarations.
9554         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9555         (unicode_joining_type): New variable.
9556         (UC_JOINING_GROUP_*): New enumeration values.
9557         (unicode_joining_group): New variable.
9558         (fill_arabicshaping, joining_type_as_c_identifier,
9559         output_joining_type_test, output_joining_type,
9560         joining_group_as_c_identifier, output_joining_group_test,
9561         output_joining_group): New functions.
9562         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9563         fill_arabicshaping and output_joining_type_test, output_joining_type,
9564         output_joining_group_test, output_joining_group.
9565         Reported by Simon Josefsson.
9566
9567 2011-03-21  Jim Meyering  <meyering@redhat.com>
9568
9569         strftime: fix a bug in yesterday's change
9570         * lib/strftime.c (add): Accommodate width's initial value of -1.
9571         Otherwise, nstrftime would copy uninitialized data into
9572         the result buffer.
9573
9574 2011-03-21  Jim Meyering  <meyering@redhat.com>
9575
9576         tests: add strftime-tests module
9577         * tests/test-strftime.c: New file.
9578         * modules/strftime-tests: New module.
9579
9580 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9581
9582         strftime: don't assume a byte count fits in 'int'
9583         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9584         found this problem by static analysis, using gcc -Wstrict-overflow
9585         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9586         on an integer overflow having undefined behavior, but it turns out
9587         that the argument is a size, which might not fit in 'int' anyway,
9588
9589 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9590
9591         stdio: don't require ignore_value around fwrite
9592
9593         This patch works around libc bug 11959
9594         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9595         Without this patch, applications must often write
9596         ignore_value (fwrite (...)) even though the ignore_value is
9597         not helpful here.  It's common to write many objects, using
9598         fwrite/printf/etc., and then use ferror to detect output error.
9599
9600         I considered making this patch optional, but decided against it,
9601         because libc is obviously being inconsistent here: there is no
9602         reason libc should insist that user code must inspect fwrite
9603         return's value without also insisting that it inspect printf's,
9604         putchar's, etc.  If user code wants to have a strict style where
9605         all these functions' values are checked (so that ferror need not
9606         be checked), we could add support for that style in a new gnulib
9607         module, but in the meantime it's better to be consistent and to
9608         support common usage.
9609
9610         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9611         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9612         that we are compiling in checking mode, and if not C++, and
9613         if not already wrapping fwrite for some other reason.
9614         (fwrite): #define to rpl_fwrite if the latter is defined.
9615
9616 2011-03-20  Bruno Haible  <bruno@clisp.org>
9617
9618         verror: Fix compilation error introduced on 2011-02-13.
9619         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9620         instead of __attribute__.
9621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9622
9623 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9624             Bruno Haible  <bruno@clisp.org>
9625
9626         socklen: do not depend on sys_socket
9627         While trying to modify Emacs to use gnulib's socklen module,
9628         I discovered a circular dependency: socklen depends on sys_socket
9629         and vice versa.  Emacs can use socklen, but it does not need
9630         sys_socket because it has its own substitute for sys/socket.h.
9631         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9632         gl_TYPE_SOCKLEN_T.
9633         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9634         gl_PREREQ_SYS_H_SOCKET.
9635         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9636         gl_PREREQ_SYS_H_SOCKET.
9637         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9638         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9639         * modules/socklen (Depends-on): Do not depend on sys_socket.
9640         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9641
9642 2011-03-20  Jim Meyering  <meyering@redhat.com>
9643
9644         maint.mk: sort file names *after* new transformation
9645         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9646         prefix would have led to an unwarranted failure in GNU parted.
9647         Sort after that transformation.
9648
9649 2011-03-19  Jim Meyering  <meyering@redhat.com>
9650
9651         maint.mk: fix po-file syntax-check rule
9652         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9653         Patch by Bruno Haible.
9654
9655 2011-03-19  Bruno Haible  <bruno@clisp.org>
9656
9657         socklen: Update comment.
9658         * m4/socklen.m4: Update comment about platforms.
9659
9660 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9661             Bruno Haible  <bruno@clisp.org>
9662
9663         inet_ntop, inet_pton: Simplify.
9664         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9665         documented to provide socklen_t and we already depend on sys_socket.
9666         * modules/inet_pton (Depends-on): Likewise.
9667         * lib/arpa_inet.in.h: Adjust comment.
9668
9669 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9670             Bruno Haible  <bruno@clisp.org>
9671
9672         netdb: Simplify.
9673         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9674         documented to provide socklen_t and we already depend on sys_socket.
9675         * lib/netdb.in.h: Adjust comment.
9676
9677 2011-03-19  Bruno Haible  <bruno@clisp.org>
9678
9679         sys_socket, netdb: Document problem with socklen_t.
9680         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9681         platforms.
9682         * doc/posix-headers/netdb.texi: Likewise.
9683
9684 2011-03-18  Eric Blake  <eblake@redhat.com>
9685
9686         maint.mk: let po check work in VPATH build
9687         * top/maint.mk (po_file): Allow cfg.mk override.
9688         (sc_po_check): Allow VPATH use.
9689         Reported by Jiri Denemark.
9690
9691 2011-03-16  Jim Meyering  <meyering@redhat.com>
9692
9693         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9694         Before, you would have had to create one .x-sc_ file per rule in order
9695         to exempt offending files.  Now, you may instead use a Make variable --
9696         usually defined in cfg.mk -- whose name identifies the affected rule.
9697         * top/maint.mk (_sc_excl): Define.
9698         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9699         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9700
9701 2011-03-13  Bruno Haible  <bruno@clisp.org>
9702
9703         ignore-value tests: Avoid warnings.
9704         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9705         empty for gcc < 3.4.
9706
9707 2011-03-13  Bruno Haible  <bruno@clisp.org>
9708
9709         passfd: Fix link error on Solaris.
9710         * modules/passfd (Description): Correct.
9711         (Depends-on): Add socketlib.
9712         (Link): New section.
9713         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9714
9715 2011-03-13  Bruno Haible  <bruno@clisp.org>
9716
9717         passfd: Fix link error on AIX 5.2.
9718         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9719
9720 2011-03-13  Bruno Haible  <bruno@clisp.org>
9721
9722         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9723         * lib/sys_socket.in.h: Include <stddef.h>.
9724         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9725         CMSG_FIRSTHDR. Remove unused variable.
9726
9727 2011-03-13  Bruno Haible  <bruno@clisp.org>
9728
9729         passfd: Fix compilation error on OpenBSD.
9730         * lib/passfd.c: Include <sys/uio.h>.
9731
9732 2011-03-13  Bruno Haible  <bruno@clisp.org>
9733
9734         passfd test: Fix warnings.
9735         * tests/test-passfd.c: Include <sys/wait.h>.
9736         (main): Fix typo.
9737
9738 2011-03-13  Bruno Haible  <bruno@clisp.org>
9739
9740         passfd module, part 4, tweaks.
9741         * tests/test-passfd.c: Reorder includes.
9742         (main): Fix perror and printf calls.
9743
9744 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9745
9746         passfd module, part 4.
9747         * modules/passfd-tests: New file.
9748         * tests/test-passfd.c: New file.
9749
9750 2011-03-13  Jim Meyering  <meyering@redhat.com>
9751
9752         Makefile: rely on GNU make; derive syntax-check rule names
9753         Rather than requiring that each sc_ rule be listed as a dependent
9754         of "check", use features of GNU make to derive the list.
9755         * Makefile (syntax-check-rules): Define.
9756         (check): Depend on the new variable, not the hard-coded list.
9757
9758 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9759             Bruno Haible  <bruno@clisp.org>
9760
9761         passfd module, part 3.
9762         * lib/passfd.h (recvfd): Add a flags argument.
9763         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9764         (recvfd): Add a flags argument.
9765         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9766         exists.
9767         * modules/passfd (Depends-on): Add cloexec.
9768         Suggested by Eric Blake.
9769
9770 2011-03-13  Bruno Haible  <bruno@clisp.org>
9771
9772         passfd module, part 2, tweaks.
9773         * modules/passfd (Files): Reorder.
9774         (Depends-on): Remove errno.
9775         (Include): Remove <sys/socket.h>, <sys/un.h>.
9776         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9777         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9778         specification header. Include <sys/socket.h> always. Don't include
9779         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9780         (sendfd): Clarify that it sets errno when it fails.
9781         (recvfd): Fix specification.
9782
9783 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9784
9785         passfd module, part 2.
9786         * modules/passfd: New file.
9787         * lib/passfd.h: New file.
9788         * lib/passfd.c: New file.
9789
9790 2011-03-12  Bruno Haible  <bruno@clisp.org>
9791
9792         wcswidth, mbswidth: Avoid integer overflow.
9793         * lib/wcswidth.c: Include <limits.h>.
9794         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9795         * lib/mbswidth.c: Include <limits.h>.
9796         (mbsnwidth): Avoid 'int' overflow.
9797         Reported by Jim Meyering.
9798
9799 2011-03-12  Bruno Haible  <bruno@clisp.org>
9800
9801         futimens, utimensat: Avoid endless recursion on Solaris 10.
9802         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9803         Solaris.
9804         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9805         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9806
9807 2011-03-11  Jim Meyering  <meyering@redhat.com>
9808
9809         maint.mk: relax a regexp to accommodate other formatting styles
9810         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9811         between "ngettext" and the following "(".
9812
9813 2011-03-11  Pádraig Brady <P@draigBrady.com>
9814
9815         maint.mk: suppress a false positive warning
9816         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9817         diagnostics are marked with ngettext.
9818
9819 2011-03-10  Eric Blake  <eblake@redhat.com>
9820
9821         wchar: add explicit dependencies, for Tru64
9822         * modules/mbmemcasecoll (Depends-on): Add wchar.
9823         * modules/mbtowc (Depends-on): Likewise.
9824         * modules/vasnprintf (Depends-on): Likewise.
9825         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9826         * modules/wctomb (Depends-on): Likewise.
9827         Reported by Peter O'Gorman.
9828
9829 2011-03-08  Bruno Haible  <bruno@clisp.org>
9830
9831         passfd module, part 1, tweaks.
9832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9833         Improve indentation. Improve AC_MSG_CHECKING messages.
9834         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9835         gl_SOCKET_FAMILIES.
9836
9837 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9838
9839         passfd module, part 1.
9840         * m4/afunix.m4: New file.
9841         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9842         sockets.
9843
9844 2011-03-08  Bruno Haible  <bruno@clisp.org>
9845
9846         regex-quote: New API.
9847         * lib/regex-quote.h: Include <stdbool.h>.
9848         (struct regex_quote_spec): New type.
9849         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9850         New declarations.
9851         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9852         'const struct regex_quote_spec *' argument.
9853         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9854         (pcre_special): New constant.
9855         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9856         New functions.
9857         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9858         'const struct regex_quote_spec *' argument.
9859         * modules/regex-quote (Depends-on): Add stdbool.
9860         * tests/test-regex-quote.c (check): Update for new API. Add test for
9861         anchored results.
9862         * NEWS: Mention the API change.
9863         Reported by Reuben Thomas and Eric Blake.
9864
9865 2011-03-06  Bruno Haible  <bruno@clisp.org>
9866
9867         regex-quote: Fix creation of POSIX extended regular expressions.
9868         * lib/regex-quote.c (ere_special): Add grouping and alternation
9869         operators.
9870
9871 2011-03-05  Bruno Haible  <bruno@clisp.org>
9872
9873         doc: Improve doc regarding autopoint vs. gnulib.
9874         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9875         disable autopoint while running autoreconf.
9876         Suggested by Ralf Wildenhues.
9877
9878 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9879
9880         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9881         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9882
9883 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9884
9885         parse-duration: remove xalloc.h dependency
9886         * lib/parse-duration.c (parse_period): handle NULL return from
9887         strdup instead of calling xstrdup().
9888         * modules/parse-duration: remove "xalloc" dependency
9889
9890 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9891
9892         bootstrap: honor m4_base when running aclocal
9893         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9894
9895 2011-03-02  Jim Meyering  <meyering@redhat.com>
9896
9897         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9898         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9899         on request from Matt Booth.
9900
9901 2011-03-01  Eric Blake  <eblake@redhat.com>
9902
9903         test-link: work on Hurd
9904         * tests/test-link.h (test_link): Hurd rejects linking directories
9905         with EISDIR instead of the POSIX-mandated EPERM.
9906
9907 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         stdio: simplify by moving files to printf-posix, sigpipe
9910         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9911         since this symbol is needed only if printf is replaced.
9912         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9913         Require gl_ASM_SYMBOL_PREFIX.
9914         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9915         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9916         (Depends-on): Add 'raise'.
9917         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9918         * modules/stdio (Files): Remove lib/stdio-write.c,
9919         m4/asm-underscore.m4.
9920         (Depends-on): Remove 'raise'.
9921
9922         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9923         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9924         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9925         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9926
9927 2011-02-28  Bruno Haible  <bruno@clisp.org>
9928
9929         localcharset: Assume ANSI C behaviour of free().
9930         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9931         calling free().
9932         Suggested by Simon Josefsson <simon@josefsson.org>.
9933
9934 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9935             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9936             Bruno Haible  <bruno@clisp.org>  (tiny change)
9937
9938         On Cygwin, use /proc file system instead of win32 API.
9939         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9940         Win32 file names.
9941         (DllMain): Simplify by removing Cygwin specific code.
9942         (find_shared_library_fullname): Use Linux specific implementation also
9943         for Cygwin.
9944         (get_shared_library_fullname): Update accordingly.
9945         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9946         Win32 file names.
9947         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9948         Cygwin specific code.
9949
9950 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9951             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9952
9953         Fix OpenMP flag detection for various Fortran compilers.
9954         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9955         OpenMP-conditional compilation construct, to force compile
9956         failure with missing OpenMP flag.
9957         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9958
9959 2011-02-25  Eric Blake  <eblake@redhat.com>
9960
9961         strstr: expand test coverage
9962         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9963         compilation.
9964         * tests/test-memmem.c (main): Duplicate tests.
9965         * tests/test-strcasestr.c (main): Likewise.
9966         * tests/test-c-strcasestr.c (main): Likewise.
9967
9968 2011-02-25  Jim Meyering  <meyering@redhat.com>
9969
9970         maint.mk: detect missing-NL-at-EOF, too
9971         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9972         it also detects when a file lacks a newline at EOF.
9973         (require_exactly_one_NL_at_EOF_): Renamed from
9974         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9975         since people may well have .x-sc_... file names tied to the
9976         existing name.  Suggested by Eric Blake.
9977
9978 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9979
9980         dirname: move m4/dos.m4 functionality into lib/dosname.h
9981
9982         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9983         extracts symbols from it, puts them into config.h; but it's much
9984         easier to use the symbols directly.  filename.h already does this,
9985         but it disagrees with dos.m4 in some respects.  This patch
9986         introduces a different include file dosname.h that packages up
9987         dos.m4, and then later we can work on merging filename.h and
9988         dosname.h.  Applications that need only the easy-to-configure
9989         symbols should consider including dosname.h rather than dirname.h.
9990         * NEWS: Mention incompatible changes.
9991         * m4/dos.m4: Remove.
9992         * lib/dosname.h, modules/dosname: New files.
9993         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9994         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9995         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9996         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9997         Include dosname.h, not dirname.h.
9998         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9999         Include dosname.h, for definitions of symbols like ISSLASH
10000         that used to be in config.h.
10001         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10004         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10005         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10006         * modules/rmdir (Files): Likewise.
10007         * modules/stat (Files): Likewise.
10008         * modules/unlink (Files): Likewise.
10009         * modules/dirname-lgpl (Depends-on): Add dosname.
10010         * modules/lstat (Depends-on): Likewise.
10011         * modules/openat (Depends-on): Likewise.
10012         * modules/rmdir (Depends-on): Likewise.
10013         * modules/savewd (Depends-on): Likewise.
10014         * modules/stat (Depends-on): Likewise.
10015         * modules/unlink (Depends-on): Likewise.
10016         * modules/openat (Depends-on): Remove dirname-lgpl.
10017         * modules/savewd (Depends-on): Likewise.
10018         * tests/test-dirname.c: Do not use removed symbols like
10019         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10020         the remaining symbols, e.g., ISSLASH ('\\').
10021
10022 2011-02-25  Eric Blake  <eblake@redhat.com>
10023
10024         strstr: revert patches that introduced bug and pessimization
10025         * lib/str-two-way.h: Add another reference.
10026         (two_way_short_needle, two_way_long_needle): Revert changes from
10027         2011-02-24; they pessimize search speed.
10028         (critical_factorization): Partially revert changes from
10029         2010-06-22; they violate the requirement that the left half of the
10030         needle be smaller than the period of the needle.
10031
10032 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10033
10034         filenamecat: remove unnecessary dependency on dirname-lgpl
10035         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10036         is no direct dependency, just an indirect one via filenamecat-lgpl.
10037
10038         remove: remove unnecessary use of m4/dos.m4
10039         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10040         * modules/remove (FILES): Remove m4/dos.m4.
10041
10042         * lib/openat-proc.c: Don't include dirname.h; not needed.
10043
10044         backupfile: remove unnecessary use of m4/dos.m4
10045         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10046         of its symbols are used by the backupfile code.  backupfile.c does
10047         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10048         for the rare case of programs that want all their backup file
10049         names to live within 8+3 limits, and dos.m4 doesn't address that.
10050         * modules/backupfile (Files): Remove m4/dos.m4.
10051
10052 2011-02-24  Jim Meyering  <meyering@redhat.com>
10053
10054         strstr: fix a bug whereby strstr would mistakenly return NULL
10055         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10056         in period calculation.
10057         (two_way_long_needle): Likewise.
10058         The original problem was reported by Mike Stump in
10059         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10060         Ralf Wildenhues provided the short needle and haystack.
10061         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10062         Add a more involved test to trigger the bug in two_way_long_needle.
10063
10064 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10065
10066         gnulib-tool: remove use of bold display in help screen
10067         * gnulib-tool (func_usage): Do not use bold display anymore in the
10068         help screen.  That was just meant to be a temporary emphasis for a
10069         backward-incompatible change.
10070
10071 2011-02-23  Bruno Haible  <bruno@clisp.org>
10072
10073         Fix misindentation of preprocessor directives.
10074         * lib/argp-namefrob.h: Reindent preprocessor directives.
10075         * lib/getopt_int.h (struct _getopt_data): Likewise.
10076         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10077         * lib/vasnprintf.c (decode_long_double): Likewise.
10078         * tests/test-argmatch.c: Insert blank lines, for clarity.
10079         * tests/test-exclude.c: Likewise.
10080
10081 2011-02-22  Bruno Haible  <bruno@clisp.org>
10082
10083         ioctl: Fix for MacOS X in 64-bit mode.
10084         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10085         value.
10086         Suggested by Eric Blake.
10087         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10088
10089 2011-02-22  Jim Meyering  <meyering@redhat.com>
10090
10091         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10092         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10093         in lib/.
10094
10095 2011-02-22  Eric Blake  <eblake@redhat.com>
10096
10097         maint: avoid any CDPATH issue
10098         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10099
10100         maint: adjust cpp indentation for my modules, as well
10101         * Makefile (sc_cpp_indent_check): Add my name.
10102         * lib/fbufmode.c: Filter through cppi.
10103         * lib/fpurge.c: Likewise.
10104         * lib/freadable.c: Likewise.
10105         * lib/freading.c: Likewise.
10106         * lib/fwritable.c: Likewise.
10107         * lib/fwriting.c: Likewise.
10108         * lib/sigaction.c: Likewise.
10109
10110 2011-02-22  Jim Meyering  <meyering@redhat.com>
10111
10112         maint: adjust cpp indentation to reflect nesting depth
10113         I.e., in a block of code that begins with an unnested "#if",
10114         put one space between the "#" in column 1 and following token.
10115         For example,
10116         -#include <sys/vfs.h>
10117         +# include <sys/vfs.h>
10118         Do this only in .c files that are part of a module I maintain.
10119         * lib/linkat.c: Filter through cppi.
10120         * lib/nanosleep.c: Likewise.
10121         * lib/openat.c: Likewise.
10122         * lib/openat-die.c: Likewise.
10123         * lib/dup3.c: Likewise.
10124         * lib/fchownat.c: Likewise.
10125         * lib/flock.c: Likewise.
10126         * lib/fsync.c: Likewise.
10127         * lib/fts.c: Likewise.
10128         * lib/getpass.c: Likewise.
10129         * lib/gettimeofday.c: Likewise.
10130         * lib/userspec.c: Likewise.
10131         * Makefile (sc_cpp_indent_check): New rule, to check this.
10132
10133 2011-02-22  Bruno Haible  <bruno@clisp.org>
10134
10135         New module 'wctomb'.
10136         * lib/stdlib.in.h (wctomb): New declaration.
10137         * lib/wctomb.c: New file.
10138         * lib/wctomb-impl.h: New file.
10139         * m4/wctomb.m4: New file.
10140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10141         REPLACE_WCTOMB.
10142         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10143         REPLACE_WCTOMB.
10144         * modules/wctomb: New file.
10145         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10146         * doc/posix-functions/wctomb.texi: Mention the new module.
10147         * modules/wctob (Depends-on): Add wctomb.
10148
10149 2011-02-22  Bruno Haible  <bruno@clisp.org>
10150
10151         New module 'mbtowc'.
10152         * lib/stdlib.in.h (mbtowc): New declaration.
10153         * lib/mbtowc.c: New file.
10154         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10155         * m4/mbtowc.m4: New file.
10156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10157         REPLACE_MBTOWC.
10158         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10159         REPLACE_MBTOWC.
10160         * modules/mbtowc: New file.
10161         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10162         * doc/posix-functions/mbtowc.texi: Mention the new module.
10163         * modules/btowc (Depends-on): Add mbtowc.
10164
10165 2011-02-22  Bruno Haible  <bruno@clisp.org>
10166
10167         wcrtomb: Add more tests for native Windows platforms.
10168         * tests/test-wcrtomb-w32-1.sh: New file.
10169         * tests/test-wcrtomb-w32-2.sh: New file.
10170         * tests/test-wcrtomb-w32-3.sh: New file.
10171         * tests/test-wcrtomb-w32-4.sh: New file.
10172         * tests/test-wcrtomb-w32-5.sh: New file.
10173         * tests/test-wcrtomb-w32.c: New file.
10174         * modules/wcrtomb-tests (Files): Add them.
10175         (Makefile.am): Arrange to run these tests.
10176         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10177         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10178
10179 2011-02-20  Bruno Haible  <bruno@clisp.org>
10180
10181         wcrtomb: Enhance test.
10182         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10183
10184 2011-02-20  Bruno Haible  <bruno@clisp.org>
10185
10186         mbrtowc: Tiny optimization.
10187         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10188
10189 2011-02-20  Jim Meyering  <meyering@redhat.com>
10190
10191         test-exclude.c: remove unmatched #endif
10192         * tests/test-exclude.c: Remove stray #endif, left over from
10193         the change of a week ago.
10194
10195 2011-02-19  Jim Meyering  <meyering@redhat.com>
10196
10197         git-version-gen: skip "-dirty" check when appropriate
10198         * build-aux/git-version-gen: Don't run any git commands when the
10199         version string comes from .tarball-version.  Prior to this, we
10200         would run git update-index --refresh even from a just-unpacked
10201         tarball directory, and that could affect a .git/ directory in a
10202         parent of the build directory.  Reported by Mike Frysinger.
10203
10204 2011-02-19  Bruno Haible  <bruno@clisp.org>
10205
10206         unictype/property-byname: Reduce the size of the 'data' segment.
10207         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10208
10209 2011-02-19  Bruno Haible  <bruno@clisp.org>
10210
10211         unictype/scripts: Reduce the size of the 'data' segment.
10212         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10213         '%pic'.
10214         * lib/unictype/scripts_byname.gperf: Regenerated.
10215
10216 2011-02-19  Bruno Haible  <bruno@clisp.org>
10217
10218         stdint: Update documentation.
10219         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10220
10221 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         stdint: omit redundant check for wchar.h
10224         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10225         always tests whether wchar.h exists, so remove the now-redundant test.
10226
10227 2011-02-18  Bruno Haible  <bruno@clisp.org>
10228
10229         stdint: Cut dependency to module 'wchar'.
10230         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10231         include the necessary prerequisites.
10232         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10233         * modules/stdint (Depends-on): Remove wchar.
10234         (Makefile.am): Substitute HAVE_WCHAR_H.
10235         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10236
10237 2011-02-18  Eric Blake  <eblake@redhat.com>
10238
10239         longlong: skip, rather than fail, on cross-compilation
10240         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10241         when cross-compiling; regression from 2011-02-16.
10242
10243 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10244
10245         * NEWS: Mention 2011-02-08 change to stdlib.
10246
10247 2011-02-17  Bruno Haible  <bruno@clisp.org>
10248
10249         getloadavg: Add comments about platforms.
10250         * m4/getloadavg.m4: Add comment.
10251         * lib/getloadavg.c: Likewise.
10252
10253 2011-02-17  Bruno Haible  <bruno@clisp.org>
10254
10255         getloadavg: Fix link error on Solaris 2.6.
10256         * modules/getloadavg (Link): New section.
10257         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10258         linking test-getloadavg.
10259         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10260         getloadavg.
10261
10262 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10263
10264         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10265         It was 'int', but this doesn't match the IRIX 6.5 manual.
10266         Suggested by Bruno Haible in
10267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10268
10269 2011-02-17  Bruno Haible  <bruno@clisp.org>
10270
10271         havelib: Fix comments.
10272         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10273         change.
10274
10275 2011-02-17  Bruno Haible  <bruno@clisp.org>
10276
10277         havelib: Update config.rpath.
10278         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10279
10280 2011-02-17  Bruno Haible  <bruno@clisp.org>
10281
10282         getloadavg test: Add some plausibility checks.
10283         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10284         is improbable.
10285
10286 2011-02-16  Eric Blake  <eblake@redhat.com>
10287
10288         maintainer-makefile: make syntax-check a no-op from tarballs
10289         * top/maint.mk (no-vc-detected): New rule.
10290         (local-checks-available): Use it to avoid hanging if someone tries
10291         'make syntax-check' from a tarball.  Also append to any non-syntax
10292         checks already defined in cfg.mk.
10293
10294 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10295
10296         longlong: tune, particularly for common case of c99
10297
10298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10299         or running anything if c99, or if unsigned long long int does not
10300         work.  In either case, we know the answer without further tests.
10301         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10302         it at most once, and use its results for both long long int and
10303         unsigned long long int.  This is more likely to be efficient in
10304         the common case where the program wants to check for both long
10305         long int and unsigned long long int.
10306         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10307         since the answer is already known.
10308
10309 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10310
10311         getloadavg: set errno
10312         * lib/getloadavg.c: Set errno when returning -1.  If no other
10313         error number looks appropriate, set it to ENOSYS if the getloadavg
10314         looks like it can't possibly ever work, ENOTSUP otherwise.
10315         Suggested by Bruno Haible in
10316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10317
10318         getloadavg: trim unused parts and speed up 'configure'
10319         * NEWS: Document this.
10320         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10321         always compiled if getloadavg is absent.
10322         Move test code to ...
10323         * tests/test-getloadavg.c: New file, containing previous
10324         contents of test from lib/getloadavg.c.  It also contains
10325         suggestions by Bruno Haible in
10326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10327         * modules/getloadavg-tests: New file.
10328         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10329         Do tests in the same order as they're needed for getloadavg.c.
10330         Omit setgid-related tests that generate symbols KMEM_GROUP,
10331         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10332         Do only the tests that are needed to see whether the system has
10333         getloadavg, moving the other tests into ...
10334         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10335         NLIST_NAME_UNION; nobody should be using it.  Do not define
10336         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10337         relevant, as the user of this module shouldn't care how getloadavg
10338         is implemented.
10339
10340         getloadavg: omit unused var
10341         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10342
10343 2011-02-15  Jim Meyering  <meyering@redhat.com>
10344
10345         doc: update users.txt
10346         * users.txt: Update iwhd's URL.
10347
10348 2011-02-13  Bruno Haible  <bruno@clisp.org>
10349
10350         Consistent macro naming for macros that use GCC __attribute__.
10351         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10352         _ATTRIBUTE_NONNULL_.
10353         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10354         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10355         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10356         ATTRIBUTE_DEPRECATED.
10357         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10358         ATTRIBUTE_NORETURN.
10359         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10360         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10361         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10362         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10363         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10364         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10365         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10366         ATTRIBUTE_SENTINEL.
10367         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10368         ATTRIBUTE_RETURN_CHECK.
10369         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10370         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10371         ATTRIBUTE_NORETURN.
10372         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10373         Reported by Paul Eggert.
10374
10375 2011-02-13  Bruno Haible  <bruno@clisp.org>
10376
10377         Don't interfere with a program's definition of __attribute__.
10378         * lib/argp.h (__attribute__): Remove definition.
10379         (_GL_ATTRIBUTE_FORMAT): New macro.
10380         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10381         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10382         (_GL_ATTRIBUTE_FORMAT): New macro.
10383         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10384         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10385         GCC 3 or newer.
10386         * lib/error.h (__attribute__): Remove definition.
10387         (_GL_ATTRIBUTE_FORMAT): New macro.
10388         (error, error_at_line): Use it.
10389         * lib/hash.h (__attribute__): Remove definition.
10390         (ATTRIBUTE_WUR): Update definition. Define always.
10391         * lib/openat.h (__attribute__): Remove definition.
10392         (ATTRIBUTE_NORETURN): Update definition. Define always.
10393         * lib/sigpipe-die.h (__attribute__): Remove definition.
10394         (ATTRIBUTE_NORETURN): Update definition. Define always.
10395         * lib/vasnprintf.h (__attribute__): Remove definition.
10396         (_GL_ATTRIBUTE_FORMAT): New macro.
10397         (asnprintf, vasnprintf): Use it.
10398         * lib/xalloc.h (__attribute__): Remove definition.
10399         (ATTRIBUTE_NORETURN): Update definition. Define always.
10400         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10401         * lib/xmemdup0.h (__attribute__): Remove definition.
10402         (ATTRIBUTE_NORETURN): Update definition. Define always.
10403         * lib/xprintf.h (__attribute__): Remove definition.
10404         (_GL_ATTRIBUTE_FORMAT): New macro.
10405         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10406         * lib/xstrtol.h (__attribute__): Remove definition.
10407         (ATTRIBUTE_NORETURN): Update definition. Define always.
10408         * lib/xvasprintf.h (__attribute__): Remove definition.
10409         (_GL_ATTRIBUTE_FORMAT): New macro.
10410         (xasprintf, xvasprintf): Use it.
10411         * tests/test-argmatch.c (__attribute__): Remove definition.
10412         (ATTRIBUTE_NORETURN): Update definition. Define always.
10413         * tests/test-exclude.c (__attribute__): Remove definition.
10414         (ATTRIBUTE_NORETURN): Update definition. Define always.
10415         Reported by Paul Eggert.
10416
10417 2011-02-13  Bruno Haible  <bruno@clisp.org>
10418
10419         mbrtowc: Add more tests for native Windows platforms.
10420         * tests/test-mbrtowc-w32-1.sh: New file.
10421         * tests/test-mbrtowc-w32-2.sh: New file.
10422         * tests/test-mbrtowc-w32-3.sh: New file.
10423         * tests/test-mbrtowc-w32-4.sh: New file.
10424         * tests/test-mbrtowc-w32-5.sh: New file.
10425         * tests/test-mbrtowc-w32.c: New file.
10426         * modules/mbrtowc-tests (Files): Add them.
10427         (Makefile.am): Arrange to run these tests.
10428         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10429         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10430
10431 2011-02-13  Bruno Haible  <bruno@clisp.org>
10432
10433         mbrtowc: Work around native Windows bug.
10434         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10435         guess when no suitable locale for testing was found.
10436         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10437
10438 2011-02-13  Bruno Haible  <bruno@clisp.org>
10439
10440         mbsinit: Work around mingw bug.
10441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10442         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10443         Windows.
10444         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10445
10446 2011-02-13  Bruno Haible  <bruno@clisp.org>
10447
10448         mbsinit: Don't crash for a NULL argument.
10449         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10450         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10451
10452 2011-02-13  Bruno Haible  <bruno@clisp.org>
10453
10454         Don't interfere with a program's definition of __attribute__.
10455         * lib/stdio.in.h (__attribute__): Remove definition.
10456         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10457         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10458         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10459         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10460         * lib/string.in.h (__attribute__): Remove definition.
10461         Reported by Paul Eggert.
10462
10463 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10464
10465         stdlib: don't get in the way of non-GCC __attribute__
10466         See thread starting at
10467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10468         Revert previous stdlib change, installing the following instead:
10469         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10470         to get in the way of a non-GCC compiler that supports __attribute__.
10471         (_GL_ATTRIBUTE_RETURN): New macro.
10472         (_Exit): Use it instead of __attribute__.
10473
10474 2011-02-12  Bruno Haible  <bruno@clisp.org>
10475
10476         quotearg test: Avoid test failure on mingw.
10477         * tests/test-quotearg.sh: Convert the locale identifier from native
10478         Windows syntax to Unix syntax.
10479
10480 2011-02-12  Bruno Haible  <bruno@clisp.org>
10481
10482         setlocale: Prefer gnulib's override over libintl's override.
10483         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10484         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10485         GNULIB_defined_setlocale is set.
10486
10487 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10488
10489         stdlib: support non-GCC __attribute__
10490
10491         Fix a serious and tricky problem encountered when attempting to
10492         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10493         5.5, but it crashed due to memory corruption on Solaris 10 with
10494         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10495         bits that are otherwise zero.  This tagging is optional inside
10496         Emacs but is preferred and is used when __attribute__ ((__aligned
10497         (8))) works, as it does with both recent-enough GCC and with Sun C
10498         5.11.  However, Sun C 5.11 is not GCC and does not #define
10499         __GNUC__ and __GNUC_MINOR__.
10500
10501         When I added the getloadavg module to Emacs, it brought in
10502         stdlib.in.h, which contained this fragment:
10503
10504            #ifndef __attribute__
10505            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10506            #  define __attribute__(Spec)   /* empty */
10507            # endif
10508            #endif
10509
10510         When files that include <stdlib.h> were compiled with Sun C 5.11,
10511         the above code disabled __attribute__ ((__aligned (8))), which
10512         caused variables to not be properly aligned, which eventually led
10513         to the pointer corruption mentioned above.  (This was a bit hard
10514         to diagnose, unfortunately.)
10515
10516         Several "#define __attribute__(X) /* empty */" code snippets need
10517         to be eradicated from Gnulib to work with non-GCC compilers that
10518         support __attribute__.  The Autoconf way to do this is to test for
10519         each kind of attribute that we want support for, and selectively
10520         enable that in source code.
10521
10522         Fix this problem just for stdlib.h, by adding a test for the
10523         __noreturn__ attribute, and change stdlib.in.h to use that test
10524         when needed.  This technique can be easily generalized to the
10525         other *.in.h files and attributes, and a similar technique can be
10526         used for *.h and *.c files.  This patch is enough to solve the
10527         problem for Emacs + getloadavg, and I thought I'd publish it for
10528         feedback before undertaking further, similar fixes in other
10529         modules.
10530
10531         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10532         because it's not needed for stdlib.h.  It merely substitutes the
10533         value directly into stdlib.h.  We may well need to #define it, or
10534         similar symbols, for other modules, but it's nice to also have an
10535         option to not #define it for applications like Emacs that do not
10536         need it.
10537
10538         * lib/stdlib.in.h (__attribute__): Do not #define.
10539         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10540         be defined only if the _Exit module is also used.
10541         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10543         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10544         platforms.
10545         * modules/_Exit (Files): Add m4/attribute.m4.
10546         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10547         * m4/attribute.m4: New file.
10548
10549 2011-02-12  Bruno Haible  <bruno@clisp.org>
10550
10551         wcsrtombs: Work around bug on native Windows.
10552         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10553         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10554         instead of len.
10555         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10556
10557 2011-02-12  Bruno Haible  <bruno@clisp.org>
10558
10559         mbsrtowcs: Work around bug on native Windows.
10560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10561         against mingw bug.
10562         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10563
10564 2011-02-12  Bruno Haible  <bruno@clisp.org>
10565
10566         Avoid setlocale bugs in tests.
10567         * modules/btowc (Dependencies): Add setlocale.
10568         * modules/c-strcase (Dependencies): Likewise.
10569         * modules/mbmemcasecmp (Dependencies): Likewise.
10570         * modules/mbmemcasecoll (Dependencies): Likewise.
10571         * modules/mbrtowc (Dependencies): Likewise.
10572         * modules/mbscasecmp (Dependencies): Likewise.
10573         * modules/mbscasestr (Dependencies): Likewise.
10574         * modules/mbschr (Dependencies): Likewise.
10575         * modules/mbscspn (Dependencies): Likewise.
10576         * modules/mbsinit (Dependencies): Likewise.
10577         * modules/mbsncasecmp (Dependencies): Likewise.
10578         * modules/mbsnrtowcs (Dependencies): Likewise.
10579         * modules/mbspbrk (Dependencies): Likewise.
10580         * modules/mbspcasecmp (Dependencies): Likewise.
10581         * modules/mbsrchr (Dependencies): Likewise.
10582         * modules/mbsrtowcs (Dependencies): Likewise.
10583         * modules/mbsspn (Dependencies): Likewise.
10584         * modules/mbsstr (Dependencies): Likewise.
10585         * modules/nl_langinfo (Dependencies): Likewise.
10586         * modules/quotearg (Dependencies): Likewise.
10587         * modules/unicase/locale-language (Dependencies): Likewise.
10588         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10589         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10590         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10591         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10592         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10593         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10594         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10595         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10596         * modules/vasnprintf-posix (Dependencies): Likewise.
10597         * modules/wcrtomb (Dependencies): Likewise.
10598         * modules/wcsnrtombs (Dependencies): Likewise.
10599         * modules/wcsrtombs (Dependencies): Likewise.
10600
10601 2011-02-12  Bruno Haible  <bruno@clisp.org>
10602
10603         setlocale: Workaround native Windows bug.
10604         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10605         succeeds but sets LC_CTYPE to "C", report a failure.
10606         * tests/test-setlocale2.sh: New file.
10607         * tests/test-setlocale2.c: New file.
10608         * modules/setlocale-tests (Files): Add the new files.
10609         (Makefile.am): Enable test-setlocale2.sh test.
10610         * doc/posix-functions/setlocale.texi: Mention workaround.
10611
10612 2011-02-11  Bruno Haible  <bruno@clisp.org>
10613
10614         Tests for module 'setlocale'.
10615         * modules/setlocale-tests: New file.
10616         * tests/test-setlocale1.sh: New file.
10617         * tests/test-setlocale1.c: New file.
10618
10619         New module 'setlocale'.
10620         * lib/locale.in.h (setlocale): New declaration.
10621         * lib/setlocale.c: New file, based on
10622         gettext/gettext-runtime/intl/setlocale.c.
10623         * m4/setlocale.m4: New file.
10624         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10625         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10626         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10627         REPLACE_SETLOCALE.
10628         * modules/setlocale: New file.
10629         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10630         * doc/posix-functions/setlocale.texi: Mention the new module.
10631
10632 2011-02-11  Bruno Haible  <bruno@clisp.org>
10633
10634         Prepare for locale dependent tests on mingw.
10635         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10636         because it has the wrong locale encoding.
10637         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10638         French_France.1252 instead of "fr".
10639         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10640         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10641         because it has the wrong locale encoding.
10642         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10643         native Windows, try Turkish_Turkey.65001.
10644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10645         Chinese_China.54936.
10646
10647         Prepare for locale dependent tests on mingw.
10648         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10649         differently.
10650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10651         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10654
10655 2011-02-11  Eric Blake  <eblake@redhat.com>
10656
10657         strptime: avoid compiler warnings
10658         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10659         compiler warnings about dead code.
10660         Reported by Daniel P. Berrange.
10661
10662 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10663
10664         doc: update users.txt
10665         * users.txt: Add rcs.
10666
10667 2011-02-10  John W. Eaton  <jwe@gnu.org>
10668
10669         doc: update users.txt
10670         * users.txt: Add octave.
10671
10672 2011-02-10  Jim Meyering  <meyering@redhat.com>
10673
10674         doc: update users.txt
10675         * users.txt: Add iwhd.
10676
10677 2011-02-09  Bruno Haible  <bruno@clisp.org>
10678
10679         gnulib-tool: Make copyright notice adjustment more robust.
10680         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10681         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10682         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10683         License".
10684         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10685
10686 2011-02-06  Bruno Haible  <bruno@clisp.org>
10687
10688         New module 'towctrans'.
10689         * modules/towctrans: New file.
10690         * lib/wctype.in.h (towctrans): New declaration.
10691         * lib/towctrans.c: New file.
10692         * lib/towctrans-impl.h: New file.
10693         * m4/towctrans.m4: New file.
10694         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10695         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10696         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10697         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10698         * doc/posix-functions/towctrans.texi: Mention the new module.
10699
10700 2011-02-06  Bruno Haible  <bruno@clisp.org>
10701
10702         New module 'wctrans'.
10703         * modules/wctrans: New file.
10704         * lib/wctype.in.h (wctrans): New declaration.
10705         * lib/wctrans.c: New file.
10706         * lib/wctrans-impl.h: New file.
10707         * m4/wctrans.m4: New file.
10708         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10709         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10710         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10711         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10712         * doc/posix-functions/wctrans.texi: Mention the new module.
10713
10714 2011-02-06  Bruno Haible  <bruno@clisp.org>
10715
10716         New module 'iswctype'.
10717         * modules/iswctype: New file.
10718         * lib/wctype.in.h (iswctype): New declaration.
10719         * lib/iswctype.c: New file.
10720         * lib/iswctype-impl.h: New file.
10721         * m4/iswctype.m4: New file.
10722         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10723         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10724         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10725         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10726         * doc/posix-functions/iswctype.texi: Mention the new module and the
10727         HP-UX 11.00 problem.
10728
10729 2011-02-06  Bruno Haible  <bruno@clisp.org>
10730
10731         New module 'wctype'.
10732         * modules/wctype: Change to represent the wctype() substitute.
10733         * lib/wctype.in.h (wctype): New declaration.
10734         * lib/wctype.c: New file.
10735         * lib/wctype-impl.h: New file.
10736         * m4/wctype.m4: New file.
10737         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10738         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10739         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10740         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10741         * doc/posix-functions/wctype.texi: Mention the new module and the
10742         HP-UX 11.00 problem.
10743
10744 2011-02-06  Bruno Haible  <bruno@clisp.org>
10745
10746         wctype-h: Ensure wctype_t and wctrans_t are defined.
10747         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10748         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10749         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10750         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10751         HAVE_WCTRANS_T.
10752         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10753
10754 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10755
10756         flock: fix license typo
10757
10758         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10759         omitted.
10760
10761 2011-02-08  Bruno Haible  <bruno@clisp.org>
10762
10763         Split large sed scripts, for HP-UX sed.
10764         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10765         to avoid HP-UX limit of 99 commands, in the near future.
10766         * modules/stdlib (Makefile.am): Likewise.
10767         * modules/unistd (Makefile.am): Likewise.
10768         * modules/wchar (Makefile.am): Likewise.
10769         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10770         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10772
10773 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10774             Bruno Haible  <bruno@clisp.org>
10775
10776         stdlib: improve random_r modularization
10777         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10778         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10779         you also need the random_r module to get this material right.
10780         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10781         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10782         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10783
10784 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10785
10786         stdlib: don't depend on stdint
10787         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10788         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10789         be independent of whether stdint.h is needed.
10790         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10791         here, instead of ...
10792         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10793         struct random_data should be using the random_r module, not just
10794         the stdlib module (which wouldn't make sense: what package needs
10795         just struct random_data without also needing random_r?).
10796         * modules/stdlib (Depends-on): Remove stdint.
10797
10798         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10799         See the thread rooted at
10800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10801         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10802         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10803         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10804         __VMS)); previously it was always included (via fcntl--.h).
10805         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10806         hand; this is good enough for load averages.  Also, do not use
10807         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10808         flags directly if available and don't bother otherwise.  (Packages
10809         that need the extra reliability should use the modules that define
10810         these flags on older platforms that lack them.)
10811         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10812         fcntl-safer.
10813
10814 2011-02-08  Jim Meyering  <meyering@redhat.com>
10815
10816         di-set.h, ino-map.h: add multiple-inclusion guard
10817         Technically, the guard is required only for ino-map.h, due to its
10818         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10819         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10820         * lib/ino-map.h: Likewise.
10821
10822 2011-02-06  Bruno Haible  <bruno@clisp.org>
10823
10824         iswblank: Ensure declaration on glibc systems.
10825         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10826         * modules/iswblank (Dependencies): Add 'extensions'.
10827         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10828
10829 2011-02-06  Bruno Haible  <bruno@clisp.org>
10830
10831         New module 'iswblank'.
10832         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10833         * modules/iswblank: New file.
10834         * modules/wctype-h (Files): Remove lib/iswblank.c.
10835         (Makefile.am): Substitute GNULIB_ISWBLANK.
10836         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10837         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10838         (gl_WCTYPE_H_DEFAULTS): New macro.
10839         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10840         * modules/iswblank-tests: New file.
10841         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10842         * tests/test-wctype-h.c (main): Remove iswblank tests.
10843         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10844         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10845         of 'wctype-h'.
10846         * NEWS: Mention the change.
10847         * modules/mbchar (Depends-on): Add iswblank.
10848
10849 2011-02-08  Bruno Haible  <bruno@clisp.org>
10850
10851         di-set tests: Refactor.
10852         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10853         unnecessary includes.
10854         (ASSERT): Remove macro.
10855         (main): Make C90 compliant by avoiding variable declaration after
10856         statement.
10857         * modules/di-set-tests (Files): Add tests/macros.h.
10858
10859 2011-02-08  Bruno Haible  <bruno@clisp.org>
10860
10861         ino-map tests: Refactor.
10862         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10863         unnecessary includes.
10864         (ASSERT): Remove macro.
10865         (main): Make C90 compliant by avoiding variable declaration after
10866         statement.
10867         * modules/ino-map-tests (Files): Add tests/macros.h.
10868
10869 2011-02-08  Jim Meyering  <meyering@redhat.com>
10870
10871         di-set: add "const" to a cast
10872         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10873         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10874
10875 2011-02-06  Bruno Haible  <bruno@clisp.org>
10876
10877         Rename module 'wctype' to 'wctype-h'.
10878         * modules/wctype-h: Renamed from modules/wctype.
10879         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10880         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10881         (Files, Depends-on, Makefile.am): Update.
10882         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10883         (Files, Makefile.am): Update.
10884         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10885         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10886         * doc/posix-headers/wctype.texi: Update.
10887         * doc/posix-functions/iswalnum.texi: Update.
10888         * doc/posix-functions/iswalpha.texi: Update.
10889         * doc/posix-functions/iswblank.texi: Update.
10890         * doc/posix-functions/iswcntrl.texi: Update.
10891         * doc/posix-functions/iswdigit.texi: Update.
10892         * doc/posix-functions/iswgraph.texi: Update.
10893         * doc/posix-functions/iswlower.texi: Update.
10894         * doc/posix-functions/iswprint.texi: Update.
10895         * doc/posix-functions/iswpunct.texi: Update.
10896         * doc/posix-functions/iswspace.texi: Update.
10897         * doc/posix-functions/iswupper.texi: Update.
10898         * doc/posix-functions/iswxdigit.texi: Update.
10899         * doc/posix-functions/towlower.texi: Update.
10900         * doc/posix-functions/towupper.texi: Update.
10901         * NEWS: Mention the change.
10902         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10903         * modules/mbchar (Dependencies): Likewise.
10904         * modules/mbswidth (Dependencies): Likewise.
10905         * modules/quotearg (Dependencies): Likewise.
10906         * modules/regex (Dependencies): Likewise.
10907         * modules/wcscasecmp (Dependencies): Likewise.
10908         * modules/wcsncasecmp (Dependencies): Likewise.
10909         * modules/wcwidth (Dependencies): Likewise.
10910
10911 2011-02-06  Bruno Haible  <bruno@clisp.org>
10912
10913         New module 'wcswidth'.
10914         * modules/wcswidth: New file.
10915         * lib/wchar.in.h (wcswidth): New declaration.
10916         * lib/wcswidth.c: New file.
10917         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10918         * m4/wcswidth.m4: New file.
10919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10921         REPLACE_WCSWIDTH.
10922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10923         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10924         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10925         * doc/posix-functions/wcswidth.texi: Mention the new module.
10926
10927 2011-02-06  Bruno Haible  <bruno@clisp.org>
10928
10929         New module 'wcstok'.
10930         * modules/wcstok: New file.
10931         * lib/wchar.in.h (wcstok): New declaration.
10932         * lib/wcstok.c: New file.
10933         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10934         * m4/wcstok.m4: New file.
10935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10938         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10939         * doc/posix-functions/wcstok.texi: Mention the new module.
10940
10941 2011-02-06  Bruno Haible  <bruno@clisp.org>
10942
10943         New module 'wcsstr'.
10944         * modules/wcsstr: New file.
10945         * lib/wchar.in.h (wcsstr): New declaration.
10946         * lib/wcsstr.c: New file.
10947         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10948         * m4/wcsstr.m4: New file.
10949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10952         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10953         * doc/posix-functions/wcsstr.texi: Mention the new module.
10954
10955 2011-02-06  Bruno Haible  <bruno@clisp.org>
10956
10957         New module 'wcspbrk'.
10958         * modules/wcspbrk: New file.
10959         * lib/wchar.in.h (wcspbrk): New declaration.
10960         * lib/wcspbrk.c: New file.
10961         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10962         * m4/wcspbrk.m4: New file.
10963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10966         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10967         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10968
10969 2011-02-06  Bruno Haible  <bruno@clisp.org>
10970
10971         New module 'wcsspn'.
10972         * modules/wcsspn: New file.
10973         * lib/wchar.in.h (wcsspn): New declaration.
10974         * lib/wcsspn.c: New file.
10975         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10976         * m4/wcsspn.m4: New file.
10977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10980         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10981         * doc/posix-functions/wcsspn.texi: Mention the new module.
10982
10983 2011-02-06  Bruno Haible  <bruno@clisp.org>
10984
10985         New module 'wcscspn'.
10986         * modules/wcscspn: New file.
10987         * lib/wchar.in.h (wcscspn): New declaration.
10988         * lib/wcscspn.c: New file.
10989         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10990         * m4/wcscspn.m4: New file.
10991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10994         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10995         * doc/posix-functions/wcscspn.texi: Mention the new module.
10996
10997 2011-02-06  Bruno Haible  <bruno@clisp.org>
10998
10999         New module 'wcsrchr'.
11000         * modules/wcsrchr: New file.
11001         * lib/wchar.in.h (wcsrchr): New declaration.
11002         * lib/wcsrchr.c: New file.
11003         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11004         * m4/wcsrchr.m4: New file.
11005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11008         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11009         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11010
11011 2011-02-06  Bruno Haible  <bruno@clisp.org>
11012
11013         New module 'wcschr'.
11014         * modules/wcschr: New file.
11015         * lib/wchar.in.h (wcschr): New declaration.
11016         * lib/wcschr.c: New file.
11017         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11018         * m4/wcschr.m4: New file.
11019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11022         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11023         * doc/posix-functions/wcschr.texi: Mention the new module.
11024
11025 2011-02-06  Bruno Haible  <bruno@clisp.org>
11026
11027         New module 'wcsdup'.
11028         * modules/wcsdup: New file.
11029         * lib/wchar.in.h (wcsdup): New declaration.
11030         * lib/wcsdup.c: New file.
11031         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11032         * m4/wcsdup.m4: New file.
11033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11036         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11037         * doc/posix-functions/wcsdup.texi: Mention the new module.
11038
11039 2011-02-06  Bruno Haible  <bruno@clisp.org>
11040
11041         New module 'wcsxfrm'.
11042         * modules/wcsxfrm: New file.
11043         * lib/wchar.in.h (wcsxfrm): New declaration.
11044         * lib/wcsxfrm.c: New file.
11045         * lib/wcsxfrm-impl.h: New file.
11046         * m4/wcsxfrm.m4: New file.
11047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11050         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11051         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11052
11053 2011-02-06  Bruno Haible  <bruno@clisp.org>
11054
11055         New module 'wcscoll'.
11056         * modules/wcscoll: New file.
11057         * lib/wchar.in.h (wcscoll): New declaration.
11058         * lib/wcscoll.c: New file.
11059         * lib/wcscoll-impl.h: New file.
11060         * m4/wcscoll.m4: New file.
11061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11064         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11065         * doc/posix-functions/wcscoll.texi: Mention the new module.
11066
11067 2011-02-06  Bruno Haible  <bruno@clisp.org>
11068
11069         New module 'wcsncasecmp'.
11070         * modules/wcsncasecmp: New file.
11071         * lib/wchar.in.h (wcsncasecmp): New declaration.
11072         * lib/wcsncasecmp.c: New file.
11073         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11074         * m4/wcsncasecmp.m4: New file.
11075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11078         HAVE_WCSNCASECMP.
11079         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11080         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11081
11082 2011-02-06  Bruno Haible  <bruno@clisp.org>
11083
11084         New module 'wcscasecmp'.
11085         * modules/wcscasecmp: New file.
11086         * lib/wchar.in.h (wcscasecmp): New declaration.
11087         * lib/wcscasecmp.c: New file.
11088         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11089         * m4/wcscasecmp.m4: New file.
11090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11093         HAVE_WCSCASECMP.
11094         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11095         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11096
11097 2011-02-05  Bruno Haible  <bruno@clisp.org>
11098
11099         New module 'wcsncmp'.
11100         * modules/wcsncmp: New file.
11101         * lib/wchar.in.h (wcsncmp): New declaration.
11102         * lib/wcsncmp.c: New file.
11103         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11104         * m4/wcsncmp.m4: New file.
11105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11108         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11109         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11110
11111 2011-02-05  Bruno Haible  <bruno@clisp.org>
11112
11113         New module 'wcscmp'.
11114         * modules/wcscmp: New file.
11115         * lib/wchar.in.h (wcscmp): New declaration.
11116         * lib/wcscmp.c: New file.
11117         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11118         * m4/wcscmp.m4: New file.
11119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11122         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11123         * doc/posix-functions/wcscmp.texi: Mention the new module.
11124
11125 2011-02-05  Bruno Haible  <bruno@clisp.org>
11126
11127         New module 'wcsncat'.
11128         * modules/wcsncat: New file.
11129         * lib/wchar.in.h (wcsncat): New declaration.
11130         * lib/wcsncat.c: New file.
11131         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11132         * m4/wcsncat.m4: New file.
11133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11136         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11137         * doc/posix-functions/wcsncat.texi: Mention the new module.
11138
11139 2011-02-05  Bruno Haible  <bruno@clisp.org>
11140
11141         New module 'wcscat'.
11142         * modules/wcscat: New file.
11143         * lib/wchar.in.h (wcscat): New declaration.
11144         * lib/wcscat.c: New file.
11145         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11146         * m4/wcscat.m4: New file.
11147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11150         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11151         * doc/posix-functions/wcscat.texi: Mention the new module.
11152
11153 2011-02-05  Bruno Haible  <bruno@clisp.org>
11154
11155         New module 'wcpncpy'.
11156         * modules/wcpncpy: New file.
11157         * lib/wchar.in.h (wcpncpy): New declaration.
11158         * lib/wcpncpy.c: New file.
11159         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11160         * m4/wcpncpy.m4: New file.
11161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11163         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11164         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11165         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11166
11167 2011-02-05  Bruno Haible  <bruno@clisp.org>
11168
11169         New module 'wcsncpy'.
11170         * modules/wcsncpy: New file.
11171         * lib/wchar.in.h (wcsncpy): New declaration.
11172         * lib/wcsncpy.c: New file.
11173         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11174         * m4/wcsncpy.m4: New file.
11175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11178         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11179         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11180
11181 2011-02-05  Bruno Haible  <bruno@clisp.org>
11182
11183         New module 'wcpcpy'.
11184         * modules/wcpcpy: New file.
11185         * lib/wchar.in.h (wcpcpy): New declaration.
11186         * lib/wcpcpy.c: New file.
11187         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11188         * m4/wcpcpy.m4: New file.
11189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11191         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11192         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11193         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11194
11195 2011-02-05  Bruno Haible  <bruno@clisp.org>
11196
11197         New module 'wcscpy'.
11198         * modules/wcscpy: New file.
11199         * lib/wchar.in.h (wcscpy): New declaration.
11200         * lib/wcscpy.c: New file.
11201         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11202         * m4/wcscpy.m4: New file.
11203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11206         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11207         * doc/posix-functions/wcscpy.texi: Mention the new module.
11208
11209 2011-02-05  Bruno Haible  <bruno@clisp.org>
11210
11211         New module 'wcsnlen'.
11212         * modules/wcsnlen: New file.
11213         * lib/wchar.in.h (wcsnlen): New declaration.
11214         * lib/wcsnlen.c: New file.
11215         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11216         * m4/wcsnlen.m4: New file.
11217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11219         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11220         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11221         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11222
11223 2011-02-05  Bruno Haible  <bruno@clisp.org>
11224
11225         New module 'wcslen'.
11226         * modules/wcslen: New file.
11227         * lib/wchar.in.h (wcslen): New declaration.
11228         * lib/wcslen.c: New file.
11229         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11230         * m4/wcslen.m4: New file.
11231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11234         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11235         * doc/posix-functions/wcslen.texi: Mention the new module.
11236
11237 2011-02-05  Bruno Haible  <bruno@clisp.org>
11238
11239         New module 'wmemset'.
11240         * modules/wmemset: New file.
11241         * lib/wchar.in.h (wmemset): New declaration.
11242         * lib/wmemset.c: New file.
11243         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11244         * m4/wmemset.m4: New file.
11245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11247         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11248         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11249         * doc/posix-functions/wmemset.texi: Mention the new module.
11250
11251 2011-02-05  Bruno Haible  <bruno@clisp.org>
11252
11253         New module 'wmemmove'.
11254         * modules/wmemmove: New file.
11255         * lib/wchar.in.h (wmemmove): New declaration.
11256         * lib/wmemmove.c: New file.
11257         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11258         * m4/wmemmove.m4: New file.
11259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11261         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11262         HAVE_WMEMMOVE.
11263         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11264         * doc/posix-functions/wmemmove.texi: Mention the new module.
11265
11266 2011-02-05  Bruno Haible  <bruno@clisp.org>
11267
11268         New module 'wmemcpy'.
11269         * modules/wmemcpy: New file.
11270         * lib/wchar.in.h (wmemcpy): New declaration.
11271         * lib/wmemcpy.c: New file.
11272         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11273         * m4/wmemcpy.m4: New file.
11274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11276         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11277         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11278         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11279
11280 2011-02-05  Bruno Haible  <bruno@clisp.org>
11281
11282         New module 'wmemcmp'.
11283         * modules/wmemcmp: New file.
11284         * lib/wchar.in.h (wmemcmp): New declaration.
11285         * lib/wmemcmp.c: New file.
11286         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11287         * m4/wmemcmp.m4: New file.
11288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11290         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11291         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11292         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11293
11294 2011-02-07  Jim Meyering  <meyering@redhat.com>
11295
11296         di-set, ino-map: new modules, from coreutils
11297         * lib/di-set.c: New file.
11298         * lib/di-set.h: Likewise.
11299         * lib/ino-map.c: Likewise.
11300         * lib/ino-map.h: Likewise.
11301         * modules/di-set: Likewise.
11302         * modules/di-set-tests: Likewise.
11303         * modules/ino-map: Likewise.
11304         * modules/ino-map-tests: Likewise.
11305         * tests/test-di-set.c: Likewise.
11306         * tests/test-ino-map.c: Likewise.
11307
11308 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11309
11310         getloadavg: merge minor changes from Emacs
11311
11312         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11313         (getloadavg): Use memset, not bzero.
11314
11315         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11316         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11317         clash (bug#86).
11318
11319 2010-11-14  Bruno Haible  <bruno@clisp.org>
11320
11321         Allow multiple gnulib generated replacements to coexist.
11322         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11323         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11324         * lib/langinfo.in.h (nl_item): Likewise.
11325         * lib/math.in.h (_NaN, NAN): Likewise.
11326         * lib/netdb.in.h (struct addrinfo): Likewise.
11327         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11328         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11329         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11330         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11331         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11332         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11333         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11334         pthread_mutexattr_init, pthread_mutexattr_settype,
11335         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11336         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11337         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11338         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11339         * lib/sched.in.h (struct sched_param): Likewise.
11340         * lib/se-selinux.in.h (security_class_t, security_context_t,
11341         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11342         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11343         lsetfilecon, fsetfilecon, security_check_context,
11344         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11345         Likewise.
11346         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11347         Likewise.
11348         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11349         _gl_function_taking_int_returning_void_t, union sigval,
11350         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11351         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11352         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11353         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11354         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11355         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11356         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11357         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11358         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11359         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11360         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11361         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11362         socklen_t, rpl_fd_isset): Likewise.
11363         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11364         * lib/sys_time.in.h (struct timeval): Likewise.
11365         * lib/sys_times.in.h (struct tms): Likewise.
11366         * lib/sys_utsname.in.h (struct utsname):
11367         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11368         * lib/unistd.in.h (getpagesize): Likewise.
11369         * lib/wchar.in.h (mbstate_t): Likewise.
11370         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11371         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11372         towlower, towupper): Likewise.
11373         Reported by Sam Steingold <sds@gnu.org>.
11374
11375 2011-02-05  Eric Blake  <eblake@redhat.com>
11376
11377         unsetenv: work around Haiku issues
11378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11379         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11380
11381 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11382
11383         libposix: avoid calling error() within libposix
11384         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11385         is defined.
11386
11387 2011-02-05  Eric Blake  <eblake@redhat.com>
11388
11389         strerror_r-posix: port to cygwin
11390         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11391         implementation.
11392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11393         * tests/test-strerror_r.c (main): Fix test.
11394         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11395         issue.
11396
11397 2011-02-05  Bruno Haible  <bruno@clisp.org>
11398
11399         New module 'wmemchr'.
11400         * modules/wmemchr: New file.
11401         * lib/wchar.in.h (wmemchr): New declaration.
11402         * lib/wmemchr.c: New file.
11403         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11404         * m4/wmemchr.m4: New file.
11405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11407         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11408         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11409         * doc/posix-functions/wmemchr.texi: Mention the new module.
11410
11411 2011-02-04  Eric Blake  <eblake@redhat.com>
11412
11413         fdopendir: detect FreeBSD bug
11414         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11415         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11416
11417 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11418
11419         stdbool: do not define HAVE_STDBOOL_H
11420         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11421         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11422         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11423         imported from the latest Autoconf git.  It was motivated by Emacs,
11424         which uses gnulib but does not need HAVE_STDBOOL_H.
11425
11426 2011-02-04  Bruno Haible  <bruno@clisp.org>
11427
11428         wcsnrtombs: Prepare for new module wwcsnrtombs.
11429         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11430         * lib/wcsnrtombs.c: Include it.
11431         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11432
11433         wcsrtombs: Prepare for new module wwcsrtombs.
11434         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11435         * lib/wcsrtombs.c: Include it.
11436         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11437
11438         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11439         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11440         * lib/mbsnrtowcs.c: Include it.
11441         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11442
11443         mbsrtowcs: Prepare for new module mbsrtowwcs.
11444         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11445         * lib/mbsrtowcs.c: Include it.
11446         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11447
11448 2011-02-04  Bruno Haible  <bruno@clisp.org>
11449
11450         vasnprintf: Reduce use of malloc for small format strings.
11451         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11452         (arguments): Add room for the first 7 arguments.
11453         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11454         (char_directives, u8_directives, u16_directives, u32_directives): Add
11455         room for the first 7 directives.
11456         * lib/printf-parse.c: Include <string.h>.
11457         (PRINTF_PARSE): Change memory handling code so that it uses the first
11458         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11459         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11460         Reported by Pádraig Brady <P@draigbrady.com>.
11461
11462 2011-01-31  Eric Blake  <eblake@redhat.com>
11463
11464         dup2: work around Haiku bug
11465         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11466         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11467         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11468         * tests/test-dup2.c (main): Enhance test.
11469
11470 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11471
11472         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11473         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11474         declared by eglibc 2.11.2.
11475         * lib/stdio.in.h: Likewise.
11476
11477 2011-01-31  Eric Blake  <eblake@redhat.com>
11478
11479         ignore-value: add missing test dependency
11480         * tests/test-ignore-value.c: Revert previous change; stdio.h
11481         provides off_t.
11482         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11483
11484 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11485
11486         mktime: clarify long_int width checking
11487         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11488         the top level, to make it clearer that the assumption about
11489         long_int width is being checked.  See
11490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11491
11492 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11493
11494         ignore-value: Fix self-test.
11495         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11496
11497 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11498
11499         TYPE_MAXIMUM: avoid theoretically undefined behavior
11500         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11501         negative number, which the C Standard says has undefined behavior.
11502         In practice this is not a problem, but might as well do it by the book.
11503         Reported by Rich Felker and Eric Blake; see
11504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11505         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11506         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11508         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11509         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11510         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11511
11512         mktime: #undef mktime before #defining it
11513         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11514
11515         mktime: systematically normalize tm_isdst comparisons
11516         * lib/mktime.c (isdst_differ): New function.
11517         (__mktime_internal): Use it systematically for all isdst comparisons.
11518         This completes the fix for libc BZ #6723, and removes the need for
11519         normalizing tm_isdst.  See
11520         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11521         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11522
11523         mktime: fix some integer overflow issues and sidestep the rest
11524
11525         This was prompted by a bug report by Benjamin Lindner for MinGW
11526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11527         His bug is due to signed integer overflow (0 - INT_MIN), and I
11528         I scanned through mktime.c looking for other integer overflow
11529         problems, fixing all the bugs I found.
11530
11531         Although the C Standard says the resulting code is still not safe
11532         in the presence of integer overflow, in practice it should be good
11533         enough for all real-world two's-complement implementations, except
11534         for debugging environments that deliberately trap on integer
11535         overflow (e.g., gcc -ftrapv).
11536
11537         * lib/mktime.c (WRAPV): New macro.
11538         (SHR): Also check that long_int and time_t shift right in the
11539         usual way, before using the fast-but-unportable method.
11540         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11541         used.  The code already assumed two's complement, so there's
11542         no need to test for alternatives.  All uses removed.
11543         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11544         the C standard.  Problem reported by Rich Felker in
11545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11546         (twos_complement_arithmetic): Also check long_int and time_t.
11547         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11548         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11549         (__mktime_internal): Avoid integer overflow with unary subtraction
11550         in two instances where -1 - X is an adequate replacement for -X,
11551         since the calculations are approximate.
11552
11553 2011-01-29  Eric Blake  <eblake@redhat.com>
11554
11555         mktime: avoid infinite loop
11556         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11557         type; behavior is still undefined but portable to all known targets.
11558         Reported by Rich Felker.
11559
11560 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11561
11562         rename, unlink, same-inode: Relicense.
11563         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11564         * modules/unlink (License): Likewise.
11565         * modules/same-inode (License): Likewise.
11566
11567 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         mktime: avoid problems on NetBSD 5 / i386
11570         * lib/mktime.c (long_int): New type.  This works around a problem
11571         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11572         but time_t is 64 bits, and where I expect the existing code is
11573         wrong in some cases.
11574         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11575         (ydhms_diff): Bring back the compile-time check for wide-enough
11576         year and yday.
11577
11578         mktime: fix misspelling in comment
11579         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11580         This merges all recent glibc changes of importance.
11581
11582 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11583
11584         move-if-change: cope with concurrent mv of identical file.
11585         * build-aux/move-if-change (CMPPROG): Accept environment
11586         variable as an override for `cmp'.
11587         (usage): Document CMPPROG.
11588         Adjust comparison to drop stdout.  Cope with failure of mv if
11589         the target file exists and is identical to the source, for
11590         parallel builds.
11591         Report from H.J. Lu against binutils in PR binutils/12283.
11592
11593 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11594
11595         * users.txt: Mention sharutils.
11596
11597 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11598
11599         * users.txt: Mention OATH Toolkit.
11600
11601 2011-01-27  Bruno Haible  <bruno@clisp.org>
11602
11603         Prepare for supporting FreeBSD 10.
11604         * build-aux/config.libpath: Remove handling of freebsd1*.
11605
11606 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11607
11608         Prepare for supporting FreeBSD 10.
11609         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11610         match FreeBSD 10.0.
11611
11612 2011-01-27  Bruno Haible  <bruno@clisp.org>
11613
11614         vma-iter, get-rusage-as: Add OpenBSD support.
11615         * modules/vma-iter (configure.ac): Test for mquery.
11616         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11617         * lib/vma-iter.c: Include <sys/mman.h>.
11618         (vma_iterate): Add an implementation based on mquery().
11619         * lib/resource-ext.h (get_rusage_as): Update comments.
11620         * lib/get-rusage-as.c: Likewise.
11621         * lib/get-rusage-data.c: Likewise.
11622
11623 2011-01-26  Karl Berry  <karl@gnu.org>
11624
11625         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11626         variables to make it easier to override the makeinfo program used.
11627
11628 2011-01-26  Eric Blake  <eblake@redhat.com>
11629
11630         fcntl: work around Haiku F_DUPFD bugs
11631         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11632         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11633         cloexec bit on duplication.
11634         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11635
11636 2011-01-26  Bruno Haible  <bruno@clisp.org>
11637
11638         Enable memory leak tests on AIX.
11639         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11640         * tests/test-fprintf-posix3.c (main): Likewise.
11641
11642 2011-01-26  Bruno Haible  <bruno@clisp.org>
11643
11644         Tests for module 'get-rusage-data'.
11645         * modules/get-rusage-data-tests: New file.
11646         * tests/test-get-rusage-data.c: New file.
11647
11648         New module 'get-rusage-data'.
11649         * lib/resource-ext.h (get_rusage_data): New declaration.
11650         * lib/get-rusage-data.c: New file.
11651         * modules/get-rusage-data: New file.
11652
11653 2011-01-25  Bruno Haible  <bruno@clisp.org>
11654
11655         get-rusage-as: Allow for easier testing.
11656         * lib/resource-ext.h (get_rusage_as): Add comment.
11657         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11658         (main): New function for interactive testing.
11659
11660 2011-01-25  Bruno Haible  <bruno@clisp.org>
11661
11662         vma-iter: Treat Haiku like BeOS.
11663         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11664         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11665
11666 2011-01-25  Eric Blake  <eblake@redhat.com>
11667
11668         c-stack: fix regression on cygwin when libsigsegv is present
11669         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11670
11671 2011-01-24  Bruno Haible  <bruno@clisp.org>
11672
11673         vma-iter: Avoid empty intervals.
11674         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11675         on an empty interval.
11676
11677 2011-01-24  Jim Meyering  <meyering@redhat.com>
11678
11679         u64: remove unnecessary #include
11680         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11681
11682 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11683
11684         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11685         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11686
11687 2011-01-23  Bruno Haible  <bruno@clisp.org>
11688
11689         New module 'vma-iter'.
11690         * lib/vma-iter.h: New file.
11691         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11692         * modules/vma-iter: New file.
11693         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11694         for get_rusage_as_via_iterator.
11695         (vma_iterate_callback): New function.
11696         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11697         * modules/get-rusage-as (Depends-on): Add vma-iter.
11698
11699 2011-01-23  Bruno Haible  <bruno@clisp.org>
11700
11701         uninorm: Tweak includes.
11702         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11703         Reported by Jim Meyering.
11704
11705 2011-01-23  Bruno Haible  <bruno@clisp.org>
11706
11707         get-rusage-as: Improve on NetBSD.
11708         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11709         /proc, like on FreeBSD.
11710
11711 2011-01-23  Jim Meyering  <meyering@redhat.com>
11712
11713         xreadlink.h: remove unnecessary #include
11714         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11715
11716         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11717         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11718
11719 2011-01-23  Bruno Haible  <bruno@clisp.org>
11720
11721         get-rusage-as: Fix bug.
11722         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11723         original limit when aborting the first loop.
11724
11725 2011-01-23  Bruno Haible  <bruno@clisp.org>
11726
11727         wctype: Ensure valid C syntax.
11728         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11729         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11730
11731 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11735         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11736         as they are needed only for configure's test case.
11737         This removes two unnecessary symbols from config.h.
11738
11739         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11740         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11742         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11743         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11745         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11746         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11747         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11748         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11749         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11751         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11752         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11753         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11754         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11755         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11756         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11757
11758 2011-01-21  Eric Blake  <eblake@redhat.com>
11759
11760         maintainer-makefile: work with older git for submodule check
11761         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11762         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11763         Reported by Matthias Bolte.
11764
11765         bootstrap: minor portability fixes
11766         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11767         (usage): Omit leading capital and trailing . on help phrases, per
11768         GNU Coding Standards.
11769         (check_versions, top level): Prefix messages with script name.
11770
11771 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11772
11773         bootstrap: support --no-git option
11774         * build-aux/bootstrap: Add --no-git option, to be used when
11775         --gnulib-srcdir points to the exact desired checkout.
11776
11777 2011-01-21  Eric Blake  <eblake@redhat.com>
11778
11779         strerror_r-posix: work with glibc 2.13
11780         * lib/strerror_r.c (strerror_r): Fix return type.
11781
11782 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11783             Bruno Haible  <bruno@clisp.org>
11784
11785         uN_strstr: New unit tests.
11786         * modules/unistr/u8-strstr-tests: New file.
11787         * modules/unistr/u16-strstr-tests: New file.
11788         * modules/unistr/u32-strstr-tests: New file.
11789         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11790         * tests/unistr/test-u8-strstr.c: New file.
11791         * tests/unistr/test-u16-strstr.c: New file.
11792         * tests/unistr/test-u32-strstr.c: New file.
11793
11794 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11795             Bruno Haible  <bruno@clisp.org>
11796
11797         Make uN_strstr functions O(n) worst-case.
11798         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11799         16-bit and 32-bit unit cases, use the unibyte algorithm from
11800         lib/mbsstr.c.
11801         * lib/unistr/u8-strstr.c: Include <string.h>.
11802         (UNIT_IS_UINT8_T): New macro.
11803         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11804         (U_STRLEN, U_STRNLEN): New macros.
11805         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11806         (U_STRLEN, U_STRNLEN): New macros.
11807         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11808         (configure.ac): Update required libunistring version.
11809         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11810         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11811         malloca.
11812         (configure.ac): Update required libunistring version.
11813         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11814         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11815         malloca.
11816         (configure.ac): Update required libunistring version.
11817
11818 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11819             Bruno Haible  <bruno@clisp.org>
11820
11821         Prepare for faster uN_strstr functions.
11822         * lib/str-kmp.h: Support definable UNITs.
11823         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11824         needle_len argument.
11825         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11826         * lib/mbscasestr.c (mbscasestr): Likewise.
11827
11828 2011-01-21  Pádraig Brady <P@draigBrady.com>
11829
11830         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11831         * tests/test-malloca.c (main): Unset the environment variable
11832         to greatly speed up the test.
11833         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11834         * modules/malloca-tests: Depend on unsetenv.
11835
11836 2011-01-21  Pádraig Brady <P@draigBrady.com>
11837
11838         ignore-value: remove stdint dependency
11839         * lib/ignore-value.h: Remove <stdint.h>
11840         * modules/ignore-value: Remove stdint dependency.
11841
11842 2011-01-21  Jim Meyering  <meyering@redhat.com>
11843
11844         maint.mk: adjust variable name to be consistent with other gl_ vars
11845         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11846         to be lower case.
11847
11848 2011-01-20  Jim Meyering  <meyering@redhat.com>
11849
11850         maint.mk: make "check" depend on public-submodule-commit by default
11851         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11852
11853 2011-01-20  Bruno Haible  <bruno@clisp.org>
11854
11855         mbfile, mbiter: Complete change from 2008-12-21.
11856         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11857         * m4/mbiter.m4 (gl_MBITER): Likewise.
11858
11859 2011-01-20  Jim Meyering  <meyering@redhat.com>
11860
11861         init.sh: insert space between each function name and "()"
11862         * tests/init.sh: Make it a little easier to see that a function's
11863         name is "warn_", and not "warn" when looking at the first part of
11864         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11865
11866 2011-01-20  Jim Meyering  <meyering@redhat.com>
11867
11868         mountlist: clean up code formatting
11869         * lib/mountlist.c (read_file_system_list): Split a long line,
11870         correct bracing style, use NULL in place of "(struct statfs *)0",
11871         don't parenthesize return value, add spaces around "=" and after
11872         ";-in-for-stmt".
11873
11874 2011-01-14  Markus Duft <mduft@gentoo.org>
11875
11876         mountlist: add support for Interix
11877         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11878         Apply statvfs to all entries of /dev/fs.
11879         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11880         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11881
11882 2011-01-20  Jim Meyering  <meyering@redhat.com>
11883
11884         maint.mk: improve the public-submodule-commit rule
11885         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11886         to suppress printing of its commands... unless V=1.
11887         Add git submodule's --quiet option to suppress printing of e.g.,
11888         "Entering gnulib" output.
11889         "cd" into $(srcdir) before running git submodule.
11890
11891 2011-01-20  Bruno Haible  <bruno@clisp.org>
11892
11893         include_next: Fix bug introduced on 2011-01-18.
11894         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11895         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11896         ac_cv_header_... variable if the second argument is not 'check'.
11897         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11898         gl_NEXT_HEADERS_INTERNAL.
11899
11900 2011-01-20  Bruno Haible  <bruno@clisp.org>
11901
11902         Allow the user to avoid the GNULIB_TEST_* macros.
11903         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11904         Suggested by Paul Eggert.
11905
11906 2011-01-14  Jim Meyering  <meyering@redhat.com>
11907
11908         bootstrap: avoid failure when there is no .gitmodules file
11909         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11910         has been assigned to, even when its value is the empty string.
11911         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11912         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11913         Reported by John W. Eaton <jwe@gnu.org>.
11914
11915 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11916
11917         assume <ctype.h>, ..., <time.h> exist
11918         For years gnulib has been assuming the existence of the headers
11919         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11920         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11921         them, since they don't appear to be needed.
11922         * README (Portability guidelines): Document this.
11923         * lib/flock.c: Assume <fcntl.h> exists.
11924         * lib/regex_internal.h: Assume <locale.h> exists.
11925         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11927         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11928         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11929         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11930         * m4/regex.m4 (gl_REGEX): Likewise.
11931         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11932         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11933         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11934         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11935         * tests/test-argp.c: Likewise.
11936         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11937
11938         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11939         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11940         AA_APPLE_UNIVERSAL_BUILD.  See
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11942         * NEWS: Document this.
11943
11944 2011-01-19  Eric Blake  <eblake@redhat.com>
11945
11946         c-stack: assume stack overflow if SA_SIGINFO unsupported
11947         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11948         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11949         sigaction will work.
11950         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11951         behavior match Linux.
11952         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11953
11954         stdbool-tests: accomodate Haiku
11955         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11956
11957         binary-io: fix O_TEXT on Haiku
11958         * modules/binary-io (Depends-on): Add fcntl-h.
11959         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11960         than blindly undefining O_TEXT.
11961         Reported by Scott McCreary.
11962
11963 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11964
11965         include_next: do not check for standard headers like stddef.h
11966
11967         I found this problem when modifying Emacs to use gnulib.
11968         I noticed that it added HAVE_STDDEF_H to config.h, even though
11969         gnulib always assumes <stddef.h> exists as per README and this
11970         symbol is unnecessary.
11971         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11972         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11973         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11974         faster for headers like stddef.h that are known to exist.
11975         (gl_CHECK_NEXT_HEADERS): Use it.
11976         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11977         rather than gl_CHECK_NEXT_HEADERS.
11978         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11979         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11980
11981 2011-01-18  Eric Blake  <eblake@redhat.com>
11982
11983         ansi-c++-opt: skip C++ dependency style if C++ is unused
11984         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11985         tests when we know C++ compilation is not desired.
11986         Reported by Scott McCreary.
11987
11988 2011-01-18  Bruno Haible  <bruno@clisp.org>
11989
11990         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11991         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11992         (main): Perform test also when getrlimit and setrlimit don't exist or
11993         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11994         limiting the address space size using setrlimit, compare the address
11995         space size before and after the the test.
11996         * tests/test-dprintf-posix2.c: Likewise.
11997         * tests/test-fprintf-posix3.sh: Update skip messages.
11998         * tests/test-dprintf-posix2.sh: Likewise.
11999         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12000         * modules/dprintf-posix-tests (Depends-on): Likewise.
12001         Reported by Bruce Korb <bkorb@gnu.org> and
12002         Gary V. Vaughan <gary@gnu.org>.
12003
12004 2011-01-18  Bruno Haible  <bruno@clisp.org>
12005
12006         get-rusage-as: Improvement for Cygwin.
12007         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12008         areas that are merely reserved.
12009
12010 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         strftime: remove dependencies on multibyte modules
12013
12014         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12015         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12016         only if __osf__ is defined, and I suspect OSF doesn't need these
12017         other modules.  If my guess is wrong, we'll need to come up with a
12018         variant of strftime that doesn't need the multibyte modules.
12019
12020         I discovered this problem when attempting modify Emacs to use the
12021         strftime module.  With the previous gnulib, this caused Emacs to
12022         need 31 new files, ranging from lib/config.charset to
12023         m4/wint_t.m4.  This was overkill and I expect would be offputting
12024         to the Emacs maintainers.  After this change, only 6 new files are
12025         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12026         stdbool.m4, and tm_gmtoff.m4.
12027
12028         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12029         Suggested by Bruno Haible in
12030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12031         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12032         and do not check for wchar.h.
12033         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12034         (Depends-on): Remove mbrlen, mbsinit, wchar.
12035
12036 2011-01-18  Bruno Haible  <bruno@clisp.org>
12037
12038         Tests for module 'get-rusage-as'.
12039         * modules/get-rusage-as-tests: New file.
12040         * tests/test-get-rusage-as.c: New file.
12041
12042         New module 'get-rusage-as'.
12043         * modules/get-rusage-as: New file.
12044         * lib/resource-ext.h: New file.
12045         * lib/get-rusage-as.c: New file.
12046
12047 2011-01-17  Eric Blake  <eblake@redhat.com>
12048
12049         sigaction: relax license from LGPLv3+ to LGPLv2+
12050         * modules/sigaction (License): Relax to LGPLv2+.
12051
12052 2011-01-14  Bruno Haible  <bruno@clisp.org>
12053
12054         filemode: Make function declarations usable in C++ mode.
12055         * lib/filemode.h: Enclose function declarations in extern "C" block.
12056         Reported by John W. Eaton <jwe@gnu.org>.
12057
12058 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12059
12060         save-cwd: no longer include "xgetcwd.h"
12061         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12062         This avoids a compilation failure in projects that use save-cwd
12063         without also using the xgetcwd module.
12064
12065 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12066
12067         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12068         This is so that a program like Emacs, which needs only dtoastr,
12069         does not have to bother with distributing and compiling ftoastr
12070         and ldtoastr.
12071         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12072         * modules/dtoastr, modules/ldtoastr: New files.
12073         * modules/ftoastr: Now works just for 'float'.
12074         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12075         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12076         dtoastr.c, ldtoastr.c.
12077
12078 2011-01-11  Jim Meyering  <meyering@redhat.com>
12079
12080         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12081         There is no need to work around the lack of the fchdir function,
12082         since gnulib can now provide a replacement when required.
12083         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12084         * modules/save-cwd (Depends-on): Add fchdir.
12085
12086 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12087
12088         openat, save-cwd: avoid xmalloc
12089
12090         This removes a direct (but undocumented) dependency of openat on
12091         xalloc, along with an indirect dependency via save-cwd.  It also
12092         removes a dependency of save-cwd on xgetcwd, and thereby
12093         indirectly on xalloc.  This change causes the openat substitute
12094         to fall back on save_cwd when memory is tight, and for save_cwd to
12095         fail instead of dying when memory is tight, but that's good enough.
12096         Problem and initial idea for fix reported by Bastien Roucaries in
12097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12098
12099         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12100         xalloc.h (for xmalloc).
12101         (openat_proc_name): Use malloc, not xmalloc.
12102         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12103         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12104
12105         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12106         This avoids heap allocation for file names whose lengths are in
12107         the range 512..1023, with the upper bound increasing to at most
12108         4031 depending on the platform's PATH_MAX.  (We do not want
12109         pathmax.h here as it might supply a non-constant PATH_MAX.)
12110         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12111         Perhaps they should be moved to malloca.h?
12112         (OPENAT_BUFFER_SIZE): Use them.
12113
12114 2011-01-10  Bruno Haible  <bruno@clisp.org>
12115
12116         doc: Update users.txt.
12117         * users.txt: Add recutils.
12118
12119 2011-01-09  Karl Berry  <karl@gnu.org>
12120
12121         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12122
12123         * doc/configmake.texi: New file.
12124         * doc/gnulib.texi: Include it.
12125         * modules/configmake: Move documentation from here.
12126
12127 2011-01-09  Bruno Haible  <bruno@clisp.org>
12128
12129         Update to Unicode 6.0.0.
12130         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12131         (get_lbp): Update for Unicode 6.0.0.
12132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12133         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12134         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12135         U+11001, U+11038..U+11046. Remove U+06DE.
12136         (uc_width): Fix bounds of planes.
12137         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12138         lib/uniwidth/width.c.
12139         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12140         trailing whitespace removed.
12141         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12142         without comments, but with the original copyright notice.
12143         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12144         * lib/unicase/ignorable.h: Likewise.
12145         * lib/unicase/tocasefold.h: Likewise.
12146         * lib/unicase/tolower.h: Likewise.
12147         * lib/unicase/totitle.h: Likewise.
12148         * lib/unicase/toupper.h: Likewise.
12149         * lib/unictype/bidi_of.h: Likewise.
12150         * lib/unictype/blocks.h: Likewise.
12151         * lib/unictype/categ_C.h: Likewise.
12152         * lib/unictype/categ_Cn.h: Likewise.
12153         * lib/unictype/categ_L.h: Likewise.
12154         * lib/unictype/categ_Ll.h: Likewise.
12155         * lib/unictype/categ_Lm.h: Likewise.
12156         * lib/unictype/categ_Lo.h: Likewise.
12157         * lib/unictype/categ_Lu.h: Likewise.
12158         * lib/unictype/categ_M.h: Likewise.
12159         * lib/unictype/categ_Mc.h: Likewise.
12160         * lib/unictype/categ_Me.h: Likewise.
12161         * lib/unictype/categ_Mn.h: Likewise.
12162         * lib/unictype/categ_N.h: Likewise.
12163         * lib/unictype/categ_Nd.h: Likewise.
12164         * lib/unictype/categ_No.h: Likewise.
12165         * lib/unictype/categ_P.h: Likewise.
12166         * lib/unictype/categ_Po.h: Likewise.
12167         * lib/unictype/categ_S.h: Likewise.
12168         * lib/unictype/categ_Sc.h: Likewise.
12169         * lib/unictype/categ_Sk.h: Likewise.
12170         * lib/unictype/categ_Sm.h: Likewise.
12171         * lib/unictype/categ_So.h: Likewise.
12172         * lib/unictype/categ_of.h: Likewise.
12173         * lib/unictype/combining.h: Likewise.
12174         * lib/unictype/ctype_alnum.h: Likewise.
12175         * lib/unictype/ctype_alpha.h: Likewise.
12176         * lib/unictype/ctype_graph.h: Likewise.
12177         * lib/unictype/ctype_lower.h: Likewise.
12178         * lib/unictype/ctype_print.h: Likewise.
12179         * lib/unictype/ctype_punct.h: Likewise.
12180         * lib/unictype/ctype_upper.h: Likewise.
12181         * lib/unictype/decdigit.h: Likewise.
12182         * lib/unictype/digit.h: Likewise.
12183         * lib/unictype/numeric.h: Likewise.
12184         * lib/unictype/pr_alphabetic.h: Likewise.
12185         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12186         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12187         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12188         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12189         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12190         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12191         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12192         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12193         * lib/unictype/pr_case_ignorable.h: Likewise.
12194         * lib/unictype/pr_cased.h: Likewise.
12195         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12196         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12197         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12198         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12199         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12200         * lib/unictype/pr_combining.h: Likewise.
12201         * lib/unictype/pr_composite.h: Likewise.
12202         * lib/unictype/pr_currency_symbol.h: Likewise.
12203         * lib/unictype/pr_decimal_digit.h: Likewise.
12204         * lib/unictype/pr_deprecated.h: Likewise.
12205         * lib/unictype/pr_format_control.h: Likewise.
12206         * lib/unictype/pr_grapheme_base.h: Likewise.
12207         * lib/unictype/pr_grapheme_extend.h: Likewise.
12208         * lib/unictype/pr_grapheme_link.h: Likewise.
12209         * lib/unictype/pr_id_continue.h: Likewise.
12210         * lib/unictype/pr_id_start.h: Likewise.
12211         * lib/unictype/pr_ideographic.h: Likewise.
12212         * lib/unictype/pr_lowercase.h: Likewise.
12213         * lib/unictype/pr_math.h: Likewise.
12214         * lib/unictype/pr_numeric.h: Likewise.
12215         * lib/unictype/pr_other_alphabetic.h: Likewise.
12216         * lib/unictype/pr_other_id_continue.h: Likewise.
12217         * lib/unictype/pr_other_math.h: Likewise.
12218         * lib/unictype/pr_punctuation.h: Likewise.
12219         * lib/unictype/pr_sentence_terminal.h: Likewise.
12220         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12221         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12222         * lib/unictype/pr_unified_ideograph.h: Likewise.
12223         * lib/unictype/pr_uppercase.h: Likewise.
12224         * lib/unictype/pr_xid_continue.h: Likewise.
12225         * lib/unictype/pr_xid_start.h: Likewise.
12226         * lib/unictype/scripts.h: Likewise.
12227         * lib/unictype/scripts_byname.gperf: Likewise.
12228         * lib/unictype/sy_java_ident.h: Likewise.
12229         * lib/unigbrk/gbrkprop.h: Likewise.
12230         * lib/unilbrk/lbrkprop1.h: Likewise.
12231         * lib/unilbrk/lbrkprop2.h: Likewise.
12232         * lib/uninorm/decomposition-table2.h: Likewise.
12233         * lib/uniwbrk/wbrkprop.h: Likewise.
12234         * tests/unicase/test-cased.c: Likewise.
12235         * tests/unicase/test-ignorable.c: Likewise.
12236         * tests/unicase/test-uc_tolower.c: Likewise.
12237         * tests/unicase/test-uc_totitle.c: Likewise.
12238         * tests/unicase/test-uc_toupper.c: Likewise.
12239         * tests/unictype/test-categ_C.c: Likewise.
12240         * tests/unictype/test-categ_Cn.c: Likewise.
12241         * tests/unictype/test-categ_L.c: Likewise.
12242         * tests/unictype/test-categ_Ll.c: Likewise.
12243         * tests/unictype/test-categ_Lm.c: Likewise.
12244         * tests/unictype/test-categ_Lo.c: Likewise.
12245         * tests/unictype/test-categ_Lu.c: Likewise.
12246         * tests/unictype/test-categ_M.c: Likewise.
12247         * tests/unictype/test-categ_Mc.c: Likewise.
12248         * tests/unictype/test-categ_Me.c: Likewise.
12249         * tests/unictype/test-categ_Mn.c: Likewise.
12250         * tests/unictype/test-categ_N.c: Likewise.
12251         * tests/unictype/test-categ_Nd.c: Likewise.
12252         * tests/unictype/test-categ_No.c: Likewise.
12253         * tests/unictype/test-categ_P.c: Likewise.
12254         * tests/unictype/test-categ_Po.c: Likewise.
12255         * tests/unictype/test-categ_S.c: Likewise.
12256         * tests/unictype/test-categ_Sc.c: Likewise.
12257         * tests/unictype/test-categ_Sk.c: Likewise.
12258         * tests/unictype/test-categ_Sm.c: Likewise.
12259         * tests/unictype/test-categ_So.c: Likewise.
12260         * tests/unictype/test-ctype_alnum.c: Likewise.
12261         * tests/unictype/test-ctype_alpha.c: Likewise.
12262         * tests/unictype/test-ctype_graph.c: Likewise.
12263         * tests/unictype/test-ctype_lower.c: Likewise.
12264         * tests/unictype/test-ctype_print.c: Likewise.
12265         * tests/unictype/test-ctype_punct.c: Likewise.
12266         * tests/unictype/test-ctype_upper.c: Likewise.
12267         * tests/unictype/test-decdigit.h: Likewise.
12268         * tests/unictype/test-digit.h: Likewise.
12269         * tests/unictype/test-numeric.h: Likewise.
12270         * tests/unictype/test-pr_alphabetic.c: Likewise.
12271         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12272         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12273         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12274         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12275         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12276         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12277         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12278         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12279         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12280         * tests/unictype/test-pr_cased.c: Likewise.
12281         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12282         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12283         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12284         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12285         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12286         * tests/unictype/test-pr_combining.c: Likewise.
12287         * tests/unictype/test-pr_composite.c: Likewise.
12288         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12289         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12290         * tests/unictype/test-pr_deprecated.c: Likewise.
12291         * tests/unictype/test-pr_format_control.c: Likewise.
12292         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12293         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12294         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12295         * tests/unictype/test-pr_id_continue.c: Likewise.
12296         * tests/unictype/test-pr_id_start.c: Likewise.
12297         * tests/unictype/test-pr_ideographic.c: Likewise.
12298         * tests/unictype/test-pr_lowercase.c: Likewise.
12299         * tests/unictype/test-pr_math.c: Likewise.
12300         * tests/unictype/test-pr_numeric.c: Likewise.
12301         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12302         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12303         * tests/unictype/test-pr_other_math.c: Likewise.
12304         * tests/unictype/test-pr_punctuation.c: Likewise.
12305         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12306         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12307         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12308         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12309         * tests/unictype/test-pr_uppercase.c: Likewise.
12310         * tests/unictype/test-pr_xid_continue.c: Likewise.
12311         * tests/unictype/test-pr_xid_start.c: Likewise.
12312         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12313         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12314         changes.
12315         * lib/unictype/categ_Cc.h: Likewise.
12316         * lib/unictype/categ_Cf.h: Likewise.
12317         * lib/unictype/categ_Co.h: Likewise.
12318         * lib/unictype/categ_Cs.h: Likewise.
12319         * lib/unictype/categ_Lt.h: Likewise.
12320         * lib/unictype/categ_Nl.h: Likewise.
12321         * lib/unictype/categ_Pc.h: Likewise.
12322         * lib/unictype/categ_Pd.h: Likewise.
12323         * lib/unictype/categ_Pe.h: Likewise.
12324         * lib/unictype/categ_Pf.h: Likewise.
12325         * lib/unictype/categ_Pi.h: Likewise.
12326         * lib/unictype/categ_Ps.h: Likewise.
12327         * lib/unictype/categ_Z.h: Likewise.
12328         * lib/unictype/categ_Zl.h: Likewise.
12329         * lib/unictype/categ_Zp.h: Likewise.
12330         * lib/unictype/categ_Zs.h: Likewise.
12331         * lib/unictype/ctype_blank.h: Likewise.
12332         * lib/unictype/ctype_cntrl.h: Likewise.
12333         * lib/unictype/ctype_digit.h: Likewise.
12334         * lib/unictype/ctype_space.h: Likewise.
12335         * lib/unictype/ctype_xdigit.h: Likewise.
12336         * lib/unictype/mirror.h: Likewise.
12337         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12338         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12339         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12340         * lib/unictype/pr_bidi_control.h: Likewise.
12341         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12342         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12343         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12344         * lib/unictype/pr_bidi_pdf.h: Likewise.
12345         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12346         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12347         * lib/unictype/pr_dash.h: Likewise.
12348         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12349         * lib/unictype/pr_diacritic.h: Likewise.
12350         * lib/unictype/pr_extender.h: Likewise.
12351         * lib/unictype/pr_hex_digit.h: Likewise.
12352         * lib/unictype/pr_hyphen.h: Likewise.
12353         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12354         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12355         * lib/unictype/pr_ignorable_control.h: Likewise.
12356         * lib/unictype/pr_iso_control.h: Likewise.
12357         * lib/unictype/pr_join_control.h: Likewise.
12358         * lib/unictype/pr_left_of_pair.h: Likewise.
12359         * lib/unictype/pr_line_separator.h: Likewise.
12360         * lib/unictype/pr_logical_order_exception.h: Likewise.
12361         * lib/unictype/pr_non_break.h: Likewise.
12362         * lib/unictype/pr_not_a_character.h: Likewise.
12363         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12364         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12365         * lib/unictype/pr_other_id_start.h: Likewise.
12366         * lib/unictype/pr_other_lowercase.h: Likewise.
12367         * lib/unictype/pr_other_uppercase.h: Likewise.
12368         * lib/unictype/pr_paired_punctuation.h: Likewise.
12369         * lib/unictype/pr_paragraph_separator.h: Likewise.
12370         * lib/unictype/pr_pattern_syntax.h: Likewise.
12371         * lib/unictype/pr_pattern_white_space.h: Likewise.
12372         * lib/unictype/pr_private_use.h: Likewise.
12373         * lib/unictype/pr_quotation_mark.h: Likewise.
12374         * lib/unictype/pr_radical.h: Likewise.
12375         * lib/unictype/pr_soft_dotted.h: Likewise.
12376         * lib/unictype/pr_space.h: Likewise.
12377         * lib/unictype/pr_titlecase.h: Likewise.
12378         * lib/unictype/pr_variation_selector.h: Likewise.
12379         * lib/unictype/pr_white_space.h: Likewise.
12380         * lib/unictype/pr_zero_width.h: Likewise.
12381         * lib/unictype/sy_c_ident.h: Likewise.
12382         * lib/unictype/sy_c_whitespace.h: Likewise.
12383         * lib/unictype/sy_java_whitespace.h: Likewise.
12384         * lib/uninorm/composition-table.gperf: Likewise.
12385         * lib/uninorm/decomposition-table1.h: Likewise.
12386         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12387         LB8.
12388         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12389         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12390         * modules/unictype/*: Bump version number of expected libunistring
12391         version.
12392
12393 2011-01-09  Bruno Haible  <bruno@clisp.org>
12394
12395         Update to Unicode 5.2.0.
12396         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12397         trailing whitespace removed.
12398
12399 2011-01-09  Bruno Haible  <bruno@clisp.org>
12400
12401         New Unicode character properties, from Unicode 5.2.0.
12402         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12403         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12404         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12405         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12406         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12407         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12408         uc_is_property_cased, uc_is_property_case_ignorable,
12409         uc_is_property_changes_when_lowercased,
12410         uc_is_property_changes_when_uppercased,
12411         uc_is_property_changes_when_titlecased,
12412         uc_is_property_changes_when_casefolded,
12413         uc_is_property_changes_when_casemapped): New declarations.
12414         * lib/unictype/pr_byname.gperf: Add the new properties.
12415         * modules/unictype/property-byname (Depends-on): Depend on the new
12416         properties modules.
12417         * modules/unictype/property-all (Depends-on): Likewise.
12418         * MODULES.html.sh (Unicode string functions): Add
12419         unictype/property-case-ignorable, unictype/property-cased,
12420         unictype/property-changes-when-casefolded,
12421         unictype/property-changes-when-casemapped,
12422         unictype/property-changes-when-lowercased,
12423         unictype/property-changes-when-titlecased,
12424         unictype/property-changes-when-uppercased.
12425
12426         New module 'unictype/property-changes-when-casemapped'.
12427         * modules/unictype/property-changes-when-casemapped: New file.
12428         * lib/unictype/pr_changes_when_casemapped.c: New file.
12429         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12430         generated by gen-uni-tables.
12431         * modules/unictype/property-changes-when-casemapped-tests: New file.
12432         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12433         automatically generated by gen-uni-tables.
12434
12435         New module 'unictype/property-changes-when-casefolded'.
12436         * modules/unictype/property-changes-when-casefolded: New file.
12437         * lib/unictype/pr_changes_when_casefolded.c: New file.
12438         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12439         generated by gen-uni-tables.
12440         * modules/unictype/property-changes-when-casefolded-tests: New file.
12441         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12442         automatically generated by gen-uni-tables.
12443
12444         New module 'unictype/property-changes-when-titlecased'.
12445         * modules/unictype/property-changes-when-titlecased: New file.
12446         * lib/unictype/pr_changes_when_titlecased.c: New file.
12447         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12448         generated by gen-uni-tables.
12449         * modules/unictype/property-changes-when-titlecased-tests: New file.
12450         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12451         automatically generated by gen-uni-tables.
12452
12453         New module 'unictype/property-changes-when-uppercased'.
12454         * modules/unictype/property-changes-when-uppercased: New file.
12455         * lib/unictype/pr_changes_when_uppercased.c: New file.
12456         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12457         generated by gen-uni-tables.
12458         * modules/unictype/property-changes-when-uppercased-tests: New file.
12459         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12460         automatically generated by gen-uni-tables.
12461
12462         New module 'unictype/property-changes-when-lowercased'.
12463         * modules/unictype/property-changes-when-lowercased: New file.
12464         * lib/unictype/pr_changes_when_lowercased.c: New file.
12465         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12466         generated by gen-uni-tables.
12467         * modules/unictype/property-changes-when-lowercased-tests: New file.
12468         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12469         automatically generated by gen-uni-tables.
12470
12471         New module 'unictype/property-case-ignorable'.
12472         * modules/unictype/property-case-ignorable: New file.
12473         * lib/unictype/pr_case_ignorable.c: New file.
12474         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12475         by gen-uni-tables.
12476         * modules/unictype/property-case-ignorable-tests: New file.
12477         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12478         generated by gen-uni-tables.
12479
12480         New module 'unictype/property-cased'.
12481         * modules/unictype/property-cased: New file.
12482         * lib/unictype/pr_cased.c: New file.
12483         * lib/unictype/pr_cased.h: New file, automatically generated by
12484         gen-uni-tables.
12485         * modules/unictype/property-cased-tests: New file.
12486         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12487         gen-uni-tables.
12488
12489 2011-01-09  Bruno Haible  <bruno@clisp.org>
12490
12491         Update to Unicode 5.2.0.
12492         * lib/gen-uni-tables.c (output_predicate, output_category,
12493         output_combclass, output_bidi_category, output_decimal_digit_test,
12494         output_decimal_digit, output_digit_test, output_digit,
12495         output_numeric_test, output_numeric, output_mirror, output_scripts,
12496         output_scripts_byname, output_blocks, output_ident_category): Fix
12497         comment header.
12498         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12499         get_wbp.
12500         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12501         items.
12502         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12503         Changes_When_Lowercased, Changes_When_Uppercased,
12504         Changes_When_Titlecased, Changes_When_Casefolded,
12505         Changes_When_Casemapped.
12506         (is_property_alphabetic, is_property_default_ignorable_code_point):
12507         Update for Unicode 5.2.0.
12508         (is_property_cased, is_property_case_ignorable,
12509         is_property_changes_when_lowercased,
12510         is_property_changes_when_uppercased,
12511         is_property_changes_when_titlecased,
12512         is_property_changes_when_casefolded,
12513         is_property_changes_when_casemapped): New functions.
12514         (output_properties): Output also the properties cased, case_ignorable,
12515         changes_when_lowercased, changes_when_uppercased,
12516         changes_when_titlecased, changes_when_casefolded,
12517         changes_when_casemapped.
12518         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12519         Unicode TR#11 revision 17 -> 19.
12520         (LBP_CP): New enumeration value.
12521         (LBP_*): Adjust values accordingly.
12522         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12523         TR#14 revision 22 -> 24.
12524         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12525         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12526         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12527         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12528         is_WBP_MIDLETTER.
12529         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12530         the code1 and code2 of each composition rule.
12531         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12532         * lib/unicase/ignorable.h: Likewise.
12533         * lib/unicase/tocasefold.h: Likewise.
12534         * lib/unicase/tolower.h: Likewise.
12535         * lib/unicase/totitle.h: Likewise.
12536         * lib/unicase/toupper.h: Likewise.
12537         * lib/unictype/bidi_of.h: Likewise.
12538         * lib/unictype/blocks.h: Likewise.
12539         * lib/unictype/categ_C.h: Likewise.
12540         * lib/unictype/categ_Cf.h: Likewise.
12541         * lib/unictype/categ_Cn.h: Likewise.
12542         * lib/unictype/categ_L.h: Likewise.
12543         * lib/unictype/categ_Ll.h: Likewise.
12544         * lib/unictype/categ_Lm.h: Likewise.
12545         * lib/unictype/categ_Lo.h: Likewise.
12546         * lib/unictype/categ_Lu.h: Likewise.
12547         * lib/unictype/categ_M.h: Likewise.
12548         * lib/unictype/categ_Mc.h: Likewise.
12549         * lib/unictype/categ_Mn.h: Likewise.
12550         * lib/unictype/categ_N.h: Likewise.
12551         * lib/unictype/categ_Nd.h: Likewise.
12552         * lib/unictype/categ_Nl.h: Likewise.
12553         * lib/unictype/categ_No.h: Likewise.
12554         * lib/unictype/categ_P.h: Likewise.
12555         * lib/unictype/categ_Pd.h: Likewise.
12556         * lib/unictype/categ_Po.h: Likewise.
12557         * lib/unictype/categ_S.h: Likewise.
12558         * lib/unictype/categ_Sc.h: Likewise.
12559         * lib/unictype/categ_So.h: Likewise.
12560         * lib/unictype/categ_of.h: Likewise.
12561         * lib/unictype/combining.h: Likewise.
12562         * lib/unictype/ctype_alnum.h: Likewise.
12563         * lib/unictype/ctype_alpha.h: Likewise.
12564         * lib/unictype/ctype_graph.h: Likewise.
12565         * lib/unictype/ctype_lower.h: Likewise.
12566         * lib/unictype/ctype_print.h: Likewise.
12567         * lib/unictype/ctype_punct.h: Likewise.
12568         * lib/unictype/ctype_upper.h: Likewise.
12569         * lib/unictype/decdigit.h: Likewise.
12570         * lib/unictype/digit.h: Likewise.
12571         * lib/unictype/numeric.h: Likewise.
12572         * lib/unictype/pr_alphabetic.h: Likewise.
12573         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12574         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12575         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12576         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12577         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12578         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12579         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12580         * lib/unictype/pr_combining.h: Likewise.
12581         * lib/unictype/pr_composite.h: Likewise.
12582         * lib/unictype/pr_currency_symbol.h: Likewise.
12583         * lib/unictype/pr_dash.h: Likewise.
12584         * lib/unictype/pr_decimal_digit.h: Likewise.
12585         * lib/unictype/pr_deprecated.h: Likewise.
12586         * lib/unictype/pr_diacritic.h: Likewise.
12587         * lib/unictype/pr_extender.h: Likewise.
12588         * lib/unictype/pr_grapheme_base.h: Likewise.
12589         * lib/unictype/pr_grapheme_extend.h: Likewise.
12590         * lib/unictype/pr_grapheme_link.h: Likewise.
12591         * lib/unictype/pr_id_continue.h: Likewise.
12592         * lib/unictype/pr_id_start.h: Likewise.
12593         * lib/unictype/pr_ideographic.h: Likewise.
12594         * lib/unictype/pr_ignorable_control.h: Likewise.
12595         * lib/unictype/pr_logical_order_exception.h: Likewise.
12596         * lib/unictype/pr_lowercase.h: Likewise.
12597         * lib/unictype/pr_numeric.h: Likewise.
12598         * lib/unictype/pr_other_alphabetic.h: Likewise.
12599         * lib/unictype/pr_punctuation.h: Likewise.
12600         * lib/unictype/pr_sentence_terminal.h: Likewise.
12601         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12602         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12603         * lib/unictype/pr_unified_ideograph.h: Likewise.
12604         * lib/unictype/pr_uppercase.h: Likewise.
12605         * lib/unictype/pr_xid_continue.h: Likewise.
12606         * lib/unictype/pr_xid_start.h: Likewise.
12607         * lib/unictype/pr_zero_width.h: Likewise.
12608         * lib/unictype/scripts.h: Likewise.
12609         * lib/unictype/scripts_byname.gperf: Likewise.
12610         * lib/unictype/sy_java_ident.h: Likewise.
12611         * lib/unigbrk/gbrkprop.h: Likewise.
12612         * lib/unilbrk/lbrkprop1.h: Likewise.
12613         * lib/unilbrk/lbrkprop2.h: Likewise.
12614         * lib/unilbrk/lbrktables.h: Likewise.
12615         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12616         LBP_CP. Implement rule LB30.
12617         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12618         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12619         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12620         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12621         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12622         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12623         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12624         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12625         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12626         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12627         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12628         bits instead of 16 bits in the code1 and code2 of each composition
12629         rule.
12630         (uc_composition): Update for Unicode 5.2.0.
12631         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12632         * lib/uninorm/decomposition-table2.h: Likewise.
12633         * lib/uniwbrk/wbrkprop.h: Likewise.
12634         * tests/unicase/test-cased.c: Likewise.
12635         * tests/unicase/test-ignorable.c: Likewise.
12636         * tests/unicase/test-uc_tolower.c: Likewise.
12637         * tests/unicase/test-uc_totitle.c: Likewise.
12638         * tests/unicase/test-uc_toupper.c: Likewise.
12639         * tests/unictype/test-categ_C.c: Likewise.
12640         * tests/unictype/test-categ_Cf.c: Likewise.
12641         * tests/unictype/test-categ_Cn.c: Likewise.
12642         * tests/unictype/test-categ_L.c: Likewise.
12643         * tests/unictype/test-categ_Ll.c: Likewise.
12644         * tests/unictype/test-categ_Lm.c: Likewise.
12645         * tests/unictype/test-categ_Lo.c: Likewise.
12646         * tests/unictype/test-categ_Lu.c: Likewise.
12647         * tests/unictype/test-categ_M.c: Likewise.
12648         * tests/unictype/test-categ_Mc.c: Likewise.
12649         * tests/unictype/test-categ_Mn.c: Likewise.
12650         * tests/unictype/test-categ_N.c: Likewise.
12651         * tests/unictype/test-categ_Nd.c: Likewise.
12652         * tests/unictype/test-categ_Nl.c: Likewise.
12653         * tests/unictype/test-categ_No.c: Likewise.
12654         * tests/unictype/test-categ_P.c: Likewise.
12655         * tests/unictype/test-categ_Pd.c: Likewise.
12656         * tests/unictype/test-categ_Po.c: Likewise.
12657         * tests/unictype/test-categ_S.c: Likewise.
12658         * tests/unictype/test-categ_Sc.c: Likewise.
12659         * tests/unictype/test-categ_So.c: Likewise.
12660         * tests/unictype/test-ctype_alnum.c: Likewise.
12661         * tests/unictype/test-ctype_alpha.c: Likewise.
12662         * tests/unictype/test-ctype_graph.c: Likewise.
12663         * tests/unictype/test-ctype_lower.c: Likewise.
12664         * tests/unictype/test-ctype_print.c: Likewise.
12665         * tests/unictype/test-ctype_punct.c: Likewise.
12666         * tests/unictype/test-ctype_upper.c: Likewise.
12667         * tests/unictype/test-decdigit.h: Likewise.
12668         * tests/unictype/test-digit.h: Likewise.
12669         * tests/unictype/test-numeric.h: Likewise.
12670         * tests/unictype/test-pr_alphabetic.c: Likewise.
12671         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12672         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12673         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12674         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12675         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12676         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12677         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12678         * tests/unictype/test-pr_combining.c: Likewise.
12679         * tests/unictype/test-pr_composite.c: Likewise.
12680         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12681         * tests/unictype/test-pr_dash.c: Likewise.
12682         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12683         * tests/unictype/test-pr_deprecated.c: Likewise.
12684         * tests/unictype/test-pr_diacritic.c: Likewise.
12685         * tests/unictype/test-pr_extender.c: Likewise.
12686         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12687         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12688         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12689         * tests/unictype/test-pr_id_continue.c: Likewise.
12690         * tests/unictype/test-pr_id_start.c: Likewise.
12691         * tests/unictype/test-pr_ideographic.c: Likewise.
12692         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12693         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12694         * tests/unictype/test-pr_lowercase.c: Likewise.
12695         * tests/unictype/test-pr_numeric.c: Likewise.
12696         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12697         * tests/unictype/test-pr_punctuation.c: Likewise.
12698         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12699         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12700         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12701         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12702         * tests/unictype/test-pr_uppercase.c: Likewise.
12703         * tests/unictype/test-pr_xid_continue.c: Likewise.
12704         * tests/unictype/test-pr_xid_start.c: Likewise.
12705         * tests/unictype/test-pr_zero_width.c: Likewise.
12706         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12707         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12708         changed behaviour: line breaking is now disallowed between a letter
12709         or '=' and '('.
12710         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12711         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12712         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12713         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12714         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12715         lib/uniwidth/width.c.
12716         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12717         without comments, but with the original copyright notice.
12718         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12719         changes.
12720         * lib/unictype/categ_Cc.h: Likewise.
12721         * lib/unictype/categ_Co.h: Likewise.
12722         * lib/unictype/categ_Cs.h: Likewise.
12723         * lib/unictype/categ_Lt.h: Likewise.
12724         * lib/unictype/categ_Me.h: Likewise.
12725         * lib/unictype/categ_Pc.h: Likewise.
12726         * lib/unictype/categ_Pe.h: Likewise.
12727         * lib/unictype/categ_Pf.h: Likewise.
12728         * lib/unictype/categ_Pi.h: Likewise.
12729         * lib/unictype/categ_Ps.h: Likewise.
12730         * lib/unictype/categ_Sk.h: Likewise.
12731         * lib/unictype/categ_Sm.h: Likewise.
12732         * lib/unictype/categ_Z.h: Likewise.
12733         * lib/unictype/categ_Zl.h: Likewise.
12734         * lib/unictype/categ_Zp.h: Likewise.
12735         * lib/unictype/categ_Zs.h: Likewise.
12736         * lib/unictype/ctype_blank.h: Likewise.
12737         * lib/unictype/ctype_cntrl.h: Likewise.
12738         * lib/unictype/ctype_digit.h: Likewise.
12739         * lib/unictype/ctype_space.h: Likewise.
12740         * lib/unictype/ctype_xdigit.h: Likewise.
12741         * lib/unictype/mirror.h: Likewise.
12742         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12743         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12744         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12745         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12746         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12747         * lib/unictype/pr_bidi_control.h: Likewise.
12748         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12749         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12750         * lib/unictype/pr_bidi_pdf.h: Likewise.
12751         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12752         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12753         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12754         * lib/unictype/pr_format_control.h: Likewise.
12755         * lib/unictype/pr_hex_digit.h: Likewise.
12756         * lib/unictype/pr_hyphen.h: Likewise.
12757         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12758         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12759         * lib/unictype/pr_iso_control.h: Likewise.
12760         * lib/unictype/pr_join_control.h: Likewise.
12761         * lib/unictype/pr_left_of_pair.h: Likewise.
12762         * lib/unictype/pr_line_separator.h: Likewise.
12763         * lib/unictype/pr_math.h: Likewise.
12764         * lib/unictype/pr_non_break.h: Likewise.
12765         * lib/unictype/pr_not_a_character.h: Likewise.
12766         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12767         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12768         * lib/unictype/pr_other_id_continue.h: Likewise.
12769         * lib/unictype/pr_other_id_start.h: Likewise.
12770         * lib/unictype/pr_other_lowercase.h: Likewise.
12771         * lib/unictype/pr_other_math.h: Likewise.
12772         * lib/unictype/pr_other_uppercase.h: Likewise.
12773         * lib/unictype/pr_paired_punctuation.h: Likewise.
12774         * lib/unictype/pr_paragraph_separator.h: Likewise.
12775         * lib/unictype/pr_pattern_syntax.h: Likewise.
12776         * lib/unictype/pr_pattern_white_space.h: Likewise.
12777         * lib/unictype/pr_private_use.h: Likewise.
12778         * lib/unictype/pr_quotation_mark.h: Likewise.
12779         * lib/unictype/pr_radical.h: Likewise.
12780         * lib/unictype/pr_soft_dotted.h: Likewise.
12781         * lib/unictype/pr_space.h: Likewise.
12782         * lib/unictype/pr_titlecase.h: Likewise.
12783         * lib/unictype/pr_variation_selector.h: Likewise.
12784         * lib/unictype/pr_white_space.h: Likewise.
12785         * lib/unictype/sy_c_ident.h: Likewise.
12786         * lib/unictype/sy_c_whitespace.h: Likewise.
12787         * lib/unictype/sy_java_whitespace.h: Likewise.
12788         * modules/uni*/*: Bump version number of expected libunistring version.
12789         Reported by Simon Josefsson.
12790
12791 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12792
12793         useless-if-before-free: fix typo in --help and make the internal,
12794         automatic version date update process work once again.
12795         --help output contained a NUL character instead of the
12796         backslash-zero that was intended.  Also, the "must lie within
12797         the first 8 lines" line is on line 9, and hence not getting
12798         automatically updated.
12799         * build-aux/useless-if-before-free: Fix the former by adding a
12800         backslash, and the latter by condensing the three lines of what-it-does
12801         to a single line, leaving one line of slack for the future.
12802
12803 2011-01-09  Bruno Haible  <bruno@clisp.org>
12804
12805         uniwidth/width: Fix width of U+1D173..U+1D17A.
12806         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12807         symbolic_width, output_width_property_test): New functions.
12808         (main): Invoke output_nonspacing_property, output_width_property_test.
12809         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12810         U+1D173..U+1D17A.
12811         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12812         1.
12813         * modules/uniwidth/*: Bump version number of expected libunistring
12814         version.
12815         * modules/unilbrk/*: Likewise.
12816
12817 2011-01-08  Bruno Haible  <bruno@clisp.org>
12818
12819         uninorm tests: Preserve copyright of Unicode data file.
12820         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12821         Mention modifications.
12822
12823 2011-01-08  Bruno Haible  <bruno@clisp.org>
12824
12825         gen-uni-tables: Prepare for Unicode 5.2.0.
12826         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12827         (debug_output_lbp, output_lbp): Update.
12828
12829 2011-01-08  Bruno Haible  <bruno@clisp.org>
12830
12831         unilbrk: Clarify gen-uni-tables.c code.
12832         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12833         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12834         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12835
12836 2011-01-07  Bruno Haible  <bruno@clisp.org>
12837
12838         strtod: Restore errno when successfully parsing Infinity or NaN.
12839         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12840         restore the original errno.
12841
12842 2011-01-07  Bruno Haible  <bruno@clisp.org>
12843
12844         remove test: Avoid failure on HP-UX 11.
12845         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12846
12847 2011-01-07  Bruno Haible  <bruno@clisp.org>
12848
12849         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12850         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12851         error code.
12852
12853 2011-01-07  Pádraig Brady <P@draigBrady.com>
12854
12855         ignore-value: fixup comments, and add Eric Blake
12856         as an author since he rewrote the macros.
12857         * lib/ignore-value.h (ignore_value):  State that
12858         we now support aggregates.  Also specify exactly
12859         when the GCC warn_unused_result feature was added.
12860
12861 2011-01-06  Eric Blake  <eblake@redhat.com>
12862
12863         ignore-value: support aggregate types
12864         * lib/ignore-value.h (ignore_value): Provide separate gcc
12865         definition.
12866         * modules/ignore-value-tests: New test module.
12867         * tests/test-ignore-value.c: New test.
12868
12869         maint.mk: improve sc_prohibit_strcmp regex
12870         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12871         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12872         definition of STRNEQ.
12873
12874         signal: work around Haiku issue with SIGBUS
12875         * lib/siglist.h: Add comment.
12876         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12877         strsignal's favoring of SIGSEGV.
12878         * tests/test-signal.c (main): Avoid test failure.
12879         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12880         Reported by Scott McCreary.
12881
12882         maint.mk: add pre-release check to ensure submodule commits are public
12883         * top/maint.mk (public-submodule-commit): New rule.
12884         (submodule-checks): New variable.
12885         (alpha beta stable): Depend on the variable.
12886
12887 2011-01-05  Pádraig Brady <P@draigBrady.com>
12888         and Jim Meyering  <meyering@redhat.com>
12889
12890         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12891         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12892         (ATTRIBUTE_DEPRECATED): Define.
12893         (_ignore_case): New function.
12894         (ignore_value): New macro, to replace the old function.
12895         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12896         * modules/ignore-value (Depends-on): Add stdint.
12897
12898 2011-01-04  Eric Blake  <eblake@redhat.com>
12899
12900         doc: regenerate INSTALL
12901         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12902         @firstparagraphindent support, now that autoconf dropped it.
12903         (INSTALL_PRELUDE): Reinstate old macro.
12904         * doc/install.texi: Resync from autoconf.
12905         * doc/INSTALL: Reflect recent autoconf update.
12906         * doc/INSTALL.ISO: Likewise.
12907         * doc/INSTALL.UTF-8: Likewise.
12908         Reported by Karl Berry.
12909
12910 2011-01-04  Bruce Korb  <address@hidden>
12911
12912         git-version-gen: avoid a sub-shell
12913         * build-aux/git-version-gen: Redirect stderr in `...` via
12914         "exec 2>...", rather than via an added sub-shell.
12915
12916 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12917
12918         git-version-gen: use (...) rather than sh -c '...'
12919         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12920         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12921
12922 2011-01-03  Jim Meyering  <meyering@redhat.com>
12923
12924         git-version-gen: convert leading TABs to spaces
12925         * build-aux/git-version-gen: Expand leading TABs.
12926
12927         git-version-gen: handle failed "git rev-list"
12928         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12929         from git and proceeding as if it had succeeded but printed no SHA1
12930         checksums, suppress the diagnostic and handle the failure.
12931         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12932
12933         git-version-gen: include command name in one more diagnostic
12934         * build-aux/git-version-gen: When the required .tarball-version file
12935         was missing or unreadable, you might see the diagnostic from "cat",
12936         but no trace of the name of the invoking script.  Now, you still see
12937         the diagnostic from cat, but also get one from "git-version-gen: ".
12938         Inspired by a patch from Bruce Korb.
12939
12940         update-copyright: adjust test to match changed code
12941         * tests/test-update-copyright.sh: Change test's expected output
12942         to match new actual output.
12943
12944 2011-01-02  Bruno Haible  <bruno@clisp.org>
12945
12946         getlogin_r: Avoid test failure on HP-UX 11.
12947         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12948         ERANGE when the second argument is zero.
12949         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12950         portability problem.
12951
12952 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12953
12954         * build-aux/update-copyright: doc Simon's changes
12955
12956 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12957
12958         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12959         environment variable.
12960
12961 2011-01-02  Bruno Haible  <bruno@clisp.org>
12962
12963         unigbrk: Avoid gcc warnings.
12964         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12965         unused variable.
12966         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12967         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12968         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12969         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12970         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12971         Change type of first argument to 'const char *'.
12972         (main): Remove unused variable.
12973         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12974         type of first argument to 'const char *'.
12975         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12976         Likewise.
12977         (main): Change type of variable 's'.
12978         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12979         to 'int'.
12980
12981 2011-01-02  Bruno Haible  <bruno@clisp.org>
12982
12983         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12984         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12985         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12986         bug.
12987         * lib/pwrite.c: Undo 2010-12-31 patch.
12988         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12989
12990 2011-01-02  Bruno Haible  <bruno@clisp.org>
12991
12992         pread: Fix test whether it works.
12993         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12994
12995 2011-01-02  Bruno Haible  <bruno@clisp.org>
12996
12997         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12998         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12999         ends in "6". Don't require a specific month name. Try also the locale
13000         names found on HP-UX 11 and Solaris 7.
13001
13002 2011-01-02  Bruno Haible  <bruno@clisp.org>
13003
13004         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13005         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13006         C linkage.
13007         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13008
13009 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13010
13011         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13012         for consistency, since the "cluster" term is not used elsewhere.
13013         * lib/unigbrk.in.h: Update name.
13014         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13015         * lib/unigbrk/u16-grapheme-next.c: Update name.
13016         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13017         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13018         * lib/unigbrk/u32-grapheme-next.c: Update name.
13019         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13020         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13021         * lib/unigbrk/u8-grapheme-next.c: Update name.
13022         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13023         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13024         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13025         Suggested by Bruno Haible.
13026
13027 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13028
13029         Remove module 'u8-grapheme-len' as too redundant with
13030         'u8-grapheme-next'.
13031         * modules/unigbrk/u8-grapheme-len: Delete file.
13032         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13033         * lib/unigbrk.in.h: Remove prototype for deleted function.
13034         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13035         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13036
13037         Remove module 'u16-grapheme-len' as too redundant with
13038         'u16-grapheme-next'.
13039         * modules/unigbrk/u16-grapheme-len: Delete file.
13040         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13041         * lib/unigbrk.in.h: Remove prototype for deleted function.
13042         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13043         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13044
13045         Remove module 'u32-grapheme-len' as too redundant with
13046         'u32-grapheme-next'.
13047         * modules/unigbrk/u32-grapheme-len: Delete file.
13048         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13049         * lib/unigbrk.in.h: Remove prototype for deleted function.
13050         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13051         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13052
13053         Suggested by Bruno Haible.
13054
13055 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13056
13057         * unigbrk.in.h: Fix typo: "ben" => "been".
13058         Reported by Bruno Haible.
13059
13060 2011-01-01  Jim Meyering  <meyering@redhat.com>
13061
13062         maint: update almost all copyright ranges to include 2011
13063         Run the new "make update-copyright" rule.
13064
13065 2011-01-01  Jim Meyering  <meyering@redhat.com>
13066
13067         maint: update-copyright: exempt doc/INSTALL*
13068         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13069         since they are generated.  Suggested by Bruno Haible.
13070
13071 2011-01-01  Jim Meyering  <meyering@redhat.com>
13072
13073         maint: refine the update-copyright rule
13074         * Makefile (update-copyright): Also exclude any file that includes
13075         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13076         code that merely generates the comment.
13077
13078 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13079
13080         New module 'u8-grapheme-len'.
13081         * modules/unigbrk/u8-grapheme-len: New file.
13082         * modules/unigbrk/u8-grapheme-len-tests: New file.
13083         * lib/unigbrk.in.h: Add prototype for new function.
13084         * lib/unigbrk/u8-grapheme-len.c: New file.
13085         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13086
13087         New module 'u16-grapheme-len'.
13088         * modules/unigbrk/u16-grapheme-len: New file.
13089         * modules/unigbrk/u16-grapheme-len-tests: New file.
13090         * lib/unigbrk.in.h: Add prototype for new function.
13091         * lib/unigbrk/u16-grapheme-len.c: New file.
13092         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13093
13094         New module 'u32-grapheme-len'.
13095         * modules/unigbrk/u32-grapheme-len: New file.
13096         * modules/unigbrk/u32-grapheme-len-tests: New file.
13097         * lib/unigbrk.in.h: Add prototype for new function.
13098         * lib/unigbrk/u32-grapheme-len.c: New file.
13099         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13100
13101         New module 'u8-grapheme-next'.
13102         * modules/unigbrk/u8-grapheme-next: New file.
13103         * modules/unigbrk/u8-grapheme-next-tests: New file.
13104         * lib/unigbrk.in.h: Add prototype for new function.
13105         * lib/unigbrk/u8-grapheme-next.c: New file.
13106         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13107
13108         New module 'u16-grapheme-next'.
13109         * modules/unigbrk/u16-grapheme-next: New file.
13110         * modules/unigbrk/u16-grapheme-next-tests: New file.
13111         * lib/unigbrk.in.h: Add prototype for new function.
13112         * lib/unigbrk/u16-grapheme-next.c: New file.
13113         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13114
13115         New module 'u32-grapheme-next'.
13116         * modules/unigbrk/u32-grapheme-next: New file.
13117         * modules/unigbrk/u32-grapheme-next-tests: New file.
13118         * lib/unigbrk.in.h: Add prototype for new function.
13119         * lib/unigbrk/u32-grapheme-next.c: New file.
13120         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13121
13122         New module 'u8-grapheme-prev'.
13123         * modules/unigbrk/u8-grapheme-prev: New file.
13124         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13125         * lib/unigbrk.in.h: Add prototype for new function.
13126         * lib/unigbrk/u8-grapheme-prev.c: New file.
13127         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13128
13129         New module 'u16-grapheme-prev'.
13130         * modules/unigbrk/u16-grapheme-prev: New file.
13131         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13132         * lib/unigbrk.in.h: Add prototype for new function.
13133         * lib/unigbrk/u16-grapheme-prev.c: New file.
13134         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13135
13136         New module 'u32-grapheme-prev'.
13137         * modules/unigbrk/u32-grapheme-prev: New file.
13138         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13139         * lib/unigbrk.in.h: Add prototype for new function.
13140         * lib/unigbrk/u32-grapheme-prev.c: New file.
13141         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13142
13143         New module 'u8-grapheme-breaks'.
13144         * modules/unigbrk/u8-grapheme-breaks: New file.
13145         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13146         * lib/unigbrk.in.h: Add prototype for new function.
13147         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13148         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13149
13150         New module 'u16-grapheme-breaks'.
13151         * modules/unigbrk/u16-grapheme-breaks: New file.
13152         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13153         * lib/unigbrk.in.h: Add prototype for new function.
13154         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13155         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13156
13157         New module 'u32-grapheme-breaks'.
13158         * modules/unigbrk/u32-grapheme-breaks: New file.
13159         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13160         * lib/unigbrk.in.h: Add prototype for new function.
13161         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13162         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13163
13164         New module 'ulc-grapheme-breaks'.
13165         * modules/unigbrk/ulc-grapheme-breaks: New file.
13166         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13167         * m4/locale-ar.m4: New file.
13168         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13169         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13170         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13171
13172 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13173
13174         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13175         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13176         modified how this file was generated before I initially submitted
13177         the module, but failed to regenerate it.  This meant that several
13178         of the level2 entries were wrong.
13179         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13180         Remove the division-by-2 that is folded into the table now that
13181         gbrkprop.h has been regenerated properly.  Now -1 entries are
13182         handled correctly.
13183
13184         New module 'unigbrk/uc-gbrk-prop-tests'.
13185         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13186         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13187         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13188         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13189
13190 2011-01-01  Bruno Haible  <bruno@clisp.org>
13191
13192         Avoid use of hexadecimal escapes.
13193         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13194         instead of hexadecimal escapes.
13195
13196 2011-01-01  Jim Meyering  <meyering@redhat.com>
13197
13198         maint: new rule to update copyright year ranges
13199         * Makefile (update-copyright): New rule.
13200
13201         maint: indent with TABs in Makefile
13202         * Makefile: Expand leading sequences of spaces to TABs
13203
13204         version-etc: update the copyright year it reports
13205         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13206
13207 2010-12-31  Bruno Haible  <bruno@clisp.org>
13208
13209         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13210         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13211         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13212         zero.
13213
13214 2010-12-31  Bruno Haible  <bruno@clisp.org>
13215
13216         pwrite: Work around HP-UX 11.11 bug.
13217         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13218         works and set REPLACE_PWRITE if not.
13219         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13220         function.
13221         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13222
13223 2010-12-31  Bruno Haible  <bruno@clisp.org>
13224
13225         pread: Work around HP-UX 11 bugs.
13226         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13227         and set REPLACE_PREAD if not.
13228         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13229
13230 2010-12-31  Eric Blake  <eblake@redhat.com>
13231
13232         nl_langinfo: fix YESEXPR on Irix 6.5
13233         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13234         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13235         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13236         it.
13237
13238 2010-12-31  Bruno Haible  <bruno@clisp.org>
13239
13240         iconv: Document HP-UX 11 bug.
13241         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13242
13243 2010-12-31  Bruno Haible  <bruno@clisp.org>
13244
13245         ldexpl: Fix link error on HP-UX 11.
13246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13247         LDEXPL_LIBM, using $ISNANL_LIBM.
13248
13249 2010-12-31  Eric Blake  <eblake@redhat.com>
13250
13251         ftello: avoid compilation failure with SunStudio c89
13252         * lib/ftello.c (ftello): Use lseek, not llseek.
13253
13254         tests: avoid failing coreutils tests on cygwin
13255         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13256         (create_exe_shims_): Return 0 when skipping.
13257
13258 2010-12-31  Bruno Haible  <bruno@clisp.org>
13259
13260         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13261         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13262
13263 2010-12-31  Bruno Haible  <bruno@clisp.org>
13264
13265         waitpid: Fix link error in C++ mode.
13266         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13267
13268 2010-12-31  Bruno Haible  <bruno@clisp.org>
13269
13270         isnan: Use GCC built-ins when possible.
13271         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13272         __builtin_isnan.
13273         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13274         (isnan): Define using GCC built-ins for GCC >= 4.0.
13275
13276 2010-12-31  Bruno Haible  <bruno@clisp.org>
13277
13278         isnand: Fix mistake.
13279         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13280         __builtin_isnand.
13281
13282 2010-12-31  Bruno Haible  <bruno@clisp.org>
13283
13284         open: Avoid C++ error on HP-UX 11.
13285         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13286
13287 2010-12-31  Bruno Haible  <bruno@clisp.org>
13288
13289         time_r: Add missing declarations on HP-UX 11.
13290         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13291         instead of HAVE_LOCALTIME_R.
13292         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13293         HAVE_LOCALTIME_R always.
13294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13295         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13296         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13297         HAVE_LOCALTIME_R.
13298         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13299         * doc/posix-functions/localtime_r.texi: Likewise.
13300
13301 2010-12-29  Eric Blake  <eblake@redhat.com>
13302
13303         mountlist: tweak previous commit
13304         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13305         Reported by Paul Eggert.
13306
13307         mountlist: fix local drive detection on cygwin
13308         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13309         that works for cygwin.
13310
13311 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13312
13313         ftoastr, snprintf: ftoastr + snprintf module
13314         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13315         since the snprintf module now should be good enough here.
13316         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13317         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13318         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13319         GNULIB_SNPRINTF only for the test directory, and the latter
13320         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13321         seems to suffice by itself.
13322
13323 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13324
13325         alloca: one step towards thread-safety
13326         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13327         need for a static variable.  All callers changed.  This does not
13328         make the alloca replacement thread-safe, but it's one step.
13329
13330         tests: minor indenting change
13331         * tests/init.sh: Sync from coreutils housekeeping patch
13332         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13333         to keep lines within 80 columns.
13334
13335 2010-12-28  Jim Meyering  <meyering@redhat.com>
13336
13337         regex: don't infloop on persistent failing calloc
13338         * lib/regexec.c (build_trtable): Return failure indication upon
13339         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13340         In glibc, this was fixed for version 2.13:
13341         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13342
13343 2010-12-28  Bruno Haible  <bruno@clisp.org>
13344             Paul Eggert <eggert@cs.ucla.edu>
13345
13346         linkat: Make implementation robust against system behaviour variations.
13347         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13348         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13349         way, and to -2 if it needs a generic runtime test.
13350         * lib/linkat.c (solaris_optimized_link_immediate,
13351         solaris_optimized_link_follow): New functions.
13352         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13353         (check_same_link): Use it.
13354
13355 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13356
13357         New module 'unigbrk/base'.
13358         * modules/unigbrk/base: New file.
13359         * lib/unigbrk.in.h: New file.
13360
13361         New module 'unigbrk/uc-gbrk-prop'.
13362         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13363         * modules/unigbrk/uc-gbrk-prop: New file.
13364         * lib/unigbrk/gbrkprop.h: New file.
13365         * lib/unigbrk/uc-gbrk-prop.c: New file.
13366
13367         New module 'unigbrk/uc-is-grapheme-break'.
13368         * modules/unigbrk/uc-is-grapheme-break: New file.
13369         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13370         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13371         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13372         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13373         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13374
13375         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13376
13377 2010-12-27  Bruno Haible  <bruno@clisp.org>
13378
13379         linkat test: Avoid failure on Solaris 11 2010-11.
13380         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13381
13382 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         utimens: work around glibc rounding bug on more platforms
13385         * lib/utimens.c (fdutimens): Work around rounding bug even if
13386         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13388
13389 2010-12-27  Bruno Haible  <bruno@clisp.org>
13390
13391         select tests: Improve comments.
13392         * tests/test-select.c (do_select): Add comments.
13393
13394 2010-12-27  Bruno Haible  <bruno@clisp.org>
13395
13396         select tests: Safer way of handling timeout.
13397         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13398         at every invocation.
13399
13400 2010-12-27  Bruno Haible  <bruno@clisp.org>
13401
13402         select tests: Use 'bool' where appropriate.
13403         * tests/test-select.c (connect_to_socket): Change argument type to
13404         'bool'.
13405
13406 2010-12-27  Bruno Haible  <bruno@clisp.org>
13407
13408         select tests: Use existing modules.
13409         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13410         (configure.ac): Don't test for unistd.h.
13411         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13412         declared in <unistd.h>.
13413
13414 2010-12-27  Bruno Haible  <bruno@clisp.org>
13415
13416         mbrtowc: Work around a Solaris 7 bug.
13417         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13418         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13419         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13420         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13421         MBRTOWC_NULL_ARG1_BUG.
13422         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13423         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13424         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13425         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13426
13427 2010-12-27  Jim Meyering  <meyering@redhat.com>
13428
13429         read-file.c: tweak syntax
13430         * lib/read-file.c (fread_file): Remove space after "*" in function
13431         definitions.
13432
13433 2010-12-27  Bruno Haible  <bruno@clisp.org>
13434
13435         times test: Avoid gcc warnings on OSF/1.
13436         * tests/test-times.c (main): Cast printf arguments from clock_t to
13437         'long int'.
13438
13439 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13440
13441         utimens: work around glibc rounding bug on older Linux kernels
13442         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13443         on Linux with a glibc whose utimes might not work, then work
13444         around a longstanding glibc bug involving rounding rather than
13445         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13447
13448 2010-12-26  Bruno Haible  <bruno@clisp.org>
13449
13450         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13451         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13452         _GL_CXXALIAS_SYS.
13453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13454
13455 2010-12-26  Bruno Haible  <bruno@clisp.org>
13456
13457         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13458         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13460         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13461         looking for the declaration.
13462         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13463         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13464         problem.
13465         * doc/posix-functions/inet_pton.texi: Likewise.
13466
13467 2010-12-26  Bruno Haible  <bruno@clisp.org>
13468
13469         arpa_inet: Use the common idioms with C++ support.
13470         * lib/arpa_inet.in.h: Include c++defs.h.
13471         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13472         support.
13473         * modules/arpa_inet (Depends-on): Add c++defs.
13474         (Makefile.am): Substitute the contents of c++defs.h.
13475         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13476         * modules/arpa_inet-c++-tests: New file.
13477         * tests/test-arpa_inet-c++.cc: New file.
13478
13479 2010-12-25  Bruno Haible  <bruno@clisp.org>
13480
13481         Fix more C++ link errors on Solaris 8.
13482         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13483         $(LIB_EACCESS).
13484         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13485         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13486         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13487         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13488         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13489
13490 2010-12-25  Bruno Haible  <bruno@clisp.org>
13491
13492         printf-posix: Fix link error when a non-GCC compiler is used.
13493         * lib/stdio.in.h (printf): When not using GCC, override printf
13494         correctly.
13495         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13496
13497 2010-12-25  Bruno Haible  <bruno@clisp.org>
13498
13499         strerror_r-posix: Update doc.
13500         * doc/posix-functions/strerror_r.texi: Update doc about the return
13501         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13502
13503 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         utimens: simplify the logic of the previous change
13506         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13507         This should not affect whether the test succeeds or fails.
13508
13509         utimens: configure better on hosts with NFS clock skew
13510         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13511         uses the clock of the local host.  It might use the clock of the
13512         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13514
13515 2010-12-25  Bruno Haible  <bruno@clisp.org>
13516
13517         ptsname test: Avoid failure on Solaris.
13518         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13519         open a pseudo-terminal; don't use BSD-style ptys.
13520         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13521
13522 2010-12-25  Bruno Haible  <bruno@clisp.org>
13523
13524         ptsname: Avoid ERANGE failure on some systems.
13525         * lib/ptsname.c (buffer): Increase size.
13526
13527 2010-12-25  Bruno Haible  <bruno@clisp.org>
13528
13529         rename, renameat: Avoid test failures at NFS mounted locations.
13530         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13531         so that subsequent mkdir calls succeed.
13532
13533 2010-12-25  Bruno Haible  <bruno@clisp.org>
13534
13535         iswblank: Fix C++ link error on Solaris 8.
13536         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13537         _GL_FUNCDECL_SYS.
13538
13539 2010-12-25  Bruno Haible  <bruno@clisp.org>
13540
13541         unistd: Fix C++ link error on Solaris 8.
13542         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13543
13544 2010-12-25  Bruno Haible  <bruno@clisp.org>
13545
13546         readlink doc: Mention an old glibc bug.
13547         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13548
13549 2010-12-25  Bruno Haible  <bruno@clisp.org>
13550
13551         fcntl-h: Fix for use of C++ on glibc systems.
13552         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13553         also on glibc systems in C++ mode.
13554         Reported by Gary V. Vaughan <gary@gnu.org>.
13555
13556 2010-12-25  Bruno Haible  <bruno@clisp.org>
13557
13558         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13559         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13560
13561 2010-12-25  Bruno Haible  <bruno@clisp.org>
13562
13563         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13564         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13565         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13566         test whether truncl works according to ISO C 99 with IEC 60559.
13567         * m4/truncl-ieee.m4: New file.
13568         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13569         m4/signbit.m4.
13570         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13571
13572 2010-12-25  Bruno Haible  <bruno@clisp.org>
13573
13574         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13575         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13576         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13577         test whether ceill works according to ISO C 99 with IEC 60559.
13578         * m4/ceill-ieee.m4: New file.
13579         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13580         m4/signbit.m4.
13581         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13582
13583 2010-12-25  Bruno Haible  <bruno@clisp.org>
13584
13585         Ensure all prerequisites of <wchar.h> are included.
13586         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13587         before <wchar.h>.
13588         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13589         gl_MBRLEN_NUL_RETVAL): Likewise.
13590         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13592         AC_FUNC_MBRTOWC): Likewise.
13593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13594         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13596         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13597         Likewise.
13598         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13599         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13600         (gl_WCHAR_H): Improve comments.
13601         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13602
13603 2010-12-25  Bruno Haible  <bruno@clisp.org>
13604
13605         strtok_r: Fix C syntax error in autoconf macro.
13606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13607         characters in test program.
13608
13609 2010-12-24  Bruno Haible  <bruno@clisp.org>
13610
13611         ceil, trunc, round: Fix gcc warnings.
13612         * lib/ceil.c (MIN): Undefine before redefining.
13613         * lib/trunc.c (MIN): Likewise.
13614         * lib/round.c (MIN): Likewise.
13615         Include <math.h> first.
13616
13617 2010-12-24  Bruno Haible  <bruno@clisp.org>
13618
13619         select tests: Avoid failures on OSF/1 5.1.
13620         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13621         failure of closing the last socket; it may fail with ECONNRESET.
13622
13623 2010-12-24  Eric Blake  <eblake@redhat.com>
13624
13625         stdint: avoid HP-UX 10.20 preprocessor bug
13626         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13627         than #if.
13628         * tests/test-floor2.c (main): Likewise.
13629         Reported by Peter O'Gorman.
13630
13631         pipe: make obsoletion transition easier
13632         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13633         * modules/pipe (Files): Include revived file.
13634         (Include): Drop reference, to mirror getdate's behavior.
13635
13636 2010-12-24  Bruno Haible  <bruno@clisp.org>
13637
13638         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13639         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13640         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13641         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13642
13643 2010-12-24  Bruno Haible  <bruno@clisp.org>
13644
13645         gethostname: Ensure declaration on NonStop Kernel.
13646         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13648
13649 2010-12-24  Bruno Haible  <bruno@clisp.org>
13650
13651         sys_select: Ensure all necessary types on NonStop Kernel.
13652         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13653         include <sys/time.h>.
13654         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13655         NonStop Kernel.
13656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13657
13658 2010-12-24  Bruno Haible  <bruno@clisp.org>
13659
13660         sys_select: Remove unneeded include.
13661         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13662         have <sys/select.h>.
13663
13664 2010-12-24  Bruno Haible  <bruno@clisp.org>
13665
13666         gethostname: Provide a fallback for HOST_NAME_MAX.
13667         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13668         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13669         instead.
13670         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13671
13672 2010-12-24  Bruno Haible  <bruno@clisp.org>
13673
13674         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13675         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13676         (SA_RESTART): Likewise.
13677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13678
13679 2010-12-24  Bruno Haible  <bruno@clisp.org>
13680
13681         signal: Define NSIG.
13682         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13683         * tests/test-signal.c (nsig): New variable.
13684         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13685
13686 2010-12-24  Bruno Haible  <bruno@clisp.org>
13687
13688         rename, renameat: Avoid test failures on OSF/1 5.1.
13689         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13690         alternative error codes.
13691         * tests/test-renameat.c (main): Likewise.
13692
13693 2010-12-24  Bruno Haible  <bruno@clisp.org>
13694
13695         *printf: Detect large precisions bug on Solaris 10/SPARC.
13696         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13697         by Paul Eggert.
13698         * tests/test-snprintf-posix.h (test_function): Add this test code here
13699         too.
13700         * tests/test-sprintf-posix.h (test_function): Likewise.
13701         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13702         * tests/test-vasprintf-posix.c (test_function): Likewise.
13703         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13704         around by gnulib.
13705         * doc/posix-functions/printf.texi: Likewise.
13706         * doc/posix-functions/snprintf.texi: Likewise.
13707         * doc/posix-functions/sprintf.texi: Likewise.
13708         * doc/posix-functions/vfprintf.texi: Likewise.
13709         * doc/posix-functions/vprintf.texi: Likewise.
13710         * doc/posix-functions/vsnprintf.texi: Likewise.
13711         * doc/posix-functions/vsprintf.texi: Likewise.
13712         * doc/posix-functions/dprintf.texi: Undo last commit.
13713         * doc/posix-functions/vdprintf.texi: Likewise.
13714
13715 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         tests: port test-fdutimensat.c to Solaris 8
13718         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13719         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13720         On Solaris 8, it fails with errno == ENOSYS, because there is no
13721         futimens (so it can't use the fd), and there is no lutimens (so it
13722         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13723
13724         vsnprintf: make more consistent with snprintf; doc fixes
13725
13726         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13727         the byte count return problem was promoted from the snprintf-posix
13728         to the snprintf module.
13729         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13731         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13732         * tests/test-snprintf.c (main): Check the byte count returned.
13733         * tests/test-vsnprintf.c (main): Likewise.
13734
13735 2010-12-23  Eric Blake  <eblake@redhat.com>
13736
13737         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13738         * modules/sigpipe (License): Relax license.
13739
13740 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         doc: document Solaris printf bug with large float precisions
13743         * doc/posix-functions/dprintf.texi (dprintf):
13744         * doc/posix-functions/fprintf.texi (fprintf):
13745         * doc/posix-functions/printf.texi (printf):
13746         * doc/posix-functions/snprintf.texi (snprintf):
13747         * doc/posix-functions/sprintf.texi (sprintf):
13748         * doc/posix-functions/vdprintf.texi (vdprintf):
13749         * doc/posix-functions/vfprintf.texi (vfprintf):
13750         * doc/posix-functions/vprintf.texi (vprintf):
13751         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13752         * doc/posix-functions/vsprintf.texi (vsprintf):
13753         Mention that these functions mishandle large floating point
13754         precisions on Solaris 10.  The same bug is also present in Solaris
13755         8, and I assume earlier.  This causes "cd gnulib-tests; make
13756         check" to fail on Solaris 8 (and I assume, later) when building
13757         the latest coreutils, in test-vasprintf-posix's call to
13758         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13759         the wide flavors (e.g., wprintf) so this patch just updates the
13760         documentation for the narrow ones.
13761
13762         test-posixtm.c: add two tests
13763         * tests/test-posixtm.c: Add two tests, to highlight the
13764         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13765         around this bug; this is merely to document it.
13766
13767 2010-12-22  Bruno Haible  <bruno@clisp.org>
13768
13769         getlogin_r: Work around portability problem on OSF/1.
13770         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13771         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13772         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13773         test for a truncated result.
13774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13775         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13776         * modules/getlogin_r (Depends-on): Add memchr.
13777         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13778
13779 2010-12-22  Bruno Haible  <bruno@clisp.org>
13780
13781         ptsname: Avoid test failure on OSF/1 5.1.
13782         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13783         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13784         (same_slave): New function.
13785         (main): Use it to compare ptsname's result with the expected file name.
13786
13787 2010-12-22  Bruno Haible  <bruno@clisp.org>
13788
13789         Port extended stdio modules to HP NonStop Kernel.
13790         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13791         macros.
13792         * lib/fbufmode.c: Update comments.
13793         * lib/fflush.c: Likewise.
13794         * lib/fpurge.c: Likewise.
13795         * lib/freadable.c: Likewise.
13796         * lib/freadahead.c: Likewise.
13797         * lib/freading.c: Likewise.
13798         * lib/freadptr.c: Likewise.
13799         * lib/freadseek.c: Likewise.
13800         * lib/fseeko.c: Likewise.
13801         * lib/fseterr.c: Likewise.
13802         * lib/fwritable.c: Likewise.
13803         * lib/fwriting.c: Likewise.
13804         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13805
13806 2010-12-22  Bruno Haible  <bruno@clisp.org>
13807
13808         ttyname_r: Work around bug on OSF/1 5.1.
13809         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13810         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13811         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13812         present.
13813         * lib/ttyname_r.c (ttyname_r): Update comments.
13814
13815 2010-12-22  Bruno Haible  <bruno@clisp.org>
13816
13817         round: Implement result sign according to IEEE 754.
13818         * lib/round.c (MIN, MINUS_ZERO): New macros.
13819         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13820         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13821         * tests/test-round-ieee.c (main): Likewise.
13822         * tests/test-roundl-ieee.c (main): Likewise.
13823
13824         trunc: Implement result sign according to IEEE 754.
13825         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13826         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13827         * tests/test-trunc2.c: Include minus-zero.h.
13828         (MINUS_ZERO): New macro.
13829         (trunc_reference): Keep in sync with lib/trunc.c.
13830         * tests/test-truncf2.c: Include minus-zero.h.
13831         (MINUS_ZERO): New macro.
13832         (truncf_reference): Keep in sync with lib/trunc.c.
13833         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13834         * tests/test-trunc-ieee.c (main): Likewise.
13835         * tests/test-truncl-ieee.c (main): Likewise.
13836
13837         ceil: Implement result sign according to IEEE 754.
13838         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13839         (FUNC): Return -0.0 for -1 < x < 0.
13840         * tests/test-ceil2.c: Include minus-zero.h.
13841         (MINUS_ZERO): New macro.
13842         (ceil_reference): Keep in sync with lib/ceil.c.
13843         * tests/test-ceilf2.c: Include minus-zero.h.
13844         (MINUS_ZERO): New macro.
13845         (ceilf_reference): Keep in sync with lib/ceil.c.
13846         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13847         * tests/test-ceil-ieee.c (main): Likewise.
13848         * tests/test-ceill-ieee.c (main): Likewise.
13849
13850         floor: Implement result sign according to IEEE 754.
13851         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13852         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13853         * tests/test-floorf2.c (floorf_reference): Likewise.
13854         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13855         * tests/test-floor-ieee.c (main): Likewise.
13856         * tests/test-floorl-ieee.c (main): Likewise.
13857
13858 2010-12-22  Bruno Haible  <bruno@clisp.org>
13859
13860         getaddrinfo: Update doc.
13861         * doc/posix-functions/gai_strerror.texi: Return type is also different
13862         on AIX and HP-UX.
13863
13864 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13865
13866         getaddrinfo, inet_ntop: Update doc for Solaris.
13867         * doc/posix-functions/gai_strerror.texi: Return type is also an
13868         issue on Solaris 9 and earlier.
13869         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13870         on Solaris 10 and earlier.
13871
13872 2010-12-21  Bruno Haible  <bruno@clisp.org>
13873
13874         New module 'roundl-ieee'.
13875         * modules/roundl-ieee: New file.
13876         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13877         test whether roundl works according to ISO C 99 with IEC 60559.
13878         * m4/roundl-ieee.m4: New file.
13879         * modules/roundl-ieee-tests: New file.
13880         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13881         * tests/test-roundl.c (main): Remove signbit tests.
13882         * modules/roundl-tests (Depends-on): Remove signbit.
13883         * doc/posix-functions/roundl.texi: Mention the new module.
13884
13885 2010-12-21  Bruno Haible  <bruno@clisp.org>
13886
13887         New module 'truncl-ieee'.
13888         * modules/truncl-ieee: New file.
13889         * modules/truncl-ieee-tests: New file.
13890         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13891         * tests/test-truncl.c (main): Remove signbit tests.
13892         * modules/truncl-tests (Depends-on): Remove signbit.
13893         * doc/posix-functions/truncl.texi: Mention the new module.
13894
13895 2010-12-21  Bruno Haible  <bruno@clisp.org>
13896
13897         New module 'ceill-ieee'.
13898         * modules/ceill-ieee: New file.
13899         * modules/ceill-ieee-tests: New file.
13900         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13901         * tests/test-ceill.c (main): Remove signbit tests.
13902         * modules/ceill-tests (Depends-on): Remove signbit.
13903         * doc/posix-functions/ceill.texi: Mention the new module.
13904
13905 2010-12-21  Bruno Haible  <bruno@clisp.org>
13906
13907         New module 'floorl-ieee'.
13908         * modules/floorl-ieee: New file.
13909         * modules/floorl-ieee-tests: New file.
13910         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13911         * tests/test-floorl.c (main): Remove signbit tests.
13912         * modules/floorl-tests (Depends-on): Remove signbit.
13913         * doc/posix-functions/floorl.texi: Mention the new module.
13914
13915 2010-12-21  Bruno Haible  <bruno@clisp.org>
13916
13917         New module 'round-ieee'.
13918         * modules/round-ieee: New file.
13919         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13920         whether round works according to ISO C 99 with IEC 60559.
13921         * m4/round-ieee.m4: New file.
13922         * modules/round-ieee-tests: New file.
13923         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13924         * tests/test-round1.c (main): Remove signbit tests.
13925         * modules/round-tests (Depends-on): Remove 'signbit'.
13926         * doc/posix-functions/round.texi: Mention the new module.
13927
13928 2010-12-21  Bruno Haible  <bruno@clisp.org>
13929
13930         New module 'trunc-ieee'.
13931         * modules/trunc-ieee: New file.
13932         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13933         whether trunc works according to ISO C 99 with IEC 60559.
13934         * m4/trunc-ieee.m4: New file.
13935         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13937         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13938         * modules/trunc-ieee-tests: New file.
13939         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13940         * tests/test-trunc1.c (main): Remove signbit tests.
13941         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13942         * doc/posix-functions/trunc.texi: Mention the new module.
13943
13944 2010-12-21  Bruno Haible  <bruno@clisp.org>
13945
13946         New module 'ceil-ieee'.
13947         * modules/ceil-ieee: New file.
13948         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13949         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13950         ISO C 99 with IEC 60559.
13951         * m4/ceil-ieee.m4: New file.
13952         * modules/ceil (Files): Add lib/ceil.c.
13953         (Depends-on): Add 'float'.
13954         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13955         * lib/math.in.h (ceil): New declaration.
13956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13957         REPLACE_CEIL.
13958         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13959         * modules/ceil-ieee-tests: New file.
13960         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13961         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13962         * doc/posix-functions/ceil.texi: Mention the new module.
13963
13964 2010-12-21  Bruno Haible  <bruno@clisp.org>
13965
13966         New module 'floor-ieee'.
13967         * modules/floor-ieee: New file.
13968         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13969         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13970         ISO C 99 with IEC 60559.
13971         * m4/floor-ieee.m4: New file.
13972         * modules/floor (Files): Add lib/floor.c.
13973         (Depends-on): Add 'float'.
13974         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13975         * lib/math.in.h (floor): New declaration.
13976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13977         REPLACE_FLOOR.
13978         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13979         * modules/floor-ieee-tests: New file.
13980         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13981         * tests/test-math-c++.cc: Check the signature of 'floor'.
13982         * doc/posix-functions/floor.texi: Mention the new module.
13983
13984 2010-12-21  Bruno Haible  <bruno@clisp.org>
13985
13986         New module 'roundf-ieee'.
13987         * modules/roundf-ieee: New file.
13988         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13989         test whether roundf works according to ISO C 99 with IEC 60559.
13990         * m4/roundf-ieee.m4: New file.
13991         * modules/roundf-ieee-tests: New file.
13992         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13993         * tests/test-roundf1.c (main): Remove signbit tests.
13994         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13995         * doc/posix-functions/roundf.texi: Mention the new module.
13996
13997 2010-12-21  Bruno Haible  <bruno@clisp.org>
13998
13999         New module 'truncf-ieee'.
14000         * modules/truncf-ieee: New file.
14001         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14002         test whether truncf works according to ISO C 99 with IEC 60559.
14003         * m4/truncf-ieee.m4: New file.
14004         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14006         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14007         * modules/truncf-ieee-tests: New file.
14008         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14009         * tests/test-truncf1.c (main): Remove signbit tests.
14010         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14011         * doc/posix-functions/truncf.texi: Mention the new module.
14012
14013 2010-12-21  Bruno Haible  <bruno@clisp.org>
14014
14015         New module 'ceilf-ieee'.
14016         * modules/ceilf-ieee: New file.
14017         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14018         test whether ceilf works according to ISO C 99 with IEC 60559.
14019         * m4/ceilf-ieee.m4: New file.
14020         * modules/ceilf-ieee-tests: New file.
14021         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14022         * tests/test-ceilf1.c (main): Remove signbit tests.
14023         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14024         * doc/posix-functions/ceilf.texi: Mention the new module.
14025
14026 2010-12-21  Bruno Haible  <bruno@clisp.org>
14027
14028         New module 'floorf-ieee'.
14029         * modules/floorf-ieee: New file.
14030         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14031         test whether floorf works according to ISO C 99 with IEC 60559.
14032         * m4/floorf-ieee.m4: New file.
14033         * modules/floorf-ieee-tests: New file.
14034         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14035         * tests/test-floorf1.c (main): Remove signbit tests.
14036         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14037         * doc/posix-functions/floorf.texi: Mention the new module.
14038
14039 2010-12-21  Bruno Haible  <bruno@clisp.org>
14040
14041         Support for minus zero in autoconf macros.
14042         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14043         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14044         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14045         * tests/minus-zero.h: Update comments.
14046
14047 2010-12-21  Bruno Haible  <bruno@clisp.org>
14048
14049         Tests for module 'ceil'.
14050         * modules/ceil-tests: New file.
14051         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14052         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14053
14054 2010-12-21  Bruno Haible  <bruno@clisp.org>
14055
14056         Tests for module 'floor'.
14057         * modules/floor-tests: New file.
14058         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14059         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14060
14061 2010-12-21  Bruno Haible  <bruno@clisp.org>
14062
14063         math: Fix indentation.
14064         * lib/math.in.h (floorf): Fix indentation.
14065
14066 2010-12-21  Bruno Haible  <bruno@clisp.org>
14067
14068         Fix cross-compilation guesses on Solaris.
14069         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14070         not match "solaris2.10".
14071         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14072         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14073         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14074
14075 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14076
14077         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14078         This fixes a problem observed with the latest coreutils snapshot
14079         that caused a test to fail on Solaris 8.  src/csplit.c's call
14080         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14081         earlier, instead of returning the number of bytes that would have
14082         been generated; this causes csplit to incorrectly report memory
14083         exhaustion.
14084         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14085         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14086         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14087         comments to match.
14088         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14089         Fix typo in matching older versions of Solaris: "solaris2.10"
14090         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14091         only for guessing while cross-compiling.
14092         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14093
14094 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14095
14096         ftoastr: fix comment again
14097         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14099         Also, simplify example a bit by using flags = 0.
14100
14101 2010-12-20  Bruno Haible  <bruno@clisp.org>
14102
14103         round*, trunc*: Update documentation regarding glibc.
14104         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14105         * doc/posix-functions/round.texi: Likewise.
14106         * doc/posix-functions/roundl.texi: Likewise.
14107         * doc/posix-functions/truncf.texi: Likewise.
14108         * doc/posix-functions/trunc.texi: Likewise.
14109         * doc/posix-functions/truncl.texi: Likewise.
14110
14111 2010-12-20  Bruno Haible  <bruno@clisp.org>
14112
14113         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14114         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14115         * doc/posix-functions/round.texi: Likewise.
14116         * doc/posix-functions/roundl.texi: Likewise.
14117
14118 2010-12-20  Bruno Haible  <bruno@clisp.org>
14119
14120         ttyname_r: Add missing declaration on HP-UX 11.
14121         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14122         HAVE_TTYNAME_R.
14123         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14124         declared. Set HAVE_TTYNAME_R always.
14125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14126         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14127         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14128         HAVE_TTYNAME_R.
14129         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14130
14131 2010-12-20  Bruno Haible  <bruno@clisp.org>
14132
14133         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14134         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14135         * doc/posix-functions/getlogin_r.texi: Likewise.
14136         * tests/test-getlogin.c: Include <errno.h>.
14137         (main): Avoid test failure on HP-UX 11.11.
14138         * tests/test-getlogin_r.c (main): Likewise.
14139
14140 2010-12-20  Bruno Haible  <bruno@clisp.org>
14141
14142         getlogin_r: Add missing declaration on HP-UX 11.
14143         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14144         declared also when it exists as a function.
14145         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14146
14147 2010-12-20  Bruno Haible  <bruno@clisp.org>
14148
14149         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14150         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14151         through wcrtomb.
14152
14153 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14154
14155         ftoastr: fix comment
14156         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14157         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14158
14159 2010-12-19  Bruno Haible  <bruno@clisp.org>
14160
14161         isnan: Ensure it is a macro.
14162         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14163         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14164         Solaris.
14165
14166 2010-12-19  Bruno Haible  <bruno@clisp.org>
14167
14168         ldexpl test: Fix link error on OSF/1 5.1.
14169         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14170
14171 2010-12-19  Bruno Haible  <bruno@clisp.org>
14172
14173         wctype: Make it work in C++ mode on OSF/1 5.1.
14174         * lib/wctype.in.h (iswblank): Declare but not define here.
14175         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14176         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14177         * modules/wctype (Files): Add lib/iswblank.c.
14178
14179 2010-12-19  Bruno Haible  <bruno@clisp.org>
14180
14181         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14182         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14183         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14184
14185 2010-12-19  Bruno Haible  <bruno@clisp.org>
14186
14187         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14189         _POSIX_PII_SOCKET.
14190         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14191         * doc/posix-functions/recvfrom.texi: Likewise.
14192         * doc/posix-functions/send.texi: Likewise.
14193         * doc/posix-functions/sendto.texi: Likewise.
14194
14195 2010-12-19  Bruno Haible  <bruno@clisp.org>
14196
14197         tcgetsid: Add missing declaration on OSF/1 5.1.
14198         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14199         HAVE_TCGETSID.
14200         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14201         Don't set HAVE_TCGETSID.
14202         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14203         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14204         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14205         HAVE_TCGETSID.
14206         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14207
14208 2010-12-19  Bruno Haible  <bruno@clisp.org>
14209
14210         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14211         * lib/stdio.in.h: During the include_next statement, let recursive
14212         includes of this file include only the system header file.
14213
14214 2010-12-19  Bruno Haible  <bruno@clisp.org>
14215
14216         iconv_open: Fix regression from 2010-12-04.
14217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14218         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14219
14220 2010-12-19  Bruno Haible  <bruno@clisp.org>
14221
14222         stdbool test: Avoid a gcc warning.
14223         * tests/test-stdbool.c (main): Fail if e1 is false.
14224         Reported by Jim Meyering.
14225
14226 2010-12-19  Jim Meyering  <meyering@redhat.com>
14227
14228         setenv: restore to working order
14229         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14230         mistakenly removed.
14231         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14232         HAVE_SETENV.
14233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14234         HAVE_SETENV.
14235
14236 2010-12-19  Bruno Haible  <bruno@clisp.org>
14237
14238         Document some different function declarations on OSF/1 5.1.
14239         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14240         * doc/posix-functions/inet_ntop.texi: Likewise.
14241         * doc/posix-functions/gethostname.texi: Likewise.
14242         * lib/unistd.in.h (gethostname): Update comment.
14243
14244 2010-12-19  Bruno Haible  <bruno@clisp.org>
14245
14246         doc: Mention vasprintf-posix module.
14247         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14248         the 'vasprintf-posix' module.
14249         * doc/glibc-functions/vasprintf.texi: Likewise.
14250
14251 2010-12-19  Bruno Haible  <bruno@clisp.org>
14252
14253         unsetenv: Add missing declaration on OSF/1 5.1.
14254         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14255         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14256         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14258         not HAVE_UNSETENV.
14259         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14260         HAVE_UNSETENV.
14261         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14262
14263 2010-12-19  Bruno Haible  <bruno@clisp.org>
14264
14265         setenv: Add missing declaration on OSF/1 5.1.
14266         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14267         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14268         declared. Don't set HAVE_SETENV.
14269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14270         not HAVE_SETENV.
14271         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14272         HAVE_SETENV.
14273         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14274
14275 2010-12-19  Bruno Haible  <bruno@clisp.org>
14276
14277         nl_langinfo tests: Avoid gcc warning.
14278         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14279
14280 2010-12-19  Bruno Haible  <bruno@clisp.org>
14281
14282         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14283         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14284         _GL_CXXALIAS_SYS.
14285
14286 2010-12-19  Bruno Haible  <bruno@clisp.org>
14287
14288         stdbool: Relax test.
14289         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14290         address to 'bool' work in static initializer, for compilers other than
14291         GCC.
14292
14293 2010-12-19  Bruno Haible  <bruno@clisp.org>
14294
14295         ftello: Add missing declaration on OSF/1 5.1.
14296         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14297         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14299         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14300         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14301
14302 2010-12-19  Bruno Haible  <bruno@clisp.org>
14303
14304         fseeko: Add missing declaration on OSF/1 5.1.
14305         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14308         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14309         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14310
14311 2010-12-19  Bruno Haible  <bruno@clisp.org>
14312
14313         fchdir: Add missing declaration on OSF/1 5.1.
14314         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14317         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14318         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14319
14320 2010-12-19  Bruno Haible  <bruno@clisp.org>
14321
14322         relocatable-prog-wrapper: Separate from relocatable-prog.
14323         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14324         uninstall-relocwrapper rule here.
14325         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14326         Reported by Ian Beckwith <ianb@erislabs.net>.
14327
14328 2010-12-19  Bruno Haible  <bruno@clisp.org>
14329
14330         unistr/u8-mbsnlen: Add missing dependency.
14331         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14332         Reported by Ian Beckwith <ianb@erislabs.net>.
14333
14334 2010-12-19  Bruno Haible  <bruno@clisp.org>
14335
14336         iconv: Make it possible again to use this module without 'iconv-h'.
14337         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14338         if it is not defined.
14339         Reported by Ian Beckwith <ianb@erislabs.net>.
14340
14341 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14342
14343         acl: port to Solaris 8 when copying from tmpfs to ufs
14344         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14345         error number.  Problem observed on Solaris 8 with latest
14346         coreutils, with "mv A B", where A is on a tmpfs file system and B
14347         is on a ufs file system.  This caused coreutils' mv/part-symlink
14348         test to fail.
14349
14350         tests: set fail=0 at start
14351         * tests/init.sh (setup_): Move fail=0 initialization here ...
14352         (mktempd_): ... from here, so that tests can rely on fail being
14353         set to 0 initially.  This fixes a problem in coreutils; see:
14354         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14355
14356 2010-12-18  Bruno Haible  <bruno@clisp.org>
14357
14358         memmem-simple: Stylistic changes.
14359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14360         Fix preprocessor directive indentation.
14361
14362 2010-12-15  Pádraig Brady <P@draigBrady.com>
14363
14364         memmem, memmem-simple: reorganize and expand empty needle check
14365         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14366         functional checks to memmem-simple so that one has a fully functional
14367         memmem by using just this module.
14368         Restrict the performance only check to the memmem module.
14369         Also expand the empty needle check to ensure the correct
14370         pointer is returned, not just a non NULL pointer.
14371         * doc/glibc-functions/memmem.texi: Rearrange the portability
14372         documentation to correlate with the rearranged checks.
14373         Clarify exactly how the memmem and memmem-simple modules
14374         relate to each other.
14375
14376 2010-12-15  Pádraig Brady <P@draigBrady.com>
14377             Bruno Haible  <bruno@clisp.org>
14378
14379         Improve cross-compilation guesses for uClibc.
14380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14381         that uClibc does not have the glibc bug.
14382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14383         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14384
14385 2010-12-14  Eric Blake  <eblake@redhat.com>
14386
14387         configmake: provide fallbacks for oldest supported autotools
14388         * m4/configmake.m4: New file.
14389         * modules/configmake (Files): Ship it.
14390         (configure.ac): Use it to guarantee fallbacks.
14391
14392 2010-12-13  Pádraig Brady <P@draigBrady.com>
14393
14394         read-file: Improve handling of large files
14395         * lib/read-file.c (fread_file): Minimize realloc()s
14396         for regular files, and better manage sizes around SIZE_MAX.
14397
14398 2010-12-13  Eric Blake  <eblake@redhat.com>
14399
14400         cloexec, fcntl: relax license
14401         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14402         consent from all contributors.
14403         * modules/fcntl (License): Likewise.
14404
14405 2010-12-10  Bruno Haible  <bruno@clisp.org>
14406
14407         Tests for module 'pipe-posix'.
14408         * modules/pipe-posix-tests: New file.
14409         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14410
14411 2010-12-10  Bruno Haible  <bruno@clisp.org>
14412
14413         pipe-posix: Make it work in C++ mode.
14414         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14415         (pipe): Use common idiom, not a macro definition.
14416         * lib/pipe.c: New file.
14417         * m4/pipe.m4: New file.
14418         * modules/pipe-posix (Description): Enhance.
14419         (Files): Add lib/pipe.c, m4/pipe.m4.
14420         (configure.ac): Invoke gl_FUNC_PIPE.
14421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14422         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14423         * tests/test-unistd-c++.cc: Check the signature of pipe.
14424
14425 2010-12-10  Bruno Haible  <bruno@clisp.org>
14426
14427         Rename module 'pipe' to 'spawn-pipe'.
14428         * modules/spawn-pipe: New file, renamed from modules/pipe.
14429         (Files, configure.ac, Makefile.am): Update.
14430         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14431         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14432         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14433         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14434         "spawn-pipe.h" instead of "pipe.h".
14435         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14436         to gl_SPAWN_PIPE.
14437         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14438         (Files, Makefile.am): Update.
14439         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14440         Update.
14441         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14442         Include "spawn-pipe.h" instead of "pipe.h".
14443         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14444         * lib/javacomp.c: Likewise.
14445         * lib/javaversion.c: Likewise.
14446         * lib/pipe-filter-gi.c: Likewise.
14447         * lib/pipe-filter-ii.c: Likewise.
14448         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14449         * modules/javacomp (Depends-on): Likewise.
14450         * modules/javaversion (Depends-on): Likewise.
14451         * modules/pipe-filter-gi (Depends-on): Likewise.
14452         * modules/pipe-filter-ii (Depends-on): Likewise.
14453         * MODULES.html.sh (Executing programs): Update.
14454         * NEWS: Mention the change.
14455
14456 2010-12-10  Eric Blake  <eblake@redhat.com>
14457
14458         pipe-posix: new module
14459         * modules/pipe-posix: New file.
14460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14461         (gl_UNISTD_H): Check for declaration.
14462         * modules/unistd (Makefile.am): Substitute it.
14463         * lib/unistd.in.h (pipe): Provide it for mingw.
14464         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14465         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14466
14467 2010-12-07  Bruno Haible  <bruno@clisp.org>
14468
14469         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14470         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14471         u8_strcmp_gnu.
14472         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14473
14474 2010-12-06  Bruno Haible  <bruno@clisp.org>
14475
14476         Update internal documentation.
14477         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14478
14479 2010-12-04  Bruno Haible  <bruno@clisp.org>
14480
14481         Put more information about failed tests into the test return codes.
14482         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14483         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14484         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14486         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14487         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14489         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14490         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14493         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14494         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14495         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14497         returns a bit mask.
14498         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14499         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14500         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14501         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14502         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14506         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14507         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14509         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14512         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14513         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14514         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14515         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14517         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14518         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14519         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14521         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14522         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14523         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14524         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14525         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14526         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14527         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14528         gl_PRINTF_PRECISION): Likewise.
14529         * m4/regex.m4 (gl_REGEX): Likewise.
14530         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14533         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14537         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14538         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14539         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14540         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14541         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14542         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14543         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14544         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14545         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14546         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14549         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14550         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14551         enumerated value.
14552         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14553
14554 2010-12-04  Bruno Haible  <bruno@clisp.org>
14555
14556         Update for Solaris 11 2010-11.
14557         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14558         Express, released in November 2010.
14559
14560 2010-12-04  Bruno Haible  <bruno@clisp.org>
14561
14562         nproc: Relax license.
14563         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14564         and Paul Eggert.
14565         Requested by Ludovic Courtès <ludo@gnu.org>.
14566
14567 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14568
14569         utimecmp: fine-grained src to nearby coarse-grained dest
14570
14571         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14572         and the source is on a file system with higher-resolution time
14573         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14574         not work, and the time stamps are close together, the algorithm to
14575         determine the exact resolution from the read-back mtime was buggy:
14576         it had a "!=" where it should have had an "==".  This bug has been
14577         in the code ever since it was introduced to gnulib.
14578         Problem reported by Dan Jacobson in
14579         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14580
14581 2010-11-30  Bruno Haible  <bruno@clisp.org>
14582
14583         strerror_r-posix: Fix autoconf test.
14584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14585
14586 2010-11-28  Bruno Haible  <bruno@clisp.org>
14587             Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         Tests for module 'getdomainname'.
14590         * modules/getdomainname-tests: New file.
14591         * tests/test-getdomainname.c: New file, based on
14592         tests/test-gethostname.c.
14593
14594 2010-11-28  Bruno Haible  <bruno@clisp.org>
14595             Paul Eggert  <eggert@cs.ucla.edu>
14596
14597         getdomainname: Use the system function when possible.
14598         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14599         (getdomainname): Replace if needed. Provide the declaration if it is
14600         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14601         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14602         (getdomainname): When the system has getdomainname, call the system
14603         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14604         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14605         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14606         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14607         the function if its second argument is of type 'int' or if it is found
14608         in libnsl.
14609         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14610         <sys/systeminfo.h> and sysinfo().
14611         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14613         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14614         HAVE_GETDOMAINNAME.
14615         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14616         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14617         * doc/glibc-functions/getdomainname.texi: Document the problems with
14618         the getdomainname declaration.
14619
14620 2010-11-28  Bruno Haible  <bruno@clisp.org>
14621
14622         sys_socket: Ensure ss_family field on AIX.
14623         * lib/sys_socket.in.h (ss_family): New macro definition.
14624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14625         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14626         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14627         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14628         * modules/sys_socket (Makefile.am): Substitute
14629         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14630         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14631
14632 2010-11-27  Bruno Haible  <bruno@clisp.org>
14633
14634         readline: Improve configure output.
14635         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14636         "checking for readline..." result understandable.
14637
14638 2010-11-27  Bruno Haible  <bruno@clisp.org>
14639
14640         *printf-posix: Detect a bug on Solaris 10/x86.
14641         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14642         for floating-point output.
14643         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14644         directive.
14645         * tests/test-snprintf-posix.h (test_function): Likewise.
14646         * tests/test-sprintf-posix.h (test_function): Likewise.
14647         * tests/test-vasprintf-posix.c (test_function): Likewise.
14648         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14649         * doc/posix-functions/printf.texi: Likewise.
14650         * doc/posix-functions/snprintf.texi: Likewise.
14651         * doc/posix-functions/sprintf.texi: Likewise.
14652         * doc/posix-functions/vfprintf.texi: Likewise.
14653         * doc/posix-functions/vprintf.texi: Likewise.
14654         * doc/posix-functions/vsnprintf.texi: Likewise.
14655         * doc/posix-functions/vsprintf.texi: Likewise.
14656         * doc/glibc-functions/obstack_printf.texi: Likewise.
14657         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14658
14659 2010-11-27  Bruno Haible  <bruno@clisp.org>
14660
14661         Fix link error when module libunistring-optional is in use.
14662         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14663         * modules/striconveha-tests (Makefile.am): Likewise.
14664
14665 2010-11-27  Bruno Haible  <bruno@clisp.org>
14666
14667         regex: Mention link dependencies.
14668         * modules/regex (Link): New section.
14669         * modules/rpmatch (Link): Likewise.
14670         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14671
14672 2010-11-27  Bruno Haible  <bruno@clisp.org>
14673
14674         ftoastr: Fix compilation error on Solaris.
14675         * lib/ftoastr.c: Include <config.h>.
14676
14677 2010-11-27  Bruno Haible  <bruno@clisp.org>
14678
14679         getloadavg: Update documentation.
14680         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14681
14682 2010-11-27  Bruno Haible  <bruno@clisp.org>
14683
14684         sys_socket: Fix test whether the functions are declared.
14685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14686         not <sys/select.h>.
14687
14688 2010-11-27  Bruno Haible  <bruno@clisp.org>
14689
14690         getpass: Make sure to get system declaration on some platforms.
14691         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14692         gl_USE_SYSTEM_EXTENSIONS.
14693         * modules/getpass (Depends-on): Add extensions.
14694
14695 2010-11-26  Bruno Haible  <bruno@clisp.org>
14696
14697         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14698         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14699         'iconv' module is present.
14700         (ICONV_CONST): New macro.
14701         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14702         ICONV_CONST.
14703         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14704         set ICONV_CONST.
14705         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14706         here.
14707         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14708         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14709         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14710         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14711         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14712         present.
14713
14714 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14715
14716         ftoastr: comment fix
14717         * lib/ftoastr.c: "little" -> "little or no" in comment
14718
14719 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14720
14721         stdint: port to GCC 4.3 + OSX + Octave
14722         On this platform, stdint.h is buggy and defines int64_t to long
14723         long int.  The replacement defined it to long int, causing
14724         problems with C++ style name mangling.  Instead, trust the system
14725         definition if INT64_MAX is defined, and likewise for the unsigned
14726         variant.   Problem reported by Jarno Rajahalme in
14727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14728         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14729         and don't mess with int64_t and INT64_MAX in this case.
14730         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14731
14732 2010-11-24  Bruno Haible  <bruno@clisp.org>
14733
14734         doc: Corrections regarding MacOS X 10.4 and 10.5.
14735         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14736         MacOS X.
14737         Reported by Simon Josefsson.
14738
14739 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14740
14741         Uninstall ".bin" files installed by relocwrapper.
14742         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14743         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14744         unless it is already there.
14745
14746 2010-11-21  Bruno Haible  <bruno@clisp.org>
14747
14748         Update for NetBSD 5.0.
14749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14750         NetBSD; the test fails on NetBSD 5.0.
14751         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14752         about NetBSD.
14753
14754 2010-11-21  Bruno Haible  <bruno@clisp.org>
14755
14756         Update for HP-UX 11.23 and HP-UX 11.31.
14757         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14758         HP-UX.
14759
14760 2010-11-21  Bruno Haible  <bruno@clisp.org>
14761
14762         Update for MacOS X 10.5.
14763         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14764         MacOS X; the test fails on MacOS X 10.5.8.
14765         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14766         about MacOS X.
14767
14768 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14769
14770         bootstrap: add bootstrap_sync option.
14771         See discussion at
14772         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14774         * build-aux/bootstrap: Accept --bootstrap-sync to update
14775         bootstrap if it is not identical to the local gnulib's
14776         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14777         enable this by default.  Accept --no-bootstrap-sync to disable
14778         it.
14779
14780 2010-11-20  Bruno Haible  <bruno@clisp.org>
14781
14782         Ensure that <features.h> is included before __GLIBC__ is tested.
14783         * lib/printf-parse.h: Include <features.h>.
14784         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14785         Reported by Mike Frysinger <vapier@gentoo.org>.
14786
14787         Ensure that <features.h> is included before __GLIBC__ is tested.
14788         * lib/wchar.in.h: Include <features.h>.
14789         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14790         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14791         Reported by Mike Frysinger <vapier@gentoo.org>.
14792
14793         Ensure that <features.h> is included before __GLIBC__ is tested.
14794         * lib/arpa_inet.in.h: Include <features.h>.
14795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14796         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14797         Reported by Mike Frysinger <vapier@gentoo.org>.
14798
14799         Ensure that <features.h> is included before __GLIBC__ is tested.
14800         * build-aux/link-warning.h: Include <features.h>.
14801         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14802         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14803         Reported by Mike Frysinger <vapier@gentoo.org>.
14804
14805         Ensure that <features.h> is included before __GLIBC__ is tested.
14806         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14807         Reported by Mike Frysinger <vapier@gentoo.org>.
14808
14809 2010-11-20  Bruno Haible  <bruno@clisp.org>
14810
14811         memmem: Fix autoconf test.
14812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14813
14814 2010-11-20  Bruno Haible  <bruno@clisp.org>
14815
14816         Port to uClibc.
14817         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14818         * lib/fcntl.in.h: Likewise.
14819         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14820         * lib/mbrtowc.c (mbrtowc): Likewise.
14821         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14822         * lib/strerror_r.c: Likewise.
14823         * lib/unistr/u8-strnlen.c: Likewise.
14824         * lib/vasnprintf.c (decimal_point_char): Likewise.
14825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14826         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14828         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14829         * tests/test-sigaction.c (handler, main): Likewise.
14830         * lib/freading.h: Treat uClibc like a non-glibc platform.
14831         * lib/freading.c: Likewise.
14832         * lib/gettext.h: Likewise.
14833         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14834         Likewise.
14835         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14836         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14837         * lib/propername.c (proper_name_utf8): Likewise.
14838         * lib/spawn.in.h: Likewise.
14839         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14840         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14841         mem_cd_iconveh_internal): Likewise.
14842         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14843         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14844         strstr, strcasestr): Likewise.
14845         * lib/unicodeio.c (unicode_to_mb): Likewise.
14846         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14847         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14848         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14849         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14850         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14851         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14852         * lib/unistr/u8-stpncpy.c: Likewise.
14853         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14854         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14855         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14856         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14857         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14858         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14859         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14862         Likewise.
14863         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14864         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14868         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14869         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14870         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14871         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14872         * tests/test-striconveha.c (main): Likewise.
14873         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14874         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14875         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14876         * doc/posix-functions/getline.texi: Likewise.
14877         Reported by Mike Frysinger <vapier@gentoo.org>.
14878
14879 2010-11-20  Bruno Haible  <bruno@clisp.org>
14880
14881         nproc: Fix condition.
14882         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14883         HAVE_PTHREAD_AFFINITY_NP.
14884
14885 2010-11-20  Bruno Haible  <bruno@clisp.org>
14886
14887         Fix a comment.
14888         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14889
14890 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14891
14892         ftoastr: don't assume snprintf
14893         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14894         Implement a subset of snprintf here, by using sprintf safely.
14895         * modules/ftoastr (Depends-on): Remove snprintf.
14896
14897 2010-11-19  Jim Meyering  <meyering@redhat.com>
14898
14899         test-rename.h: fix compilation failure
14900         * tests/test-rename.h (test_rename): Add omitted "}".
14901
14902 2010-11-17  Jim Meyering  <meyering@redhat.com>
14903
14904         maint.mk: add a URL discussing the no-@acronym policy
14905         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14906
14907 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14908
14909         ftoastr: depend on snprintf, improve comments
14910         * lib/ftoastr.c: Also mention Loitsch's draft.
14911         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14912         needed in the current implementation, but it might simplify
14913         speeding up the code later.
14914         * modules/ftoastr: Depend on snprintf; this improves portability.
14915         Suggested by Bruno Haible in the same email.
14916
14917         ftoastr: port to hosts lacking strtof and strtold
14918         Problem reported by Bruno Haible in
14919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14920         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14921         environment and strtold (and presumably strtof) are not available.
14922         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14923         (configure.ac): Require gl_C99_STRTOLD.
14924
14925 2010-11-18  Bruno Haible  <bruno@clisp.org>
14926
14927         c-strtold: Avoid link error on AIX 7.
14928         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14929         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14930         (gl_C_STRTOLD): Test whether strtold_l exists.
14931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14932
14933 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         intprops: new macro INT_BITS_STRLEN_BOUND
14936         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14937         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14938         not exposed.  Also, it uses a slightly tighter bound than before;
14939         though this makes no practical difference, we might as well be as
14940         tight as we easily can.
14941
14942         ftoastr: new module, for lossless conversion of floats to short strings
14943         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14944         * modules/ftoastr: New files.
14945
14946 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         bootstrap: port to Solaris sed
14949         * build-aux/bootstrap (get_version): Port to Solaris sed.
14950         See Ralf Wildenhues's note in
14951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14952
14953 2010-11-14  Jim Meyering  <meyering@redhat.com>
14954
14955         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14956         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14957         and move definition closer to sole use.
14958
14959 2010-11-13  Jim Meyering  <meyering@redhat.com>
14960
14961         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14962         Now we require at least autoconf-2.59, which means the work-around
14963         is no longer needed.
14964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14967         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14968         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14969
14970 2010-11-13  Bruno Haible  <bruno@clisp.org>
14971
14972         rename, renameat: Avoid test failures at NFS mounted locations.
14973         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14974         functions.
14975         (test_rename): Use assert_nonexistent.
14976         * tests/test-rename.c: Include <dirent.h>.
14977         * tests/test-renameat.c: Likewise.
14978         Reported by Gary V. Vaughan <gary@gnu.org>.
14979
14980         rename, renameat: Document Linux bug with NFS
14981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14982         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14983         * doc/posix-functions/renameat.texi: Likewise.
14984         Suggested by Eric Blake.
14985
14986 2010-11-13  Bruno Haible  <bruno@clisp.org>
14987
14988         rename test: Add comments.
14989         * tests/test-rename.h (test_rename): Add structure and comments.
14990
14991 2010-11-13  Eric Blake  <eblake@redhat.com>
14992
14993         maintainer-makefile: cover a few more files
14994         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14995         scripts generated within C files, for libvirt.
14996
14997 2010-11-13  Bruno Haible  <bruno@clisp.org>
14998
14999         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15000         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15001         character, return the number of bytes that belong together, not always
15002         1.
15003         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15004         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15005         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15006         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15007         number of bytes of an invalid character.
15008         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15009         (main): Invoke it.
15010         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15011         results.
15012         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15013         malformed byte sequences.
15014         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15015         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15016         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15017         Reported by Ben Pfaff and Paolo Bonzini.
15018
15019 2010-11-13  Bruno Haible  <bruno@clisp.org>
15020
15021         openat: Work around glibc bug with fchownat() and empty file names.
15022         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15023         (gl_FUNC_FCHOWNAT): Invoke it.
15024         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15025         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15026         Reported by Gary V. Vaughan <gary@gnu.org>.
15027
15028 2010-11-13  Bruno Haible  <bruno@clisp.org>
15029
15030         openat: Ensure autoconf macro ordering.
15031         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15032         gl_USE_SYSTEM_EXTENSIONS.
15033         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15034
15035 2010-11-13  Bruno Haible  <bruno@clisp.org>
15036
15037         Update comments.
15038         * lib/unistr/u8-check.c: Update file name in comments.
15039         * lib/unistr/u8-mblen.c: Likewise.
15040         * lib/unistr/u8-prev.c: Likewise.
15041         * lib/unistr/u8-strmblen.c: Likewise.
15042         * lib/unistr/u8-strmbtouc.c: Likewise.
15043
15044 2010-11-13  Jim Meyering  <meyering@redhat.com>
15045
15046         tests: avoid test failure on Solaris 10 due to lack of PATH export
15047         * tests/test-update-copyright.sh: Don't forget to export PATH.
15048
15049         init.sh: ensure that IFS is defined, just in case...
15050         * tests/init.sh (setup_): Ensure that IFS is defined,
15051         so that saving and restoring it works as expected.  This
15052         appears to be useful at least for an old version of dash
15053         from a long time ago (RH 6).  See here for details:
15054         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15055
15056         maint.mk: tighten "test a == b" check
15057         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15058         test to files that contain something like #!/bin/sh.
15059         Without this, coreutils would get two false positives in
15060         the comments of C source files.
15061
15062 2010-11-12  Eric Blake  <eblake@redhat.com>
15063
15064         bootstrap: fix typo in previous attempt
15065         * build-aux/bootstrap (buildreq): Correct the grouping.
15066         Reported by Paul Eggert.
15067
15068         maintainer-makefile: prohibit test x == x
15069         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15070         Based on a report by Matthias Bolte.
15071
15072         bootstrap: allow FreeBSD gzip
15073         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15074         which has no '.' and goes to stderr.
15075         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15076         Reported by Matthias Bolte.
15077
15078         maintainer-makefile: check for i18n setup
15079         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15080         will likely work.
15081
15082 2010-11-12  Bruno Haible  <bruno@clisp.org>
15083
15084         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15085         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15086         * lib/nanosleep.c (nanosleep): Likewise.
15087
15088 2010-11-11  Bruno Haible  <bruno@clisp.org>
15089
15090         fcntl-h: Fix for use of C++ on glibc systems.
15091         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15092         also on glibc systems in C++ mode.
15093         Reported by Gary V. Vaughan <gary@gnu.org>.
15094
15095 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15096
15097         mknod: avoid false failure with dash
15098         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15099
15100 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15101
15102         unlink: Fix "is it should" typo in diagnostic.
15103         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15105
15106 2010-11-11  Bruno Haible  <bruno@clisp.org>
15107
15108         Tests for module 'strerror_r-posix'.
15109         * modules/strerror_r-posix-tests: New file.
15110         * tests/test-strerror_r.c: New file.
15111         * tests/test-string-c++.cc: Check the signature of strerror_r.
15112
15113         New module 'strerror_r-posix'.
15114         * lib/string.in.h (strerror_r): New declaration.
15115         * lib/strerror_r.c: New file.
15116         * m4/strerror_r.m4: New file.
15117         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15118         of strerror_r.
15119         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15120         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15121         * modules/strerror_r-posix: New file.
15122         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15123         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15124         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15125         portability problems.
15126
15127 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15128
15129         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15130         line is also considered for output. Quoted function name in shell
15131         command, so temporary files for functions like MyClass::operator()
15132         are removed correctly without errors.
15133
15134 2010-11-09  Bruno Haible  <bruno@clisp.org>
15135
15136         * doc/posix-functions/strerror.texi: List more failing platforms.
15137
15138         * doc/posix-functions/strerror.texi: Add a comment.
15139
15140 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15141
15142         fdopendir: fix bug on MacOS X when low on file descriptors
15143
15144         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15145         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15146         All callers changed.
15147         (fdopendir): Invoke save_cwd at the top level, not after using
15148         multiple dup() calls to use up file descriptors.  Then retry
15149         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15150         less than the maximum number of open file descriptors, because
15151         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15152         on Mac OS X 10.6.4 for tar 1.24
15153         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15154         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15155         and for tar 1.25
15156         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15157
15158 2010-11-07  Bruno Haible  <bruno@clisp.org>
15159
15160         vasnprintf: Support I flag on glibc systems.
15161         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15162         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15163         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15164         snprintf function.
15165         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15166         glibc systems.
15167         * tests/test-vasnprintf-posix3.c: New file.
15168         * modules/vasnprintf-posix-tests (Files): Add it.
15169         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15170
15171 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15172
15173         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15174         * MODULES.html.sh: For compiler warnings, use name
15175         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15176
15177 2010-11-05  Eric Blake  <eblake@redhat.com>
15178
15179         ceil, floor: avoid spurious failure with icc
15180         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15181         [denormals-as-zero] when optimizing without -mieee-fp option.
15182         * tests/test-floorf2.c (floorf_reference): Likewise.
15183         * tests/test-ceilf1.c (dummy): New function.
15184         (main): Use it to outsmart icc's optimization.
15185         * tests/test-floorf1.c (dummy, main): Likewise.
15186
15187         tests: require working signbit
15188         * modules/ceilf-tests (Depends-on): Add signbit.
15189         * modules/ceill-tests (Depends-on): Likewise.
15190         * modules/floorf-tests (Depends-on): Likewise.
15191         * modules/floorl-tests (Depends-on): Likewise.
15192         * modules/round-tests (Depends-on): Likewise.
15193         * modules/roundf-tests (Depends-on): Likewise.
15194         * modules/roundl-tests (Depends-on): Likewise.
15195         * modules/trunc-tests (Depends-on): Likewise.
15196         * modules/truncf-tests (Depends-on): Likewise.
15197         * modules/truncl-tests (Depends-on): Likewise.
15198
15199         strtod: work around icc bug
15200         * lib/strtod.c (minus_zero): Define to working value.
15201         (strtod): Use it to avoid icc bug.
15202
15203         copysign: enhance tests
15204         * modules/copysign-tests (Files): Add minus-zero.h.
15205         * tests/test-copysign.c (main): Also test zeros.
15206
15207 2010-11-04  Eric Blake  <eblake@redhat.com>
15208
15209         ceil, floor, round, trunc: enhance tests of -0
15210         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15211         * tests/test-ceill.c (main): Likewise.
15212         * tests/test-floorf1.c (main): Likewise.
15213         * tests/test-floorl.c (main): Likewise.
15214         * tests/test-round1.c (main): Likewise.
15215         * tests/test-roundf1.c (main): Likewise.
15216         * tests/test-roundl.c (main): Likewise.
15217         * tests/test-trunc1.c (main): Likewise.
15218         * tests/test-truncf1.c (main): Likewise.
15219         * tests/test-truncl.c (main): Likewise.
15220
15221 2010-11-04  Eric Blake  <eblake@redhat.com>
15222
15223         frexp, tests: work around ICC bug with -zero
15224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15225         works with more compilers.
15226         * tests/minus-zero.h: New file.
15227         * modules/ceilf-tests (Files): Include it.
15228         * modules/ceill-tests (Files): Likewise.
15229         * modules/floorf-tests (Files): Likewise.
15230         * modules/floorl-tests (Files): Likewise.
15231         * modules/frexp-nolibm-tests (Files): Likewise.
15232         * modules/frexp-tests (Files): Likewise.
15233         * modules/frexpl-nolibm-tests (Files): Likewise.
15234         * modules/frexpl-tests (Files): Likewise.
15235         * modules/isnan-tests (Files): Likewise.
15236         * modules/isnand-nolibm-tests (Files): Likewise.
15237         * modules/isnand-tests (Files): Likewise.
15238         * modules/isnanf-nolibm-tests (Files): Likewise.
15239         * modules/isnanf-tests (Files): Likewise.
15240         * modules/isnanl-nolibm-tests (Files): Likewise.
15241         * modules/isnanl-tests (Files): Likewise.
15242         * modules/round-tests (Files): Likewise.
15243         * modules/roundf-tests (Files): Likewise.
15244         * modules/roundl-tests (Files): Likewise.
15245         * modules/ldexpl-tests (Files): Likewise.
15246         * modules/signbit-tests (Files): Likewise.
15247         * modules/snprintf-posix-tests (Files): Likewise.
15248         * modules/sprintf-posix-tests (Files): Likewise.
15249         * modules/strtod-tests (Files): Likewise.
15250         * modules/trunc-tests (Files): Likewise.
15251         * modules/truncf-tests (Files): Likewise.
15252         * modules/truncl-tests (Files): Likewise.
15253         * modules/vsnprintf-posix-tests (Files): Likewise.
15254         * modules/vsprintf-posix-tests (Files): Likewise.
15255         * modules/vasnprintf-posix-tests (Files): Likewise.
15256         * modules/vasprintf-posix-tests (Files): Likewise.
15257         * tests/test-ceilf1.c (main): Use it.
15258         * tests/test-ceill.c (main): Likewise.
15259         * tests/test-floorf1.c (main): Likewise.
15260         * tests/test-floorl.c (main): Likewise.
15261         * tests/test-frexp.c (main): Likewise.
15262         * tests/test-frexpl.c (main): Likewise.
15263         * tests/test-isnan.c (main): Likewise.
15264         * tests/test-isnand.h (main): Likewise.
15265         * tests/test-isnanf.h (main): Likewise.
15266         * tests/test-isnanl.h (main): Likewise.
15267         * tests/test-ldexpl.c (main): Likewise.
15268         * tests/test-round.c (main): Likewise.
15269         * tests/test-roundf.c (main): Likewise.
15270         * tests/test-roundl.c (main): Likewise.
15271         * tests/test-signbit.c (test_signbitf, test_signbitd)
15272         (test_signbitl): Likewise.
15273         * tests/test-snprintf-posix.h (test_function): Likewise.
15274         * tests/test-sprintf-posix.h (test_function): Likewise.
15275         * tests/test-strtod.c (main): Likewise.
15276         * tests/test-trunc1.c (main): Likewise.
15277         * tests/test-truncf1.c (main): Likewise.
15278         * tests/test-truncl.c (main): Likewise.
15279
15280         isnanl: work around icc bug
15281         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15282
15283 2010-11-03  Eric Blake  <eblake@redhat.com>
15284
15285         tests: fix compiler warnings
15286         * tests/test-getopt.h (test_getopt): Fix condition.
15287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15288         * tests/test-pipe2.c (main): Likewise.
15289         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15290
15291         utimens: fix broken m4 test
15292         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15293
15294 2010-10-28  Bruno Haible  <bruno@clisp.org>
15295
15296         posix_spawn*, getdtablesize: Relax license.
15297         * modules/posix_spawn (License): Change to LGPLv2+.
15298         * modules/posix_spawnp (License): Likewise.
15299         * modules/posix_spawn-internal (License): Likewise.
15300         * modules/posix_spawnattr_init (License): Likewise.
15301         * modules/posix_spawnattr_getflags (License): Likewise.
15302         * modules/posix_spawnattr_setflags (License): Likewise.
15303         * modules/posix_spawnattr_getpgroup (License): Likewise.
15304         * modules/posix_spawnattr_setpgroup (License): Likewise.
15305         * modules/posix_spawnattr_getschedparam (License): Likewise.
15306         * modules/posix_spawnattr_setschedparam (License): Likewise.
15307         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15308         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15309         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15310         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15311         * modules/posix_spawnattr_getsigmask (License): Likewise.
15312         * modules/posix_spawnattr_setsigmask (License): Likewise.
15313         * modules/posix_spawnattr_destroy (License): Likewise.
15314         * modules/posix_spawn_file_actions_init (License): Likewise.
15315         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15316         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15317         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15318         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15319         * modules/getdtablesize (License): Likewise.
15320         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15321
15322 2010-10-26  Bruno Haible  <bruno@clisp.org>
15323
15324         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15325         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15326         Cygwin and mingw.
15327         Suggested by Eric Blake.
15328
15329 2010-10-26  Bruno Haible  <bruno@clisp.org>
15330
15331         stdio: Work around compilation error due to renameat() on Solaris 10.
15332         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15333         * lib/renameat.c: Don't include <unistd.h> here.
15334         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15335         Reported by Paul Eggert and Eric Blake.
15336
15337 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15338
15339         renameat: port to Solaris 10, which declares renameat in unistd.h
15340
15341         * lib/renameat.c: Include unistd.h before stdio.h, because
15342         Solaris 10 declares renameat in unistd.h.  Problem encountered
15343         when building GNU tar 1.24 on Solaris 10.
15344
15345 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15346
15347         fdopendir: fix C89 compilation
15348         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15349         compilers.
15350
15351 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         inttostr: simplify by removing unnecessary redundancy
15354         * lib/anytostr.c: Don't include verify.h.
15355         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15356         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15357         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15358         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15359         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15360         Likewise.
15361         * modules/inttostr (Depends-on): Remove 'verify'.
15362
15363 2010-10-23  Bruno Haible  <bruno@clisp.org>
15364
15365         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15366         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15367         Reported by Eric Blake.
15368
15369 2010-10-23  Bruno Haible  <bruno@clisp.org>
15370
15371         Tests: Fix LOCALE_JA on MirBSD 10.
15372         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15373         to an UTF-8 locale.
15374         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15376         Reported by Eric Blake.
15377
15378 2010-10-21  Bruno Haible  <bruno@clisp.org>
15379
15380         nl_langinfo test: Avoid test failure on NetBSD 5.
15381         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15382         Reported by Eric Blake.
15383
15384 2010-10-21  Eric Blake  <eblake@redhat.com>
15385
15386         c-stack: work around libsigsegv 2.8 bug
15387         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15388         overflow on at least PowerPC64.
15389
15390 2010-10-17  Bruno Haible  <bruno@clisp.org>
15391
15392         userspec: Drop redundant file.
15393         * modules/userspec (Files): Remove lib/inttostr.h.
15394
15395 2010-10-17  Bruno Haible  <bruno@clisp.org>
15396
15397         nl_langinfo tests: Silence some warnings.
15398         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15399         Reported by Jim Meyering.
15400
15401 2010-10-17  Bruno Haible  <bruno@clisp.org>
15402
15403         Make use of GCC's attribute __alloc_size__.
15404         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15405         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15406         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15407         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15408         __alloc_size__.
15409         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15410         Suggested by Jim Meyering.
15411
15412 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15413
15414         bootstrap: anchor .gitignore entries.
15415         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15416         with...
15417         (insert_vc_ignore): ... this new function, which prepends `/' to
15418         all .gitignore entries before passing them to
15419         insert_sorted_if_absent.
15420
15421 2010-10-16  Bruno Haible  <bruno@clisp.org>
15422
15423         nextafter: Fix configure check.
15424         * modules/nextafter (configure.ac): Correct expected prototype.
15425
15426 2010-10-16  Bruno Haible  <bruno@clisp.org>
15427
15428         termios: Update documentation.
15429         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15430
15431 2010-10-16  Bruno Haible  <bruno@clisp.org>
15432
15433         tests: Make them compile with TinyCC.
15434         * tests/test-strstr.c (main): Remove parentheses around array
15435         initializer.
15436
15437 2010-10-15  Eric Blake  <eblake@redhat.com>
15438
15439         ignore-value: make header idempotent
15440         * lib/ignore-value.h: Add double-inclusion guards.
15441         Reported by Stefan Berger.
15442
15443 2010-10-15  Jim Meyering  <meyering@redhat.com>
15444
15445         GNUmakefile: handle "stable" target, not "major"
15446         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15447         lists in maint.mk and announce-gen.  Without this, "make stable"
15448         would fail to ensure that $(VERSION) is up to date.
15449
15450 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15451
15452         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15453         & co.
15454
15455 2010-10-14  Bruno Haible  <bruno@clisp.org>
15456
15457         vasnprintf: Don't set errno to 0.
15458         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15459         block that sets it to 0.
15460         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15461
15462 2010-10-14  Bruno Haible  <bruno@clisp.org>
15463
15464         socketlib: Fix.
15465         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15466         gl_PREREQ_SYS_H_WINSOCK2.
15467         Reported by Ian Beckwith <ianb@erislabs.net>.
15468
15469 2010-10-13  Jim Meyering  <meyering@redhat.com>
15470
15471         test-select-stdin.c: avoid warn_unused_result warnings
15472         * tests/test-select-stdin.c: Include "macros.h".
15473         ASSERT that read and fflush succeed.
15474
15475 2010-10-13  Jim Meyering  <meyering@redhat.com>
15476
15477         git-version-gen: do require git-VC'd files in cwd
15478         * build-aux/git-version-gen: Reject a git version string
15479         if there are no commits associated with the current directory.
15480         This avoids an unlikely false-positive (unrelated dir whose parent
15481         repository also contains a tag matching v*), as pointed out
15482         by Giuseppe Scrivano in
15483         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15484
15485 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         argv-iter: omit nonconforming declaration
15488         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15489         enum arg_iter_err declaration, which doesn't conform to C99.
15490         Solaris 10 cc warns about this.
15491
15492 2010-10-13  Eric Blake  <eblake@redhat.com>
15493
15494         termios: fix compilation on mingw
15495         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15496         (gl_TERMIOS_H): Adjust it on mingw.
15497         * modules/termios (Makefile.am): Substitute new key.
15498         * lib/termios.in.h (includes): Make include_next conditional.
15499         * doc/posix-headers/termios.texi (termios.h): Update
15500         documentation.
15501         Reported by Daniel P. Berrange.
15502
15503 2010-10-13  Jim Meyering  <meyering@redhat.com>
15504
15505         git-version-gen: don't require that .git/ be in the current dir
15506         * build-aux/git-version-gen: Adjust this script so that it works
15507         when run from any working directory beneath the top-level .git/-
15508         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15510
15511         test-select: avoid warn_unused_result warnings
15512         * tests/test-select.c: Include "macros.h".
15513         ASSERT that each call to read, write, and pipe succeeds.
15514         While not technically required, also check each "close".
15515         * modules/select-tests (Files): Add tests/macros.h.
15516
15517         test-symlinkat: remove declaration of unused local
15518         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15519
15520         test-inttostr: avoid shadowing warnings
15521         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15522         and use malloc rather than the stack for the same reason as
15523         mentioned in the comment justifying the other allocation.
15524
15525 2010-10-11  Bruno Haible  <bruno@clisp.org>
15526
15527         stdlib: Allow multiple gnulib generated replacements to coexist.
15528         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15529         Reported by Sam Steingold <sds@gnu.org>.
15530
15531 2010-10-11  Jim Meyering  <meyering@redhat.com>
15532
15533         fix a documentation typo
15534         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15535
15536 2010-10-11  Eric Blake  <eblake@redhat.com>
15537
15538         futimens: work around Solaris 11 bug
15539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15540         * tests/test-futimens.h (test_futimens): Enhance, rather than
15541         weaken test.
15542         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15543
15544 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15545
15546         Indentation.
15547         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15548         higher-level operators more to the left.
15549
15550 2010-10-11  Jim Meyering  <meyering@redhat.com>
15551
15552         test-futimens: avoid unwarranted test failure on Solaris 5.11
15553         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15554         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15555         because it tries to dereference the NULL name argument.
15556
15557 2010-10-11  Bruno Haible  <bruno@clisp.org>
15558
15559         Indentation.
15560         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15561         indentation.
15562
15563 2010-10-11  Jim Meyering  <meyering@redhat.com>
15564
15565         spawn.in.h: make indentation consistent with parentheses
15566         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15567         Make indentation consistent with parentheses.
15568
15569 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15570
15571         Fix mismatched parens in previous commit
15572         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15573         parens.
15574
15575 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15576
15577         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15578
15579         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15580         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15581         * lib/malloca.c: Include "verify.h".
15582         (verify1): Remove, replacing with a verify call.
15583         * lib/relocwrapper.c (verify1): Likewise.
15584         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15585         Likewise.
15586         * modules/malloca (Depends-on): Add 'verify'.
15587         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15588         * modules/vasnprintf (Depends-on): Add 'verify'.
15589         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15590         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15593         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15594         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15595         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15596
15597         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15598
15599         Formerly the style was sometimes 2*X - 1, because the C standard
15600         was wrongly thought to disallow ?: in integral constant expressions.
15601         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15602         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15603         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15604         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15605         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15606         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15607         verify that time_t cannot be floating.
15608
15609 2010-10-08  Eric Blake  <eblake@redhat.com>
15610
15611         time: enforce recent POSIX ruling that time_t is integral
15612         * lib/time.in.h (__time_t_must_be_integral): Detect any
15613         problematic systems, allowing the rest of gnulib to assume POSIX.
15614
15615 2010-10-08  Jim Meyering  <meyering@redhat.com>
15616
15617         fdopendir: fix a bug on systems lacking openat and /proc support
15618         OpenBSD 4.7 is one such system.  The most noticeable effect was
15619         failure of any application making nontrivial use of fts: rm, du,
15620         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15621           ./rm: traversal failed: `a': Bad file descriptor
15622         Debugging that, you see that even though FD 6 was closed just
15623         prior to the opendir call in fd_clone_opendir, its resulting
15624         dir->dd_fd was 8, rather than the expected value of 6:
15625
15626         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15627         93                close (fd);
15628         (gdb) n
15629         94                dir = fd_clone_opendir (dupfd);
15630         (gdb) n
15631         95                saved_errno = errno;
15632         (gdb) p dir->dd_fd
15633         $11 = 8
15634
15635         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15636         The problem is that on OpenBSD, fd_clone_opendir has to resort
15637         to using the old-style save/restore CWD mechanism, due to its
15638         lack of openat/proc support, and *that* would steal the FD (6)
15639         that opendir was supposed to use.
15640
15641         The fix is to squirrel away the desired FD so that save_cwd uses a
15642         different one, and then free the dest FD right before calling opendir.
15643         That guarantees opendir will use the required file descriptor.
15644
15645         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15646
15647 2010-10-08  Bruno Haible  <bruno@clisp.org>
15648
15649         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15650         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15651
15652 2010-10-08  Bruno Haible  <bruno@clisp.org>
15653
15654         nanosleep: Make replacement POSIX compliant.
15655         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15656         is out of range.
15657         Reported by Jim Meyering.
15658
15659 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15660
15661         bootstrap: add hook for altering gnulib.mk, for Bison
15662         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15663         the Bison bootstrapping process can rewrite file names and variables
15664         in this file before later parts of 'bootstrap' use the file.
15665         Bison wants to include lib/gnulib.mk from the top-level makefile,
15666         so it needs the file names in this file to be relative to the top
15667         level, not relative to lib; plus it needs variable names to be
15668         rewritten.
15669         (slurp): Use the new function.
15670
15671         bootstrap: reformat for readability
15672         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15673
15674 2010-10-08  Eric Blake  <eblake@redhat.com>
15675
15676         docs: update cygwin progress
15677         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15678         1.7.7.
15679         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15680         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15681         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15682         * doc/posix-functions/carg.texi (carg): Likewise.
15683         * doc/posix-functions/cargf.texi (cargf): Likewise.
15684         * doc/posix-functions/casin.texi (casin): Likewise.
15685         * doc/posix-functions/casinf.texi (casinf): Likewise.
15686         * doc/posix-functions/casinh.texi (casinh): Likewise.
15687         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15688         * doc/posix-functions/catan.texi (catan): Likewise.
15689         * doc/posix-functions/catanf.texi (catanf): Likewise.
15690         * doc/posix-functions/catanh.texi (catanh): Likewise.
15691         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15692         * doc/posix-functions/ccos.texi (ccos): Likewise.
15693         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15694         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15695         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15696         * doc/posix-functions/cexp.texi (cexp): Likewise.
15697         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15698         * doc/posix-functions/cimag.texi (cimag): Likewise.
15699         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15700         * doc/posix-functions/clog.texi (clog): Likewise.
15701         * doc/posix-functions/clogf.texi (clogf): Likewise.
15702         * doc/posix-functions/conj.texi (conj): Likewise.
15703         * doc/posix-functions/conjf.texi (conjf): Likewise.
15704         * doc/posix-functions/cpow.texi (cpow): Likewise.
15705         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15706         * doc/posix-functions/cproj.texi (cproj): Likewise.
15707         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15708         * doc/posix-functions/creal.texi (creal): Likewise.
15709         * doc/posix-functions/crealf.texi (crealf): Likewise.
15710         * doc/posix-functions/csin.texi (csin): Likewise.
15711         * doc/posix-functions/csinf.texi (csinf): Likewise.
15712         * doc/posix-functions/csinh.texi (csinh): Likewise.
15713         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15714         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15715         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15716         * doc/posix-functions/ctan.texi (ctan): Likewise.
15717         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15718         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15719         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15720         * doc/posix-headers/complex.texi (complex.h): Likewise.
15721
15722 2010-10-07  Jim Meyering  <meyering@redhat.com>
15723
15724         parse-datetime: avoid compilation failure on OpenBSD 4.7
15725         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15726         This works around a compilation failure on OpenBSD 4.7:
15727         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15728
15729 2010-10-07  Eric Blake  <eblake@redhat.com>
15730
15731         docs: update cygwin progress
15732         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15733         1.7.6.
15734         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15735         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15736         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15737         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15738         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15739         Likewise.
15740         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15741         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15742         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15743         Likewise.
15744         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15745         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15746         Likewise.
15747         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15748         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15749         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15750         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15751         Likewise.
15752         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15753         Likewise.
15754         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15755
15756         docs: update parse-datetime history
15757         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15758         documentation of this function's history and alternatives.
15759
15760         cygwin: use more robust version check
15761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15762         exclude an eventual cygwin 1.9.1.
15763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15765         (gl_FUNC_STRCASESTR): Likewise.
15766         Reported by Bruno Haible.
15767
15768 2010-10-06  Bruno Haible  <bruno@clisp.org>
15769
15770         string, sys_select: Avoid #including large headers unless necessary.
15771         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15772         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15773         OSF/1, BeOS, Haiku.
15774         Reported by Jim Meyering.
15775
15776 2010-10-05  Eric Blake  <eblake@redhat.com>
15777
15778         memmem, strstr, strcasestr: fix bug with long periodic needle
15779         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15780         periodic needle having false positive.
15781         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15782         and cygwin 1.7.7.
15783         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15785         (gl_FUNC_STRCASESTR): Likewise.
15786         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15787         * tests/test-memmem.c (main): Expose the bug.
15788         * tests/test-strcasestr.c (main): Likewise.
15789         * tests/test-strstr.c (main): Likewise.
15790         * tests/test-c-strcasestr.c (main): Likewise.
15791         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15792         * doc/posix-functions/strstr.texi (strstr): Likewise.
15793         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15794         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15795
15796 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15797
15798         parse-datetime: do some more renaming
15799         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15800         parse_datetime, not get_date.  Mention the renaming.
15801         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15802         in comments.
15803         * m4/bison.m4: Likewise.
15804
15805 2010-10-05  Eric Blake  <eblake@redhat.com>
15806
15807         parse-datetime: better name than get_date
15808         * NEWS: Reword the deprecation notice.
15809         * modules/get_date: Rename to modules/parse-datetime.
15810         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15811         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15812         * lib/get_date.y: Rename to lib/parse-datetime.y.
15813         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15814         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15815         * doc/getdate.texi: Provide fallback wrapper.
15816         * lib/getdate.h: Move guts, and wrap...
15817         * lib/parse-datetime.h: ...new file.
15818         * lib/parse-datetime.y (get_date): Rename...
15819         (parse_datetime): ...to this.
15820         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15821         (gl_PARSE_DATETIME): ...to this.
15822         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15823         documentation.
15824         * modules/getdate (Files): Provide fallback docs and header.
15825         (Notice, Depends-on): Update references.
15826         * tests/test-parse-datetime.c: Likewise.
15827         * DEPENDENCIES: Likewise.
15828         * MODULES.html.sh (Date and time <time.h>): Likewise.
15829         * doc/parse-datetime.texi (Date input formats)
15830         (Authors of parse_datetime): Likewise.
15831         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15832         (Include): Likewise.
15833         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15834         * gnulib-tool: Likewise.
15835         * m4/bison.m4 (gl_BISON): Likewise.
15836         Suggested by Bruno Haible.
15837
15838 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15839
15840         more ports to Solaris tr, which needs [] around ranges
15841         * gnulib-tool: Solaris tr needs [] around ranges.
15842         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15843         * tests/test-pipe-filter-gi1.c (main): Likewise.
15844         * tests/test-pipe-filter-ii1.c (main): Likewise.
15845
15846 2010-10-05  Eric Blake  <eblake@redhat.com>
15847
15848         bootstrap: fix Solaris regression
15849         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15850         around ranges.
15851         Reported by Pádraig Brady.
15852
15853         bootstrap: work with pkg-config
15854         * build-aux/bootstrap (check_versions): Also transliterate - in
15855         prerequisite name.
15856         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15857         prerequisites that were already found, to avoid confusion.
15858         Reported by Justin Clift.
15859
15860         faccessat: remove unused wrappers
15861         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15862         presence of these wrappers dragged in -lgen on Solaris.
15863         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15864
15865 2010-10-05  Jim Meyering  <meyering@redhat.com>
15866
15867         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15868         * Makefile (sc_pragma_columns): New syntax-check rule.
15869
15870 2010-10-04  Bruno Haible  <bruno@clisp.org>
15871
15872         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15873         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15874         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15875         Reported by Bruce Korb and Eric Blake.
15876
15877 2010-10-04  Bruno Haible  <bruno@clisp.org>
15878
15879         threadlib: Make option --with-libpth-prefix work.
15880         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15881         use $LIBPTH, not just -lpth.
15882
15883 2010-10-04  Bruno Haible  <bruno@clisp.org>
15884
15885         Avoid line length limitation from HP NonStop system header files.
15886         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15887         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15888         * lib/ctype.in.h: Likewise.
15889         * lib/dirent.in.h: Likewise.
15890         * lib/errno.in.h: Likewise.
15891         * lib/fcntl.in.h: Likewise.
15892         * lib/float.in.h: Likewise.
15893         * lib/getopt.in.h: Likewise.
15894         * lib/iconv.in.h: Likewise.
15895         * lib/inttypes.in.h: Likewise.
15896         * lib/langinfo.in.h: Likewise.
15897         * lib/locale.in.h: Likewise.
15898         * lib/math.in.h: Likewise.
15899         * lib/netdb.in.h: Likewise.
15900         * lib/netinet_in.in.h: Likewise.
15901         * lib/poll.in.h: Likewise.
15902         * lib/pthread.in.h: Likewise.
15903         * lib/pty.in.h: Likewise.
15904         * lib/sched.in.h: Likewise.
15905         * lib/se-selinux.in.h: Likewise.
15906         * lib/search.in.h: Likewise.
15907         * lib/signal.in.h: Likewise.
15908         * lib/spawn.in.h: Likewise.
15909         * lib/stdarg.in.h: Likewise.
15910         * lib/stddef.in.h: Likewise.
15911         * lib/stdint.in.h: Likewise.
15912         * lib/stdio.in.h: Likewise.
15913         * lib/stdlib.in.h: Likewise.
15914         * lib/string.in.h: Likewise.
15915         * lib/strings.in.h: Likewise.
15916         * lib/sys_file.in.h: Likewise.
15917         * lib/sys_ioctl.in.h: Likewise.
15918         * lib/sys_select.in.h: Likewise.
15919         * lib/sys_socket.in.h: Likewise.
15920         * lib/sys_stat.in.h: Likewise.
15921         * lib/sys_time.in.h: Likewise.
15922         * lib/sys_times.in.h: Likewise.
15923         * lib/sys_utsname.in.h: Likewise.
15924         * lib/sys_wait.in.h: Likewise.
15925         * lib/sysexits.in.h: Likewise.
15926         * lib/termios.in.h: Likewise.
15927         * lib/time.in.h: Likewise.
15928         * lib/unistd.in.h: Likewise.
15929         * lib/wchar.in.h: Likewise.
15930         * lib/wctype.in.h: Likewise.
15931         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15932         * modules/ctype (Makefile.am): Likewise.
15933         * modules/dirent (Makefile.am): Likewise.
15934         * modules/errno (Makefile.am): Likewise.
15935         * modules/fcntl-h (Makefile.am): Likewise.
15936         * modules/float (Makefile.am): Likewise.
15937         * modules/getopt-posix (Makefile.am): Likewise.
15938         * modules/iconv-h (Makefile.am): Likewise.
15939         * modules/inttypes (Makefile.am): Likewise.
15940         * modules/langinfo (Makefile.am): Likewise.
15941         * modules/locale (Makefile.am): Likewise.
15942         * modules/math (Makefile.am): Likewise.
15943         * modules/netdb (Makefile.am): Likewise.
15944         * modules/netinet_in (Makefile.am): Likewise.
15945         * modules/poll-h (Makefile.am): Likewise.
15946         * modules/pthread (Makefile.am): Likewise.
15947         * modules/pty (Makefile.am): Likewise.
15948         * modules/sched (Makefile.am): Likewise.
15949         * modules/search (Makefile.am): Likewise.
15950         * modules/selinux-h (Makefile.am): Likewise.
15951         * modules/signal (Makefile.am): Likewise.
15952         * modules/spawn (Makefile.am): Likewise.
15953         * modules/stdarg (Makefile.am): Likewise.
15954         * modules/stddef (Makefile.am): Likewise.
15955         * modules/stdint (Makefile.am): Likewise.
15956         * modules/stdio (Makefile.am): Likewise.
15957         * modules/stdlib (Makefile.am): Likewise.
15958         * modules/string (Makefile.am): Likewise.
15959         * modules/strings (Makefile.am): Likewise.
15960         * modules/sys_file (Makefile.am): Likewise.
15961         * modules/sys_ioctl (Makefile.am): Likewise.
15962         * modules/sys_select (Makefile.am): Likewise.
15963         * modules/sys_socket (Makefile.am): Likewise.
15964         * modules/sys_stat (Makefile.am): Likewise.
15965         * modules/sys_time (Makefile.am): Likewise.
15966         * modules/sys_times (Makefile.am): Likewise.
15967         * modules/sys_utsname (Makefile.am): Likewise.
15968         * modules/sys_wait (Makefile.am): Likewise.
15969         * modules/sysexits (Makefile.am): Likewise.
15970         * modules/termios (Makefile.am): Likewise.
15971         * modules/time (Makefile.am): Likewise.
15972         * modules/unistd (Makefile.am): Likewise.
15973         * modules/wchar (Makefile.am): Likewise.
15974         * modules/wctype (Makefile.am): Likewise.
15975
15976 2010-10-04  Bruno Haible  <bruno@clisp.org>
15977
15978         read-file tests: Avoid a test failure on NonStop Kernel.
15979         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15980         a regular file.
15981         Reported by Joachim Schmitz <schmitz@hp.com>.
15982
15983 2010-10-03  Bruno Haible  <bruno@clisp.org>
15984
15985         gnulib-tool: Fixes for --create-testdir with --libtool.
15986         * gnulib-tool (func_get_automake_snippet): Don't augment
15987         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15988         an executable.
15989         (func_create_testdir): Handle module 'alloca' like func_import.
15990         Reported by Bruce Korb <bruce.korb@gmail.com>.
15991
15992 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15993
15994         Avoid some lines longer than 80 characters.
15995         * lib/stdint.in.h: Break long comment lines.
15996         * lib/math.in.h: Likewise.
15997         (_GL_NUM_UINT_WORDS): New macro, for readability.
15998         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15999         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16000         * lib/stdlib.in.h: Likewise.
16001         * lib/spawn.in.h: Likewise.
16002         * lib/sys_socket.in.h: Update an URL.
16003         * lib/sys_stat.in.h: Break long line.
16004
16005 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16006
16007         Improve pmccabe2html.
16008         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16009         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16010         when the sources change. Remove the line in the HTML about "Used
16011         ranges" (which implied that there might be other unused ranges),
16012         rename "Resume" to "Summary" (easier to understand for more users).
16013         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16014         styles, and some unnecessary blank lines.
16015
16016 2010-10-03  Bruno Haible  <bruno@clisp.org>
16017             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16018
16019         acl: Add support for ACLs on NonStop Kernel.
16020         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16021         Check whether the function aclsort() exists.
16022         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16023         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16024         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16025         (acl_nontrivial [HAVE_ACLSORT]: New function.
16026         (file_has_acl): Implement for NonStop Kernel.
16027         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16028         (qset_acl): Implement for NonStop Kernel.
16029         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16030         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16031         (main): Implement for NonStop Kernel.
16032         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16033         Kernel. Handle this flavor.
16034         * tests/test-set-mode-acl.sh: Likewise.
16035         * tests/test-copy-acl.sh: Likewise.
16036         * tests/test-copy-file.sh: Likewise.
16037
16038 2010-10-03  Bruno Haible  <bruno@clisp.org>
16039
16040         Info about ACLs on NonStop Kernel.
16041         * doc/acl-resources.txt: Add info about NonStop Kernel.
16042         References by Joachim Schmitz <schmitz@hp.com>.
16043
16044 2010-10-02  Bruno Haible  <bruno@clisp.org>
16045
16046         Define missing EDQUOT on NonStop Kernel.
16047         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16048         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16050         missing.
16051         * doc/posix-headers/errno.texi: Mention the NSK bug.
16052         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16053         Reported by Joachim Schmitz <schmitz@hp.com>.
16054
16055 2010-10-02  Bruno Haible  <bruno@clisp.org>
16056
16057         Update doc for POSIX:2008.
16058         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16059         Update URL of POSIX specification.
16060
16061 2010-10-02  Bruno Haible  <bruno@clisp.org>
16062
16063         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16064         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16065         from gnulib, not from Automake.
16066
16067 2010-10-02  Bruno Haible  <bruno@clisp.org>
16068
16069         New module 'system-posix'.
16070         * modules/system-posix: New file.
16071         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16072         module is present.
16073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16074         GNULIB_SYSTEM_POSIX.
16075         * modules/stdlib (Depends-on): Remove sys_wait.
16076         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16077         * doc/posix-functions/system.texi: Mention the new module.
16078         * doc/posix-headers/stdlib.texi: Likewise.
16079         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16080         define test_sys_wait_macros to a no-op.
16081         Reported by Sam Steingold <sds@gnu.org>.
16082
16083 2010-09-30  Bruno Haible  <bruno@clisp.org>
16084
16085         More renaming from 'getdate' to 'get_date'.
16086         * doc/get_date.texi: Renamed from doc/getdate.texi.
16087         * modules/get_date (Files): Update.
16088         * MODULES.html.sh (Date and time <time.h>): Update.
16089         * DEPENDENCIES: Update.
16090         * gnulib-tool: Update comment.
16091         * m4/bison.m4 (gl_BISON): Likewise.
16092         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16093
16094 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16095
16096         bootstrap: support ACLOCAL_FLAGS during aclocal
16097         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16098         can add additional -I dir for third-party .m4 files.
16099
16100 2010-09-30  Eric Blake  <eblake@redhat.com>
16101
16102         bootstrap: use glibtoolize on MacOS
16103         * build-aux/bootstrap (check_versions): Convert libtool into
16104         libtoolize.
16105         (tool search): Move libtool check earlier, and look for
16106         glibtoolize for MacOS.
16107         (gnulib_tool_options): Auto-add --libtool when appropriate.
16108         Reported by Justin Clift.
16109
16110         poll: fix typo that broke test on MacOS
16111         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16112         Reported by Justin Clift.
16113
16114         getdate: rename to get_date
16115         Note: getdate.h is not renamed, to minimize client impact.
16116         * modules/getdate: Mark obsolete.  Move old contents...
16117         * modules/get_date: ...to new module name.
16118         * modules/getdate-tests: Move...
16119         * modules/get_date-tests: ...here.
16120         * m4/getdate.m4: Move...
16121         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16122         * lib/getdate.y: Move...
16123         * lib/get_date.y: ...here.
16124         * tests/test-getdate.c: Move...
16125         * tests/test-get_date.c: ...here.
16126         * doc/posix-functions/getdate.texi (getdate): Update name.
16127         * NEWS: Mention the change.
16128
16129 2010-09-29  Bruno Haible  <bruno@clisp.org>
16130
16131         Separate the module 'waitpid' from the module 'sys_wait'.
16132         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16133         present.
16134         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16135         gl_MODULE_INDICATOR_FOR_TESTS.
16136         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16137         * modules/sys_wait (Depends-on): Remove waitpid.
16138         (Makefile.am): Substitute GNULIB_WAITPID.
16139         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16140         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16141         signature only if the 'waitpid' module is present.
16142         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16143         * NEWS: Mention the change.
16144         * modules/grantpt (Depends-on): Add waitpid.
16145         * modules/wait-process (Depends-on): Likewise.
16146
16147 2010-09-29  Bruno Haible  <bruno@clisp.org>
16148
16149         More tests for module 'sys_wait'.
16150         * modules/sys_wait-c++-tests: New file.
16151         * tests/test-sys_wait-c++.cc: New file.
16152         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16153         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16154
16155 2010-09-29  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'waitpid'.
16158         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16159         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16160         Don't include <process.h>.
16161         (waitpid): Declare only, using modern idiom.
16162         * m4/waitpid.m4: New file.
16163         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16164         * modules/waitpid: New file.
16165         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16166         (Makefile.am): Update.
16167         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16168
16169 2010-09-28  Bruno Haible  <bruno@clisp.org>
16170
16171         poll: Assume ANSI C.
16172         * lib/poll.c (poll): Use an ANSI C declaration.
16173
16174 2010-09-28  Bruno Haible  <bruno@clisp.org>
16175
16176         poll-h: Create poll.h on all platforms.
16177         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16178         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16179         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16180         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16181         (gl_REPLACE_POLL_H): Don't set POLL_H.
16182         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16183         * modules/poll-h (Depends-on): Add include_next.
16184         (Makefile.am): Create poll.h unconditionally. Substitute also
16185         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16186
16187 2010-09-28  Bruno Haible  <bruno@clisp.org>
16188
16189         Tests for module 'poll-h'.
16190         * modules/poll-h-c++-tests: New file.
16191         * tests/test-poll-h-c++.cc: New file.
16192
16193         Tests for module 'poll-h'.
16194         * modules/poll-h-tests: New file.
16195         * tests/test-poll-h.c: New file.
16196
16197 2010-09-28  Bruno Haible  <bruno@clisp.org>
16198
16199         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16200         * modules/poll-h (Depends-on): Add 'extensions'.
16201
16202 2010-09-28  Bruno Haible  <bruno@clisp.org>
16203
16204         New module 'poll-h'.
16205         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16206         (poll): Use modern idiom.
16207         * modules/poll-h: New file.
16208         * modules/poll (Files): Remove lib/poll.in.h.
16209         (Depends-on): Add poll-h.
16210         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16211         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16212         * m4/poll_h.m4: New file.
16213         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16214         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16215         and invoke gl_REPLACE_POLL_H.
16216         * lib/poll.c: Use common idiom.
16217         * tests/test-poll.c: Likewise.
16218         * doc/posix-headers/poll.texi: Mention the poll-h module.
16219         Suggested by Eric Blake.
16220
16221 2010-09-26  Bruno Haible  <bruno@clisp.org>
16222
16223         sys_wait: Implement WSTOPSIG.
16224         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16225         Reported by Simon Josefsson.
16226
16227 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16228
16229         stdlib, sys_wait: Avoid compilation error on mingw.
16230         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16231
16232 2010-09-26  Bruno Haible  <bruno@clisp.org>
16233
16234         stdlib tests: Avoid code duplication.
16235         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16236         * modules/sys_wait-tests (Files): Likewise.
16237         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16238         * tests/test-stdlib.c: Include test-sys_wait.h.
16239         (main): Invoke test_sys_wait_macros.
16240         * tests/test-sys_wait.c: Include test-sys_wait.h.
16241         (main): Invoke test_sys_wait_macros.
16242
16243 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16244
16245         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16246         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16247         sure Windows sockets are working before calling getaddrinfo.
16248         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16249         * doc/gnulib.texi (Windows sockets): Fix typo.
16250
16251 2010-09-25  Bruno Haible  <bruno@clisp.org>
16252
16253         Tests for module 'regex-quote'.
16254         * modules/regex-quote-tests: New file.
16255         * tests/test-regex-quote.c: New file.
16256
16257         New module 'regex-quote'.
16258         * lib/regex-quote.h: New file.
16259         * lib/regex-quote.c: New file.
16260         * modules/regex-quote: New file.
16261         Suggested by Reuben Thomas <rrt@sc3d.org>.
16262
16263 2010-09-24  Bruno Haible  <bruno@clisp.org>
16264
16265         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16266         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16267
16268 2010-09-23  Bruno Haible  <bruno@clisp.org>
16269
16270         setenv: Relax license.
16271         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16272         Blake.
16273         Requested by Eric Blake.
16274
16275 2010-09-22  Bruno Haible  <bruno@clisp.org>
16276
16277         termios: Relax license.
16278         * modules/termios (License): Change to LGPLv2+.
16279         Requested by Eric Blake.
16280
16281 2010-09-22  Bruno Haible  <bruno@clisp.org>
16282
16283         threadlib: Allow the package to change the default to 'no'.
16284         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16285         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16286         Reported by Paul Eggert.
16287
16288 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16289             Bruno Haible  <bruno@clisp.org>
16290
16291         Fix endless loop in mbmemcasecoll.
16292         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16293         byte.
16294         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16295
16296 2010-09-22  Bruno Haible  <bruno@clisp.org>
16297
16298         Tests for module 'memcoll'.
16299         * modules/memcoll-tests: New file.
16300         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16301
16302         memcoll, xmemcoll: Clarify size vs. length.
16303         * modules/memcoll.c (memcoll0): Clarify specification.
16304         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16305         passed to collate_error.
16306
16307 2010-09-22  Bruno Haible  <bruno@clisp.org>
16308
16309         Tests for module 'memcasecmp'.
16310         * modules/memcasecmp-tests: New file.
16311         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16312
16313 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         * lib/pthread.in.h: Add split double-inclusion guard, and include
16316         system <pthread.h> if there is one.  Use @@-style as in other
16317         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16318         pthread.h doesn't.
16319         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16320         (pthread_mutexattr_settype, pthread_mutex_trylock):
16321         New static inline functions, if there's no system <pthread.h>.
16322         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16323         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16324         Approximate with mutexes if the system lacks spinlocks, as in
16325         MacOS.
16326         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16327         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16328         @@-style.  Check for spinlocks separately.
16329         (gl_PTHREAD_DEFAULTS): New macro.
16330         * modules/pthread: Redo to use a more typical style for in.h files.
16331
16332 2010-09-21  Eric Blake  <eblake@redhat.com>
16333
16334         net_if: enhance tests
16335         * tests/test-net_if.c (main): Move signature checks earlier.
16336         Print failures to stderr.
16337         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16338         Document the bug that we do not yet fix.
16339
16340 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16341
16342         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16343         about gnulib, not GSS.
16344
16345 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16346
16347         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16348         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16349         for Emacs.
16350         * build-aux/pmccabe2html: Make Makefile.am example code more
16351         cut-and-paste friendly.
16352
16353 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16354
16355         * tests/test-net_if.c: New file.
16356         * modules/net_if-tests: New file.
16357
16358 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16359
16360         pthread: add pthread_spin_destroy
16361         * lib/pthread.in.h (pthread_spin_destroy): New function.
16362
16363 2010-09-19  Bruno Haible  <bruno@clisp.org>
16364
16365         gnulib-tool: Fix --help output.
16366         * gnulib-tool (func_usage): Fix help message.
16367         Reported by Reuben Thomas <rrt@sc3d.org>.
16368
16369 2010-09-18  Jim Meyering  <meyering@redhat.com>
16370
16371         maint.mk: avoid unexpanded \n in two diagnostics
16372         * top/maint.mk (sc_prohibit_always_true_header_tests):
16373         Don't use a literal \n in a halt=... assignment.  It would not be
16374         expanded, and the two \n bytes would appear in the diagnostic output
16375         rather than the desired newline.  Use halt=$$(printf ... instead.
16376         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16377
16378 2010-09-18  Bruno Haible  <bruno@clisp.org>
16379
16380         netinet_in: Doc tweak.
16381         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16383
16384 2010-09-18  Jim Meyering  <meyering@redhat.com>
16385
16386         init.sh: correct an outdated comment
16387         * tests/init.sh (create_exe_shims_):  s/function/alias/
16388
16389         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16390         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16391         a file named "*.exe" is removed between the glob expansion and the
16392         processing of that oddly named file.
16393
16394 2010-09-17  Eric Blake  <eblake@redhat.com>
16395
16396         mirbsd: add some more support
16397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16398         in BSD family.
16399         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16400         devices as OpenBSD.
16401         * m4/host-os.m4 (mirbsd): Add MirBSD.
16402
16403         tests: fix unportable assumption on sys/wait.h
16404         * tests/test-sys_wait.c (main): Relax test.
16405         * tests/test-stdlib.c (main): Likewise.
16406
16407         init.sh: accomodate directory with no .exes
16408         * tests/init.sh: Accomodate directory containing only scripts.
16409
16410         tests: avoid compiler warning
16411         * tests/test-stdlib.c (main): Use the variable.
16412
16413         fdutimens, fdutimensat: update signature, again
16414         * lib/utimens.h (gl_futimens): Delete, and move signature...
16415         (fdutimens): ...here.
16416         (fdutimensat): Rearrange signature.
16417         (lutimensat): Rename variable for clarity.
16418         * lib/fdutimensat.c (fdutimensat): Update signature.
16419         * lib/utimens.c (fdutimens): Likewise.
16420         (gl_futimens): Delete.
16421         (utimens, lutimens): Update callers.
16422         * lib/futimens.c (futimens): Likewise.
16423         * tests/test-fdutimensat.c: Likewise.
16424         * tests/test-utimens.c: Likewise.
16425         * tests/test-futimens.h: Update comment.
16426         * NEWS: Mention this.
16427         Suggested by Paul Eggert.
16428
16429 2010-09-17  Bruno Haible  <bruno@clisp.org>
16430
16431         Take over the maintenance of some older macros from Autoconf.
16432         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16433         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16434         GNU Autoconf.
16435         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16436         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16437
16438 2010-09-17  Eric Blake  <eblake@redhat.com>
16439
16440         fdutimensat: drop atflag validation
16441         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16442         with valid fd, to close a race scenario where futimens is
16443         unsupported and FILE was replaced by a symlink.
16444         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16445         accordingly.
16446         Suggested by Paul Eggert.
16447
16448 2010-09-16  Bruno Haible  <bruno@clisp.org>
16449
16450         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16451         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16452
16453 2010-09-16  Bruno Haible  <bruno@clisp.org>
16454
16455         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16456         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16457         login_tty exists.
16458         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16459
16460 2010-09-16  Bruno Haible  <bruno@clisp.org>
16461
16462         login_tty: Make the replacement code work on BSD systems.
16463         * lib/login_tty.c: Include <sys/ioctl.h>.
16464         (login_tty): Use ioctl TIOCSCTTY when available.
16465         * modules/login_tty (Depends-on): Add sys_ioctl.
16466         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16467
16468 2010-09-16  Bruno Haible  <bruno@clisp.org>
16469
16470         login_tty: Stricter unit test.
16471         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16472         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16473         and tcgetsid() after login_tty.
16474         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16475
16476 2010-09-16  Bruno Haible  <bruno@clisp.org>
16477
16478         New module 'tcgetsid'.
16479         * lib/tcgetsid.c: New file.
16480         * m4/tcgetsid.m4: New file.
16481         * modules/tcgetsid: New file.
16482         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16483         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16484         GNULIB_TCGETSID, HAVE_TCGETSID.
16485         * lib/termios.in.h: Include <sys/types.h>.
16486         (tcgetsid): New declaration.
16487         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16488         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16489         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16490         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16491
16492 2010-09-16  Bruno Haible  <bruno@clisp.org>
16493
16494         Tests for module 'termios'.
16495         * modules/termios-c++-tests: New file.
16496         * modules/termios-tests: New file.
16497         * tests/test-termios-c++.cc: New file.
16498         * tests/test-termios.c: New file.
16499
16500         New module 'termios'.
16501         * modules/termios: New file.
16502         * lib/termios.in.h: New file.
16503         * m4/termios_h.m4: New file.
16504         * doc/posix-headers/termios.texi: Mention the new module.
16505
16506 2010-09-16  Eric Blake  <eblake@redhat.com>
16507
16508         fdutimensat: add an atflag parameter
16509         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16510         * lib/utimens.h (fdutimensat): Update prototype.
16511         * tests/test-fdutimensat.c: Adjust test to match.
16512         * NEWS: Document the change.
16513         Suggested by Paul Eggert.
16514
16515 2010-09-16  Bruno Haible  <bruno@clisp.org>
16516
16517         Fix typos in comments.
16518         * lib/striconveh.h: Fix typo in comment.
16519         * lib/login_tty.c (login_tty): Likewise.
16520
16521 2010-09-15  Bruno Haible  <bruno@clisp.org>
16522
16523         stdlib: clarify MirBSD WEXITSTATUS bug
16524         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16525         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16526
16527 2010-09-15  Eric Blake  <eblake@redhat.com>
16528
16529         stdlib: work around MirBSD WEXITSTATUS bug
16530         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16531         * modules/stdlib (Depends-on): Add sys_wait.
16532         * tests/test-sys_wait.c (main): Enhance test.
16533         * tests/test-stdlib.c (main): Likewise.
16534         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16535
16536         docs: mention MacOS issue with WEXITSTATUS(constant)
16537         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16538         issue.
16539         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16540
16541         strnlen: add tests
16542         * modules/strnlen-tests: New file.
16543         * tests/test-strnlen.c: Likewise.
16544
16545 2010-09-14  Bruno Haible  <bruno@clisp.org>
16546
16547         unistr/base: Avoid link errors when module 'libunistring' is also used.
16548         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16549         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16550         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16551         Declare also when HAVE_LIBUNISTRING is set.
16552         Reported by Pádraig Brady <P@draigbrady.com>.
16553
16554 2010-09-14  Eric Blake  <eblake@redhat.com>
16555
16556         test-rawmemchr: make more robust
16557         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16558         (Depends-on, configure.ac): Add needed prerequisites to use it.
16559         * modules/memchr-tests (Files, Depends-on, configure.ac):
16560         Likewise, to avoid implicit reliance on memchr module prereqs.
16561         * tests/test-memchr.c (main): Ensure proper masking.
16562         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16563         reads.
16564
16565         memchr: detect glibc Alpha bug
16566         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16568         Alpha.
16569         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16570         * tests/test-memchr.c (main): Enhance test.
16571         Reported by Nelson H. F. Beebe.
16572
16573 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16574
16575         fts, getcwd, glob: audit for dirfd returning -1
16576         * lib/fts.c (opendir): Remove #define; no longer used.
16577         (opendirat): New arg PDIR_FD.  All callers changed.
16578         (fts_build, _opendir2): Use new opendirat to avoid the need for
16579         dirfd, or for checking whether dirfd returns a negative value.
16580         Don't use opendir; always use openat followed by fdopendir.
16581         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16582         it.
16583         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16584         returns -1 here.
16585         * modules/fts (Depends-on): Remove dirfd.
16586         * modules/getcwd (Depends-on): Likewise.
16587
16588 2010-09-13  Eric Blake  <eblake@redhat.com>
16589
16590         float: fix broken MirBSD header
16591         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16592         * doc/posix-headers/float.texi (float.h): Document it.
16593
16594 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16595
16596         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16597         * lib/fts.c (opendirat): New arg extra_flags.
16598         (__opendir2): Use it to avoid following symlinks when opening
16599         a directory, if symlinks are not supposed to be followed.  See
16600         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16601
16602         fdopendir: preserve argument fd before returning
16603         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16604         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16605         (fdopendir): Use them, arranging for FD to be open to the same
16606         directory that it was when it started.  (It might be temporarily
16607         closed while fdopendir is running, so this not thread- or
16608         signal-safe.)  Be careful to do the right thing even when file
16609         descriptors are scarce and dup fails with errno == EMFILE.  See
16610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16611
16612 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16613
16614         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16615         * NEWS: Document change.
16616         * m4/regex.m4: Disable test for regoff_t size.
16617
16618 2010-09-13  Jim Meyering  <meyering@redhat.com>
16619
16620         fts: don't operate on an invalid file descriptor after failed dup
16621         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16622         negative file descriptor.
16623
16624 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16625
16626         savedir: add streamsavedir, deprecate fdsavedir
16627         * NEWS: Mention deprecation of fdsavedir.
16628         * lib/savedir.c (streamsavedir): New extern function, whose name
16629         ends in "savedir" to be consistent with the others.  This differs
16630         from savedirstream in that it doesn't close its argument.  The
16631         next version of GNU tar will use this instead of fdsavedir, to
16632         avoid some race conditions and conserve file descriptors.
16633         (savedirstream): Reimplement as a wrapper around streamsavedir.
16634         (fdsavedir): Add a comment deprecating this function.  As far as
16635         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16636         * lib/savedir.h (streamsavedir): New decl.
16637         (fdsavedir): Add a comment deprecating this.
16638
16639 2010-09-10  Bruno Haible  <bruno@clisp.org>
16640
16641         langinfo: Fix last commit.
16642         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16643         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16645
16646 2010-09-10  Bruno Haible  <bruno@clisp.org>
16647
16648         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16649         * lib/progreloc.c (O_EXEC): Define fallback.
16650
16651 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16652
16653         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16654         * NEWS: Document recent changes to fcntl-h.
16655         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16656         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16657         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16658         Similarly for O_SEARCH; this last was already true, but not documented.
16659         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16660         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16661         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16662         Likewise.
16663         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16664         is zero, not whether it is defined.
16665         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16666         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16667         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16668
16669 2010-09-10  Bruno Haible  <bruno@clisp.org>
16670
16671         langinfo, nl_langinfo: Fix for IRIX 5.3.
16672         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16673         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16674         HAVE_LANGINFO_YESEXPR.
16675         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16676         HAVE_LANGINFO_YESEXPR.
16677         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16678         HAVE_LANGINFO_T_FMT_AMPM is 0.
16679         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16680         HAVE_LANGINFO_YESEXPR is 0.
16681         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16682         NOEXPR.
16683         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16684         * doc/posix-functions/nl_langinfo.texi: Likewise.
16685         Reported by Eric Blake.
16686
16687 2010-09-10  Bruno Haible  <bruno@clisp.org>
16688
16689         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16690         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16691         on FreeBSD 8.0 and OpenBSD 4.6.
16692         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16693         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16694         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16695         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16696         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16697         ac_includes_default.
16698         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16699
16700 2010-09-09  Eric Blake  <eblake@redhat.com>
16701
16702         strsignal: work around NetBSD bug
16703         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16704         * lib/string.in.h (includes): Likewise.
16705         * doc/posix-functions/strsignal.texi (strsignal): Document the
16706         bug.
16707         Reported by Nelson H. F. Beebe.
16708
16709         gnulib-tool: work with NetBSD /bin/sh
16710         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16711         (func_get_description, func_get_comment, func_get_status)
16712         (func_get_notice, func_get_applicability, func_get_filelist)
16713         (func_get_dependencies, func_get_autoconf_early_snippet)
16714         (func_get_autoconf_snippet, func_get_automake_snippet)
16715         (func_get_include_directive, func_get_link_directive)
16716         (func_get_license, func_get_maintainer, func_import): Avoid
16717         shell syntax errors from parsing syntax extensions.
16718
16719 2010-09-09  Bruno Haible  <bruno@clisp.org>
16720
16721         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16722         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16723         a reliable way to determine whether the 'alias' command works.
16724
16725 2010-09-08  Jim Meyering  <meyering@redhat.com>
16726
16727         init.sh: penalize a set-x-impaired shell; don't disqualify it
16728         * tests/init.sh: Too many shells corrupt application stderr when
16729         you set -x, so we can't afford to disqualify them, since at least
16730         on Irix-6.5, that would disqualify all bourne shells.
16731         Instead, use a two-pass approach.
16732         On the first pass, try to find a shell that meets the stricter
16733         condition that set -x does not corrupt stderr.
16734         If no shell meets the stricter condition, retest each candidate
16735         shell, but without that extra condition.  Finally, when
16736         VERBOSE=yes is requested and set -x might cause trouble, simply
16737         issue a warning and refrain from enabling debug output.
16738
16739 2010-09-08  Eric Blake  <eblake@redhat.com>
16740
16741         unsetenv: fix OpenBSD bug
16742         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16743         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16744         documentation.
16745         Reported by Jim Meyering.
16746
16747         strtod: work around IRIX 6.5 bug
16748         * lib/strtod.c (strtod): Reparse number on shorter string if
16749         exponent parse was invalid.
16750         * tests/test-strtod.c (main): Add check for "0x1p 2".
16751         Reported by Tom G. Christensen.
16752
16753         getopt: optimize previous patch
16754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16755         empty variable.  Speed up awk script.
16756         Reported by Paolo Bonzini.
16757
16758 2010-09-08  Jim Meyering  <meyering@redhat.com>
16759
16760         test.sh: disqualify shells for which set -x corrupts stderr
16761         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16762         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16763         appear in stderr output.  For example, this command:
16764             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16765         prints "P=1" on those two systems:
16766
16767 2010-09-08  Bruno Haible  <bruno@clisp.org>
16768
16769         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16770         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16771         commands, because some shells ignore redirections when there is an
16772         error in the command lookup.
16773         Reported by Eric Blake.
16774
16775 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16776
16777         * lib/regex.h: Fix a mention of `regex_compile' (should be
16778         `re_compile_pattern').
16779         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16780         (re_set_registers): Correct name of parameter in comment.
16781
16782         * doc/regex.texi: Add documentation for missing syntax flags.
16783         Remove commented-out documentation of defunct syntax option
16784         RE_NO_EMPTY_ALTS.
16785         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16786         Add documentation of re_set_registers.
16787         Document trick to re-use a pattern buffer by setting fastmap manually.
16788         Update documentation of struct re_pattern_buffer per public members.
16789         Uncomment documentation of equivalence class operators and
16790         collating symbol operators, since they are now implemented,
16791         Explain leftmost-longest matching in relation to alternatives.
16792         Tidy documentation of substring matching.
16793         Remove POSIX documentation, which is done better in
16794         glibc, and refer the reader there. Keep BSD API documentation, as
16795         that is not readily available elsewhere.
16796
16797 2010-09-07  Eric Blake  <eblake@redhat.com>
16798
16799         getopt: handle POSIXLY_CORRECT set but not exported
16800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16801         export state of POSIXLY_CORRECT, due to bash set -o posix.
16802         Reported by Dustin J. Mitchell.
16803
16804 2010-09-05  Bruno Haible  <bruno@clisp.org>
16805
16806         gnulib-tool: Highlight the changed options.
16807         * gnulib-tool (func_usage): Display the --import, --add-import,
16808         --remove-import explanations in bold font.
16809
16810 2010-09-06  Karl Berry  <karl@gnu.org>
16811
16812         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16813
16814 2010-09-05  Bruno Haible  <bruno@clisp.org>
16815
16816         uniwidth/width: Update comment.
16817         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16818         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16819
16820 2010-09-05  Bruno Haible  <bruno@clisp.org>
16821
16822         isinf, isnan: Relax license.
16823         * modules/isinf (License): Change from GPL to LGPL, with consent from
16824         Ben Pfaff.
16825         * modules/isnan (License): Likewise.
16826         Requested by Ludovic Courtès.
16827
16828 2010-09-04  Bruno Haible  <bruno@clisp.org>
16829
16830         gnulib-tool: Help migration from --import to --add-import or --update.
16831         * gnulib-tool: Emit a verbose error message when --import is used
16832         without any module name.
16833
16834 2010-09-04  Bruno Haible  <bruno@clisp.org>
16835
16836         Update doc about gnulib-tool.
16837         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16838         'gnulib-tool --update' in more detail.
16839         Reported by Eric Blake.
16840
16841 2010-09-04  Bruno Haible  <bruno@clisp.org>
16842
16843         gnulib-tool: Change --import. New options --add/remove-import.
16844         * gnulib-tool: New options --add-import, --remove-import.
16845         (func_usage): Document them.
16846         (have_associative): Define always.
16847         (func_import): In import mode, don't merge the specified settings with
16848         the cached settings. Implement remove-import mode.
16849         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16850         Explain when to use them versus --import.
16851         (Simple update): Use --add-import instead of --import.
16852         * NEWS: Mention the change.
16853
16854 2010-09-04  Bruno Haible  <bruno@clisp.org>
16855
16856         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16857         separate gnulib.mk.
16858
16859 2010-09-04  Bruno Haible  <bruno@clisp.org>
16860
16861         gnulib-tool: Don't talk about CVS any more.
16862         * gnulib-tool (func_usage, func_import): Write "version control"
16863         instead of CVS.
16864
16865 2010-09-04  Jim Meyering  <meyering@redhat.com>
16866
16867         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16868         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16869         false positives (whose names may be ill-chosen) when searching
16870         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16871         would cause a false-positive.
16872
16873         avoid coreutils "make distcheck" failure
16874         Coreutils tests with an absolute build directory name that contains
16875         a space.  Not quoting this directory name caused a failure.
16876         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16877         * tests/test-vc-list-files-cvs.sh: Likewise.
16878
16879 2010-09-04  Bruno Haible  <bruno@clisp.org>
16880
16881         gnulib-tool: Avoid error when run in a package without Makefile.am.
16882         * gnulib-tool: When collecting the m4dirs in a package that does not
16883         have a Makefile.am, eliminate those directories that contain no
16884         gnulib-cache.m4. Fix expression that counts these directories.
16885
16886 2010-09-04  Bruno Haible  <bruno@clisp.org>
16887
16888         update-copyright test: Improve output when perl is missing or too old.
16889         * tests/test-update-copyright.sh: Move test of Perl version down after
16890         the test whether Perl exists. Provide an explanation relating Perl's
16891         error message to Automake's SKIP: message.
16892
16893 2010-09-04  Bruno Haible  <bruno@clisp.org>
16894
16895         Don't augment PATH in TESTS_ENVIRONMENT.
16896         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16897         set abs_aux_dir instead of augmenting PATH.
16898         * modules/vc-list-files-tests (Makefile.am): Likewise.
16899         * tests/test-update-copyright.sh: Augment PATH here.
16900         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16901         path_prepend_.
16902         * tests/test-vc-list-files-git.sh: Likewise.
16903
16904 2010-09-04  Jim Meyering  <meyering@redhat.com>
16905
16906         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16907         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16908
16909 2010-09-04  Bruno Haible  <bruno@clisp.org>
16910
16911         strdup: Fix compilation error in C++ mode.
16912         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16913         the macro.
16914
16915 2010-09-04  Bruno Haible  <bruno@clisp.org>
16916
16917         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16918         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16919         macro into a function.
16920         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16921
16922 2010-09-04  Bruno Haible  <bruno@clisp.org>
16923
16924         Set PATH_SEPARATOR the same way autoconf does.
16925         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16926         the value of PATH_SEPARATOR the same way autoconf-generated configure
16927         scripts do.
16928         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16930
16931 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16932
16933         Set PATH_SEPARATOR the same way autoconf does.
16934         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16935         the same way autoconf-generated configure scripts do.
16936         * posix-modules: Likewise.
16937
16938 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16939
16940         hash: fix safe_hasher const typo
16941         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16942         const; otherwise, there is a type error later.
16943
16944 2010-09-02  Jim Meyering  <meyering@redhat.com>
16945
16946         test-update-copyright.sh: require perl 5.8.0
16947         * tests/test-update-copyright.sh: Require 5.8.0,
16948         which Tom G. Christensen has confirmed is adequate,
16949         while 5.6.1 is not.
16950
16951 2010-09-02  Eric Blake  <eblake@redhat.com>
16952
16953         tests: init.sh improvements for re-exec'ing with zsh
16954         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16955         -vx through shell re-exec.
16956         Reported by Tom G. Christensen.
16957
16958         wctype: fix typo in previous commit
16959         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16960         Reported by Ludovic Courtès.
16961
16962 2010-09-02  Jim Meyering  <meyering@redhat.com>
16963
16964         test-update-copyright.sh: skip test if Perl is too old
16965         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16966         Reported by Tom G. Christensen.
16967
16968 2010-09-02  Bruno Haible  <bruno@clisp.org>
16969
16970         wctype: Avoid compilation error on IRIX 6.5.30.
16971         * lib/wctype.in.h (iswblank): Declare with a replacement if
16972         REPLACE_ISWBLANK is set.
16973         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16974         declared. Set REPLACE_ISWBLANK.
16975         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16976         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16977         * doc/posix-headers/wctype.texi: Likewise.
16978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16979
16980 2010-09-01  Bruno Haible  <bruno@clisp.org>
16981
16982         New module 'socketlib'.
16983         * modules/socketlib: New file.
16984         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16985         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16986         * modules/sockets (Depends-on): Add socketlib.
16987         Suggested by Sam Steingold <sds@gnu.org>.
16988
16989 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16990
16991         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16992
16993         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16994         when one needs search access to a directory but not read access.
16995         On systems where it is available, it works in some cases where
16996         O_RDONLY does not, namely on directories that are searchable but
16997         not readable, and which need only to be searchable.  If O_SEARCH
16998         is not available, fall back to the traditional method of using
16999         O_RDONLY.
17000
17001         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17002         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17003         when opening a directory that needs only to be searchable.
17004         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17005         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17006         * lib/openat-proc.c (openat_proc_name): Likewise.
17007         * lib/openat.c (openat_needs_fchdir): Likewise.
17008         * lib/save-cwd.c (save_cwd): Likewise.
17009         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17010
17011 2010-08-28  Bruno Haible  <bruno@clisp.org>
17012
17013         New module 'host-cpu-c-abi'.
17014         * modules/host-cpu-c-abi: New file.
17015         * m4/host-cpu-c-abi.m4: New file, based on part of
17016         clisp/src/m4/general.m4.
17017         Requested by Sam Steingold <sds@gnu.org>.
17018
17019 2010-08-31  Eric Blake  <eblake@redhat.com>
17020         and Jim Meyering  <meyering@redhat.com>
17021
17022         hash: factor, and guard against misbehaving hasher function
17023         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17024         of table->hasher's return value.  Also protect against a hash value
17025         so large that adding it to table->bucket results in a NULL pointer.
17026         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17027         Use it in place of open-coded check-and-abort.
17028
17029 2010-08-30  Bruno Haible  <bruno@clisp.org>
17030
17031         hash: silence spurious clang warning
17032         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17033         Reported by Eric Blake.
17034
17035 2010-08-30  Eric Blake  <eblake@redhat.com>
17036
17037         strstr, memmem, strcasestr: avoid leaked shell message
17038         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17039         FreeBSD.
17040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17042
17043         tests: silence clang warning
17044         * tests/test-malloca.c (do_allocation): Avoid dead store.
17045
17046 2010-08-29  Bruno Haible  <bruno@clisp.org>
17047
17048         gettext: Fix recent mistake.
17049         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17050
17051 2010-08-29  Bruno Haible  <bruno@clisp.org>
17052
17053         selinux-h: Offer a --without-selinux option.
17054         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17055         --without-selinux was specified, skip all tests and define
17056         HAVE_SELINUX_SELINUX_H to 0.
17057         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17058         set LIB_SELINUX to empty.
17059         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17060         gl_LIBSELINUX. If --without-selinux was specified, replace
17061         selinux/context.h.
17062         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17063
17064 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17065             Bruno Haible  <bruno@clisp.org>
17066
17067         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17068         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17069         of HAVE_REALLOC.
17070         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17071         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17072         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17073         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17074
17075 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17076             Bruno Haible  <bruno@clisp.org>
17077
17078         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17079         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17080         HAVE_CALLOC.
17081         * lib/xmalloc.c: Update accordingly.
17082         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17083         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17084         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17085
17086 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17087             Bruno Haible  <bruno@clisp.org>
17088
17089         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17090         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17091         HAVE_MALLOC.
17092         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17093         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17094         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17095
17096 2010-08-29  Bruno Haible  <bruno@clisp.org>
17097
17098         Update modules list.
17099         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17100         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17101         (String handling <string.h>): Add astrxfrm.
17102         (File system functions): Add readlinkat.
17103
17104 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17105
17106         Tests for module 'realloc-gnu'.
17107         * modules/realloc-gnu-tests: New file.
17108         * tests/test-realloc-gnu.c: New file.
17109
17110         Tests for module 'calloc-gnu'.
17111         * modules/calloc-gnu-tests: New file.
17112         * tests/test-calloc-gnu.c: New file.
17113
17114         Tests for module 'malloc-gnu'.
17115         * modules/malloc-gnu-tests: New file.
17116         * tests/test-malloc-gnu.c: New file.
17117
17118 2010-08-28  Bruno Haible  <bruno@clisp.org>
17119
17120         Rename module 'realloc' -> 'realloc-gnu'.
17121         * modules/realloc-gnu: New file, copied from modules/realloc.
17122         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17123         obsolete.
17124         * modules/mgetgroups (Depends-on): Update.
17125         * doc/posix-functions/realloc.texi: Update.
17126         * NEWS: Mention the change.
17127
17128         Rename module 'calloc' -> 'calloc-gnu'.
17129         * modules/calloc-gnu: New file, copied from modules/calloc.
17130         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17131         obsolete.
17132         * doc/posix-functions/calloc.texi: Update.
17133         * NEWS: Mention the change.
17134
17135         Rename module 'malloc' -> 'malloc-gnu'.
17136         * modules/malloc-gnu: New file, copied from modules/malloc.
17137         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17138         obsolete.
17139         * modules/argp (Depends-on): Update.
17140         * modules/regex (Depends-on): Update.
17141         * doc/posix-functions/malloc.texi: Update.
17142         * NEWS: Mention the change.
17143
17144 2010-08-28  Eric Blake  <eblake@redhat.com>
17145
17146         pread, pwrite: add missing dependency
17147         * modules/pread (Depends-on): Add extensions.
17148         * modules/pwrite (Depends-on): Likewise.
17149
17150 2010-08-28  Bruno Haible  <bruno@clisp.org>
17151
17152         unistr/u*-strchr: Fix tests dependencies.
17153         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17154         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17155         Reported by Ian Beckwith <ianb@erislabs.net>.
17156
17157 2010-08-28  Bruno Haible  <bruno@clisp.org>
17158
17159         read-file: Don't occupy too much unused memory.
17160         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17161
17162 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17163             Eric Blake  <eblake@redhat.com>
17164             Bruno Haible  <bruno@clisp.org>
17165
17166         read-file: Avoid memory reallocations with regular files.
17167         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17168         (fread_file): With regular files, use the remaining length as the
17169         initial buffer size.  Check against overflow.
17170         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17171         sys_stat.
17172
17173 2010-08-28  Bruno Haible  <bruno@clisp.org>
17174
17175         ftello: Relax license.
17176         * modules/ftello (License): Relax to LGPLv2+.
17177         Reported by Eric Blake.
17178
17179 2010-08-28  Bruno Haible  <bruno@clisp.org>
17180
17181         Avoid relocwrapper link errors due to gnulib replacement functions.
17182         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17183         function.
17184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17185
17186 2010-08-28  Bruno Haible  <bruno@clisp.org>
17187
17188         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17189         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17190         defined.
17191         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17192         Suggested by Eric Blake.
17193
17194 2010-08-28  Bruno Haible  <bruno@clisp.org>
17195
17196         sys_socket, netdb: Ensure socklen_t gets defined.
17197         * modules/sys_socket (Depends-on): Add socklen.
17198         * modules/netdb (Depends-on): Likewise.
17199         * modules/getaddrinfo (Depends-on): Remove socklen.
17200         * modules/getsockopt (Depends-on): Likewise.
17201         * modules/setsockopt (Depends-on): Likewise.
17202         * tests/test-sys_socket.c: Check that socklen_t is defined.
17203         * tests/test-netdb.c: Likewise.
17204         * m4/socklen.m4: Update comments.
17205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17206
17207 2010-08-27  Eric Blake  <eblake@redhat.com>
17208
17209         login_tty: add missing dependency
17210         * modules/login_tty (Depends-on): Add pty.
17211
17212 2010-08-26  Eric Blake  <eblake@redhat.com>
17213
17214         lib-symbol-versions: fix m4 quoting
17215         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17216         format for AC_LINK_IFELSE.
17217
17218         glob: fix compile test
17219         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17220
17221         btowc: fix missing file
17222         * modules/btowc (Files): Also ship locale-fr.m4.
17223
17224         lseek: fix link test
17225         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17226         AC_LINK_IFELSE.
17227
17228         include_next: silence autoconf 2.68 warning
17229         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17230         AC_COMPILE_IFELSE as special.
17231         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17232         autoconf < 2.68.
17233
17234         acl: fix compilation test
17235         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17236         AC_COMPILE_IFELSE.
17237
17238 2010-08-26  Bruno Haible  <bruno@clisp.org>
17239
17240         Modernize AC_TRY_RUN invocations.
17241         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17242         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17243         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17244         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17245         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17246         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17249         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17250         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17252         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17253         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17256         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17257         gl_MBRLEN_NUL_RETVAL): Likewise.
17258         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17259         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17260         Likewise.
17261         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17262         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17263         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17264         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17265         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17266         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17267         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17268         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17269         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17270         Likewise.
17271         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17272         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17274         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17275         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17276         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17278         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17279         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17281
17282 2010-08-26  Bruno Haible  <bruno@clisp.org>
17283
17284         Modernize AC_TRY_LINK invocations.
17285         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17286         AC_TRY_LINK.
17287         * m4/argp.m4 (gl_ARGP): Likewise.
17288         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17289         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17290         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17291         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17292         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17293         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17294         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17295         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17296         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17297         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17298         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17299         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17300         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17301         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17302         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17303         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17304         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17305         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17306         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17307         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17308         Likewise.
17309         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17310         Likewise.
17311         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17312         Likewise.
17313         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17315         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17316         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17317         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17319         * m4/servent.m4 (gl_SERVENT): Likewise.
17320         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17321         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17322         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17323         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17325         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17326         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17327         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17328         * modules/tsearch-tests (configure.ac): Likewise.
17329
17330 2010-08-26  Bruno Haible  <bruno@clisp.org>
17331
17332         Modernize AC_TRY_COMPILE invocations.
17333         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17334         AC_TRY_COMPILE.
17335         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17336         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17337         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17338         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17339         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17340         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17341         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17342         * m4/lock.m4 (gl_LOCK): Likewise.
17343         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17344         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17345         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17346         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17347         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17348         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17349         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17351         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17352         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17353         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17354         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17355         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17356         extraneous semicolon.
17357
17358 2010-08-26  Jim Meyering  <meyering@redhat.com>
17359
17360         stat-time: relax license LGPL
17361         * modules/stat-time (License): Change from GPL to LGPL,
17362         with consent from all contributors, for use in libguile.
17363         Requested by Ludovic Courtès.
17364
17365 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17366
17367         poll: return immediately on POLLHUP.
17368         * lib/poll.c (poll): Always set timeout before wait_timeout is
17369         computed.
17370
17371 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17372
17373         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17374         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17375         rmdir ("dir/.//"), unlinkat.
17376
17377 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17378
17379         stdbool: avoid spurious failure with modern xlc
17380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17381
17382 2010-08-24  Bruno Haible  <bruno@clisp.org>
17383
17384         getloadavg: simplify code
17385         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17386         gl_have_func. Update comments.
17387
17388 2010-08-24  Eric Blake  <eblake@redhat.com>
17389
17390         getloadavg: don't define SVR4 on cygwin
17391         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17392         only define SVR4 when -lkvm is required.
17393         Reported by Yaakov Selkowitz.
17394
17395 2010-08-24  Bruno Haible  <bruno@clisp.org>
17396
17397         priv-set: fix comment
17398         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17399
17400 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17401
17402         priv-set: fix comments
17403         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17404         to match code, as suggested by David Bartley in:
17405         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17406
17407 2010-08-23  Eric Blake  <eblake@redhat.com>
17408
17409         stdbool: avoid rejecting clang
17410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17411         * tests/test-stdbool.c: Enable more tests if using the system
17412         <stdbool.h> instead of the gnulib replacement.
17413         (main): Move xlc bug test to a runtime test for all compilers.
17414         Reported by Anders Kaseorg.
17415
17416         argz: fix shell quoting issue
17417         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17418         Reported by Charles Wilson.
17419
17420 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17421             Erik Faye-Lund <kusmabite@gmail.com>
17422
17423         poll, select: handle ERROR_BROKEN_PIPE.
17424         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17425         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17426         * lib/select.c (win32_compute_revents): Do not mark a pipe
17427         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17428
17429 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17430
17431         fts: allow compilation with C++
17432         * lib/fts_.h: Specify extern "C" linkage with C++.
17433
17434 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17435
17436         Fix gnulib-tool sed script de-commentation for AIX sed.
17437         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17438         sed.
17439
17440 2010-08-17  Eric Blake  <eblake@redhat.com>
17441
17442         test-stddef: test for (some) offsetof bugs
17443         * tests/test-stddef.c: Enhance test to ensure correct type of
17444         offsetof.
17445         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17446         that we are not fixing at this time.
17447
17448 2010-08-15  Bruno Haible  <bruno@clisp.org>
17449
17450         stpncpy: Allow stpncpy to be defined as a macro.
17451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17452         if it's already correctly declared.
17453         * lib/string.in.h (stpncpy): Undefine before redefining.
17454         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17455
17456 2010-08-14  Bruno Haible  <bruno@clisp.org>
17457
17458         Rename module 'memxfrm' to 'amemxfrm'.
17459         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17460         (amemxfrm): Renamed from memxfrm.
17461         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17462         (amemxfrm): Renamed from memxfrm.
17463         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17464         * NEWS: Mention the change.
17465         * MODULES.html.sh (String handling <string.h>): Update.
17466         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17467         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17468         * lib/unicase/u16-casexfrm.c: Likewise.
17469         * lib/unicase/u32-casexfrm.c: Likewise.
17470         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17471         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17472         * lib/uninorm/u16-normxfrm.c: Likewise.
17473         * lib/uninorm/u32-normxfrm.c: Likewise.
17474         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17475         memxfrm.
17476         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17477         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17478         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17479         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17480         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17481         Suggested by Paul Eggert.
17482
17483 2010-08-14  Bruno Haible  <bruno@clisp.org>
17484
17485         Tests for module 'astrxfrm'.
17486         * modules/astrxfrm-tests: New file.
17487         * tests/test-astrxfrm.c: New file.
17488
17489         New module 'astrxfrm'.
17490         * lib/astrxfrm.h: New file.
17491         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17492         * modules/astrxfrm: New file.
17493
17494 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17495
17496         regex: Tweak doc.
17497         * doc/regex.texi (Overview): Don't mention regex.c.
17498         (GNU Regular Expression Compiling): Likewise.
17499         (Match-end-of-line Operator): Mention 'not_eol'.
17500
17501 2010-08-14  Brian Gough  <bjg@gnu.org>
17502             Bruno Haible  <bruno@clisp.org>
17503
17504         git-merge-changelog: add doc relating to use with bzr and hg.
17505         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17506
17507 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17508
17509         pthread: fix pthread.h creation for srcdir != builddir
17510         * modules/pthread (Makefile.am): Fix the rule to work also in a
17511         non-srcdir build.
17512
17513 2010-08-13  Karl Berry  <karl@gnu.org>
17514
17515         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17516         * doc/posix-*/*: force line break before @url of POSIX
17517         specifications.
17518         Suggested by Werner Lemberg.
17519
17520 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17521
17522         strtod: fix const diagnostic
17523         * lib/strtod.c (strtod): Don't assign const char * to char *,
17524         as this elicits a warning from GCC when warnings are enabled.
17525
17526 2010-08-10  Pádraig Brady <P@draigbrady.com>
17527         and Eric Blake  <eblake@redhat.com>
17528
17529         copy-acl: ignore ENOTSUP on HP-UX
17530         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17531         so that it is available for HP-UX.
17532         * lib/copy-acl.c (qcopy_acl): Use it.
17533         Reported by Patrick M. Callahan.
17534
17535 2010-08-10  Eric Blake  <eblake@redhat.com>
17536
17537         open, chown: relax license
17538         * modules/open (License): Change to LGPLv2+, with consent by all
17539         authors, for use in augeas.
17540         * modules/chown (License): Likewise.
17541         * modules/lchown (Likewise): Likewise.
17542         Requested by Adam Stokes.
17543
17544 2010-08-09  Karl Berry  <karl@gnu.org>
17545
17546         * build-aux/ar-lib: new file, import from Automake.
17547         * config/srclist.txt: autocheck for updates.
17548
17549 2010-08-09  Eric Blake  <eblake@redhat.com>
17550
17551         readlinkat: adjust client modules
17552         * modules/areadlinkat (Depends-on): Use readlinkat, not
17553         symlinkat.
17554         * modules/areadlinkat-with-size (Depends-on): Likewise.
17555
17556         mknod: be more vocal about danger of running tests as root
17557         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17558         root, since that is just asking for problems.
17559         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17560
17561         readlinkat: split into its own module
17562         * modules/symlinkat: Split readlinkat...
17563         * modules/readlinkat: ...into separate module.
17564         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17565         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17566         * lib/symlinkat.c (readlinkat): Move...
17567         * lib/readlinkat.c: ...into new file.
17568         * modules/symlinkat-tests: Split readlinkat test...
17569         * modules/readlinkat-tests: ...into separate module.
17570         * tests/test-symlinkat.c: Split...
17571         * tests/test-readlinkat.c: ...into new file.
17572         * NEWS: Document the split.
17573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17574         * lib/unistd.in.h (readlinkat): Likewise.
17575         Suggested by Bruno Haible.
17576
17577 2010-08-08  Bruno Haible  <bruno@clisp.org>
17578
17579         memxfrm: Speed up.
17580         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17581         that usually only one call to strxfrm is necessary for each string
17582         part.
17583         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17584
17585 2010-08-07  Karl Berry  <karl@gnu.org>
17586
17587         * doc/posix-headers/limits.texi,
17588         * doc/posix-functions/malloc.texi,
17589         * doc/posix-functions/strsignal.texi: missing @item.
17590         * doc/ld-version-script.texi: spurious leading i.
17591         * doc/regex.texi (Interval Operators): no commas inside @var.
17592
17593 2010-08-01  Bruno Haible  <bruno@clisp.org>
17594
17595         Integrate the regex documentation.
17596         * doc/gnulib.texi: Define 'cn' index.
17597         (Regular expressions): New a chapter that includes regex.texi and
17598         regexprops-generic.texi.
17599         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17600         syntax.
17601
17602         Whitespace cleanup.
17603         * doc/regex.texi: Remove trailing spaces.
17604
17605         Add regex documentation.
17606         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17607         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17608         Written by Kathy A. Hargreaves and Karl Berry.
17609
17610 2010-08-01  Bruno Haible  <bruno@clisp.org>
17611
17612         link: Update documentation.
17613         * doc/posix-functions/link.texi: Update regarding Solaris.
17614
17615 2010-07-31  Bruno Haible  <bruno@clisp.org>
17616
17617         Update modules list.
17618         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17619         (String handling <string.h>): Add memcmp2, memxfrm.
17620         (Container data structures): Add xlist, xsublist, xoset.
17621         (Core language properties): Add alignof, unused-parameter.
17622         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17623         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17624         (Unibyte characters <ctype.h>): New section.
17625         (String handling <string.h>): New section.
17626         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17627         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17628         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17629         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17630         tan, tanh, tanl, y0, y1, yn.
17631         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17632         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17633         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17634         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17635         unlockpt, vdprintf, vdprintf-posix.
17636         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17637         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17638         xconcat-filename.
17639         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17640         getdtablesize, pipe2, pipe2-safer.
17641         (Security): New section.
17642         (Networking functions): Add accept4.
17643         (Signal handling): Add sigpipe.
17644         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17645         mbmemcasecoll.
17646         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17647         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17648         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17649         pipe-filter-ii.
17650         (Misc): Add argp-version-etc, login_tty, parse-duration.
17651
17652 2010-07-31  Bruno Haible  <bruno@clisp.org>
17653
17654         Improve doc in MODULES.html.
17655         * modules/linkat (Description): Add the word "function".
17656         * modules/mkfifo (Description): Likewise.
17657         * modules/mknod (Description): Likewise.
17658         * modules/remove (Description): Likewise.
17659         * modules/renameat (Description): Likewise.
17660         * modules/stat (Description): Likewise.
17661         * modules/symlink (Description): Likewise.
17662         * modules/unlink (Description): Likewise.
17663
17664 2010-07-31  Bruno Haible  <bruno@clisp.org>
17665
17666         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17667         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17668         option --enable/disable-c++ instead of --enable/disable-cxx.
17669         * NEWS: Mention the change.
17670
17671 2010-07-31  Bruno Haible  <bruno@clisp.org>
17672
17673         readlink, areadlink: Relax test a bit.
17674         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17675         alternative to ENOTDIR.
17676         * tests/test-areadlink.h (test_areadlink): Likewise.
17677         Reported by Rainer Tammer.
17678
17679 2010-07-31  Bruno Haible  <bruno@clisp.org>
17680
17681         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17682         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17683         character, perform the search using U_STRCHR.
17684         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17685         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17686         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17687         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17688         Suggested by Paolo Bonzini.
17689
17690 2010-07-31  Bruno Haible  <bruno@clisp.org>
17691
17692         unistr/u*-strstr: Fix dependencies.
17693         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17694         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17695         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17696
17697 2010-07-31  Bruno Haible  <bruno@clisp.org>
17698
17699         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17700         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17701         the beginning of the loop.
17702         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17703         cases in 'switch' statement.
17704
17705         unistr/u8-strchr: Fix several bugs.
17706         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17707         the string. When not found, return NULL, not a pointer near the end.
17708
17709         More tests for unistr/u8-strchr.
17710         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17711         that the function does not read past the first occurrence of the byte
17712         being searched.
17713         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17714         * tests/unistr/test-u16-strchr.c (main): New function.
17715         * tests/unistr/test-u32-strchr.c (main): New function.
17716
17717 2010-07-31  Bruno Haible  <bruno@clisp.org>
17718
17719         posix-modules: Ignore backup files of documentation files.
17720         * posix-modules: grep only through files named *.texi.
17721
17722 2010-07-31  Bruno Haible  <bruno@clisp.org>
17723
17724         symlinkat: Fix documentation.
17725         * doc/posix-functions/readlinkat.texi: Fix module name.
17726
17727 2010-07-31  Bruno Haible  <bruno@clisp.org>
17728
17729         fchownat: Replace also when chown has the trailing slash bug.
17730         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17731         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17732         introduced on 2010-04-10.
17733         Reported by Rainer Tammer.
17734
17735 2010-07-31  Bruno Haible  <bruno@clisp.org>
17736
17737         linkat: Work around AIX 7.1 bug.
17738         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17739         whether linkat handles trailing slash correctly. If not, replace linkat
17740         and define LINKAT_TRAILING_SLASH_BUG.
17741         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17742         check whether (fd1,file1) points to a directory if file1 or file2 ends
17743         in a slash. Code taken from lib/link.c.
17744         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17745         Reported by Rainer Tammer.
17746
17747 2010-07-31  Bruno Haible  <bruno@clisp.org>
17748
17749         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17750         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17751         This disables an xlc optimization that was causing wrong test results.
17752         Reported by Rainer Tammer.
17753
17754 2010-07-31  Bruno Haible  <bruno@clisp.org>
17755
17756         iconv: Work around AIX 6.1..7.1 bug.
17757         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17758         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17759         cross-compiling, guess no on all versions of AIX.
17760         Reported by Rainer Tammer.
17761
17762 2010-07-31  Bruno Haible  <bruno@clisp.org>
17763
17764         readlink: Relax test a bit.
17765         * tests/test-readlink.h (test_readlink): Allow different errno value
17766         when readlink is called with a file name that ends in / and refers to
17767         a file.
17768         Suggested by Eric Blake.
17769         Reported by Rainer Tammer.
17770
17771 2010-07-31  Bruno Haible  <bruno@clisp.org>
17772
17773         copysign: Does not require -lm on glibc systems.
17774         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17775         gl_COMMON_DOUBLE_MATHFUNC.
17776         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17777
17778 2010-07-31  Bruno Haible  <bruno@clisp.org>
17779
17780         duplocale: Work around AIX 7.1 bug.
17781         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17782         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17783         * lib/duplocale.c (rpl_duplocale): Update comment.
17784         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17785         Reported by Rainer Tammer.
17786
17787 2010-07-30  Bruno Haible  <bruno@clisp.org>
17788
17789         dirfd: Avoid link error on AIX 7.1.
17790         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17791         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17792         exist, set REPLACE_DIRFD.
17793         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17794         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17795         * doc/posix-functions/dirfd.texi: Update.
17796         Reported by Rainer Tammer.
17797
17798 2010-07-30  Eric Blake  <eblake@redhat.com>
17799
17800         strtod: next round of AIX fixes
17801         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17802         exponent.
17803         * tests/test-strtod.c (main): Enhance tests.
17804         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17805         Reported by Rainer Tammer.
17806
17807         futimens: fix configure check
17808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17809         Reported by Bruno Haible.
17810
17811 2010-07-30  Bruno Haible  <bruno@clisp.org>
17812
17813         getline: Update regarding AIX.
17814         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17815         Reported by Rainer Tammer.
17816
17817 2010-07-30  Bruno Haible  <bruno@clisp.org>
17818
17819         wcwidth: Drop replacement on AIX 7.
17820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17821         AIX 7.
17822         Reported by Rainer Tammer.
17823
17824 2010-07-30  Bruno Haible  <bruno@clisp.org>
17825
17826         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17827         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17828         a 'char *'.
17829         Reported by Rainer Tammer.
17830
17831 2010-07-30  Bruno Haible  <bruno@clisp.org>
17832
17833         unlink: Update regarding AIX.
17834         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17835         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17836         Reported by Rainer Tammer.
17837
17838 2010-07-30  Bruno Haible  <bruno@clisp.org>
17839
17840         symlink: Update regarding AIX.
17841         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17842         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17843         Reported by Rainer Tammer.
17844
17845 2010-07-30  Bruno Haible  <bruno@clisp.org>
17846
17847         strndup: Update regarding AIX.
17848         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17849         AIX 7.
17850         Reported by Rainer Tammer.
17851
17852 2010-07-30  Bruno Haible  <bruno@clisp.org>
17853
17854         stat: Update regarding AIX.
17855         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17856         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17857         Reported by Rainer Tammer.
17858
17859 2010-07-30  Bruno Haible  <bruno@clisp.org>
17860
17861         truncl: Fix autoconf test.
17862         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17863         whether truncl works.
17864         Reported by Rainer Tammer.
17865
17866 2010-07-30  Bruno Haible  <bruno@clisp.org>
17867
17868         round: Update regarding AIX.
17869         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17870         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17871         Reported by Rainer Tammer.
17872
17873 2010-07-30  Bruno Haible  <bruno@clisp.org>
17874
17875         rename: Update regarding AIX.
17876         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17877         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17878         Reported by Rainer Tammer.
17879
17880 2010-07-30  Bruno Haible  <bruno@clisp.org>
17881
17882         printf.m4: Update regarding AIX.
17883         * m4/printf.m4: Update comments regarding AIX.
17884         Reported by Rainer Tammer.
17885
17886 2010-07-30  Bruno Haible  <bruno@clisp.org>
17887
17888         iconv: Update regarding AIX.
17889         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17890         AIX 7.
17891         Reported by Rainer Tammer.
17892
17893 2010-07-30  Bruno Haible  <bruno@clisp.org>
17894
17895         getopt: Update regarding AIX.
17896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17897         no on AIX.
17898         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17899         Reported by Rainer Tammer.
17900
17901 2010-07-30  Bruno Haible  <bruno@clisp.org>
17902
17903         ldexpl; Update regarding AIX.
17904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17905         on AIX 7.
17906         Reported by Rainer Tammer.
17907
17908 2010-07-30  Bruno Haible  <bruno@clisp.org>
17909
17910         frexpl: Update regarding AIX.
17911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17912         on AIX 7.
17913         Reported by Rainer Tammer.
17914
17915 2010-07-30  Bruno Haible  <bruno@clisp.org>
17916
17917         open, fopen: Update regarding AIX.
17918         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17919         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17920         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17921         * doc/posix-functions/fopen.texi: Likewise.
17922         Reported by Rainer Tammer.
17923
17924 2010-07-30  Bruno Haible  <bruno@clisp.org>
17925
17926         chown: Update doc regarding AIX.
17927         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17928         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17929         Reported by Rainer Tammer.
17930
17931 2010-07-30  Eric Blake  <eblake@redhat.com>
17932
17933         strtod: fix bug in replacement function on AIX
17934         * lib/strtod.c (strtod): Special case broken "0x" parse in
17935         underlying strtod.
17936         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17937         * doc/posix-functions/strtod.texi (strtod): Likewise.
17938         Reported by Rainer Tammer.
17939
17940 2010-07-30  Bruno Haible  <bruno@clisp.org>
17941
17942         mbrlen: Fix cross-compilation guess for AIX.
17943         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17944         guess. Leftover from 2008-12-22.
17945
17946 2010-07-30  Bruno Haible  <bruno@clisp.org>
17947
17948         mbrtowc: Fix cross-compilation guess for AIX.
17949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17950         guess. Leftover from 2008-12-21.
17951
17952 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17953
17954         init.sh: work around trap limitation of some shells
17955         * tests/init.sh (setup_): Move exit trap outside of shell function.
17956
17957 2010-07-29  Eric Blake  <eblake@redhat.com>
17958
17959         strtod: aid debugging
17960         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17961         understanding why strtod is rejected.
17962
17963 2010-07-28  Bruno Haible  <bruno@clisp.org>
17964
17965         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17966         * lib/unistr/u8-chr.c: Include <string.h>.
17967         * tests/unistr/test-u8-chr.c: Likewise.
17968         * tests/unistr/test-u16-chr.c: Likewise.
17969         * tests/unistr/test-u32-chr.c: Likewise.
17970         * tests/unistr/test-u8-strchr.c: Likewise.
17971         * tests/unistr/test-u16-strchr.c: Likewise.
17972         * tests/unistr/test-u32-strchr.c: Likewise.
17973         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17974         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17975         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17976         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17977
17978 2010-07-28  Bruno Haible  <bruno@clisp.org>
17979
17980         Use spaces for indentation, not tabs.
17981         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17982
17983 2010-07-27  Bruno Haible  <bruno@clisp.org>
17984
17985         mbspcasecmp: Fix function specification.
17986         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17987         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17988         Reported by Eric Blake <eblake@redhat.com>.
17989
17990 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17991
17992         timespec: use cast and not conditional, as truncation isn't possible
17993         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17994         instead of a conditional.  Comment about the situation in more detail.
17995         This undoes most of the 2009-10-29 patch.
17996
17997 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17998
17999         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18000         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18001         * lib/unistr/u8-strchr.c: Likewise.
18002         * modules/unistr/u8-chr: Depend on memchr.
18003
18004         unistr/u*-strchr: add tests
18005         * modules/unistr/u8-strchr-tests: New file.
18006         * modules/unistr/u16-strchr-tests: New file.
18007         * modules/unistr/u32-strchr-tests: New file.
18008         * tests/unistr/test-strchr.h: New file.
18009         * tests/unistr/test-u8-strchr.c: New file.
18010         * tests/unistr/test-u16-strchr.c: New file.
18011         * tests/unistr/test-u32-strchr.c: New file.
18012
18013         unistr/u*-chr: test multibyte sequences more
18014         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18015         test vector.
18016         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18017         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18018         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18019
18020         unistr/u*-chr: test multibyte sequences
18021         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18022
18023         unistr/u*-chr: prepare for multibyte tests
18024         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18025         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18026         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18027         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18028         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18029         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18030
18031 2010-07-18  Bruno Haible  <bruno@clisp.org>
18032
18033         unistr/u8-strchr: Optimize non-ASCII argument case.
18034         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18035         because the first byte often matches anyway.
18036         Reported by Pádraig Brady <P@draigbrady.com>.
18037
18038 2010-07-15  Karl Berry  <karl@gnu.org>
18039
18040         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18041
18042 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18043
18044         getcwd: on Solaris, work better if ancestors are inaccessible
18045         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18046         buffer and size, try again with a large buffer.  This works better
18047         on Solaris, since its getcwd succeeds even if the path to the root
18048         is inaccessible, and this is helpful in common cases such as .zfs
18049         hidden directories.  Problem reported by J Chapman Flack in
18050         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18051         Use system getcwd if it's declared, not merely if it's partly
18052         working; use the partly-working test only to avoid needless effort
18053         if the system getcwd fails.
18054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18055         comment that was already obsolete and is now even more obsolete.
18056         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18057         now might call strdup.
18058
18059 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18060
18061         pthread: Add enough so that coreutils/src/sort.c compiles.
18062         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18063         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18064         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18065         Include <sys/types.h>, in case it defines pthread_t.
18066         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18067         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18068         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18069         (pthread_rwlockattr_t, pthread_spinlock_t):
18070         New typedefs, if HAVE_PTHREAD_T is not defined.
18071         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18072         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18073         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18074         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18075         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18076         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18077         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18078         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18079         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18080         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18081         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18082         New macros.
18083         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18084         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18085         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18086         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18087         (pthread_spin_unlock): New dummy functions.
18088         (pthread_create): Return EAGAIN; don't set errno.
18089         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18090         require AC_C_INLINE.
18091         * modules/pthread (Depends-on): Add sched, time.
18092         (pthread.h): Use AM_V_GEN.
18093
18094 2010-07-13  Bruno Haible  <bruno@clisp.org>
18095
18096         striconveh: Don't malloc memory if the result buffer is sufficient.
18097         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18098         buffer if its size is sufficient.
18099         Reported by Ludovic Courtès <ludo@gnu.org>.
18100
18101 2010-07-13  Bruno Haible  <bruno@clisp.org>
18102
18103         strtod: Add safety check.
18104         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18105
18106 2010-07-12  Bruno Haible  <bruno@clisp.org>
18107
18108         Unify tests that set gl_cv_func_ldexpl_no_libm.
18109         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18110         gl_FUNC_LDEXPL.
18111         (gl_FUNC_LDEXPL): Invoke it.
18112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18113
18114 2010-07-12  Bruno Haible  <bruno@clisp.org>
18115
18116         Unify tests that set gl_cv_func_ldexp_no_libm.
18117         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18118         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18119         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18120         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18121         * modules/strtod (Files): Add m4/ldexp.m4.
18122
18123 2010-07-12  Bruno Haible  <bruno@clisp.org>
18124
18125         Unify tests that set gl_cv_func_frexpl_no_libm.
18126         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18127         gl_FUNC_FREXPL_NO_LIBM.
18128         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18130
18131 2010-07-12  Bruno Haible  <bruno@clisp.org>
18132
18133         Unify tests that set gl_cv_func_frexp_no_libm.
18134         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18135         gl_FUNC_FREXP_NO_LIBM.
18136         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18137         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18138
18139 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18140
18141         memcoll: clarify sizes versus lengths, document better, and tweak perf
18142         * lib/memcoll.c (strcoll_loop, memcoll0):
18143         Improve quality of descriptive comments.  Name variables
18144         consistently as to whether they are lengths (which do not include
18145         terminating null) versus sizes (which do).
18146         * lib/xmemcoll.c (xmemcoll0): Likewise.
18147         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18148         returned when s1size == 0; this is easier to compile and saves
18149         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18150
18151 2010-07-12  Bruno Haible  <bruno@clisp.org>
18152
18153         Tests for module '_Exit'.
18154         * modules/_Exit-tests: New file.
18155         * tests/test-_Exit.sh: New file.
18156         * tests/test-_Exit.c: New file.
18157
18158         New module '_Exit'.
18159         * lib/stdlib.in.h (__attribute__): New macro.
18160         (_Exit): New declaration.
18161         * lib/_Exit.c: New file.
18162         * m4/_Exit.m4: New file.
18163         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18164         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18165         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18166         * modules/_Exit: New file.
18167         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18168         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18169
18170 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18171
18172         strtod: make it more-accurate typically, and don't require libm
18173         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18174         Include limits.h.  Don't include string.h.
18175         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18176         (locale_isspace): New function, so that no casts are needed to
18177         check whether *s is a space.
18178         (ldexp): Provide an unused dummy if not available.
18179         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18180         (strtod): Use them.  This implementation prefers to use the
18181         underlying strtod if available, falling back on our own code
18182         only to fix known bugs.  This is more likely to produce an
18183         accurate result.  Also, it avoids the use of libm functions.
18184         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18185         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18186         was absent, but it caused a test failure with coreutils.
18187         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18188         with libm.
18189         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18190         * modules/strtod-tests (Makefile.am): Likewise.
18191
18192 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18193             Bruno Haible  <bruno@clisp.org>
18194
18195         unistr/u8-strchr: Optimize ASCII argument case.
18196         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18197
18198 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18199
18200         (x)memcoll: minor tweaks
18201         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18202         is after the type that it qualifies.
18203         (memcoll0): Likewise.
18204         * lib/memcoll.h (memcoll0): Likewise.
18205         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18206         * lib/xmemcoll.h (xmemcoll0): Likewise.
18207         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18208         differs from memcoll in that the NUL byte is part of the argument.
18209         Omit the abort-checks, as performance is a real issue here.  Plus,
18210         the checks were wrong anyway (an off-by-one error).  Omit local
18211         variable 'diff', as it's a bit clearer that way.
18212         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18213         no longer needed.
18214
18215 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18216
18217         (x)memcoll: speedup when input is known to be NUL delimited
18218         * lib/memcoll.c: Include stdlib.
18219         (memcoll0): New function.
18220         (strcoll_loop): New function, refactored for use in both memcoll
18221         and memcoll0.
18222         * lib/memcoll.h (memcoll0): Add prototype.
18223         * lib/xmemcoll.c (xmemcoll0): New function.
18224         (collate_error): New function, refactored for use in both xmemcoll
18225         and xmemcoll0.
18226         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18227         * m4/memcoll.m4: add inline invocation.
18228
18229 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18230
18231         * build-aux/bootstrap: Remove any local translations
18232         from the translation project synchronization directory,
18233         so that local only translations are not distributed.
18234
18235 2010-07-04  Bruno Haible  <bruno@clisp.org>
18236
18237         fsusage: Clarify which code applies to which platforms.
18238         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18239         platform.
18240         * lib/fsusage.c (get_fs_usage): Likewise.
18241
18242 2010-07-04  Bruno Haible  <bruno@clisp.org>
18243
18244         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18245         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18246         Reported by Martin Lambers <marlam@marlam.de>.
18247
18248 2010-07-04  Jim Meyering  <meyering@redhat.com>
18249
18250         hash: once again explicitly disallow insertion of NULL
18251         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18252         inserting a NULL pointer cannot work with these functions.
18253         Add a comment with details.
18254         This reverts part of the 2010-07-01 commit, 5bef1a35
18255         "hash: extend module to deal with non-pointer keys".
18256
18257 2010-07-01  Bruno Haible  <bruno@clisp.org>
18258
18259         stdbool: Update doc.
18260         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18261         Info from Christian Weisgerber <naddy@mips.inka.de>.
18262
18263 2010-07-01  Jim Meyering  <meyering@redhat.com>
18264
18265         hash: extend module to deal with non-pointer keys
18266         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18267         but that allows insertion of non-pointer entries.
18268         Do not disallow an ENTRY value of NULL.
18269         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18270         * lib/hash.h (hash_insert0): Declare.
18271
18272 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18273
18274         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18275         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18276         not present (i.e. with autoconf 2.59 and when using gettextize, not
18277         gnulib), require AC_GNU_SOURCE instead.
18278
18279 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18280
18281         idpriv-drop: Fix tests.
18282         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18283         not to the test-idpriv-droptemp program.
18284
18285 2010-06-29  Bruno Haible  <bruno@clisp.org>
18286
18287         string: Fix syntax error with g++ 2.96.
18288         * lib/string.in.h (__pure__): Remove definition.
18289         (_GL_ATTRIBUTE_PURE): New macro.
18290         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18291         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18292         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18293
18294 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18295
18296         unitypes: Fix bug introduced on 2010-05-18.
18297         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18298
18299 2010-06-22  Eric Blake  <eblake@redhat.com>
18300
18301         memmem: slight optimization
18302         * lib/str-two-way.h (critical_factorization): Update comments.
18303         Reduce work during factorization phase.
18304         Reported by Carlos Bueno <carlos@bueno.org>.
18305
18306 2010-06-21  Bruno Haible  <bruno@clisp.org>
18307
18308         Fix HAVE_CALLOC_POSIX misnomer.
18309         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18310         !HAVE_CALLOC_POSIX.
18311         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18312         HAVE_CALLOC_POSIX.
18313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18314         instead of HAVE_CALLOC_POSIX.
18315         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18316         HAVE_CALLOC_POSIX.
18317
18318         Use modern idiom for calloc() replacement.
18319         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18320         AC_FUNC_CALLOC.
18321         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18322         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18323         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18324         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18325         (gl_REPLACE_CALLOC): New macro.
18326
18327 2010-06-21  Bruno Haible  <bruno@clisp.org>
18328
18329         Fix HAVE_REALLOC_POSIX misnomer.
18330         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18331         !HAVE_REALLOC_POSIX.
18332         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18333         HAVE_REALLOC_POSIX.
18334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18335         instead of HAVE_REALLOC_POSIX.
18336         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18337         HAVE_REALLOC_POSIX.
18338
18339         Use modern idiom for realloc() replacement.
18340         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18341         AC_FUNC_REALLOC.
18342         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18343         Autoconf's AC_FUNC_REALLOC.
18344         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18345         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18346         (gl_REPLACE_REALLOC): New macro.
18347         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18348
18349 2010-06-21  Bruno Haible  <bruno@clisp.org>
18350
18351         Fix HAVE_MALLOC_POSIX misnomer.
18352         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18353         !HAVE_MALLOC_POSIX.
18354         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18355         HAVE_MALLOC_POSIX.
18356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18357         instead of HAVE_MALLOC_POSIX.
18358         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18359         HAVE_MALLOC_POSIX.
18360
18361         Use modern idiom for malloc() replacement.
18362         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18363         AC_FUNC_MALLOC.
18364         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18365         Autoconf's AC_FUNC_MALLOC.
18366         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18367         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18368         (gl_REPLACE_MALLOC): New macro.
18369         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18370
18371 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18372
18373         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18374         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18375         This macro takes 3 arguments, not 4.
18376
18377 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18378
18379         ipv6: fix detection under mingw
18380         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18381         in6_addr.
18382
18383 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18384
18385         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18386         that strtod() works when cross-compiling to a glibc version known
18387         to work.
18388
18389 2010-06-15  Bruno Haible  <bruno@clisp.org>
18390
18391         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18392
18393 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18394
18395         select: Correct timeout.
18396         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18397
18398 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18399
18400         git-version-gen: init shell var to avoid env var influence
18401         * build-aux/git-version-gen (v): Init shell var to empty.
18402
18403 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18404
18405         priv-set: Don't assume that priv.h exists merely because getppriv does.
18406         See Jan Andersen's bug report about AIX 5L in
18407         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18408         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18409         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18410         * lib/priv-set.h: Likewise.
18411         * tests/test-priv-set.c: Likewise.
18412
18413 2010-06-13  Bruno Haible  <bruno@clisp.org>
18414
18415         relocatable: Make it easier to test whether to install wrappers.
18416         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18417         RELOCATABLE_VIA_WRAPPER.
18418
18419 2010-06-13  Bruno Haible  <bruno@clisp.org>
18420
18421         gnulib-tool: Display specified modules and dependencies differently.
18422         * gnulib-tool (func_show_module_list): New function.
18423         (func_import, func_create_testdir): Invoke it.
18424         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18425
18426 2010-06-13  Bruno Haible  <bruno@clisp.org>
18427
18428         gnulib-tool: Align code of func_import and func_create_testdir.
18429         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18430         specified_modules.
18431
18432 2010-06-12  Jim Meyering  <meyering@redhat.com>
18433
18434         test-inttostr: avoid spurious failure on Solaris 9
18435         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18436         to accept "%ju".  Reported by Bruno Haible.
18437
18438 2010-06-11  Jim Meyering  <meyering@redhat.com>
18439
18440         test-sys_socket: mark variables as used more readably
18441         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18442         as "used" explicitly via (void) statement casts.  This is more
18443         readable than using them in an artificial return expression.
18444         Suggestion from Bruno Haible.
18445
18446 2010-06-11  Bruno Haible  <bruno@clisp.org>
18447
18448         Avoid some more warnings from "gcc -Wwrite-strings".
18449         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18450         to 'const char *'.
18451         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18452         * tests/test-c-strcasestr.c (main): Likewise.
18453         * tests/test-mbscasestr1.c (main): Likewise.
18454         * tests/test-mbscasestr2.c (main): Likewise.
18455         * tests/test-memmem.c (main): Likewise.
18456         * tests/test-strstr.c (main): Likewise.
18457         * tests/test-strcasestr.c (main): Likewise.
18458
18459 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18460
18461         init.sh: change framework_failure_ to fail with status 99, not 1
18462         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18463         automake's parallel-tests rule that this is an unexpected failure,
18464         even if the test is listed in XFAIL_TESTS.
18465
18466 2010-06-11  Jim Meyering  <meyering@redhat.com>
18467
18468         test-inttostr: avoid warnings about 4-6KB literal strings
18469         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18470         Include "macros.h", for its definition of ASSERT.
18471         (CK): s/assert/ASSERT/
18472         * modules/inttostr-tests (Files): Add macros.h.
18473
18474         init.sh: don't use $ME_ or skip_ before they are defined
18475         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18476         their first uses.  Also hoist their companions: warn_, fail_,
18477         framework_failure_, $stderr_fileno.  Prompted by a patch from
18478         Stefano Lattarini.
18479
18480         test-sys_socket: avoid set-but-not-used warnings from gcc
18481         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18482         avoid warning about set-but-not-used variables.
18483
18484         test-xvasprintf: avoid 'const' discard warnings
18485         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18486         "const" when assigning from literal strings.
18487         (test_xasprintf): Add "void" in function argument list to placate
18488         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18489
18490         tests: avoid compilation warnings in argmatch and exclude tests...
18491         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18492         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18493         Since it always exits, declare with the "noreturn" attribute.
18494         * tests/test-argmatch.c: Likewise.
18495
18496         tests: avoid 'const' discard warnings in mbsstr tests
18497         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18498         * tests/test-mbsstr2.c (main): Likewise.
18499
18500         test-verify: avoid warning from gcc's -Wmissing-declarations
18501         * tests/test-verify.c (function): Declare to be static.
18502
18503         test-inttostr.c: include <string.h> for use of strcmp
18504         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18505
18506         test-linkat: avoid failed assertion on "other" architectures
18507         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18508         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18509         sparc: https://bugs.launchpad.net/bugs/591968
18510
18511 2010-06-11  Jim Meyering  <meyering@redhat.com>
18512
18513         printf.m4: avoid autoconf's "Expanded Before Required" warning
18514         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18515         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18516         autoconf warning.
18517
18518 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18519
18520         Replacement header templates are now named with ".in", not "_".
18521         * doc/gnulib-intro.texi: Correct.
18522
18523 2010-06-10  Jim Meyering  <meyering@redhat.com>
18524
18525         inttostr-tests: depend on snprintf, not snprintf-posix
18526         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18527         snprintf-posix, to avoid this aclocal failure:
18528           missing file gnulib-tests/vasnprintf.c
18529           configure.ac:45: error: expected source file, required through \
18530           AC_LIBSOURCES, not found
18531
18532 2010-06-10  Jim Meyering  <meyering@redhat.com>
18533
18534         inttostr: add a new function, inttostr, and tests
18535         The namesake function was not available.  The existence of the
18536         template file, inttostr.c makes its addition nontrivial.
18537         * lib/anytostr.c: Rename from inttostr.c.
18538         (anytostr): Rename from inttostr.
18539         * lib/inttostr.c: New file.
18540         * modules/inttostr (Files): Add anytostr.c.
18541         (Makefile.am): Set lib_SOURCES instead of ...
18542         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18543         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18544         * lib/offtostr.c: Likewise.
18545         * lib/uinttostr.c: Likewise.
18546         * lib/umaxtostr.c: Likewise.
18547         * modules/inttostr-tests: New file.
18548         * tests/test-inttostr.c: New file.  Test these functions.
18549
18550 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18551             Bruno Haible  <bruno@clisp.org>
18552
18553         Add "Extending Gnulib" chapter to manual.
18554         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18555         chapter.
18556         (Extending Gnulib): New chapter.
18557         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18558         chapter.
18559
18560 2010-06-09  Bruno Haible  <bruno@clisp.org>
18561
18562         Avoid relocwrapper link errors due to gnulib replacement functions.
18563         * lib/areadlink.c: Use the system's malloc, realloc functions.
18564         (areadlink): Set errno to ENOMEM explicitly.
18565         * modules/areadlink (Depends-on): Remove malloc-posix.
18566         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18567
18568 2010-06-09  Bruno Haible  <bruno@clisp.org>
18569
18570         Avoid relocwrapper link errors due to gnulib replacement functions.
18571         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18572         * lib/malloca.c: Likewise.
18573         * lib/relocatable.c: Likewise.
18574         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18575         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18576         * lib/setenv.c: Use the system's malloc, realloc functions.
18577         * lib/strerror.c: Use the system's sprintf function.
18578         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18579
18580 2010-06-04  Bruno Haible  <bruno@clisp.org>
18581
18582         Prefer documented low-level autoconf macro names.
18583         * m4/lib-link.m4: Use m4_translit instead of translit.
18584         * m4/environ.m4: Likewise.
18585         * m4/mathfunc.m4: Likewise.
18586         * m4/onceonly.m4: Likewise.
18587         * m4/stdint.m4: Likewise.
18588         Suggested by Eric Blake.
18589
18590 2010-06-04  Martin Lambers  <marlam@marlam.de>
18591             Bruno Haible  <bruno@clisp.org>
18592
18593         havelib: Allow library names with '+' characters.
18594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18595         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18596
18597 2010-06-09  Bruno Haible  <bruno@clisp.org>
18598
18599         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18600         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18601         realloc failed.
18602
18603 2010-06-08  Peter Simons  <simons@cryp.to>
18604
18605         maint.mk: make the news-check rule more configurable
18606         * top/maint.mk (news-check-lines-spec): New variable.
18607         (news-check): Use "sed -n 1,10p" in place of "head".
18608
18609 2010-06-07  Jim Meyering  <meyering@redhat.com>
18610
18611         do-release-commit-and-tag: fix typo in --help
18612         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18613
18614         regex: avoid new dead-code warning with gcc-4.6.0
18615         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18616         if-block containing a while-loop.  It's been unused for at least
18617         5 years.
18618
18619 2010-06-05  Bruno Haible  <bruno@clisp.org>
18620
18621         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18622         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18623
18624 2010-06-04  Bruno Haible  <bruno@clisp.org>
18625
18626         Update to GNU gettext 0.18.1.
18627         * modules/gettext (configure.ac): Require gettext infrastructure from
18628         version 0.18.1.
18629
18630 2010-06-03  Bruno Haible  <bruno@clisp.org>
18631
18632         Don't use AC_LIBOBJ with file names in subdirectories.
18633         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18634         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18635         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18636         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18637         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18638         gl_LIBUNISTRING_LIBSOURCE.
18639         (Makefile.am): Augment lib_SOURCES here, conditionally.
18640         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18641
18642 2010-06-03  Bruno Haible  <bruno@clisp.org>
18643
18644         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18645         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18646         expansion does not end with a newline.
18647         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18648         unnecessary newline.
18649
18650 2010-06-03  Bruno Haible  <bruno@clisp.org>
18651
18652         Reduce dependencies.
18653         * tests/test-quotearg.h: New file, extracted from
18654         tests/test-quotearg.c.
18655         * tests/test-quotearg-simple.c: New file, extracted from
18656         tests/test-quotearg.c.
18657         * tests/test-quotearg.c: Don't include <ctype.h>.
18658         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18659         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18660         use_quote_double_quotes, use_quotearg_colon): Moved to
18661         tests/test-quotearg.h.
18662         (results_g, flag_results, custom_quotes, custom_results): Moved
18663         to tests/test-quotearg-simple.c.
18664         (main): Moved the part that does not depend on gettext to
18665         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18666         performed.
18667         * modules/quotearg-simple: New file.
18668         * modules/quotearg-simple-tests: New file.
18669         * modules/quotearg (Depends-on): Add quotearg-simple.
18670         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18671         (Files): Add tests/test-quotearg.h.
18672         Reported by Paolo Bonzini.
18673
18674 2010-06-03  Bruno Haible  <bruno@clisp.org>
18675
18676         Reduce dependencies.
18677         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18678
18679 2010-06-03  Bruno Haible  <bruno@clisp.org>
18680
18681         time: Undefine more broken macros.
18682         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18683         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18684         Reported by Eric Blake.
18685
18686 2010-06-03  Bruno Haible  <bruno@clisp.org>
18687
18688         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18689         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18690         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18691         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18692         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18693         Reported by Ludovic Courtès <ludo@gnu.org>.
18694
18695 2010-06-02  Eric Blake  <eblake@redhat.com>
18696
18697         time: work with mingw + pthreads-win32 library
18698         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18699         if timespec is defined only in pthread.h.
18700         * modules/time (Makefile.am): Substitute it.
18701         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18702         <pthread.h>, when needed.
18703         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18704         from the library.
18705
18706 2010-05-31  Bruno Haible  <bruno@clisp.org>
18707
18708         Avoid expanding two macros in the wrong order.
18709         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18710         gl_LIBUNISTRING if it is defined.
18711         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18712         autoconf >= 2.64.
18713         Reported by Ludovic Courtès <ludo@gnu.org>.
18714
18715 2010-05-27  Jim Meyering  <meyering@redhat.com>
18716
18717         maint.mk: also prohibit "#undef" of always-defined symbols
18718         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18719         Allow more than one space before the symbol name.
18720         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18721         the regexp uses alternation.
18722
18723 2010-05-26  Eric Blake  <eblake@redhat.com>
18724
18725         maint.mk: avoid echo -e
18726         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18727         Convert all uses of echo -* to printf.
18728         Reported by Matthias Bolte.
18729
18730 2010-05-25  Bruno Haible  <bruno@clisp.org>
18731
18732         Update to GNU gettext 0.18, part 2.
18733         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18734         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18735
18736 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18737
18738         Add missing include in test-pwrite.c.
18739         * tests/test-pwrite.c: Include string.h, for strcmp.
18740
18741 2010-05-24  Bruno Haible  <bruno@clisp.org>
18742
18743         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18744
18745 2010-05-24  Bruno Haible  <bruno@clisp.org>
18746
18747         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18748         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18749         iconveh_error argument.
18750         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18751         U_STRCONV_TO_LOCALE.
18752         * lib/unistr/u16-strcoll.c: Likewise.
18753         * lib/unistr/u32-strcoll.c: Likewise.
18754         * modules/unistr/u8-strcoll (Depends-on): Add
18755         uniconv/u8-strconv-to-enc, localcharset. Remove
18756         uniconv/u8-strconv-to-locale.
18757         (configure.ac): Bump version number.
18758         * modules/unistr/u16-strcoll (Depends-on): Add
18759         uniconv/u16-strconv-to-enc, localcharset. Remove
18760         uniconv/u16-strconv-to-locale.
18761         (configure.ac): Bump version number.
18762         * modules/unistr/u32-strcoll (Depends-on): Add
18763         uniconv/u32-strconv-to-enc, localcharset. Remove
18764         uniconv/u32-strconv-to-locale.
18765         (configure.ac): Bump version number.
18766
18767 2010-05-24  Bruno Haible  <bruno@clisp.org>
18768
18769         Avoid a test failure on NetBSD 5.0.
18770         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18771         an iconv() bug.
18772
18773 2010-05-24  Bruno Haible  <bruno@clisp.org>
18774
18775         Adjust #include directive style.
18776         * modules/regex (Includes): Recommend to write <regex.h>.
18777
18778 2010-05-24  Bruno Haible  <bruno@clisp.org>
18779
18780         regex: Don't require alloca.
18781         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18782         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18783         only inside if (0).
18784
18785 2010-05-23  Jim Meyering  <meyering@redhat.com>
18786
18787         test-renameat.c: include <sys/stat.h>
18788         * tests/test-renameat.c: Include <sys/stat.h>; required for
18789         definition of S_IS* macros.
18790
18791 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18792
18793         Update maintainer documentation for 'relocatable-prog' module.
18794         * doc/relocatable-maint.texi: Update.
18795         Comments by Bruno Haible.
18796
18797 2010-05-23  Bruno Haible  <bruno@clisp.org>
18798
18799         git-merge-changelog: Enable --split-merged-entry by default.
18800         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18801         (usage): Don't mention this option any more.
18802         Reported by Ralf Wildenhues.
18803
18804 2010-05-23  Jim Meyering  <meyering@redhat.com>
18805
18806         test-pwrite: do not leave behind a test file named "out"
18807         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18808         The trivial-looking use of init.sh is really necessary.
18809         It ensures that the temporary file, "out", is created in
18810         a temporary directory, and removed upon termination.
18811         * tests/test-pwrite.sh: Re-add file.
18812         * modules/pwrite-tests: Reference it.
18813
18814 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815
18816         Fix output redirection buglet in init.sh.
18817         * tests/init.sh: Fix redirection of stderr.
18818
18819 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18820
18821         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18822
18823 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18824
18825         * modules/valgrind-tests: New file.
18826         * m4/valgrind-tests.m4: New file.
18827         * doc/valgrind-tests.texi: New file.
18828         * doc/gnulib.texi (Running self-tests under valgrind): New
18829         section.
18830
18831 2010-05-19  Bruno Haible  <bruno@clisp.org>
18832
18833         Clean up dead code in recent commit.
18834         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18835         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18836         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18837         Suggested by Paolo Bonzini.
18838
18839 2010-05-19  Bruno Haible  <bruno@clisp.org>
18840
18841         Avoid valgrind error reports from libunistring.
18842         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18843         * modules/libunistring (Files): Add it.
18844         * modules/libunistring-optional (Files): Likewise.
18845
18846 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18847             Bruno Haible  <bruno@clisp.org>
18848
18849         New module 'libunistring-optional'.
18850         * modules/libunistring-optional: New file.
18851         * m4/libunistring-base.m4: New file.
18852         * m4/libunistring-optional.m4: New file.
18853         * lib/unicase.in.h: Renamed from lib/unicase.h.
18854         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18855         * lib/unictype.in.h: Renamed from lib/unictype.h.
18856         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18857         * lib/uniname.in.h: Renamed from lib/uniname.h.
18858         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18859         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18860         * lib/unistr.in.h: Renamed from lib/unistr.h.
18861         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18862         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18863         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18864         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18865         gl_LIBUNISTRING. If the library was found, determine the installed
18866         version and set LIBUNISTRING_VERSION.
18867         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18868         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18869         handle a configuration option --with-included-libunistring.
18870         * modules/libunistring (Files): Add m4/absolute-header.m4.
18871         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18872         Add m4/libunistring-base.m4.
18873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18874         (Makefile.am): Build unicase.h from unicase.in.h.
18875         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18876         Add m4/libunistring-base.m4.
18877         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18878         (Makefile.am): Build uniconv.h from uniconv.in.h.
18879         * modules/unictype/base (Files): Use unictype.in.h instead of
18880         unictype.h. Add m4/libunistring-base.m4.
18881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18882         (Makefile.am): Build unictype.h from unictype.in.h.
18883         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18884         Add m4/libunistring-base.m4.
18885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18886         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18887         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18888         Add m4/libunistring-base.m4.
18889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18890         (Makefile.am): Build uniname.h from uniname.in.h.
18891         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18892         Add m4/libunistring-base.m4.
18893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18894         (Makefile.am): Build uninorm.h from uninorm.in.h.
18895         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18896         unistdio.h. Add m4/libunistring-base.m4.
18897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18898         (Makefile.am): Build unistdio.h from unistdio.in.h.
18899         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18900         Add m4/libunistring-base.m4.
18901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18902         (Makefile.am): Build unistr.h from unistr.in.h.
18903         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18904         Add m4/libunistring-base.m4.
18905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18906         (Makefile.am): Build unitypes.h from unitypes.in.h.
18907         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18908         Add m4/libunistring-base.m4.
18909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18910         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18911         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18912         uniwidth.h. Add m4/libunistring-base.m4.
18913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18914         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18915         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18916         instead of augmenting lib_SOURCES.
18917         * modules/unicase/empty-suffix-context: Likewise.
18918         * modules/unicase/locale-language: Likewise.
18919         * modules/unicase/tolower: Likewise.
18920         * modules/unicase/totitle: Likewise.
18921         * modules/unicase/toupper: Likewise.
18922         * modules/unicase/u8-casecmp: Likewise.
18923         * modules/unicase/u8-casecoll: Likewise.
18924         * modules/unicase/u8-casefold: Likewise.
18925         * modules/unicase/u8-casexfrm: Likewise.
18926         * modules/unicase/u8-ct-casefold: Likewise.
18927         * modules/unicase/u8-ct-tolower: Likewise.
18928         * modules/unicase/u8-ct-totitle: Likewise.
18929         * modules/unicase/u8-ct-toupper: Likewise.
18930         * modules/unicase/u8-is-cased: Likewise.
18931         * modules/unicase/u8-is-casefolded: Likewise.
18932         * modules/unicase/u8-is-lowercase: Likewise.
18933         * modules/unicase/u8-is-titlecase: Likewise.
18934         * modules/unicase/u8-is-uppercase: Likewise.
18935         * modules/unicase/u8-prefix-context: Likewise.
18936         * modules/unicase/u8-suffix-context: Likewise.
18937         * modules/unicase/u8-tolower: Likewise.
18938         * modules/unicase/u8-totitle: Likewise.
18939         * modules/unicase/u8-toupper: Likewise.
18940         * modules/unicase/u16-casecmp: Likewise.
18941         * modules/unicase/u16-casecoll: Likewise.
18942         * modules/unicase/u16-casefold: Likewise.
18943         * modules/unicase/u16-casexfrm: Likewise.
18944         * modules/unicase/u16-ct-casefold: Likewise.
18945         * modules/unicase/u16-ct-tolower: Likewise.
18946         * modules/unicase/u16-ct-totitle: Likewise.
18947         * modules/unicase/u16-ct-toupper: Likewise.
18948         * modules/unicase/u16-is-cased: Likewise.
18949         * modules/unicase/u16-is-casefolded: Likewise.
18950         * modules/unicase/u16-is-lowercase: Likewise.
18951         * modules/unicase/u16-is-titlecase: Likewise.
18952         * modules/unicase/u16-is-uppercase: Likewise.
18953         * modules/unicase/u16-prefix-context: Likewise.
18954         * modules/unicase/u16-suffix-context: Likewise.
18955         * modules/unicase/u16-tolower: Likewise.
18956         * modules/unicase/u16-totitle: Likewise.
18957         * modules/unicase/u16-toupper: Likewise.
18958         * modules/unicase/u32-casecmp: Likewise.
18959         * modules/unicase/u32-casecoll: Likewise.
18960         * modules/unicase/u32-casefold: Likewise.
18961         * modules/unicase/u32-casexfrm: Likewise.
18962         * modules/unicase/u32-ct-casefold: Likewise.
18963         * modules/unicase/u32-ct-tolower: Likewise.
18964         * modules/unicase/u32-ct-totitle: Likewise.
18965         * modules/unicase/u32-ct-toupper: Likewise.
18966         * modules/unicase/u32-is-cased: Likewise.
18967         * modules/unicase/u32-is-casefolded: Likewise.
18968         * modules/unicase/u32-is-lowercase: Likewise.
18969         * modules/unicase/u32-is-titlecase: Likewise.
18970         * modules/unicase/u32-is-uppercase: Likewise.
18971         * modules/unicase/u32-prefix-context: Likewise.
18972         * modules/unicase/u32-suffix-context: Likewise.
18973         * modules/unicase/u32-tolower: Likewise.
18974         * modules/unicase/u32-totitle: Likewise.
18975         * modules/unicase/u32-toupper: Likewise.
18976         * modules/unicase/ulc-casecmp: Likewise.
18977         * modules/unicase/ulc-casecoll: Likewise.
18978         * modules/unicase/ulc-casexfrm: Likewise.
18979         * modules/uniconv/u8-conv-from-enc: Likewise.
18980         * modules/uniconv/u8-conv-to-enc: Likewise.
18981         * modules/uniconv/u8-strconv-from-enc: Likewise.
18982         * modules/uniconv/u8-strconv-from-locale: Likewise.
18983         * modules/uniconv/u8-strconv-to-enc: Likewise.
18984         * modules/uniconv/u8-strconv-to-locale: Likewise.
18985         * modules/uniconv/u16-conv-from-enc: Likewise.
18986         * modules/uniconv/u16-conv-to-enc: Likewise.
18987         * modules/uniconv/u16-strconv-from-enc: Likewise.
18988         * modules/uniconv/u16-strconv-from-locale: Likewise.
18989         * modules/uniconv/u16-strconv-to-enc: Likewise.
18990         * modules/uniconv/u16-strconv-to-locale: Likewise.
18991         * modules/uniconv/u32-conv-from-enc: Likewise.
18992         * modules/uniconv/u32-conv-to-enc: Likewise.
18993         * modules/uniconv/u32-strconv-from-enc: Likewise.
18994         * modules/uniconv/u32-strconv-from-locale: Likewise.
18995         * modules/uniconv/u32-strconv-to-enc: Likewise.
18996         * modules/uniconv/u32-strconv-to-locale: Likewise.
18997         * modules/unictype/bidicategory-byname: Likewise.
18998         * modules/unictype/bidicategory-name: Likewise.
18999         * modules/unictype/bidicategory-of: Likewise.
19000         * modules/unictype/bidicategory-test: Likewise.
19001         * modules/unictype/block-list: Likewise.
19002         * modules/unictype/block-test: Likewise.
19003         * modules/unictype/category-C: Likewise.
19004         * modules/unictype/category-Cc: Likewise.
19005         * modules/unictype/category-Cf: Likewise.
19006         * modules/unictype/category-Cn: Likewise.
19007         * modules/unictype/category-Co: Likewise.
19008         * modules/unictype/category-Cs: Likewise.
19009         * modules/unictype/category-L: Likewise.
19010         * modules/unictype/category-Ll: Likewise.
19011         * modules/unictype/category-Lm: Likewise.
19012         * modules/unictype/category-Lo: Likewise.
19013         * modules/unictype/category-Lt: Likewise.
19014         * modules/unictype/category-Lu: Likewise.
19015         * modules/unictype/category-M: Likewise.
19016         * modules/unictype/category-Mc: Likewise.
19017         * modules/unictype/category-Me: Likewise.
19018         * modules/unictype/category-Mn: Likewise.
19019         * modules/unictype/category-N: Likewise.
19020         * modules/unictype/category-Nd: Likewise.
19021         * modules/unictype/category-Nl: Likewise.
19022         * modules/unictype/category-No: Likewise.
19023         * modules/unictype/category-P: Likewise.
19024         * modules/unictype/category-Pc: Likewise.
19025         * modules/unictype/category-Pd: Likewise.
19026         * modules/unictype/category-Pe: Likewise.
19027         * modules/unictype/category-Pf: Likewise.
19028         * modules/unictype/category-Pi: Likewise.
19029         * modules/unictype/category-Po: Likewise.
19030         * modules/unictype/category-Ps: Likewise.
19031         * modules/unictype/category-S: Likewise.
19032         * modules/unictype/category-Sc: Likewise.
19033         * modules/unictype/category-Sk: Likewise.
19034         * modules/unictype/category-Sm: Likewise.
19035         * modules/unictype/category-So: Likewise.
19036         * modules/unictype/category-Z: Likewise.
19037         * modules/unictype/category-Zl: Likewise.
19038         * modules/unictype/category-Zp: Likewise.
19039         * modules/unictype/category-Zs: Likewise.
19040         * modules/unictype/category-and: Likewise.
19041         * modules/unictype/category-and-not: Likewise.
19042         * modules/unictype/category-byname: Likewise.
19043         * modules/unictype/category-name: Likewise.
19044         * modules/unictype/category-none: Likewise.
19045         * modules/unictype/category-of: Likewise.
19046         * modules/unictype/category-or: Likewise.
19047         * modules/unictype/category-test: Likewise.
19048         * modules/unictype/combining-class: Likewise.
19049         * modules/unictype/ctype-alnum: Likewise.
19050         * modules/unictype/ctype-alpha: Likewise.
19051         * modules/unictype/ctype-blank: Likewise.
19052         * modules/unictype/ctype-cntrl: Likewise.
19053         * modules/unictype/ctype-digit: Likewise.
19054         * modules/unictype/ctype-graph: Likewise.
19055         * modules/unictype/ctype-lower: Likewise.
19056         * modules/unictype/ctype-print: Likewise.
19057         * modules/unictype/ctype-punct: Likewise.
19058         * modules/unictype/ctype-space: Likewise.
19059         * modules/unictype/ctype-upper: Likewise.
19060         * modules/unictype/ctype-xdigit: Likewise.
19061         * modules/unictype/decimal-digit: Likewise.
19062         * modules/unictype/digit: Likewise.
19063         * modules/unictype/mirror: Likewise.
19064         * modules/unictype/numeric: Likewise.
19065         * modules/unictype/property-alphabetic: Likewise.
19066         * modules/unictype/property-ascii-hex-digit: Likewise.
19067         * modules/unictype/property-bidi-arabic-digit: Likewise.
19068         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19069         * modules/unictype/property-bidi-block-separator: Likewise.
19070         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19071         * modules/unictype/property-bidi-common-separator: Likewise.
19072         * modules/unictype/property-bidi-control: Likewise.
19073         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19074         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19075         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19076         * modules/unictype/property-bidi-european-digit: Likewise.
19077         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19078         * modules/unictype/property-bidi-left-to-right: Likewise.
19079         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19080         * modules/unictype/property-bidi-other-neutral: Likewise.
19081         * modules/unictype/property-bidi-pdf: Likewise.
19082         * modules/unictype/property-bidi-segment-separator: Likewise.
19083         * modules/unictype/property-bidi-whitespace: Likewise.
19084         * modules/unictype/property-byname: Likewise.
19085         * modules/unictype/property-combining: Likewise.
19086         * modules/unictype/property-composite: Likewise.
19087         * modules/unictype/property-currency-symbol: Likewise.
19088         * modules/unictype/property-dash: Likewise.
19089         * modules/unictype/property-decimal-digit: Likewise.
19090         * modules/unictype/property-default-ignorable-code-point: Likewise.
19091         * modules/unictype/property-deprecated: Likewise.
19092         * modules/unictype/property-diacritic: Likewise.
19093         * modules/unictype/property-extender: Likewise.
19094         * modules/unictype/property-format-control: Likewise.
19095         * modules/unictype/property-grapheme-base: Likewise.
19096         * modules/unictype/property-grapheme-extend: Likewise.
19097         * modules/unictype/property-grapheme-link: Likewise.
19098         * modules/unictype/property-hex-digit: Likewise.
19099         * modules/unictype/property-hyphen: Likewise.
19100         * modules/unictype/property-id-continue: Likewise.
19101         * modules/unictype/property-id-start: Likewise.
19102         * modules/unictype/property-ideographic: Likewise.
19103         * modules/unictype/property-ids-binary-operator: Likewise.
19104         * modules/unictype/property-ids-trinary-operator: Likewise.
19105         * modules/unictype/property-ignorable-control: Likewise.
19106         * modules/unictype/property-iso-control: Likewise.
19107         * modules/unictype/property-join-control: Likewise.
19108         * modules/unictype/property-left-of-pair: Likewise.
19109         * modules/unictype/property-line-separator: Likewise.
19110         * modules/unictype/property-logical-order-exception: Likewise.
19111         * modules/unictype/property-lowercase: Likewise.
19112         * modules/unictype/property-math: Likewise.
19113         * modules/unictype/property-non-break: Likewise.
19114         * modules/unictype/property-not-a-character: Likewise.
19115         * modules/unictype/property-numeric: Likewise.
19116         * modules/unictype/property-other-alphabetic: Likewise.
19117         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19118         * modules/unictype/property-other-grapheme-extend: Likewise.
19119         * modules/unictype/property-other-id-continue: Likewise.
19120         * modules/unictype/property-other-id-start: Likewise.
19121         * modules/unictype/property-other-lowercase: Likewise.
19122         * modules/unictype/property-other-math: Likewise.
19123         * modules/unictype/property-other-uppercase: Likewise.
19124         * modules/unictype/property-paired-punctuation: Likewise.
19125         * modules/unictype/property-paragraph-separator: Likewise.
19126         * modules/unictype/property-pattern-syntax: Likewise.
19127         * modules/unictype/property-pattern-white-space: Likewise.
19128         * modules/unictype/property-private-use: Likewise.
19129         * modules/unictype/property-punctuation: Likewise.
19130         * modules/unictype/property-quotation-mark: Likewise.
19131         * modules/unictype/property-radical: Likewise.
19132         * modules/unictype/property-sentence-terminal: Likewise.
19133         * modules/unictype/property-soft-dotted: Likewise.
19134         * modules/unictype/property-space: Likewise.
19135         * modules/unictype/property-terminal-punctuation: Likewise.
19136         * modules/unictype/property-test: Likewise.
19137         * modules/unictype/property-titlecase: Likewise.
19138         * modules/unictype/property-unassigned-code-value: Likewise.
19139         * modules/unictype/property-unified-ideograph: Likewise.
19140         * modules/unictype/property-uppercase: Likewise.
19141         * modules/unictype/property-variation-selector: Likewise.
19142         * modules/unictype/property-white-space: Likewise.
19143         * modules/unictype/property-xid-continue: Likewise.
19144         * modules/unictype/property-xid-start: Likewise.
19145         * modules/unictype/property-zero-width: Likewise.
19146         * modules/unictype/scripts: Likewise.
19147         * modules/unictype/syntax-c-ident: Likewise.
19148         * modules/unictype/syntax-c-whitespace: Likewise.
19149         * modules/unictype/syntax-java-ident: Likewise.
19150         * modules/unictype/syntax-java-whitespace: Likewise.
19151         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19152         * modules/unilbrk/u8-width-linebreaks: Likewise.
19153         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19154         * modules/unilbrk/u16-width-linebreaks: Likewise.
19155         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19156         * modules/unilbrk/u32-width-linebreaks: Likewise.
19157         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19158         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19159         * modules/uniname/uniname: Likewise.
19160         * modules/uninorm/canonical-decomposition: Likewise.
19161         * modules/uninorm/composition: Likewise.
19162         * modules/uninorm/decomposing-form: Likewise.
19163         * modules/uninorm/decomposition: Likewise.
19164         * modules/uninorm/filter: Likewise.
19165         * modules/uninorm/nfc: Likewise.
19166         * modules/uninorm/nfd: Likewise.
19167         * modules/uninorm/nfkc: Likewise.
19168         * modules/uninorm/nfkd: Likewise.
19169         * modules/uninorm/u8-normalize: Likewise.
19170         * modules/uninorm/u8-normcmp: Likewise.
19171         * modules/uninorm/u8-normcoll: Likewise.
19172         * modules/uninorm/u8-normxfrm: Likewise.
19173         * modules/uninorm/u16-normalize: Likewise.
19174         * modules/uninorm/u16-normcmp: Likewise.
19175         * modules/uninorm/u16-normcoll: Likewise.
19176         * modules/uninorm/u16-normxfrm: Likewise.
19177         * modules/uninorm/u32-normalize: Likewise.
19178         * modules/uninorm/u32-normcmp: Likewise.
19179         * modules/uninorm/u32-normcoll: Likewise.
19180         * modules/uninorm/u32-normxfrm: Likewise.
19181         * modules/unistdio/u8-asnprintf: Likewise.
19182         * modules/unistdio/u8-asprintf: Likewise.
19183         * modules/unistdio/u8-snprintf: Likewise.
19184         * modules/unistdio/u8-sprintf: Likewise.
19185         * modules/unistdio/u8-u8-asnprintf: Likewise.
19186         * modules/unistdio/u8-u8-asprintf: Likewise.
19187         * modules/unistdio/u8-u8-snprintf: Likewise.
19188         * modules/unistdio/u8-u8-sprintf: Likewise.
19189         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19190         * modules/unistdio/u8-u8-vasprintf: Likewise.
19191         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19192         * modules/unistdio/u8-u8-vsprintf: Likewise.
19193         * modules/unistdio/u8-vasnprintf: Likewise.
19194         * modules/unistdio/u8-vasprintf: Likewise.
19195         * modules/unistdio/u8-vsnprintf: Likewise.
19196         * modules/unistdio/u8-vsprintf: Likewise.
19197         * modules/unistdio/u16-asnprintf: Likewise.
19198         * modules/unistdio/u16-asprintf: Likewise.
19199         * modules/unistdio/u16-snprintf: Likewise.
19200         * modules/unistdio/u16-sprintf: Likewise.
19201         * modules/unistdio/u16-u16-asnprintf: Likewise.
19202         * modules/unistdio/u16-u16-asprintf: Likewise.
19203         * modules/unistdio/u16-u16-snprintf: Likewise.
19204         * modules/unistdio/u16-u16-sprintf: Likewise.
19205         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19206         * modules/unistdio/u16-u16-vasprintf: Likewise.
19207         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19208         * modules/unistdio/u16-u16-vsprintf: Likewise.
19209         * modules/unistdio/u16-vasnprintf: Likewise.
19210         * modules/unistdio/u16-vasprintf: Likewise.
19211         * modules/unistdio/u16-vsnprintf: Likewise.
19212         * modules/unistdio/u16-vsprintf: Likewise.
19213         * modules/unistdio/u32-asnprintf: Likewise.
19214         * modules/unistdio/u32-asprintf: Likewise.
19215         * modules/unistdio/u32-snprintf: Likewise.
19216         * modules/unistdio/u32-sprintf: Likewise.
19217         * modules/unistdio/u32-u32-asnprintf: Likewise.
19218         * modules/unistdio/u32-u32-asprintf: Likewise.
19219         * modules/unistdio/u32-u32-snprintf: Likewise.
19220         * modules/unistdio/u32-u32-sprintf: Likewise.
19221         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19222         * modules/unistdio/u32-u32-vasprintf: Likewise.
19223         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19224         * modules/unistdio/u32-u32-vsprintf: Likewise.
19225         * modules/unistdio/u32-vasnprintf: Likewise.
19226         * modules/unistdio/u32-vasprintf: Likewise.
19227         * modules/unistdio/u32-vsnprintf: Likewise.
19228         * modules/unistdio/u32-vsprintf: Likewise.
19229         * modules/unistdio/ulc-asnprintf: Likewise.
19230         * modules/unistdio/ulc-asprintf: Likewise.
19231         * modules/unistdio/ulc-fprintf: Likewise.
19232         * modules/unistdio/ulc-snprintf: Likewise.
19233         * modules/unistdio/ulc-sprintf: Likewise.
19234         * modules/unistdio/ulc-vasnprintf: Likewise.
19235         * modules/unistdio/ulc-vasprintf: Likewise.
19236         * modules/unistdio/ulc-vfprintf: Likewise.
19237         * modules/unistdio/ulc-vsnprintf: Likewise.
19238         * modules/unistdio/ulc-vsprintf: Likewise.
19239         * modules/unistr/u8-check: Likewise.
19240         * modules/unistr/u8-chr: Likewise.
19241         * modules/unistr/u8-cmp: Likewise.
19242         * modules/unistr/u8-cmp2: Likewise.
19243         * modules/unistr/u8-cpy: Likewise.
19244         * modules/unistr/u8-cpy-alloc: Likewise.
19245         * modules/unistr/u8-endswith: Likewise.
19246         * modules/unistr/u8-mblen: Likewise.
19247         * modules/unistr/u8-mbsnlen: Likewise.
19248         * modules/unistr/u8-mbtouc: Likewise.
19249         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19250         * modules/unistr/u8-mbtoucr: Likewise.
19251         * modules/unistr/u8-move: Likewise.
19252         * modules/unistr/u8-next: Likewise.
19253         * modules/unistr/u8-prev: Likewise.
19254         * modules/unistr/u8-set: Likewise.
19255         * modules/unistr/u8-startswith: Likewise.
19256         * modules/unistr/u8-stpcpy: Likewise.
19257         * modules/unistr/u8-stpncpy: Likewise.
19258         * modules/unistr/u8-strcat: Likewise.
19259         * modules/unistr/u8-strchr: Likewise.
19260         * modules/unistr/u8-strcmp: Likewise.
19261         * modules/unistr/u8-strcoll: Likewise.
19262         * modules/unistr/u8-strcpy: Likewise.
19263         * modules/unistr/u8-strcspn: Likewise.
19264         * modules/unistr/u8-strdup: Likewise.
19265         * modules/unistr/u8-strlen: Likewise.
19266         * modules/unistr/u8-strmblen: Likewise.
19267         * modules/unistr/u8-strmbtouc: Likewise.
19268         * modules/unistr/u8-strncat: Likewise.
19269         * modules/unistr/u8-strncmp: Likewise.
19270         * modules/unistr/u8-strncpy: Likewise.
19271         * modules/unistr/u8-strnlen: Likewise.
19272         * modules/unistr/u8-strpbrk: Likewise.
19273         * modules/unistr/u8-strrchr: Likewise.
19274         * modules/unistr/u8-strspn: Likewise.
19275         * modules/unistr/u8-strstr: Likewise.
19276         * modules/unistr/u8-strtok: Likewise.
19277         * modules/unistr/u8-to-u16: Likewise.
19278         * modules/unistr/u8-to-u32: Likewise.
19279         * modules/unistr/u8-uctomb: Likewise.
19280         * modules/unistr/u16-check: Likewise.
19281         * modules/unistr/u16-chr: Likewise.
19282         * modules/unistr/u16-cmp: Likewise.
19283         * modules/unistr/u16-cmp2: Likewise.
19284         * modules/unistr/u16-cpy: Likewise.
19285         * modules/unistr/u16-cpy-alloc: Likewise.
19286         * modules/unistr/u16-endswith: Likewise.
19287         * modules/unistr/u16-mblen: Likewise.
19288         * modules/unistr/u16-mbsnlen: Likewise.
19289         * modules/unistr/u16-mbtouc: Likewise.
19290         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19291         * modules/unistr/u16-mbtoucr: Likewise.
19292         * modules/unistr/u16-move: Likewise.
19293         * modules/unistr/u16-next: Likewise.
19294         * modules/unistr/u16-prev: Likewise.
19295         * modules/unistr/u16-set: Likewise.
19296         * modules/unistr/u16-startswith: Likewise.
19297         * modules/unistr/u16-stpcpy: Likewise.
19298         * modules/unistr/u16-stpncpy: Likewise.
19299         * modules/unistr/u16-strcat: Likewise.
19300         * modules/unistr/u16-strchr: Likewise.
19301         * modules/unistr/u16-strcmp: Likewise.
19302         * modules/unistr/u16-strcoll: Likewise.
19303         * modules/unistr/u16-strcpy: Likewise.
19304         * modules/unistr/u16-strcspn: Likewise.
19305         * modules/unistr/u16-strdup: Likewise.
19306         * modules/unistr/u16-strlen: Likewise.
19307         * modules/unistr/u16-strmblen: Likewise.
19308         * modules/unistr/u16-strmbtouc: Likewise.
19309         * modules/unistr/u16-strncat: Likewise.
19310         * modules/unistr/u16-strncmp: Likewise.
19311         * modules/unistr/u16-strncpy: Likewise.
19312         * modules/unistr/u16-strnlen: Likewise.
19313         * modules/unistr/u16-strpbrk: Likewise.
19314         * modules/unistr/u16-strrchr: Likewise.
19315         * modules/unistr/u16-strspn: Likewise.
19316         * modules/unistr/u16-strstr: Likewise.
19317         * modules/unistr/u16-strtok: Likewise.
19318         * modules/unistr/u16-to-u32: Likewise.
19319         * modules/unistr/u16-to-u8: Likewise.
19320         * modules/unistr/u16-uctomb: Likewise.
19321         * modules/unistr/u32-check: Likewise.
19322         * modules/unistr/u32-chr: Likewise.
19323         * modules/unistr/u32-cmp: Likewise.
19324         * modules/unistr/u32-cmp2: Likewise.
19325         * modules/unistr/u32-cpy: Likewise.
19326         * modules/unistr/u32-cpy-alloc: Likewise.
19327         * modules/unistr/u32-endswith: Likewise.
19328         * modules/unistr/u32-mblen: Likewise.
19329         * modules/unistr/u32-mbsnlen: Likewise.
19330         * modules/unistr/u32-mbtouc: Likewise.
19331         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19332         * modules/unistr/u32-mbtoucr: Likewise.
19333         * modules/unistr/u32-move: Likewise.
19334         * modules/unistr/u32-next: Likewise.
19335         * modules/unistr/u32-prev: Likewise.
19336         * modules/unistr/u32-set: Likewise.
19337         * modules/unistr/u32-startswith: Likewise.
19338         * modules/unistr/u32-stpcpy: Likewise.
19339         * modules/unistr/u32-stpncpy: Likewise.
19340         * modules/unistr/u32-strcat: Likewise.
19341         * modules/unistr/u32-strchr: Likewise.
19342         * modules/unistr/u32-strcmp: Likewise.
19343         * modules/unistr/u32-strcoll: Likewise.
19344         * modules/unistr/u32-strcpy: Likewise.
19345         * modules/unistr/u32-strcspn: Likewise.
19346         * modules/unistr/u32-strdup: Likewise.
19347         * modules/unistr/u32-strlen: Likewise.
19348         * modules/unistr/u32-strmblen: Likewise.
19349         * modules/unistr/u32-strmbtouc: Likewise.
19350         * modules/unistr/u32-strncat: Likewise.
19351         * modules/unistr/u32-strncmp: Likewise.
19352         * modules/unistr/u32-strncpy: Likewise.
19353         * modules/unistr/u32-strnlen: Likewise.
19354         * modules/unistr/u32-strpbrk: Likewise.
19355         * modules/unistr/u32-strrchr: Likewise.
19356         * modules/unistr/u32-strspn: Likewise.
19357         * modules/unistr/u32-strstr: Likewise.
19358         * modules/unistr/u32-strtok: Likewise.
19359         * modules/unistr/u32-to-u16: Likewise.
19360         * modules/unistr/u32-to-u8: Likewise.
19361         * modules/unistr/u32-uctomb: Likewise.
19362         * modules/uniwbrk/u8-wordbreaks: Likewise.
19363         * modules/uniwbrk/u16-wordbreaks: Likewise.
19364         * modules/uniwbrk/u32-wordbreaks: Likewise.
19365         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19366         * modules/uniwbrk/wordbreak-property: Likewise.
19367         * modules/uniwidth/u8-strwidth: Likewise.
19368         * modules/uniwidth/u8-width: Likewise.
19369         * modules/uniwidth/u16-strwidth: Likewise.
19370         * modules/uniwidth/u16-width: Likewise.
19371         * modules/uniwidth/u32-strwidth: Likewise.
19372         * modules/uniwidth/u32-width: Likewise.
19373         * modules/uniwidth/width: Likewise.
19374         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19375         with $(LIBUNISTRING).
19376         * modules/unicase/ignorable-tests: Likewise.
19377         * modules/unicase/locale-language-tests: Likewise.
19378         * modules/unicase/tolower-tests: Likewise.
19379         * modules/unicase/totitle-tests: Likewise.
19380         * modules/unicase/toupper-tests: Likewise.
19381         * modules/unicase/u8-casecmp-tests: Likewise.
19382         * modules/unicase/u8-casecoll-tests: Likewise.
19383         * modules/unicase/u8-casefold-tests: Likewise.
19384         * modules/unicase/u8-is-cased-tests: Likewise.
19385         * modules/unicase/u8-is-casefolded-tests: Likewise.
19386         * modules/unicase/u8-is-lowercase-tests: Likewise.
19387         * modules/unicase/u8-is-titlecase-tests: Likewise.
19388         * modules/unicase/u8-is-uppercase-tests: Likewise.
19389         * modules/unicase/u8-tolower-tests: Likewise.
19390         * modules/unicase/u8-totitle-tests: Likewise.
19391         * modules/unicase/u8-toupper-tests: Likewise.
19392         * modules/unicase/u16-casecmp-tests: Likewise.
19393         * modules/unicase/u16-casecoll-tests: Likewise.
19394         * modules/unicase/u16-casefold-tests: Likewise.
19395         * modules/unicase/u16-is-cased-tests: Likewise.
19396         * modules/unicase/u16-is-casefolded-tests: Likewise.
19397         * modules/unicase/u16-is-lowercase-tests: Likewise.
19398         * modules/unicase/u16-is-titlecase-tests: Likewise.
19399         * modules/unicase/u16-is-uppercase-tests: Likewise.
19400         * modules/unicase/u16-tolower-tests: Likewise.
19401         * modules/unicase/u16-totitle-tests: Likewise.
19402         * modules/unicase/u16-toupper-tests: Likewise.
19403         * modules/unicase/u32-casecmp-tests: Likewise.
19404         * modules/unicase/u32-casecoll-tests: Likewise.
19405         * modules/unicase/u32-casefold-tests: Likewise.
19406         * modules/unicase/u32-is-cased-tests: Likewise.
19407         * modules/unicase/u32-is-casefolded-tests: Likewise.
19408         * modules/unicase/u32-is-lowercase-tests: Likewise.
19409         * modules/unicase/u32-is-titlecase-tests: Likewise.
19410         * modules/unicase/u32-is-uppercase-tests: Likewise.
19411         * modules/unicase/u32-tolower-tests: Likewise.
19412         * modules/unicase/u32-totitle-tests: Likewise.
19413         * modules/unicase/u32-toupper-tests: Likewise.
19414         * modules/unicase/ulc-casecmp-tests: Likewise.
19415         * modules/unicase/ulc-casecoll-tests: Likewise.
19416         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19417         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19418         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19419         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19420         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19421         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19422         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19423         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19424         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19425         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19426         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19427         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19428         * modules/unictype/bidicategory-byname-tests: Likewise.
19429         * modules/unictype/bidicategory-name-tests: Likewise.
19430         * modules/unictype/bidicategory-of-tests: Likewise.
19431         * modules/unictype/bidicategory-test-tests: Likewise.
19432         * modules/unictype/block-list-tests: Likewise.
19433         * modules/unictype/block-of-tests: Likewise.
19434         * modules/unictype/block-test-tests: Likewise.
19435         * modules/unictype/category-C-tests: Likewise.
19436         * modules/unictype/category-Cc-tests: Likewise.
19437         * modules/unictype/category-Cf-tests: Likewise.
19438         * modules/unictype/category-Cn-tests: Likewise.
19439         * modules/unictype/category-Co-tests: Likewise.
19440         * modules/unictype/category-Cs-tests: Likewise.
19441         * modules/unictype/category-L-tests: Likewise.
19442         * modules/unictype/category-Ll-tests: Likewise.
19443         * modules/unictype/category-Lm-tests: Likewise.
19444         * modules/unictype/category-Lo-tests: Likewise.
19445         * modules/unictype/category-Lt-tests: Likewise.
19446         * modules/unictype/category-Lu-tests: Likewise.
19447         * modules/unictype/category-M-tests: Likewise.
19448         * modules/unictype/category-Mc-tests: Likewise.
19449         * modules/unictype/category-Me-tests: Likewise.
19450         * modules/unictype/category-Mn-tests: Likewise.
19451         * modules/unictype/category-N-tests: Likewise.
19452         * modules/unictype/category-Nd-tests: Likewise.
19453         * modules/unictype/category-Nl-tests: Likewise.
19454         * modules/unictype/category-No-tests: Likewise.
19455         * modules/unictype/category-P-tests: Likewise.
19456         * modules/unictype/category-Pc-tests: Likewise.
19457         * modules/unictype/category-Pd-tests: Likewise.
19458         * modules/unictype/category-Pe-tests: Likewise.
19459         * modules/unictype/category-Pf-tests: Likewise.
19460         * modules/unictype/category-Pi-tests: Likewise.
19461         * modules/unictype/category-Po-tests: Likewise.
19462         * modules/unictype/category-Ps-tests: Likewise.
19463         * modules/unictype/category-S-tests: Likewise.
19464         * modules/unictype/category-Sc-tests: Likewise.
19465         * modules/unictype/category-Sk-tests: Likewise.
19466         * modules/unictype/category-Sm-tests: Likewise.
19467         * modules/unictype/category-So-tests: Likewise.
19468         * modules/unictype/category-Z-tests: Likewise.
19469         * modules/unictype/category-Zl-tests: Likewise.
19470         * modules/unictype/category-Zp-tests: Likewise.
19471         * modules/unictype/category-Zs-tests: Likewise.
19472         * modules/unictype/category-and-not-tests: Likewise.
19473         * modules/unictype/category-and-tests: Likewise.
19474         * modules/unictype/category-byname-tests: Likewise.
19475         * modules/unictype/category-name-tests: Likewise.
19476         * modules/unictype/category-none-tests: Likewise.
19477         * modules/unictype/category-of-tests: Likewise.
19478         * modules/unictype/category-or-tests: Likewise.
19479         * modules/unictype/category-test-withtable-tests: Likewise.
19480         * modules/unictype/combining-class-tests: Likewise.
19481         * modules/unictype/ctype-alnum-tests: Likewise.
19482         * modules/unictype/ctype-alpha-tests: Likewise.
19483         * modules/unictype/ctype-blank-tests: Likewise.
19484         * modules/unictype/ctype-cntrl-tests: Likewise.
19485         * modules/unictype/ctype-digit-tests: Likewise.
19486         * modules/unictype/ctype-graph-tests: Likewise.
19487         * modules/unictype/ctype-lower-tests: Likewise.
19488         * modules/unictype/ctype-print-tests: Likewise.
19489         * modules/unictype/ctype-punct-tests: Likewise.
19490         * modules/unictype/ctype-space-tests: Likewise.
19491         * modules/unictype/ctype-upper-tests: Likewise.
19492         * modules/unictype/ctype-xdigit-tests: Likewise.
19493         * modules/unictype/decimal-digit-tests: Likewise.
19494         * modules/unictype/digit-tests: Likewise.
19495         * modules/unictype/mirror-tests: Likewise.
19496         * modules/unictype/numeric-tests: Likewise.
19497         * modules/unictype/property-alphabetic-tests: Likewise.
19498         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19499         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19500         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19501         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19502         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19503         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19504         * modules/unictype/property-bidi-control-tests: Likewise.
19505         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19506         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19507         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19508         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19509         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19510         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19511         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19512         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19513         * modules/unictype/property-bidi-pdf-tests: Likewise.
19514         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19515         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19516         * modules/unictype/property-byname-tests: Likewise.
19517         * modules/unictype/property-combining-tests: Likewise.
19518         * modules/unictype/property-composite-tests: Likewise.
19519         * modules/unictype/property-currency-symbol-tests: Likewise.
19520         * modules/unictype/property-dash-tests: Likewise.
19521         * modules/unictype/property-decimal-digit-tests: Likewise.
19522         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19523         * modules/unictype/property-deprecated-tests: Likewise.
19524         * modules/unictype/property-diacritic-tests: Likewise.
19525         * modules/unictype/property-extender-tests: Likewise.
19526         * modules/unictype/property-format-control-tests: Likewise.
19527         * modules/unictype/property-grapheme-base-tests: Likewise.
19528         * modules/unictype/property-grapheme-extend-tests: Likewise.
19529         * modules/unictype/property-grapheme-link-tests: Likewise.
19530         * modules/unictype/property-hex-digit-tests: Likewise.
19531         * modules/unictype/property-hyphen-tests: Likewise.
19532         * modules/unictype/property-id-continue-tests: Likewise.
19533         * modules/unictype/property-id-start-tests: Likewise.
19534         * modules/unictype/property-ideographic-tests: Likewise.
19535         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19536         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19537         * modules/unictype/property-ignorable-control-tests: Likewise.
19538         * modules/unictype/property-iso-control-tests: Likewise.
19539         * modules/unictype/property-join-control-tests: Likewise.
19540         * modules/unictype/property-left-of-pair-tests: Likewise.
19541         * modules/unictype/property-line-separator-tests: Likewise.
19542         * modules/unictype/property-logical-order-exception-tests: Likewise.
19543         * modules/unictype/property-lowercase-tests: Likewise.
19544         * modules/unictype/property-math-tests: Likewise.
19545         * modules/unictype/property-non-break-tests: Likewise.
19546         * modules/unictype/property-not-a-character-tests: Likewise.
19547         * modules/unictype/property-numeric-tests: Likewise.
19548         * modules/unictype/property-other-alphabetic-tests: Likewise.
19549         * modules/unictype/property-other-default-ignorable-code-point-tests:
19550         Likewise.
19551         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19552         * modules/unictype/property-other-id-continue-tests: Likewise.
19553         * modules/unictype/property-other-id-start-tests: Likewise.
19554         * modules/unictype/property-other-lowercase-tests: Likewise.
19555         * modules/unictype/property-other-math-tests: Likewise.
19556         * modules/unictype/property-other-uppercase-tests: Likewise.
19557         * modules/unictype/property-paired-punctuation-tests: Likewise.
19558         * modules/unictype/property-paragraph-separator-tests: Likewise.
19559         * modules/unictype/property-pattern-syntax-tests: Likewise.
19560         * modules/unictype/property-pattern-white-space-tests: Likewise.
19561         * modules/unictype/property-private-use-tests: Likewise.
19562         * modules/unictype/property-punctuation-tests: Likewise.
19563         * modules/unictype/property-quotation-mark-tests: Likewise.
19564         * modules/unictype/property-radical-tests: Likewise.
19565         * modules/unictype/property-sentence-terminal-tests: Likewise.
19566         * modules/unictype/property-soft-dotted-tests: Likewise.
19567         * modules/unictype/property-space-tests: Likewise.
19568         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19569         * modules/unictype/property-test-tests: Likewise.
19570         * modules/unictype/property-titlecase-tests: Likewise.
19571         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19572         * modules/unictype/property-unified-ideograph-tests: Likewise.
19573         * modules/unictype/property-uppercase-tests: Likewise.
19574         * modules/unictype/property-variation-selector-tests: Likewise.
19575         * modules/unictype/property-white-space-tests: Likewise.
19576         * modules/unictype/property-xid-continue-tests: Likewise.
19577         * modules/unictype/property-xid-start-tests: Likewise.
19578         * modules/unictype/property-zero-width-tests: Likewise.
19579         * modules/unictype/scripts-tests: Likewise.
19580         * modules/unictype/syntax-c-ident-tests: Likewise.
19581         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19582         * modules/unictype/syntax-java-ident-tests: Likewise.
19583         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19584         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19585         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19586         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19587         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19588         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19589         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19590         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19591         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19592         * modules/uniname/uniname-tests: Likewise.
19593         * modules/uninorm/canonical-decomposition-tests: Likewise.
19594         * modules/uninorm/compat-decomposition-tests: Likewise.
19595         * modules/uninorm/composition-tests: Likewise.
19596         * modules/uninorm/decomposing-form-tests: Likewise.
19597         * modules/uninorm/decomposition-tests: Likewise.
19598         * modules/uninorm/filter-tests: Likewise.
19599         * modules/uninorm/nfc-tests: Likewise.
19600         * modules/uninorm/nfd-tests: Likewise.
19601         * modules/uninorm/nfkc-tests: Likewise.
19602         * modules/uninorm/nfkd-tests: Likewise.
19603         * modules/uninorm/u8-normcmp-tests: Likewise.
19604         * modules/uninorm/u8-normcoll-tests: Likewise.
19605         * modules/uninorm/u16-normcmp-tests: Likewise.
19606         * modules/uninorm/u16-normcoll-tests: Likewise.
19607         * modules/uninorm/u32-normcmp-tests: Likewise.
19608         * modules/uninorm/u32-normcoll-tests: Likewise.
19609         * modules/unistdio/u8-asnprintf-tests: Likewise.
19610         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19611         * modules/unistdio/u8-vasprintf-tests: Likewise.
19612         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19613         * modules/unistdio/u8-vsprintf-tests: Likewise.
19614         * modules/unistdio/u16-asnprintf-tests: Likewise.
19615         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19616         * modules/unistdio/u16-vasprintf-tests: Likewise.
19617         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19618         * modules/unistdio/u16-vsprintf-tests: Likewise.
19619         * modules/unistdio/u32-asnprintf-tests: Likewise.
19620         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19621         * modules/unistdio/u32-vasprintf-tests: Likewise.
19622         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19623         * modules/unistdio/u32-vsprintf-tests: Likewise.
19624         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19625         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19626         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19627         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19628         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19629         * modules/unistr/u8-check-tests: Likewise.
19630         * modules/unistr/u8-chr-tests: Likewise.
19631         * modules/unistr/u8-cmp-tests: Likewise.
19632         * modules/unistr/u8-cmp2-tests: Likewise.
19633         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19634         * modules/unistr/u8-cpy-tests: Likewise.
19635         * modules/unistr/u8-mblen-tests: Likewise.
19636         * modules/unistr/u8-mbsnlen-tests: Likewise.
19637         * modules/unistr/u8-mbtouc-tests: Likewise.
19638         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19639         * modules/unistr/u8-mbtoucr-tests: Likewise.
19640         * modules/unistr/u8-move-tests: Likewise.
19641         * modules/unistr/u8-next-tests: Likewise.
19642         * modules/unistr/u8-prev-tests: Likewise.
19643         * modules/unistr/u8-set-tests: Likewise.
19644         * modules/unistr/u8-stpcpy-tests: Likewise.
19645         * modules/unistr/u8-stpncpy-tests: Likewise.
19646         * modules/unistr/u8-strcat-tests: Likewise.
19647         * modules/unistr/u8-strcmp-tests: Likewise.
19648         * modules/unistr/u8-strcoll-tests: Likewise.
19649         * modules/unistr/u8-strcpy-tests: Likewise.
19650         * modules/unistr/u8-strdup-tests: Likewise.
19651         * modules/unistr/u8-strlen-tests: Likewise.
19652         * modules/unistr/u8-strmblen-tests: Likewise.
19653         * modules/unistr/u8-strmbtouc-tests: Likewise.
19654         * modules/unistr/u8-strncat-tests: Likewise.
19655         * modules/unistr/u8-strncmp-tests: Likewise.
19656         * modules/unistr/u8-strncpy-tests: Likewise.
19657         * modules/unistr/u8-strnlen-tests: Likewise.
19658         * modules/unistr/u8-to-u16-tests: Likewise.
19659         * modules/unistr/u8-to-u32-tests: Likewise.
19660         * modules/unistr/u8-uctomb-tests: Likewise.
19661         * modules/unistr/u16-check-tests: Likewise.
19662         * modules/unistr/u16-chr-tests: Likewise.
19663         * modules/unistr/u16-cmp-tests: Likewise.
19664         * modules/unistr/u16-cmp2-tests: Likewise.
19665         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19666         * modules/unistr/u16-cpy-tests: Likewise.
19667         * modules/unistr/u16-mblen-tests: Likewise.
19668         * modules/unistr/u16-mbsnlen-tests: Likewise.
19669         * modules/unistr/u16-mbtouc-tests: Likewise.
19670         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19671         * modules/unistr/u16-mbtoucr-tests: Likewise.
19672         * modules/unistr/u16-move-tests: Likewise.
19673         * modules/unistr/u16-next-tests: Likewise.
19674         * modules/unistr/u16-prev-tests: Likewise.
19675         * modules/unistr/u16-set-tests: Likewise.
19676         * modules/unistr/u16-stpcpy-tests: Likewise.
19677         * modules/unistr/u16-stpncpy-tests: Likewise.
19678         * modules/unistr/u16-strcat-tests: Likewise.
19679         * modules/unistr/u16-strcmp-tests: Likewise.
19680         * modules/unistr/u16-strcoll-tests: Likewise.
19681         * modules/unistr/u16-strcpy-tests: Likewise.
19682         * modules/unistr/u16-strdup-tests: Likewise.
19683         * modules/unistr/u16-strlen-tests: Likewise.
19684         * modules/unistr/u16-strmblen-tests: Likewise.
19685         * modules/unistr/u16-strmbtouc-tests: Likewise.
19686         * modules/unistr/u16-strncat-tests: Likewise.
19687         * modules/unistr/u16-strncmp-tests: Likewise.
19688         * modules/unistr/u16-strncpy-tests: Likewise.
19689         * modules/unistr/u16-strnlen-tests: Likewise.
19690         * modules/unistr/u16-to-u32-tests: Likewise.
19691         * modules/unistr/u16-to-u8-tests: Likewise.
19692         * modules/unistr/u16-uctomb-tests: Likewise.
19693         * modules/unistr/u32-check-tests: Likewise.
19694         * modules/unistr/u32-chr-tests: Likewise.
19695         * modules/unistr/u32-cmp-tests: Likewise.
19696         * modules/unistr/u32-cmp2-tests: Likewise.
19697         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19698         * modules/unistr/u32-cpy-tests: Likewise.
19699         * modules/unistr/u32-mblen-tests: Likewise.
19700         * modules/unistr/u32-mbsnlen-tests: Likewise.
19701         * modules/unistr/u32-mbtouc-tests: Likewise.
19702         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19703         * modules/unistr/u32-mbtoucr-tests: Likewise.
19704         * modules/unistr/u32-move-tests: Likewise.
19705         * modules/unistr/u32-next-tests: Likewise.
19706         * modules/unistr/u32-prev-tests: Likewise.
19707         * modules/unistr/u32-set-tests: Likewise.
19708         * modules/unistr/u32-stpcpy-tests: Likewise.
19709         * modules/unistr/u32-stpncpy-tests: Likewise.
19710         * modules/unistr/u32-strcat-tests: Likewise.
19711         * modules/unistr/u32-strcmp-tests: Likewise.
19712         * modules/unistr/u32-strcoll-tests: Likewise.
19713         * modules/unistr/u32-strcpy-tests: Likewise.
19714         * modules/unistr/u32-strdup-tests: Likewise.
19715         * modules/unistr/u32-strlen-tests: Likewise.
19716         * modules/unistr/u32-strmblen-tests: Likewise.
19717         * modules/unistr/u32-strmbtouc-tests: Likewise.
19718         * modules/unistr/u32-strncat-tests: Likewise.
19719         * modules/unistr/u32-strncmp-tests: Likewise.
19720         * modules/unistr/u32-strncpy-tests: Likewise.
19721         * modules/unistr/u32-strnlen-tests: Likewise.
19722         * modules/unistr/u32-to-u16-tests: Likewise.
19723         * modules/unistr/u32-to-u8-tests: Likewise.
19724         * modules/unistr/u32-uctomb-tests: Likewise.
19725         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19726         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19727         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19728         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19729         * modules/uniwidth/u8-strwidth-tests: Likewise.
19730         * modules/uniwidth/u8-width-tests: Likewise.
19731         * modules/uniwidth/u16-strwidth-tests: Likewise.
19732         * modules/uniwidth/u16-width-tests: Likewise.
19733         * modules/uniwidth/u32-strwidth-tests: Likewise.
19734         * modules/uniwidth/u32-width-tests: Likewise.
19735         * modules/uniwidth/width-tests: Likewise.
19736
19737 2010-05-18  Richard Jones  <rjones@redhat.com>
19738
19739         doc: users.txt: list hivex
19740         * users.txt: Add hivex.
19741
19742 2010-05-18  Richard Jones  <rjones@redhat.com>
19743
19744         doc: users.txt: list febootstrap
19745         * users.txt: Add febootstrap.
19746
19747 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19748
19749         bootstrap: fix an error when gnulib is not used as a git submodule
19750         * build-aux/bootstrap (gnulib_path): If its length is zero then
19751         assign "gnulib" to it.
19752         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19753
19754 2010-05-16  Bruno Haible  <bruno@clisp.org>
19755
19756         Avoid autoconf warnings about AM_ICONV.
19757         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19758         2.64.
19759
19760 2010-05-16  Bruno Haible  <bruno@clisp.org>
19761
19762         absolute-header: Make the macro usable in more situations.
19763         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19764         from gl_ABSOLUTE_HEADER.
19765         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19766
19767 2010-05-16  James Youngman  <jay@gnu.org>
19768
19769         doc: update users.txt
19770         * users.txt: Add CSSC.
19771
19772 2010-05-16  Jim Meyering  <meyering@redhat.com>
19773
19774         init.sh: fix an error in the previous change; add more comments
19775         * tests/init.sh: Compare exit code in loop against 9, not 2.
19776         Patch by Bruno Haible.
19777         Make the two tests more similar by adding an empty "then" clause.
19778         Add comments.
19779
19780         init.sh: avoid unnecessary shell re-exec
19781         * tests/init.sh: Improve the re-exec-required check to first test the
19782         current shell.  If it passes the test, do not search for a shell that
19783         does pass, and do not re-exec.  This test is particularly contorted to
19784         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19785         of $(...) evokes a syntax error and causes immediate shell exit with
19786         status 2.  Bruno Haible reported that the re-exec made it impossible
19787         to single-step through any init.sh-using script.
19788
19789 2010-05-16  Bruno Haible  <bruno@clisp.org>
19790
19791         Fix collision between gnulib's and libintl's printf replacements.
19792         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19793         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19794         (printf): When using GNU C, map the __printf__ function to rpl_printf
19795         via __asm__. When not using GNU C, define rpl_printf instead of
19796         __printf__.
19797         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19798         commit.
19799         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19800         commit.
19801         * m4/asm-underscore.m4: New file.
19802         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19803         * modules/stdio (Files): Add m4/asm-underscore.m4.
19804         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19805         Reported by Ben Pfaff.
19806
19807 2010-05-16  Bruno Haible  <bruno@clisp.org>
19808
19809         verify: Avoid skipping the test on openSUSE 11.0.
19810         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19811
19812 2010-05-13  Bruno Haible  <bruno@clisp.org>
19813
19814         Avoid useless warnings from G++.
19815         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19816         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19817         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19818
19819 2010-05-11  Jim Meyering  <meyering@redhat.com>
19820
19821         maint.mk: tweak preceding change
19822         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19823         regexps tighter by anchoring at EOL, and make the new group "shy"
19824         for slightly decreased overhead.
19825
19826 2010-05-11  Eric Blake  <eblake@redhat.com>
19827
19828         maint.mk: gnulib doesn't guarantee NSIG
19829         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19830
19831 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19832
19833         test-pwrite.c: Remove unused variable declaration.
19834         * tests/test-pwrite.c (main): Remove read_buf declaration.
19835
19836         Remove useless test-pwrite.sh file.
19837         * tests/test-pwrite.sh: Delete file.
19838         * modules/pwrite-tests: Remove references.
19839         Reported by Bruno Haible.
19840
19841 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19842
19843         init.sh: fix a typo
19844         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19845
19846 2010-05-10  Jim Meyering  <meyering@redhat.com>
19847
19848         maint.mk: avoid using a temporary file in the always-defined-macros check
19849         * top/maint.mk (.re-defmac): Remove rule.
19850         (gl_trap_): Remove definition.
19851         (sc_prohibit_always-defined_macros): Rewrite not to create and
19852         depend on a temporary file.  Instead, depend on GNU grep's ability
19853         to read a list of regular expressions from stdin when given "-f -".
19854
19855 2010-05-09  Bruno Haible  <bruno@clisp.org>
19856
19857         Update to GNU gettext 0.18, part 1.
19858         * m4/gettext.m4: Update to GNU gettext 0.18.
19859         * m4/intl.m4: Likewise.
19860         * m4/po.m4: Likewise.
19861         * modules/gettext (Files): Add m4/fcntl-o.m4.
19862         (configure.ac): Require gettext infrastructure from version 0.18.
19863
19864 2010-05-09  Jim Meyering  <meyering@redhat.com>
19865
19866         init.sh: enable MALLOC_PERTURB_
19867         * tests/init.sh: Enable glibc's malloc-perturbing option.
19868
19869         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19870         With my recent change in init.sh from the two-line form:
19871             -#   : ${srcdir=.}
19872             -#   . "$srcdir/init.sh"; path_prepend_ .
19873             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19874         I noticed that using the one-line form would cause this test
19875         to fail with a false-positive, or to stop working altogether,
19876         depending on whether help-version changed or all the tests did.
19877         * top/maint.mk (_hv_regex): Remove this definition.
19878         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19879         (_hv_regex_strong): Use a stronger regex to check for conformance.
19880         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19881         Give a separate diagnostic for lack of conforming use.
19882
19883         maint.mk: prohibit definition of symbols defined by gnulib
19884         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19885         definition of symbols defined by gnulib.
19886
19887 2010-05-09  Bruno Haible  <bruno@clisp.org>
19888
19889         acl: Avoid test failure on Cygwin-hosted mingw.
19890         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19891
19892 2010-05-09  Bruno Haible  <bruno@clisp.org>
19893
19894         error: Use system's fcntl function.
19895         * lib/error.c (fcntl): Undefine.
19896
19897 2010-05-09  Jim Meyering  <meyering@redhat.com>
19898
19899         verify: adjust formatting to be more consistent
19900         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19901         argument-list '('s, and after one comma.
19902
19903 2010-05-09  Bruno Haible  <bruno@clisp.org>
19904
19905         error: More reliable output on mingw.
19906         * lib/error.c: Include <windows.h>.
19907         (is_open): New function.
19908         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19909         defined.
19910
19911 2010-05-09  Bruno Haible  <bruno@clisp.org>
19912
19913         vasnprintf: Fix syntax errors in libintl build on mingw.
19914         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19915         pad_ourselves and prec_ourselves after use.
19916
19917 2010-05-08  Bruno Haible  <bruno@clisp.org>
19918
19919         * lib/config.charset: Update comments for Cygwin 1.7.
19920         * lib/localcharset.c: Likewise.
19921
19922 2010-05-07  Jim Meyering  <meyering@redhat.com>
19923
19924         init.sh: improve comments
19925         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19926         . "${srcdir=.}/init.sh"; path_prepend_ .
19927         Add a note about path_prepend_ and the alternative of using
19928         TESTS_ENVIRONMENT.
19929
19930 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19931
19932         exclude: Unescape hashed patterns in wildcard mode.
19933         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19934         to the hash list.
19935         * tests/test-exclude8.sh: New test case.
19936         * modules/exclude-tests: Add new test.
19937
19938 2010-05-05  Eric Blake  <eblake@redhat.com>
19939
19940         verify: automate tests
19941         * modules/verify-tests: New module.
19942         * tests/test-verify.sh: New file.
19943         * tests/test-verify.c: Guard each negative test with a unique id.
19944         Also avoid warning about unused left hand of comma expressions.
19945
19946 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19947
19948         Further improvements to verify.h, suggested by Eric Blake.
19949         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19950         the GL_* versions, to avoid collision with OpenGL.
19951         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19952         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19953         than testing merely whether it's defined.
19954
19955         Modify verify.h to pacify gcc -Wredundant_decls.
19956         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19957         These use the prefix "GL_" since they're likely to be useful elsewhere.
19958         We may need to break them out into a different .h file.
19959         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19960         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19961         of verify_function__.
19962
19963 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19964
19965         Tests for module pwrite.
19966         * modules/pwrite-tests: New file.
19967         * tests/test-pwrite.sh: New file.
19968         * tests/test-pwrite.c: New file.
19969
19970         New module pwrite.
19971         * lib/unistd.in.h (pwrite): New declaration.
19972         * lib/pwrite.c: New file, from glibc with modifications.
19973         * m4/pwrite.m4: New file.
19974         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19975         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19976         REPLACE_PWRITE.
19977         * modules/pwrite: New file.
19978         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19979         REPLACE_PWRITE.
19980         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19981         * doc/posix-functions/pwrite.texi: Mention the new module.
19982
19983 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19984
19985         pread: Update documentation.
19986         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19987
19988 2010-05-04  Eric Blake  <eblake@redhat.com>
19989
19990         docs: update cygwin progress
19991         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19992         this bug.
19993         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19994         Added in cygwin 1.7.2.
19995         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19996         Likewise.
19997         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19998         Likewise.
19999         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20000         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20001         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20002         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20003         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20004         Mention nproc module.
20005         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20006         bug in cygwin 1.7.5 addition.
20007         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20008         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20009         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20010         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20011         1.7.5.
20012         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20013         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20014         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20015         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20016         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20017         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20018         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20019         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20020         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20021         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20022         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20023         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20024         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20025         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20026         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20027         Likewise.
20028         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20029         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20030         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20031         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20032         Likewise.
20033         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20034         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20035         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20036         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20037         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20038         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20039         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20040         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20041         Likewise.
20042         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20043         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20044         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20045         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20046         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20047         Likewise.
20048         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20049         Likewise.
20050         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20051         Likewise.
20052         * doc/glibc-functions/xdrrec_endofrecord.texi
20053         (xdrrec_endofrecord): Likewise.
20054         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20055         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20056         Likewise.
20057         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20058         Likewise.
20059
20060 2010-05-04  Jim Meyering  <meyering@redhat.com>
20061
20062         gendocs.sh: make its "-s FILE" option more useful
20063         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20064         $PACKAGE to reflect the probably-different basename of "FILE".
20065
20066 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20067
20068         bootstrap: don't ignore download_po_files failure
20069         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20070         failure.
20071
20072 2010-05-03  Jim Meyering  <meyering@redhat.com>
20073
20074         maint.mk: allow to pass options to gendocs.sh
20075         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20076         (gendocs_options_): New overridable variable.
20077
20078         gnu-web-doc-update: don't ignore configure or build failure
20079         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20080
20081         announce-gen: backslash-escape '@'s in --help output
20082         * build-aux/announce-gen: Fix syntax errors.
20083
20084         maint.mk, announce-gen: allow project-specific announcement mail headers
20085         * top/maint.mk (translation_project_): Define default.
20086         (announcement_Cc_, announcement_mail_headers_): Likewise.
20087         (announcement): Invoke announce-gen with new --mail-headers option.
20088         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20089
20090         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20091         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20092         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20093         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20094         line in the "err2" output file when running "make check" in verbose
20095         mode (i.e., with set -x enabled).
20096
20097 2010-05-03  Bruno Haible  <bruno@clisp.org>
20098
20099         wctob: Fix for weird platforms.
20100         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20101         argument value.
20102
20103 2010-05-03  Jim Meyering  <meyering@redhat.com>
20104
20105         maint.mk: prohibit unwarranted use of <strings.h>
20106         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20107         strings.h in a file that does not also use strcasecmp, strncasecmp,
20108         ffs or ffsll.
20109
20110         maint.mk: remove obsolete comments
20111         * top/maint.mk: Remove stale, commented-out rules.
20112
20113 2010-05-02  Bruno Haible  <bruno@clisp.org>
20114
20115         wcwidth: Declare also when it's aliased.
20116         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20117         macro.
20118
20119 2010-05-02  Bruno Haible  <bruno@clisp.org>
20120
20121         Fix regression from 2010-04-25.
20122         * gnulib-tool (func_modules_transitive_closure): Check the status of
20123         all modules, not only of the tests that are of the form foo-tests where
20124         foo is a module.
20125
20126 2010-05-02  Bruno Haible  <bruno@clisp.org>
20127
20128         wctob: Work around nasty Cygwin 1.7.2 bug.
20129         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20130         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20131
20132 2010-05-01  Bruno Haible  <bruno@clisp.org>
20133
20134         fpurge: Sharper test.
20135         * tests/test-fpurge.c (main): Add one more ftell check.
20136         * modules/fpurge-tests (Depends-on): Add ftell.
20137         Suggested by Eric Blake.
20138
20139 2010-05-01  Bruno Haible  <bruno@clisp.org>
20140
20141         ftello: Another test.
20142         * tests/test-ftello3.c: New file.
20143         * modules/ftello-tests (Files): Add it.
20144         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20145         MOSTLYCLEANFILES.
20146
20147         ftell: Another test.
20148         * tests/test-ftell3.c: New file.
20149         * modules/ftell-tests (Files): Add it.
20150         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20151         MOSTLYCLEANFILES.
20152
20153 2010-05-01  Bruno Haible  <bruno@clisp.org>
20154
20155         ftell, ftello: Work around Solaris bug.
20156         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20157         * lib/ftello.c: Include stdio-impl.h.
20158         (ftello): On Solaris, when _IOWRT is set, compute the result without
20159         looking at _IOREAD.
20160         * modules/ftello (Files): Add lib/stdio-impl.h.
20161         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20162         * doc/posix-functions/ftello.texi: Likewise.
20163         Reported by Eric Blake.
20164
20165 2010-05-01  Bruno Haible  <bruno@clisp.org>
20166
20167         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20168         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20169         the _IOWRT flag is also set.
20170
20171 2010-05-01  Bruno Haible  <bruno@clisp.org>
20172
20173         Fix doc about a HP-UX stdio bug.
20174         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20175         * doc/posix-functions/ftello.texi: Likewise.
20176
20177 2010-05-01  Bruno Haible  <bruno@clisp.org>
20178
20179         lseek test: Fix failure on Solaris.
20180         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20181         output.
20182
20183 2010-04-30  Jim Meyering  <meyering@redhat.com>
20184
20185         bootstrap: don't ignore failure to generate po*/Makevars
20186         * build-aux/bootstrap (with_gettext): Don't ignore failure
20187         to create po/Makevars or runtime-po/Makevars.
20188
20189 2010-04-29  Eric Blake  <eblake@redhat.com>
20190
20191         headers: relax license to LGPLv2+
20192         * modules/fcntl-h (License): Relax license.
20193         * modules/getopt-posix (License): Likewise.
20194         * modules/locale (License): Likewise.
20195         * modules/math (License): Likewise.
20196         * modules/pty (License): Likewise.
20197         * modules/sched (License): Likewise.
20198         * modules/search (License): Likewise.
20199         * modules/spawn (License): Likewise.
20200         * modules/stdarg (License): Likewise.
20201         * modules/sysexits (License): Likewise.
20202
20203 2010-04-29  Jim Meyering  <meyering@redhat.com>
20204
20205         inttypes: relax license to LGPLv2+
20206         * modules/inttypes (License): Relax license.
20207
20208 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20209
20210         * top/maint.mk (indent): Run twice to produce idempotent results.
20211
20212 2010-04-28  Bruno Haible  <bruno@clisp.org>
20213
20214         getdate: Generate getdate.c in the source directory.
20215         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20216         MOSTLYCLEANFILES.
20217         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20218
20219 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20220
20221         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20222         is not declared as a const *; avoid warnings in that case.
20223
20224 2010-04-28  Eric Blake  <eblake@redhat.com>
20225
20226         canonicalize-lgpl: avoid compiler warning
20227         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20228         declaration' / 'extraneous semicolon' warning with some compilers.
20229         Reported by Andreas Gruenbacher.
20230
20231 2010-04-28  Jim Meyering  <meyering@redhat.com>
20232
20233         init.sh: ensure a more reliable exit status when exiting via trap
20234         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20235         Inspired by patches from Dmitry V. Levin.
20236         Also trap on signal 3 (SIGQUIT).
20237
20238 2010-04-27  Bruno Haible  <bruno@clisp.org>
20239
20240         Update doc about utimes().
20241         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20242         'utimens' module.
20243         Reported by Andreas Gruenbacher <agruen@suse.de>.
20244
20245 2010-04-27  Eric Blake  <eblake@redhat.com>
20246
20247         full-read, full-write: relax license
20248         * modules/full-read (License): Drop to LGPLv2+.
20249         * modules/full-write (License): Likewise.
20250         * modules/safe-read (License): Likewise.
20251         * modules/safe-write (License): Likewise.
20252
20253         pthread: mention library for linking
20254         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20255
20256 2010-04-27  Jim Meyering  <meyering@redhat.com>
20257
20258         maint.mk: fix a bug introduced in last change
20259         * top/maint.mk (gl_assured_headers_): Now that all names are on
20260         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20261         is not anchored to end of word, it should be adequate.
20262
20263         maint.mk: avoid side-effect in latest syntax-check
20264         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20265         to run commands via $(shell...), and hence to incur cost only when
20266         the new rule is actually run.
20267
20268         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20269         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20270         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20271         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20272         (gl_assured_headers_, az_, AZ_): Define.
20273         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20274
20275 2010-04-26  Jim Meyering  <jim@meyering.net>
20276             Bruno Haible  <bruno@clisp.org>
20277
20278         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20279         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20280         Prompted by an exchange with Gilles Espinasse.
20281
20282 2010-04-26  Jim Meyering  <meyering@redhat.com>
20283
20284         git-version-gen: aesthetic tweak
20285         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20286         so that the command remains on a single line.
20287
20288 2010-04-26  Eric Blake  <eblake@redhat.com>
20289
20290         git-version-gen: allow use on EBCDIC hosts
20291         * build-aux/git-version-gen (dirty): Use literal rather than tying
20292         ourselves to ascii.
20293         Reported by Steve Goetze.
20294
20295 2010-04-25  Bruno Haible  <bruno@clisp.org>
20296
20297         netdb: Add support for GNULIB_POSIXCHECK.
20298         * lib/netdb.in.h: Include warn-on-use.h.
20299         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20300         functions are used when GNULIB_POSIXCHECK is defined and the
20301         getaddrinfo module is not in use.
20302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20303         freeaddrinfo, gai_strerror, getnameinfo are declared.
20304         * modules/netdb (Depends-on): Add warn-on-use.
20305         (Makefile.am): Include warn-on-use.h in netdb.h.
20306
20307 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20308
20309         build: avoid "make check" failure without .git/ directory
20310         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20311         there is no .git/ directory.
20312
20313 2010-04-25  Bruno Haible  <bruno@clisp.org>
20314
20315         ptsname: Fix misuse of ttyname_r.
20316         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20317         of errno.
20318
20319 2010-04-25  Bruno Haible  <bruno@clisp.org>
20320
20321         ttyname_r: Make it work on Solaris 10.
20322         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20323         if the system function has the POSIX declaration. Test whether the
20324         function fails if the buffer is less than 128 bytes large.
20325         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20326         system's ttyname_r function. Provide a reasonably large buffer.
20327         * modules/ttyname_r (Depends-on): Add extensions.
20328         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20329
20330 2010-04-25  Bruno Haible  <bruno@clisp.org>
20331
20332         Use the 'extensions' module for some more functions on Solaris.
20333         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20334         module.
20335         * doc/posix-functions/ctime_r.texi: Likewise.
20336         * doc/posix-functions/getgrgid_r.texi: Likewise.
20337         * doc/posix-functions/getgrnam_r.texi: Likewise.
20338         * doc/posix-functions/getpwnam_r.texi: Likewise.
20339         * doc/posix-functions/getpwuid_r.texi: Likewise.
20340         * doc/posix-functions/readdir_r.texi: Likewise.
20341         * doc/posix-functions/sigwait.texi: Likewise.
20342         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20343         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20344
20345 2010-04-25  Bruno Haible  <bruno@clisp.org>
20346
20347         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20348         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20349         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20350         * lib/ttyname_r.c: Include <limits.h>.
20351         (ttyname_r): Define using the system's ttyname_r function, if it exists
20352         and not on Solaris.
20353         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20354         set.
20355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20356         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20357         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20358         Reported by Simon Josefsson.
20359
20360 2010-04-25  Bruno Haible  <bruno@clisp.org>
20361
20362         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20363         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20364         * doc/posix-functions/ctime_r.texi: Likewise.
20365         * doc/posix-functions/getgrgid_r.texi: Likewise.
20366         * doc/posix-functions/getgrnam_r.texi: Likewise.
20367         * doc/posix-functions/getlogin_r.texi: Likewise.
20368         * doc/posix-functions/getpwnam_r.texi: Likewise.
20369         * doc/posix-functions/getpwuid_r.texi: Likewise.
20370         * doc/posix-functions/readdir_r.texi: Likewise.
20371         * doc/posix-functions/sigwait.texi: Likewise.
20372         * doc/posix-functions/ttyname_r.texi: Likewise.
20373         Reported by Simon Josefsson.
20374
20375 2010-04-25  Bruno Haible  <bruno@clisp.org>
20376
20377         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20378         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20379         also to --create-testdir.
20380         (func_acceptable): Don't consider the status of *-tests modules here.
20381         (func_modules_transitive_closure): Consider it here, before including a
20382         test module.
20383         (func_import, func_create_testdir): Set inc_all_direct_tests,
20384         inc_all_indirect_tests.
20385         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20386         --create-testdir and --create-megatestdir.
20387
20388 2010-04-25  Bruno Haible  <bruno@clisp.org>
20389
20390         gnulib-tool: Add --without-*-tests options.
20391         * gnulib-tool (func_usage): Document the --without-*-tests options.
20392         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20393         excl_unportable_tests): New variables.
20394         Fail if they are specified with --import or --update.
20395         (func_acceptable): Respect the excl_*_tests variables.
20396         (func_import): Set the excl_*_tests variables to empty.
20397
20398 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20399             Bruno Haible  <bruno@clisp.org>
20400
20401         Work around a MacOS X 10.4 bug with openpty.
20402         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20403         * tests/test-openpty.c (main): Close the master side explicitly.
20404
20405 2010-04-25  Bruno Haible  <bruno@clisp.org>
20406
20407         strnlen: Fix a C++ test error on MacOS X and Solaris.
20408         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20409         the function is not declared.
20410         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20411         Simon Josefsson.
20412
20413 2010-04-24  Bruno Haible  <bruno@clisp.org>
20414
20415         Avoid a gcc warning.
20416         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20417         of correct type for %08lx directive.
20418         Reported by Eric Blake.
20419
20420 2010-04-24  Bruno Haible  <bruno@clisp.org>
20421
20422         vasnprintf: Correct errno value in case of out-of-memory.
20423         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20424         or sprintf. Use the errno value from SNPRINTF or sprintf.
20425         Reported by Ian Beckwith <ianb@erislabs.net>.
20426
20427 2010-04-24  Bruno Haible  <bruno@clisp.org>
20428
20429         ansi-c++-opt: Find correct compiler when cross-compiling.
20430         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20431         AC_CHECK_PROGS.
20432         Reported by Simon Josefsson.
20433
20434 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20435
20436         vc-list-files: Add support for subversion
20437         * build-aux/vc-list-files: Use "svn list" to generate the list of
20438         files controlled by subversion.
20439
20440 2010-04-23  Jim Meyering  <meyering@redhat.com>
20441
20442         vc-list-files tests: convert to use init.sh
20443         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20444         path_prepend_.
20445         Use Exit, not exit.
20446         Use skip_ rather than open coding it.
20447         Remove trap set-up and compare definitions.
20448         * tests/test-vc-list-files-git.sh: Likewise.
20449         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20450
20451 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20452
20453         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20454         backup files.
20455
20456 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20457
20458         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20459
20460 2010-04-20  Eric Blake  <eblake@redhat.com>
20461
20462         tests: be robust to ignored SIGPIPE
20463         * tests/test-select-in.sh: Consume all output.
20464         * tests/test-lseek.sh: Check correct exit status, while avoiding
20465         EPIPE.
20466
20467 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20468             Bruno Haible  <bruno@clisp.org>
20469
20470         visibility: Don't use -fvisibility if it leads to a warning.
20471         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20472         yes, don't pretend that visibility works if it leads to a warning.
20473         Reported by Mike Gran <spk121@yahoo.com>.
20474
20475 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20476
20477         * build-aux/bootstrap: Use "git -h" for testing for supported options
20478         instead of "git --help".  The short-form option only shows a summary,
20479         and doesn't layout the full man page.  Grep for the full option name
20480         in the summary, too.
20481
20482 2010-04-19  Bruno Haible  <bruno@clisp.org>
20483
20484         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20485         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20486         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20487         mention of RELOCATABLE_STRIP.
20488         Reported by Sylvain Beucler <beuc@beuc.net>.
20489
20490 2010-04-19  Bruno Haible  <bruno@clisp.org>
20491
20492         * lib/diffseq.h: Fix typo in comment.
20493         Reported by Eric Blake.
20494
20495 2010-04-19  Bruno Haible  <bruno@clisp.org>
20496
20497         ioctl: Move autoconf macro to a .m4 file.
20498         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20499         * modules/ioctl (Files): Add it.
20500         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20501         Reported by Ian Beckwith <ianb@erislabs.net>.
20502
20503 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20504             Bruno Haible  <bruno@clisp.org>
20505
20506         diffseq: Accommodate use-case with abstract arrays.
20507         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20508         is not defined.
20509         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20510         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20511
20512 2010-04-18  Bruno Haible  <bruno@clisp.org>
20513
20514         * doc/posix-headers/stdbool.texi: More precise wording.
20515
20516 2010-04-17  Jim Meyering  <meyering@redhat.com>
20517
20518         maint.mk: use gnu-style indentation in an embedded perl script
20519         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20520         Rename variable: s/two/last_two_bytes/
20521
20522 2010-04-16  Eric Blake  <eblake@redhat.com>
20523
20524         test-stdbool: skip test that fails with Solaris CC
20525         * tests/test-stdbool.c (f): Skip test that causes compilation
20526         error under buggy C++ compiler.
20527         * lib/stdbool.in.h: Document the limitation.
20528         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20529
20530         setenv: allow compilation with C++
20531         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20532         register keyword.
20533
20534         stdint: allow test to pass with C++
20535         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20536
20537         getopt: allow compilation with C++
20538         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20539         struct.
20540         * lib/getopt.c (_getopt_internal_r): Use correct type.
20541         Reported by Dagobert Michelson, via Joel E. Denny.
20542
20543 2010-04-16  Bruno Haible  <bruno@clisp.org>
20544
20545         Override netdb.h always.
20546         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20547         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20548         Reported by Ludovic Courtès <ludo@gnu.org>.
20549
20550 2010-04-15  Bruno Haible  <bruno@clisp.org>
20551
20552         openpty: Fix mistake from 2010-03-21.
20553         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20554         Reported by Simon Josefsson.
20555
20556 2010-04-15  Eric Blake  <eblake@redhat.com>
20557
20558         test-forkpty: fix expected signature
20559         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20560         Reported by Simon Josefsson.
20561
20562 2010-04-15  Jim Meyering  <meyering@redhat.com>
20563
20564         maint.mk: texinfo_suffix_re_: correct the default regexp
20565         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20566
20567         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20568         make it configurable via texinfo_suffix_re_.
20569
20570 2010-04-14  Eric Blake  <eblake@redhat.com>
20571
20572         strtok_r: relax license to LGPLv2+
20573         * modules/strtok_r (License): Relax license.
20574         Reported by Matthias Bolte.
20575
20576 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20577
20578         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20579         version 1.4.4 by default instead of requiring the libgcrypt
20580         version used during build.  This makes it possible to use the
20581         application with older but still binary compatible libgcrypt
20582         versions.
20583
20584 2010-04-13  Eric Blake  <eblake@redhat.com>
20585
20586         getopt-gnu: match recent glibc fixes and posix ruling
20587         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20588         '+' handling, when requesting extensions.
20589         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20590         'W;' handling.
20591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20592         * doc/posix-functions/getopt.texi (getopt): Document this.
20593         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20594         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20595         Likewise.
20596
20597         getopt: merge bug fixes from glibc
20598         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20599         diagnostics.  Honor '+:' correctly.  Reject ';'.
20600
20601         getopt-posix: detect MacOS bug
20602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20603         optind when missing a required argument.
20604         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20605         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20606         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20607         Likewise.
20608
20609         getopt-posix: avoid spurious failure on Solaris
20610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20611         an indicator that setting optind=1 is sufficient for reset.
20612
20613         getopt-posix: avoid spurious failure on FreeBSD
20614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20615         in POSIX mode, since the m4 test uses it.
20616
20617         gnulib-tool: silence warning on BSD sh
20618         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20619
20620 2010-04-13  Jim Meyering  <meyering@redhat.com>
20621
20622         doc: users.txt: GNU patch now uses gnulib
20623         * users.txt: Add patch.
20624
20625 2010-04-12  Jim Meyering  <meyering@redhat.com>
20626
20627         maint.mk: generate more concise timing data for syntax-check rules
20628         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20629         " done" from each line that reports a syntax-check test duration.
20630
20631 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20632
20633         git-version-gen: use "git update-index..." rather than "git status"
20634         * build-aux/git-version-gen: Use git update-index --refresh, not
20635         "git status".  With some versions of git, "git status" would fail
20636         to update the index and result in an unwarranted "-dirty" suffix.
20637
20638 2010-04-11  Jim Meyering  <meyering@redhat.com>
20639
20640         openat: correct formatting (no semantic change)
20641         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20642         Suggested by Bruno Haible.
20643
20644 2010-04-11  Bruno Haible  <bruno@clisp.org>
20645
20646         Stricter declaration checking in testdirs.
20647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20648         If for_tests is true, augment AM_CPPFLAGS to define
20649         GNULIB_STRICT_CHECKING.
20650         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20651         GNULIB_STRICT_CHECKING is defined, verify that the function is
20652         declared.
20653
20654 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20655             Bruno Haible  <bruno@clisp.org>
20656
20657         libunistring: Improve configure output.
20658         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20659         Don't say "consider installing GNU libunistring" when checking again
20660         with libiconv.
20661
20662 2010-04-11  Bruno Haible  <bruno@clisp.org>
20663
20664         libunistring: Correct value of $LTLIBUNISTRING.
20665         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20666         correct the value of $LTLIBUNISTRING.
20667
20668 2010-04-11  Bruno Haible  <bruno@clisp.org>
20669
20670         havelib: Add static libraries to LIBS in the right order.
20671         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20672         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20673
20674 2010-04-11  Bruno Haible  <bruno@clisp.org>
20675
20676         libunistring: Detect libunistring also when it depends on libiconv.
20677         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20678         the second AC_LIB_HAVE_LINKFLAGS invocation.
20679
20680 2010-04-11  James Youngman  <jay@gnu.org>
20681
20682         close-stream: declare local scalars to be "const"
20683         * lib/close-stream.c (close_stream): Make boolean variables const
20684         to document the fact that we set but do not change them.
20685
20686 2010-04-11  Bruno Haible  <bruno@clisp.org>
20687
20688         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20689
20690 2010-04-11  Jim Meyering  <meyering@redhat.com>
20691
20692         maint.mk: don't include dist-check.mk
20693         * top/maint.mk: Remove bogus include directive.
20694
20695         maint.mk: improve empty-line-at-EOF check
20696         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20697         solution, rather than tail+Perl-based one.  The latter would read
20698         a few kilobytes from the end of each file, and did not handle empty
20699         files properly.
20700
20701         maint.mk: print the elapsed time for each syntax-check rule
20702         * top/maint.mk (sc_m_rules_): Save start time in a file.
20703         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20704         (local-check): Interpose the .z rules
20705
20706 2010-04-11  Jim Meyering  <meyering@redhat.com>
20707
20708         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20709         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20710         empty file with one that ends in an empty line.
20711
20712 2010-04-10  Bruno Haible  <bruno@clisp.org>
20713
20714         mkdir: Make it work on mingw64.
20715         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20716         * lib/mkdir.c: Update comment.
20717         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20718
20719 2010-04-10  Bruno Haible  <bruno@clisp.org>
20720
20721         Don't override improved macro from newer autoconf.
20722         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20723         autoconf >= 2.62.
20724         Reported by Joel E. Denny <jdenny@clemson.edu>.
20725
20726 2010-04-10  Jim Meyering  <meyering@redhat.com>
20727
20728         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20729         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20730
20731         maint.mk: correct a diagnostic
20732         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20733         in diagnostic; now use $prohibit.
20734
20735 2010-04-10  Bruno Haible  <address@hidden>
20736
20737         fchownat: Fix a C++ test error on Solaris 8.
20738         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20739         the function does not exist.
20740
20741 2010-04-10  Bruno Haible  <bruno@clisp.org>
20742
20743         vasnprintf: Add more tests.
20744         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20745         (test_function): Test converting an invalid wide string.
20746
20747         vasnprintf: Correct handling of unconvertible wide string arguments.
20748         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20749         VASNPRINTF.
20750         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20751         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20752         smaller than the expected maximum need for the directive. Set errno to
20753         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20754         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20756         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20757         * modules/vasnprintf (Files): Add m4/printf.m4.
20758         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20759
20760 2010-04-10  Bruno Haible  <bruno@clisp.org>
20761
20762         vasnprintf: Fix crash in %ls directive.
20763         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20764         string is passed as argument to %ls, with no precision and no width.
20765         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20766
20767 2010-04-10  Bruno Haible  <bruno@clisp.org>
20768
20769         vasnprintf: Fix multiple test failures on mingw.
20770         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20771         _snprintf, or snwprintf, not _snwprintf.
20772
20773 2010-04-10  Bruno Haible  <bruno@clisp.org>
20774
20775         write: Fix a C++ test error on mingw.
20776         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20777
20778 2010-04-10  Bruno Haible  <bruno@clisp.org>
20779
20780         vasnprintf test: Reduce code duplication.
20781         * tests/test-vasnprintf.c (test_function): New function, extracted from
20782         test_vasnprintf.
20783         (test_vasnprintf, test_asnprintf): Invoke it.
20784
20785 2010-04-10  Bruno Haible  <bruno@clisp.org>
20786
20787         strnlen: Fix warning in C++ mode on MacOS X.
20788         * lib/string.in.h (strnlen): Use the modern idiom.
20789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20790         defining strnlen as a macro already in <config.h>.
20791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20792         REPLACE_STRNLEN.
20793         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20795
20796 2010-04-08  James Youngman  <jay@gnu.org>
20797
20798         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20799         the example.
20800
20801 2010-04-09  Jim Meyering  <meyering@redhat.com>
20802
20803         maint.mk: print better diagnostic when there is no $(_hv_file)
20804         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20805         announce that when $(_hv_file) (aka help-version) does not exist.
20806
20807         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20808         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20809         not try to interpret its random input bytes.  Jarno Rajahalme reported
20810         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20811         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20812         (mktempd_): Likewise, just in case.
20813
20814         ftruncate: add two years to projected module removal date: 2012
20815         * m4/ftruncate.m4: Adjust comments.
20816
20817         ftruncate: mark module as obsolete; even MinGW provides it, now
20818         * modules/ftruncate (Status): Obsolete.
20819         (Notice): Say that.
20820         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20821         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20822
20823 2010-04-08  Bruno Haible  <bruno@clisp.org>
20824
20825         Fix side effects from tests-related modules.
20826         * modules/dprintf-posix (Comment): New section.
20827         * modules/fprintf-posix (Comment): Likewise.
20828         * modules/obstack-printf-posix (Comment): Likewise.
20829         * modules/printf-posix (Comment): Likewise.
20830         * modules/snprintf-posix (Comment): Likewise.
20831         * modules/sprintf-posix (Comment): Likewise.
20832         * modules/vasnprintf-posix (Comment): Likewise.
20833         * modules/vasprintf-posix (Comment): Likewise.
20834         * modules/vdprintf-posix (Comment): Likewise.
20835         * modules/vfprintf-posix (Comment): Likewise.
20836         * modules/vprintf-posix (Comment): Likewise.
20837         * modules/vsnprintf-posix (Comment): Likewise.
20838         * modules/vsprintf-posix (Comment): Likewise.
20839         * modules/xprintf-posix (Comment): Likewise.
20840         * modules/xvasprintf-posix (Comment): Likewise.
20841         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20842         * modules/floorf-tests (Depends-on): Likewise.
20843         * modules/round-tests (Depends-on): Likewise.
20844         * modules/roundf-tests (Depends-on): Likewise.
20845         * modules/trunc-tests (Depends-on): Likewise.
20846         * modules/truncf-tests (Depends-on): Likewise.
20847         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20848         'fprintf-posix' module is not present.
20849         * tests/test-floorf2.c (check): Likewise.
20850         * tests/test-trunc2.c (check): Likewise.
20851         * tests/test-truncf2.c (check): Likewise.
20852         * tests/test-round2.c (equal): Likewise.
20853         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20854
20855 2010-04-07  Karl Berry  <karl@gnu.org>
20856
20857         * config/srclist.txt,
20858         * config/srclistvars.sh,
20859         * config/srclist-update: doc fixes.
20860
20861 2010-04-07  Jim Meyering  <meyering@redhat.com>
20862
20863         maint.mk: add a PATH crosschecking syntax-check rule
20864         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20865         Useful if you use a test like the one in help-version (coreutils,
20866         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20867         printed by prog --version.
20868
20869 2010-04-06  Bruno Haible  <bruno@clisp.org>
20870
20871         Fix link error on mingw.
20872         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20873         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20874
20875 2010-04-06  Bruno Haible  <bruno@clisp.org>
20876
20877         Assume rmdir exists.
20878         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20879
20880 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20881
20882         doc: update users.txt
20883         * users.txt: Add gcal.
20884
20885 2010-04-06  Jim Meyering  <meyering@redhat.com>
20886
20887         init.sh: simply unset TMPDIR rather than risking env -i
20888         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20889         although it probably works fine on all Unix-based systems, some
20890         systems (Cygwin?) cannot tolerate a totally cleared environment.
20891         Suggestion from Eric Blake.
20892
20893 2010-04-06  Jim Meyering  <meyering@redhat.com>
20894
20895         init.sh: portability fix: use env's POSIX-specified -i option not -u
20896         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20897         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20898
20899 2010-04-05  Bruno Haible  <bruno@clisp.org>
20900
20901         btowc: Work around Cygwin 1.7.2 bug.
20902         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20903         does not map NUL to 0.
20904         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20905
20906 2010-04-05  Bruno Haible  <bruno@clisp.org>
20907
20908         Make the multithread modules work on Cygwin 1.7.2.
20909         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20910         imported symbols can be declared weak, so that it returns "no" on
20911         Cygwin 1.7.2.
20912
20913 2010-04-05  Bruno Haible  <bruno@clisp.org>
20914
20915         Use the module 'strncat'.
20916         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20917
20918         Tests for module 'strncat'.
20919         * modules/strncat-tests: New file.
20920         * tests/test-strncat.c: New file.
20921
20922         New module 'strncat'.
20923         * lib/string.in.h (strncat): New declaration.
20924         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20925         * m4/strncat.m4: New file, based on m4/memchr.m4.
20926         * modules/strncat: New file.
20927         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20928         is declared.
20929         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20930         REPLACE_STRNCAT.
20931         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20932         REPLACE_STRNCAT.
20933         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20934         module.
20935         * tests/test-string-c++.cc: Check signature of strncat.
20936
20937 2010-04-05  Jim Meyering  <meyering@redhat.com>
20938
20939         xstrtoumax-tests: convert to use init.sh
20940         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20941         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20942         Use Exit, not exit.
20943         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20944
20945         xstrtoimax-tests: convert to use init.sh
20946         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20947         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20948         Use Exit, not exit.
20949         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20950
20951 2010-04-05  Bruno Haible  <bruno@clisp.org>
20952
20953         sys_socket: Avoid #define replacements in C++ mode.
20954         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20955         warning to the function if possible, rather than #defining the symbol
20956         to a dysfunctional alias.
20957
20958 2010-04-05  Bruno Haible  <bruno@clisp.org>
20959
20960         fseeko: Fix C++ test error on mingw.
20961         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20962         gl_FUNC_FSEEKO.
20963         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20964         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20965         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20966         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20967
20968 2010-04-05  Bruno Haible  <bruno@clisp.org>
20969
20970         duplocale: Improve test output.
20971         * tests/test-duplocale.c (main): Print reason for skipped test.
20972
20973 2010-04-05  Bruno Haible  <bruno@clisp.org>
20974
20975         Assume rmdir exists.
20976         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20977         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20978
20979 2010-04-05  Bruno Haible  <bruno@clisp.org>
20980
20981         Fix link error on Solaris 8 with cc.
20982         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20983
20984 2010-04-05  Bruno Haible  <bruno@clisp.org>
20985
20986         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20987         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20988
20989 2010-04-05  Bruno Haible  <bruno@clisp.org>
20990
20991         vasprintf: Update documentation.
20992         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20993
20994 2010-04-05  Bruno Haible  <bruno@clisp.org>
20995
20996         ptsname: Improve test.
20997         * tests/test-ptsname.c (main): Also try the various master names of BSD
20998         systems.
20999
21000 2010-04-05  Bruno Haible  <bruno@clisp.org>
21001
21002         memchr: Avoid a possible C++ test error.
21003         * lib/string.in.h (memchr): Provide declaration if function is missing.
21004         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21005         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21007         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21008
21009 2010-04-05  Bruno Haible  <bruno@clisp.org>
21010
21011         strtok_r: Improve idiom.
21012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21013         AC_LIBOBJ is used.
21014
21015 2010-04-05  Bruno Haible  <bruno@clisp.org>
21016
21017         strdup: Improve idiom.
21018         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21019         AC_LIBOBJ is used.
21020         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21021         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21022         when AC_LIBOBJ is used.
21023
21024 2010-04-05  Bruno Haible  <bruno@clisp.org>
21025
21026         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21027         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21028         don't set REPLACE_MBSINIT to 1.
21029         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21030         don't set REPLACE_MBRTOWC to 1.
21031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21032         exist, don't set REPLACE_MBSRTOWCS to 1.
21033         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21034         exist, don't set REPLACE_MBSNRTOWCS to 1.
21035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21036         don't set REPLACE_WCRTOMB to 1.
21037         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21038         exist, don't set REPLACE_WCSRTOMBS to 1.
21039         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21040         exist, don't set REPLACE_WCSNRTOMBS to 1.
21041
21042 2010-04-05  Bruno Haible  <bruno@clisp.org>
21043
21044         ldexpl: Improve idiom.
21045         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21046         make sure to set HAVE_DECL_LDEXPL to 0.
21047
21048 2010-04-05  Jim Meyering  <meyering@redhat.com>
21049
21050         xstrtol-tests: convert to use init.sh
21051         * modules/xstrtol-tests (Files): Add tests/init.sh.
21052         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21053         Use Exit, not exit.
21054         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21055
21056         atexit-tests: convert to use init.sh
21057         * modules/atexit-tests (Files): Add tests/init.sh.
21058         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21059         Use Exit, not exit.
21060         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21061
21062         init.sh: fix typo
21063         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21064
21065         init.sh: make it easier for a test script to write to the tty, ...
21066         when using automake's parallel-tests mode.
21067         * tests/init.sh (stderr_fileno_): Define overridable variable.
21068         (warn_): New function, to use it.
21069         (fail_, skip_, framework_failure_): Use warn_.
21070
21071 2010-04-04  Bruno Haible  <bruno@clisp.org>
21072
21073         btowc: Avoid warning.
21074         * lib/btowc.c: Include <stdlib.h>.
21075         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21076
21077 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21078             Bruno Haible  <bruno@clisp.org>
21079
21080         wchar: Port to NetBSD 1.5.
21081         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21082         * lib/wctype.in.h (WEOF): Likewise.
21083
21084 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21085             Bruno Haible  <bruno@clisp.org>
21086
21087         Port extended stdio to NetBSD 1.5.
21088         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21089         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21090         older.
21091
21092 2010-04-04  Bruno Haible  <bruno@clisp.org>
21093
21094         string: Remove unused substitution.
21095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21096         HAVE_DECL_STRERROR.
21097         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21098
21099 2010-04-04  Bruno Haible  <bruno@clisp.org>
21100
21101         strtod: Avoid a possible C++ test error.
21102         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21103         set REPLACE_STRTOD.
21104
21105 2010-04-04  Bruno Haible  <bruno@clisp.org>
21106
21107         strerror: Update documentation.
21108         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21109
21110 2010-04-04  Bruno Haible  <bruno@clisp.org>
21111
21112         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21113         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21114         _GL_CXXALIAS_SYS_CAST.
21115
21116 2010-04-04  Bruno Haible  <bruno@clisp.org>
21117
21118         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21119         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21120         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21121         REPLACE_FREXPL to 1.
21122         * doc/posix-functions/frexpl.texi: Update documentation.
21123
21124 2010-04-04  Bruno Haible  <bruno@clisp.org>
21125
21126         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21127         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21128
21129 2010-04-04  Bruno Haible  <bruno@clisp.org>
21130
21131         Implement nanosleep for native Windows.
21132         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21133
21134 2010-04-04  Bruno Haible  <bruno@clisp.org>
21135
21136         math: Fix some C++ test errors on Solaris 8.
21137         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21138
21139 2010-04-04  Bruno Haible  <bruno@clisp.org>
21140
21141         math: Fix some C++ test errors on Cygwin.
21142         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21143         truncl): Provide declaration if the system does not have it.
21144         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21145         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21146         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21147         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21148         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21149         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21150         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21151         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21152         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21153         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21154         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21155         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21156         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21157         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21158         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21159         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21161         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21162         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21163         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21164         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21165         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21166
21167 2010-04-04  Bruno Haible  <bruno@clisp.org>
21168
21169         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21170         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21171         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21172         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21173         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21174         * m4/isinf.m4 (gl_ISINF): Likewise.
21175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21176
21177 2010-04-04  Bruno Haible  <bruno@clisp.org>
21178
21179         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21180         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21181
21182 2010-04-04  Bruno Haible  <bruno@clisp.org>
21183
21184         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21185         * modules/tmpfile (configure.ac): Update.
21186
21187         tmpfile: Fix C++ test error on mingw.
21188         * lib/stdio.in.h (tmpfile): New declaration.
21189         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21190         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21191         * modules/tmpfile (Depends-on): Add stdio.
21192         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21193         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21194         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21195         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21196         REPLACE_TMPFILE.
21197         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21198
21199 2010-04-04  Bruno Haible  <bruno@clisp.org>
21200
21201         ioctl: Fix C++ test error on mingw.
21202         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21203         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21204         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21205
21206 2010-04-03  Bruno Haible  <bruno@clisp.org>
21207
21208         wcwidth: Fix C++ test error on mingw.
21209         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21211         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21212
21213 2010-04-03  Bruno Haible  <bruno@clisp.org>
21214
21215         nanosleep: Fix C++ test error on mingw.
21216         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21217         * lib/time.in.h (nanosleep): Use modern idiom.
21218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21219         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21220         REPLACE_NANOSLEEP to 1.
21221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21222         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21223
21224 2010-04-03  Bruno Haible  <bruno@clisp.org>
21225
21226         strptime: Fix C++ test error on mingw.
21227         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21228         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21229         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21230         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21231         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21232         not REPLACE_STRPTIME.
21233         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21234         REPLACE_STRPTIME.
21235
21236 2010-04-03  Bruno Haible  <bruno@clisp.org>
21237
21238         timegm: Fix C++ test error on mingw.
21239         * lib/time.in.h (timegm): Use modern idiom.
21240         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21241         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21243         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21244
21245 2010-04-03  Bruno Haible  <bruno@clisp.org>
21246
21247         timegm: Assume declaration if function exists.
21248         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21249         if it exists. Don't clobber ac_cv_func_timegm.
21250
21251 2010-04-03  Bruno Haible  <bruno@clisp.org>
21252
21253         time_r: Fix C++ test error on mingw.
21254         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21255         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21256         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21258         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21259
21260 2010-04-03  Bruno Haible  <bruno@clisp.org>
21261
21262         time_r: Minor updates.
21263         * modules/time_r (Description): Mention the provided functions.
21264         * lib/time_r.c: Don't include <string.h>.
21265         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21266         * doc/posix-functions/localtime_r.texi: Likewise.
21267
21268 2010-04-03  Bruno Haible  <bruno@clisp.org>
21269
21270         time: Fix regression introduced on 2010-03-08.
21271         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21272         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21273
21274 2010-04-03  Jim Meyering  <meyering@redhat.com>
21275
21276         maint.mk: don't silently disable project-specific syntax-check rules
21277         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21278         that they need to convert their project-specific syntax-check rules
21279         to use the new _sc_search_regexp.
21280
21281 2010-04-03  Bruno Haible  <bruno@clisp.org>
21282
21283         fchdir: Fix regression introduced on 2010-03-08.
21284         * lib/unistd.in.h (fchdir): Fix declaration.
21285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21287         REPLACE_FCHDIR.
21288         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21289         REPLACE_FCHDIR.
21290
21291 2010-04-03  Bruno Haible  <bruno@clisp.org>
21292
21293         getpagesize: Fix C++ test error on mingw.
21294         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21295         system does not declare the function.
21296         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21297         declared.
21298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21299         HAVE_DECL_GETPAGESIZE.
21300         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21301
21302 2010-04-03  Bruno Haible  <bruno@clisp.org>
21303
21304         stdio: Make C++ tests work on mingw.
21305         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21306         does not declare the function.
21307
21308 2010-04-03  Bruno Haible  <bruno@clisp.org>
21309
21310         ftello: Fix C++ test error on mingw.
21311         * lib/stdio.in.h (ftello): Use modern idiom.
21312         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21313         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21314         is missing and that it needs to be replaced.
21315         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21317         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21318
21319 2010-04-03  Bruno Haible  <bruno@clisp.org>
21320
21321         fseeko: Fix C++ test error on mingw.
21322         * lib/stdio.in.h (fseeko): Use modern idiom.
21323         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21325         is missing and that it needs to be replaced.
21326         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21328         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21329
21330 2010-04-03  Bruno Haible  <bruno@clisp.org>
21331
21332         mkstemp: Fix C++ test error on mingw.
21333         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21335         function is missing and that it needs to be replaced.
21336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21337         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21338
21339 2010-04-03  Bruno Haible  <bruno@clisp.org>
21340
21341         stpncpy: Fix C++ test error on mingw.
21342         * lib/string.in.h (stpncpy): Use modern idiom.
21343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21344         function is missing and that it needs to be replaced.
21345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21346         REPLACE_STPNCPY.
21347         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21348
21349 2010-04-03  Bruno Haible  <bruno@clisp.org>
21350
21351         sys_stat: Fix C++ test error on mingw.
21352         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21353         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21354
21355 2010-04-03  Bruno Haible  <bruno@clisp.org>
21356
21357         pty: Update doc.
21358         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21359
21360 2010-04-03  Bruno Haible  <bruno@clisp.org>
21361
21362         unistd: Fix C++ test error on mingw.
21363         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21364
21365 2010-04-03  Bruno Haible  <bruno@clisp.org>
21366
21367         Update doc regarding mingw.
21368         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21369         * doc/glibc-functions/login_tty.texi: Likewise.
21370         * doc/glibc-functions/forkpty.texi: Likewise.
21371
21372 2010-04-03  Bruno Haible  <bruno@clisp.org>
21373
21374         stdlib: Avoid compilation failure of c-strtold on mingw.
21375         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21376
21377 2010-04-03  Bruno Haible  <bruno@clisp.org>
21378
21379         locale: Make C++ tests work on Cygwin and mingw.
21380         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21381         cannot provide the function.
21382         Reported by Simon Josefsson.
21383
21384 2010-04-03  Bruno Haible  <bruno@clisp.org>
21385
21386         localename: Port to MacOS X 10.6.
21387         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21388         memory layout of the locales in MacOS X 10.6 as well.
21389         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21390
21391 2010-04-02  Bruno Haible  <bruno@clisp.org>
21392
21393         gnulib-tool: Ensure that long-running tests are executed last.
21394         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21395         running tests after the one for the other tests.
21396
21397 2010-04-02  Bruno Haible  <bruno@clisp.org>
21398
21399         gnulib-tool: Ensure the tests in the main directory are executed first.
21400         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21401         start with the current directory.
21402
21403 2010-04-02  Bruno Haible  <bruno@clisp.org>
21404
21405         Tests for module 'havelib', moved here from GNU gettext.
21406         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21407         modifications.
21408         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21409         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21410         with modifications.
21411         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21412         modifications.
21413         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21414         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21415         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21416         with modifications.
21417         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21418         with modifications.
21419         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21420         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21421         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21422         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21423         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21424         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21425         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21426         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21427         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21428         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21429         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21430         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21431         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21432         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21433         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21434         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21435         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21436         with modifications.
21437         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21438         with modifications.
21439         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21440         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21441         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21442         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21443         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21444         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21445         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21446         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21447         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21448         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21449         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21450         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21451         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21452         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21453         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21454         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21455         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21456         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21457         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21458         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21459         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21460         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21461         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21462         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21463         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21464         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21465         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21466         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21467         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21468         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21469         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21470         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21471         * tests/havelib/rpathx/rpathx.c: New file, from
21472         gettext/autoconf-lib-link.
21473         * tests/havelib/rpathx/Makefile.am: New file, from
21474         gettext/autoconf-lib-link.
21475         * tests/havelib/rpathx/configure.ac: New file, from
21476         gettext/autoconf-lib-link with modifications.
21477         * tests/havelib/rpathy/rpathy.c: New file, from
21478         gettext/autoconf-lib-link.
21479         * tests/havelib/rpathy/Makefile.am: New file, from
21480         gettext/autoconf-lib-link.
21481         * tests/havelib/rpathy/configure.ac: New file, from
21482         gettext/autoconf-lib-link with modifications.
21483         * tests/havelib/rpathz/rpathz.c: New file, from
21484         gettext/autoconf-lib-link.
21485         * tests/havelib/rpathz/Makefile.am: New file, from
21486         gettext/autoconf-lib-link.
21487         * tests/havelib/rpathz/configure.ac: New file, from
21488         gettext/autoconf-lib-link with modifications.
21489         * tests/havelib/rpathlx/usex.c: New file, from
21490         gettext/autoconf-lib-link.
21491         * tests/havelib/rpathlx/Makefile.am: New file, from
21492         gettext/autoconf-lib-link.
21493         * tests/havelib/rpathlx/configure.ac: New file, from
21494         gettext/autoconf-lib-link with modifications.
21495         * tests/havelib/rpathly/usey.c: New file, from
21496         gettext/autoconf-lib-link.
21497         * tests/havelib/rpathly/Makefile.am: New file, from
21498         gettext/autoconf-lib-link.
21499         * tests/havelib/rpathly/configure.ac: New file, from
21500         gettext/autoconf-lib-link with modifications.
21501         * tests/havelib/rpathlz/usez.c: New file, from
21502         gettext/autoconf-lib-link.
21503         * tests/havelib/rpathlz/Makefile.am: New file, from
21504         gettext/autoconf-lib-link.
21505         * tests/havelib/rpathlz/configure.ac: New file, from
21506         gettext/autoconf-lib-link with modifications.
21507         * tests/havelib/rpathlyx/usey.c: New file, from
21508         gettext/autoconf-lib-link.
21509         * tests/havelib/rpathlyx/Makefile.am: New file, from
21510         gettext/autoconf-lib-link.
21511         * tests/havelib/rpathlyx/configure.ac: New file, from
21512         gettext/autoconf-lib-link with modifications.
21513         * tests/havelib/rpathlzyx/usez.c: New file, from
21514         gettext/autoconf-lib-link.
21515         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21516         gettext/autoconf-lib-link.
21517         * tests/havelib/rpathlzyx/configure.ac: New file, from
21518         gettext/autoconf-lib-link with modifications.
21519         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21520         with modifications.
21521
21522 2010-04-02  Bruno Haible  <bruno@clisp.org>
21523
21524         gnulib-tool: Create distributed built sources also for the tests.
21525         * gnulib-tool (func_create_testdir): Also generate distributed built
21526         sources in the tests directory.
21527
21528 2010-04-02  Bruno Haible  <bruno@clisp.org>
21529
21530         gnulib-tool: Obey user's environment variables.
21531         * gnulib-tool (func_create_testdir): When creating built sources,
21532         respect the environment variables for autoconf, automake, etc. given by
21533         the user.
21534
21535 2010-04-02  Bruno Haible  <bruno@clisp.org>
21536
21537         gnulib-tool: Provide the value of --m4-base to modules.
21538         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21539         of gl_m4_base.
21540
21541 2010-04-02  Eric Blake  <eblake@redhat.com>
21542
21543         maint.mk: fix some fallout
21544         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21545         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21546
21547 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21548
21549         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21550         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21551         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21552         (sc_cast_of_x_alloc_return_value): Likewise.
21553         (sc_cast_of_alloca_return_value): Likewise.
21554         (sc_space_tab): Likewise.
21555         (sc_prohibit_atoi_atof): Likewise.
21556         (sc_prohibit_magic_number_exit): Likewise.
21557         (sc_error_exit_success): Likewise.
21558         (sc_file_system): Likewise.
21559         (sc_prohibit_have_config_h): Likewise.
21560         (sc_require_config_h): Likewise.
21561         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21562         (sc_obsolete_symbols): Likewise.
21563         (sc_changelog): Likewise.
21564         (sc_program_name): Likewise.
21565         (sc_the_the): Likewise.
21566         (sc_trailing_blank): Likewise.
21567         (sc_two_space_separator_in_usage): Likewise.
21568         (sc_useless_cpp_parens): Likewise.
21569         (sc_GPL_version): Likewise.
21570         (sc_GFDL_version): Likewise.
21571         (sc_texinfo_acronym): Likewise.
21572         (sc_prohibit_cvs_keyword): Likewise.
21573         (sc_prohibit_stat_st_blocks): Likewise.
21574         (sc_prohibit_S_IS_definition): Likewise.
21575         (sc_redundant_const): Likewise.
21576         (sc_makefile_TAB_only_indentation): Likewise.
21577         (sc_m4_quote_check): Likewise.
21578         (sc_makefile_path_separator_check): Likewise.
21579         (sc_copyright_check): Likewise.
21580         (sc_Wundef_boolean): Likewise.
21581         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21582
21583         maint.mk: match 0 or more whitespace-before-function-call '('
21584         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21585         that have zero or two-and-more spaces between the function name
21586         and the open parenthesis.
21587         (sc_error_message_warn_fatal): Likewise.
21588         (sc_error_message_uppercase): Likewise.
21589         (sc_error_message_period): Likewise.
21590
21591 2010-03-31  Eric Blake  <eblake@redhat.com>
21592
21593         maint.mk: check for [ as well as test
21594         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21595         Based on a libvirt report by Matthias Bolte.
21596
21597         gnumakefile: don't squelch _version output
21598         * top/GNUmakefile (_version): Create one-shot dependency rather
21599         than using $(shell) when version must be regenerated.
21600         (_autoreconf): Run verbosely, by default.
21601
21602         sys_time: avoid compiler warnings
21603         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21604         unconditional, fixing regression from 2010-03-29.
21605         Reported by Simon Josefsson.
21606
21607 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21608
21609         maint.mk: s/_header_without_use/_sc_header_without_use/
21610         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21611         (sc_prohibit_assert_without_use): Use the new name.
21612         (sc_prohibit_close_stream_without_use): Likewise.
21613         (sc_prohibit_getopt_without_use): Likewise.
21614         (sc_prohibit_quotearg_without_use): Likewise.
21615         (sc_prohibit_quote_without_use): Likewise.
21616         (sc_prohibit_long_options_without_use): Likewise.
21617         (sc_prohibit_inttostr_without_use): Likewise.
21618         (sc_prohibit_ignore_value_without_use): Likewise.
21619         (sc_prohibit_error_without_use): Likewise.
21620         (sc_prohibit_xalloc_without_use): Likewise.
21621         (sc_prohibit_hash_without_use): Likewise.
21622         (sc_prohibit_hash_pjw_without_use): Likewise.
21623         (sc_prohibit_safe_read_without_use): Likewise.
21624         (sc_prohibit_argmatch_without_use): Likewise.
21625         (sc_prohibit_canonicalize_without_use): Likewise.
21626         (sc_prohibit_root_dev_ino_without_use): Likewise.
21627         (sc_prohibit_openat_without_use): Likewise.
21628         (sc_prohibit_c_ctype_without_use): Likewise.
21629         (sc_prohibit_signal_without_use): Likewise.
21630         (sc_prohibit_intprops_without_use): Likewise.
21631
21632 2010-03-30  Eric Blake  <eblake@redhat.com>
21633
21634         maint: improve module indicators
21635         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21636         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21637         columns, and avoid extra macro expansion.
21638
21639         fdopendir: work around FreeBSD bug
21640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21642         * modules/dirent (Makefile.am): Substitute it.
21643         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21644         declaration.
21645         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21646         fix.
21647         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21648
21649 2010-03-29  Bruno Haible  <bruno@clisp.org>
21650
21651         Emit #pragma system_header after the inclusion guard, not before.
21652         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21653         guard that spans the entire file, not before. This enables an
21654         optimization in GCC's preprocessor.
21655         * lib/ctype.in.h: Likewise.
21656         * lib/dirent.in.h: Likewise.
21657         * lib/errno.in.h: Likewise.
21658         * lib/float.in.h: Likewise.
21659         * lib/getopt.in.h: Likewise.
21660         * lib/iconv.in.h: Likewise.
21661         * lib/langinfo.in.h: Likewise.
21662         * lib/locale.in.h: Likewise.
21663         * lib/math.in.h: Likewise.
21664         * lib/netdb.in.h: Likewise.
21665         * lib/netinet_in.in.h: Likewise.
21666         * lib/pty.in.h: Likewise.
21667         * lib/sched.in.h: Likewise.
21668         * lib/se-selinux.in.h: Likewise.
21669         * lib/search.in.h: Likewise.
21670         * lib/spawn.in.h: Likewise.
21671         * lib/stdarg.in.h: Likewise.
21672         * lib/stdint.in.h: Likewise.
21673         * lib/string.in.h: Likewise.
21674         * lib/strings.in.h: Likewise.
21675         * lib/sys_file.in.h: Likewise.
21676         * lib/sys_ioctl.in.h: Likewise.
21677         * lib/sys_time.in.h: Likewise.
21678         * lib/sys_times.in.h: Likewise.
21679         * lib/sys_utsname.in.h: Likewise.
21680         * lib/sys_wait.in.h: Likewise.
21681         * lib/sysexits.in.h: Likewise.
21682         * lib/wctype.in.h: Likewise.
21683
21684 2010-03-28  James Youngman  <jay@gnu.org>
21685
21686         save-cwd: don't leak a file descriptor when the caller execs.
21687         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21688         saved file descriptor.
21689         * modules/save-cwd (Depends-on): Depend on cloexec.
21690
21691 2010-03-29  Bruno Haible  <bruno@clisp.org>
21692
21693         Remove vestiges of fts-lgpl module.
21694         * lib/fts_.h: Assume GNULIB_FTS is 1.
21695         * lib/fts.c: Likewise.
21696         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21697
21698 2010-03-28  Bruno Haible  <bruno@clisp.org>
21699
21700         Fix definition of tests witness macro.
21701         * gnulib-tool (func_import): Fix definition of witness macro.
21702
21703 2010-03-28  Bruno Haible  <bruno@clisp.org>
21704
21705         Fix ioctl's protoype on glibc systems.
21706         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21707         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21708         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21709         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21710         signature. If not, arrange to replace the ioctl function.
21711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21712         REPLACE_IOCTL.
21713         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21714         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21715         Reported by Ludovic Courtès <ludo@gnu.org>.
21716
21717 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21718
21719         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21720         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21721         made it so grep -r --include=GLOB* ... did not work.
21722
21723 2010-03-26  Jim Meyering  <meyering@redhat.com>
21724             Eric Blake  <eblake@redhat.com>
21725
21726         maint.mk: prohibit use of test's -o and -a operators
21727         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21728
21729 2010-03-28  Bruno Haible  <bruno@clisp.org>
21730
21731         Remove unused GNULIB_XYZ macro definitions.
21732         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21733         invocation.
21734
21735 2010-03-28  Bruno Haible  <bruno@clisp.org>
21736
21737         Mark privileged tests modules.
21738         * modules/idpriv-drop-tests (Status): New section.
21739         * modules/idpriv-droptemp-tests (Status): New section.
21740
21741 2010-03-28  Bruno Haible  <bruno@clisp.org>
21742
21743         Split C++ tests into separate tests modules.
21744         * modules/dirent-c++-tests: New file, extracted from
21745         modules/dirent-tests.
21746         * modules/dirent-tests: Depend on it.
21747         * modules/fcntl-h-c++-tests: New file, extracted from
21748         modules/fcntl-h-tests.
21749         * modules/fcntl-h-tests: Depend on it.
21750         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21751         * modules/glob-tests: Depend on it.
21752         * modules/iconv-h-c++-tests: New file, extracted from
21753         modules/iconv-h-tests.
21754         * modules/iconv-h-tests: Depend on it.
21755         * modules/langinfo-c++-tests: New file, extracted from
21756         modules/langinfo-tests.
21757         * modules/langinfo-tests: Depend on it.
21758         * modules/locale-c++-tests: New file, extracted from
21759         modules/locale-tests.
21760         * modules/locale-tests: Depend on it.
21761         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21762         * modules/math-tests: Depend on it.
21763         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21764         * modules/pty-tests: Depend on it.
21765         * modules/search-c++-tests: New file, extracted from
21766         modules/search-tests.
21767         * modules/search-tests: Depend on it.
21768         * modules/signal-c++-tests: New file, extracted from
21769         modules/signal-tests.
21770         * modules/signal-tests: Depend on it.
21771         * modules/spawn-c++-tests: New file, extracted from
21772         modules/spawn-tests.
21773         * modules/spawn-tests: Depend on it.
21774         * modules/stdio-c++-tests: New file, extracted from
21775         modules/stdio-tests.
21776         * modules/stdio-tests: Depend on it.
21777         * modules/stdlib-c++-tests: New file, extracted from
21778         modules/stdlib-tests.
21779         * modules/stdlib-tests: Depend on it.
21780         * modules/string-c++-tests: New file, extracted from
21781         modules/string-tests.
21782         * modules/string-tests: Depend on it.
21783         * modules/sys_ioctl-c++-tests: New file, extracted from
21784         modules/sys_ioctl-tests.
21785         * modules/sys_ioctl-tests: Depend on it.
21786         * modules/sys_select-c++-tests: New file, extracted from
21787         modules/sys_select-tests.
21788         * modules/sys_select-tests: Depend on it.
21789         * modules/sys_socket-c++-tests: New file, extracted from
21790         modules/sys_socket-tests.
21791         * modules/sys_socket-tests: Depend on it.
21792         * modules/sys_stat-c++-tests: New file, extracted from
21793         modules/sys_stat-tests.
21794         * modules/sys_stat-tests: Depend on it.
21795         * modules/sys_time-c++-tests: New file, extracted from
21796         modules/sys_time-tests.
21797         * modules/sys_time-tests: Depend on it.
21798         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21799         * modules/time-tests: Depend on it.
21800         * modules/unistd-c++-tests: New file, extracted from
21801         modules/unistd-tests.
21802         * modules/unistd-tests: Depend on it.
21803         * modules/wchar-c++-tests: New file, extracted from
21804         modules/wchar-tests.
21805         * modules/wchar-tests: Depend on it.
21806         * modules/wctype-c++-tests: New file, extracted from
21807         modules/wctype-tests.
21808         * modules/wctype-tests: Depend on it.
21809         Reported by Simon Josefsson.
21810
21811 2010-03-28  Bruno Haible  <bruno@clisp.org>
21812
21813         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21814         * gnulib-tool (func_exists_module): New function, extracted from
21815         func_verify_module.
21816         (func_verify_module): Use it.
21817         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21818         'foo' only if 'foo' exists.
21819         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21820         module.
21821
21822 2010-03-28  Bruno Haible  <bruno@clisp.org>
21823
21824         gnulib-tool: Add support for special categories of tests.
21825         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21826         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21827         (func_usage): Document them.
21828         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21829         inc_unportable_tests, inc_all_tests): New variables.
21830         (func_acceptable): Consider these variables.
21831         (func_modules_transitive_closure): Make it work when the 'Status' field
21832         consists of multiple words.
21833         (func_import): Store and restore the values of inc_cxx_tests,
21834         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21835         inc_all_tests in gnulib-comp.m4.
21836         (func_create_testdir): Set inc_all_tests to true.
21837         * doc/gnulib.texi (Extra tests modules): New section.
21838         Suggested by Jim Meyering.
21839
21840 2010-03-28  Bruno Haible  <bruno@clisp.org>
21841
21842         ansi-c++-opt: Allow turning off the C++ build by default.
21843         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21844         gl_CXX_CHOICE_DEFAULT_NO is defined.
21845         Requested by Eric Blake.
21846
21847 2010-03-28  Bruno Haible  <bruno@clisp.org>
21848
21849         unistd: Avoid #define replacements in C++ mode.
21850         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21851         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21852         setsockopt, shutdown, select): In C++, attach a warning to the function
21853         if possible, rather than #defining the symbol to a dysfunctional alias.
21854         Reported by John W. Eaton <jwe@gnu.org>.
21855
21856 2010-03-28  Bruno Haible  <bruno@clisp.org>
21857
21858         Fix link errors on mingw.
21859         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21860         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21861         $(LIBSOCKET).
21862         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21863         $(LIBSOCKET).
21864
21865 2010-03-28  Bruno Haible  <bruno@clisp.org>
21866             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21867
21868         lib-ignore: Determine different options for different compilers.
21869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21870         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21871         Add comments.
21872         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21873         * NEWS: Mention the change.
21874
21875 2010-03-27  Bruno Haible  <bruno@clisp.org>
21876
21877         Remove unused GNULIB_XYZ macro definitions.
21878         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21879         * modules/fseek (configure.ac): Likewise.
21880         * modules/ioctl (configure.ac): Likewise.
21881         * modules/open (configure.ac): Likewise.
21882         * modules/stdlib-safer (configure.ac): Likewise.
21883
21884 2010-03-27  Bruno Haible  <bruno@clisp.org>
21885
21886         Add a remark about certain modules.
21887         * modules/malloc (Comment): New section.
21888         * modules/realloc (Comment): Likewise.
21889         * modules/sigpipe (Comment): Likewise.
21890
21891 2010-03-27  Bruno Haible  <bruno@clisp.org>
21892
21893         Resolve conflict between the two kinds of module indicators.
21894         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21895         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21896         * modules/canonicalize (configure.ac): Invoke
21897         gl_MODULE_INDICATOR_FOR_TESTS.
21898         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21899         GNULIB_XYZ.
21900         * tests/test-dirent-c++.cc: Likewise.
21901         * tests/test-dirent-safer.c: Likewise.
21902         * tests/test-dup2.c: Likewise.
21903         * tests/test-fchdir.c: Likewise.
21904         * tests/test-fcntl-h-c++.cc: Likewise.
21905         * tests/test-getopt.c: Likewise.
21906         * tests/test-getopt.h: Likewise.
21907         * tests/test-langinfo-c++.cc: Likewise.
21908         * tests/test-locale-c++.cc: Likewise.
21909         * tests/test-math-c++.cc: Likewise.
21910         * tests/test-pty-c++.cc: Likewise.
21911         * tests/test-search-c++.cc: Likewise.
21912         * tests/test-signal-c++.cc: Likewise.
21913         * tests/test-spawn-c++.cc: Likewise.
21914         * tests/test-stdio-c++.cc: Likewise.
21915         * tests/test-stdlib-c++.cc: Likewise.
21916         * tests/test-string-c++.cc: Likewise.
21917         * tests/test-sys_ioctl-c++.cc: Likewise.
21918         * tests/test-sys_select-c++.cc: Likewise.
21919         * tests/test-sys_socket-c++.cc: Likewise.
21920         * tests/test-sys_stat-c++.cc: Likewise.
21921         * tests/test-sys_time-c++.cc: Likewise.
21922         * tests/test-time-c++.cc: Likewise.
21923         * tests/test-unistd-c++.cc: Likewise.
21924         * tests/test-wchar-c++.cc: Likewise.
21925         * tests/uninorm/test-u8-nfc.c: Likewise.
21926         * tests/uninorm/test-u8-nfd.c: Likewise.
21927         * tests/uninorm/test-u8-nfkc.c: Likewise.
21928         * tests/uninorm/test-u8-nfkd.c: Likewise.
21929         * tests/uninorm/test-u16-nfc.c: Likewise.
21930         * tests/uninorm/test-u16-nfd.c: Likewise.
21931         * tests/uninorm/test-u16-nfkc.c: Likewise.
21932         * tests/uninorm/test-u16-nfkd.c: Likewise.
21933         * tests/uninorm/test-u32-nfc.c: Likewise.
21934         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21935         * tests/uninorm/test-u32-nfd.c: Likewise.
21936         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21937         * tests/uninorm/test-u32-nfkc.c: Likewise.
21938         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21939         * tests/uninorm/test-u32-nfkd.c: Likewise.
21940         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21941         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21942
21943 2010-03-27  Bruno Haible  <bruno@clisp.org>
21944
21945         Distinguish two kinds of module indicators.
21946         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21947         gl_MODULE_INDICATOR.
21948         (gl_MODULE_INDICATOR): New macro.
21949         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21950         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21951         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21952         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21953         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21954         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21955         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21956         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21957         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21958         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21959         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21960         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21962         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21963         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21965         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21966         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21967         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21968         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21969         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21970         * modules/cloexec (configure.ac): Likewise.
21971         * modules/getopt-gnu (configure.ac): Likewise.
21972         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21973         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21974         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21975         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21976
21977 2010-03-27  Bruno Haible  <bruno@clisp.org>
21978
21979         New module description field 'Comment'.
21980         * gnulib-tool: New option --extract-comment.
21981         (func_usage): Document it.
21982         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21983         (func_get_comment): New function.
21984         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21985
21986 2010-03-27  Bruno Haible  <bruno@clisp.org>
21987
21988         Addendum to 2010-02-07 commit.
21989         * gnulib-tool (func_usage): Document --extract-applicability option.
21990
21991 2010-03-27  Bruno Haible  <bruno@clisp.org>
21992
21993         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21994         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21995         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21996         rather than link errors.
21997
21998 2010-03-27  Bruno Haible  <bruno@clisp.org>
21999
22000         Avoid side effects from tests-related modules on the compilation of lib.
22001         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22002         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22003         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22004         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22005         macro.
22006         (func_import): Define a witness macro. Assign it a value that depends
22007         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22008         tests-related modules.
22009         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22010         Reported by Jim Meyering.
22011
22012 2010-03-27  Bruno Haible  <bruno@clisp.org>
22013
22014         Factorize common .m4 code.
22015         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22016         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22017         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22018         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22019         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22020         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22021         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22022         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22023         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22024         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22025         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22026         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22027         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22028         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22029         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22030         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22031         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22032         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22034         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22035         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22036         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22037         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22038         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22039         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22040         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22041         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22043         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22045         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22046         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22047
22048 2010-03-27  Bruno Haible  <bruno@clisp.org>
22049
22050         Fix a compilation error on Cygwin with g++ >= 4.3.
22051         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22052         if it is undefined or if we alias it to chmod.
22053         (lstat): Don't warn about the use of this function if it is undefined
22054         or if we alias it to stat.
22055         Reported by Simon Josefsson.
22056
22057 2010-03-27  Bruno Haible  <bruno@clisp.org>
22058
22059         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22060         * modules/getlogin (configure.ac): Update.
22061
22062         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22063         * modules/getlogin_r (configure.ac): Update.
22064
22065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22067         * modules/inet_ntop (configure.ac): Update.
22068
22069         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22070         * modules/inet_pton (configure.ac): Update.
22071
22072         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22073         * modules/mbslen (configure.ac): Update.
22074
22075         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22076         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22077         * modules/forkpty (configure.ac): Update.
22078         * modules/openpty (configure.ac): Update.
22079
22080 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22081
22082         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22083         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22084
22085 2010-03-25  Eric Blake  <eblake@redhat.com>
22086
22087         maint: use pragma consistently across replacement headers
22088         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22089         * lib/dirent.in.h (system_header): Likewise.
22090         * lib/errno.in.h (system_header): Likewise.
22091         * lib/float.in.h (system_header): Likewise.
22092         * lib/getopt.in.h (system_header): Likewise.
22093         * lib/iconv.in.h (system_header): Likewise.
22094         * lib/inttypes.in.h (system_header): Likewise.
22095         * lib/langinfo.in.h (system_header): Likewise.
22096         * lib/locale.in.h (system_header): Likewise.
22097         * lib/math.in.h (system_header): Likewise.
22098         * lib/netdb.in.h (system_header): Likewise.
22099         * lib/netinet_in.in.h (system_header): Likewise.
22100         * lib/pty.in.h (system_header): Likewise.
22101         * lib/sched.in.h (system_header): Likewise.
22102         * lib/se-selinux.in.h (system_header): Likewise.
22103         * lib/search.in.h (system_header): Likewise.
22104         * lib/spawn.in.h (system_header): Likewise.
22105         * lib/stdarg.in.h (system_header): Likewise.
22106         * lib/stdint.in.h (system_header): Likewise.
22107         * lib/string.in.h (system_header): Likewise.
22108         * lib/strings.in.h (system_header): Likewise.
22109         * lib/sys_file.in.h (system_header): Likewise.
22110         * lib/sys_ioctl.in.h (system_header): Likewise.
22111         * lib/sys_socket.in.h (system_header): Likewise.
22112         * lib/sys_times.in.h (system_header): Likewise.
22113         * lib/sys_utsname.in.h (system_header): Likewise.
22114         * lib/sys_wait.in.h (system_header): Likewise.
22115         * lib/sysexits.in.h (system_header): Likewise.
22116         * lib/unistd.in.h (system_header): Likewise.
22117         * lib/wctype.in.h (system_header): Likewise.
22118
22119         arpa/inet: fix mingw compilation warning
22120         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22121         Reported by Matthew Bolte.
22122
22123 2010-03-25  Bruno Haible  <bruno@clisp.org>
22124
22125         Avoid collision between gnulib wrapper and libintl wrapper.
22126         * lib/printf.c (printf): Don't define if a printf wrapper is already
22127         defined in intl/printf.c.
22128         Reported by Michel Boaventura <michel@michelboaventura.com>.
22129
22130 2010-03-25  Bruno Haible  <bruno@clisp.org>
22131
22132         Use ANSI C.
22133         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22134
22135 2010-03-25  Bruno Haible  <bruno@clisp.org>
22136
22137         Minor formatting changes.
22138         * lib/acosl.c: Insert space before function argument list.
22139         * lib/argz.c: Likewise.
22140         * lib/asinl.c: Likewise.
22141         * lib/expl.c: Likewise.
22142         * lib/gen-uni-tables.c: Likewise.
22143         * lib/gettext.h: Likewise.
22144         * lib/glthread/lock.h: Likewise.
22145         * lib/tanl.c: Likewise.
22146         * lib/uniname/uniname.c: Likewise.
22147         * tests/test-idpriv-drop.c: Likewise.
22148         * tests/test-idpriv-droptemp.c: Likewise.
22149         * tests/test-lock.c: Likewise.
22150         * tests/test-tls.c: Likewise.
22151         * lib/argp-help.c: Insert space before function-like macro argument
22152         list.
22153         * lib/memcmp.c: Likewise.
22154         * tests/test-base64.c: Likewise.
22155         * lib/localename.c: Insert space before sizeof's argument list.
22156         * lib/safe-alloc.h: Likewise.
22157         * lib/file-set.h: Insert space before macro argument list.
22158         * tests/test-argp.c: Likewise.
22159         * lib/argp-namefrob.h: Insert space before function parameter list.
22160         * lib/getaddrinfo.c: Likewise.
22161         * lib/netdb.in.h: Likewise.
22162         * lib/parse-duration.h: Likewise.
22163         * lib/parse-duration.c: Likewise.
22164         * lib/poll.c: Likewise.
22165         * lib/select.c: Likewise.
22166         * lib/trim.h: Likewise.
22167         * tests/test-usleep.c: Likewise.
22168         * lib/ldexpl.c: Insert space before function parameter list and before
22169         function argument list.
22170         * lib/logl.c: Likewise.
22171         * lib/sqrtl.c: Likewise.
22172         * lib/trim.c: Likewise.
22173         * lib/cosl.c: Use GNU style indentation. Insert space before function
22174         argument list.
22175         * lib/sinl.c: Likewise.
22176         * lib/tsearch.c: Insert space after 'for'.
22177         Reported by Jim Meyering.
22178
22179 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22180
22181         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22182         config header before grepping, as it's not present before
22183         autoreconf/configure are run.  Reported by Simon Josefsson.
22184
22185 2010-03-23  Bruno Haible  <bruno@clisp.org>
22186
22187         pt_chown: Make it work with automake < 1.11.
22188         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22189         Reported by Simon Josefsson.
22190
22191 2010-03-23  Bruno Haible  <bruno@clisp.org>
22192
22193         pt_chown: Don't depend on GPLed modules.
22194         * lib/pt_chown.c: Don't include idpriv.h.
22195         (main): Don't drop privileges.
22196         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22197         Reported by Simon Josefsson.
22198
22199 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22200
22201         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22202         suggestions from karl@freefriends.org (Karl Berry).
22203
22204 2010-03-22  Eric Blake  <eblake@redhat.com>
22205
22206         gethostname: further tweaks
22207         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22208         are overriding gethostname.
22209         Suggested by Bruno Haible.
22210
22211 2010-03-21  Bruno Haible  <bruno@clisp.org>
22212
22213         Fix comments.
22214         * lib/forkpty.c (rpl_forkpty): Fix comment.
22215         * lib/openpty.c (rpl_openpty): Likewise.
22216         Reported by Eric Blake.
22217
22218 2010-03-22  Eric Blake  <eblake@redhat.com>
22219
22220         gethostname: fix build on mingw
22221         * lib/unistd.in.h (includes): Work around fact that mingw
22222         <winsock2.h> re-includes <unistd.h>, by avoiding any
22223         redeclarations if we are being included by <winsock2.h>.
22224         Reported by Matthias Bolte.
22225
22226 2010-03-21  Bruno Haible  <bruno@clisp.org>
22227
22228         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22229         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22230         modifications.
22231         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22232         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22233         provide the replacement.
22234         * modules/forkpty (Depends-on): Add openpty, login_tty.
22235         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22236         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22237         * doc/glibc-functions/forkpty.texi: More supported platforms.
22238         * config/srclist.txt: Add forkpty.c (commented).
22239
22240 2010-03-21  Bruno Haible  <bruno@clisp.org>
22241
22242         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22243         (Makefile.am): Verify that PTY_LIB is defined.
22244
22245         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22246
22247 2010-03-21  Bruno Haible  <bruno@clisp.org>
22248
22249         Tests for module 'login_tty'.
22250         * modules/login_tty-tests: New file.
22251         * tests/test-login_tty.c: New file.
22252
22253         New module 'login_tty'.
22254         * lib/login_tty.c: New file.
22255         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22256         * modules/login_tty: New file.
22257         * doc/glibc-functions/login_tty.texi: Mention the new module.
22258
22259 2010-03-21  Bruno Haible  <bruno@clisp.org>
22260
22261         login_tty: Documentation.
22262         * doc/glibc-functions/login_tty.texi: New file.
22263         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22264
22265 2010-03-21  Bruno Haible  <bruno@clisp.org>
22266
22267         pty: Consistent macro naming.
22268         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22269         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22270         * modules/pty (configure.ac): Update.
22271
22272 2010-03-21  Bruno Haible  <bruno@clisp.org>
22273
22274         Tests for openpty: Make stricter.
22275         * tests/test-openpty.c (main): Add test of canonical processing and
22276         erase.
22277         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22278
22279         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22280         * lib/openpty.c (openpty): New replacement function.
22281         * lib/pty.in.h: Include <termios.h>.
22282         (openpty): Update declaration. Add comments.
22283         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22284         is not declared, arrange to provide the replacement. Check for _getpty
22285         and posix_openpt.
22286         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22288         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22289         * modules/pty-tests (test_pty_c___LDADD): New variable.
22290         * doc/glibc-functions/openpty.texi: More supported platforms.
22291
22292 2010-03-21  Bruno Haible  <bruno@clisp.org>
22293
22294         setenv: Tweaks.
22295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22296         the test program.
22297         * doc/posix-functions/setenv.texi: Update platforms list.
22298
22299 2010-03-21  Bruno Haible  <bruno@clisp.org>
22300
22301         New module 'unlockpt'.
22302         * lib/unlockpt.c: New file, from glibc with modifications.
22303         * m4/unlockpt.m4: New file.
22304         * modules/unlockpt: New file.
22305         * lib/stdlib.in.h (unlockpt): New declaration.
22306         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22307         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22308         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22309         HAVE_UNLOCKPT.
22310         * doc/posix-functions/unlockpt.texi: Mention the new module.
22311         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22312         * config/srclist.txt: Add unlockpt.c (commented).
22313
22314 2010-03-21  Jim Meyering  <meyering@redhat.com>
22315
22316         maint.mk: prohibit inclusion of "intprops.h" without use
22317         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22318
22319 2010-03-21  Bruno Haible  <bruno@clisp.org>
22320
22321         New module 'grantpt'.
22322         * lib/grantpt.c: New file, from glibc with modifications.
22323         * m4/grantpt.m4: New file.
22324         * modules/grantpt: New file.
22325         * lib/stdlib.in.h (grantpt): New declaration.
22326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22327         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22328         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22329         HAVE_GRANTPT.
22330         * doc/posix-functions/grantpt.texi: Mention the new module.
22331         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22332         * config/srclist.txt: Add grantpt.c (commented).
22333
22334 2010-03-21  Bruno Haible  <bruno@clisp.org>
22335
22336         New module 'pt_chown'.
22337         * lib/pt_chown.c: New file, from glibc with modifications.
22338         * lib/pty-private.h: New file, from glibc with modifications.
22339         * modules/pt_chown: New file.
22340         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22341
22342 2010-03-21  Bruno Haible  <bruno@clisp.org>
22343
22344         Tests for module 'ptsname'.
22345         * modules/ptsname-tests: New file.
22346         * tests/test-ptsname.c: New file.
22347
22348         New module 'ptsname'.
22349         * lib/ptsname.c: New file, from glibc with modifications.
22350         * m4/ptsname.m4: New file.
22351         * modules/ptsname: New file.
22352         * lib/stdlib.in.h (ptsname): New declaration.
22353         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22354         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22355         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22356         HAVE_PTSNAME.
22357         * doc/posix-functions/ptsname.texi: Mention the new module.
22358         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22359         * config/srclist.txt: Add ptsname.c (commented).
22360
22361 2010-03-21  Bruno Haible  <bruno@clisp.org>
22362
22363         Tests for module 'ttyname_r'.
22364         * modules/ttyname_r-tests: New file.
22365         * tests/test-ttyname_r.c: New file.
22366
22367         New module 'ttyname_r'.
22368         * lib/ttyname_r.c: New file.
22369         * m4/ttyname_r.m4: New file.
22370         * modules/ttyname_r: New file.
22371         * lib/unistd.in.h (ttyname_r): New declaration.
22372         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22373         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22374         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22375         HAVE_TTYNAME_R.
22376         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22377         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22378
22379 2010-03-20  Bruno Haible  <bruno@clisp.org>
22380
22381         signal: Undefine macro definitions in C++ mode.
22382         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22383         sigfillset): Undefine macro definitions from the system header in C++
22384         mode.
22385         Reported by John W. Eaton <jwe@gnu.org>.
22386
22387 2010-03-20  Bruno Haible  <bruno@clisp.org>
22388
22389         Ensure no #include statements inside extern "C" { ... }.
22390         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22391         contain #include statements.
22392         * lib/time.in.h: Likewise.
22393
22394 2010-03-20  Bruno Haible  <bruno@clisp.org>
22395
22396         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22397         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22398         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22399         Reported by John W. Eaton <jwe@gnu.org>.
22400
22401 2010-03-20  Bruno Haible  <bruno@clisp.org>
22402
22403         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22404         Reported by Jim Meyering.
22405
22406 2010-03-20  Bruno Haible  <bruno@clisp.org>
22407
22408         pipe: Set errno upon failure.
22409         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22410         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22411         errno value in error message.
22412
22413 2010-03-20  Bruno Haible  <bruno@clisp.org>
22414             Jim Meyering  <meyering@redhat.com>
22415
22416         lchown: Avoid "unused variable" warning.
22417         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22418
22419 2010-03-20  Bruno Haible  <bruno@clisp.org>
22420
22421         Work around unlink() bug on MacOS X 10.5.6.
22422         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22423         attempting to unlink a parent directory.
22424         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22425         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22426         activate for the replacement function.
22427         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22428
22429 2010-03-20  Bruno Haible  <bruno@clisp.org>
22430
22431         Fix link errors on Solaris 8.
22432         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22433         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22434
22435 2010-03-19  Jim Meyering  <meyering@redhat.com>
22436
22437         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22438         The _LIBC implementation of build_range_exp correctly honors the
22439         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22440         However, the non-_LIBC implementation would ignore that syntax-bit
22441         flag and return REG_ERANGE unconditionally.
22442         This change makes it honor that flag.
22443         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22444         Make two pointer parameters "const".
22445         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22446         (parse_bracket_exp): Update caller.
22447
22448         regex.m4: correct the reversed range endpoint ([b-a]) test
22449         * m4/regex.m4: When requiring that [b-a] evoke failure,
22450         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22451         test pass once again for x86-based systems.
22452
22453 2010-03-19  Bruno Haible  <bruno@clisp.org>
22454
22455         scandir: Fix link error on Solaris 8.
22456         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22457         macros.
22458
22459 2010-03-19  Bruno Haible  <bruno@clisp.org>
22460
22461         getusershell: Fix documentation.
22462         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22463         module.
22464         * doc/glibc-functions/setusershell.texi: Likewise.
22465
22466         getusershell: Provide declaration, missing on Solaris 9.
22467         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22468         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22469         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22470         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22472         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22473         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22474         HAVE_GETUSERSHELL.
22475         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22476
22477 2010-03-19  Bruno Haible  <bruno@clisp.org>
22478
22479         wctype: Provide iswblank function.
22480         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22481         exists and is fine.
22482         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22483         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22484         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22485         * doc/posix-functions/iswblank.texi: Update.
22486
22487 2010-03-19  Bruno Haible  <bruno@clisp.org>
22488
22489         Tests of module 'pty' in C++ mode.
22490         * modules/pty-tests: New file.
22491         * tests/test-pty-c++.cc: New file.
22492         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22493
22494 2010-03-19  Eric Blake  <eblake@redhat.com>
22495
22496         logb: fix documentation
22497         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22498         1.5 declaration bug.
22499
22500         forkpty, openpty: prefer glibc's const-safe prototype
22501         * lib/forkpty.c (rpl_forkpty): New file.
22502         * lib/openpty.c (rpl_openpty): Likewise.
22503         * modules/forkpty (Files): Distribute it.
22504         * modules/openpty (Files): Likewise.
22505         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22506         check...
22507         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22508         replacement for for non-const BSD signature.
22509         * modules/pty (Makefile.am): Substitute witnesses.
22510         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22511         * tests/test-forkpty.c: Update signature check.
22512         * tests/test-openpty.c: Likewise.
22513         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22514         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22515
22516         forkpty, openpty: split functions into new modules
22517         * modules/pty (Makefile.am): Substitute new witnesses.
22518         (Libraries): Move library detection...
22519         * modules/forkpty: ...into new module.
22520         * modules/openpty: Another new module.
22521         * modules/pty-tests: Rename and split...
22522         * modules/forkpty-tests: ...to this...
22523         * modules/openpty-tests: ...and this.
22524         * tests/test-pty.c: Rename and split...
22525         * tests/test-forkpty.c: ...to this...
22526         * tests/test-openpty.c: ...and this.
22527         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22528         (gl_PTY): Split library searching...
22529         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22530         (gl_FORKPTY, gl_OPENPTY): New macros.
22531         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22532         * NEWS: Mention the split.
22533         * MODULES.html.sh (Misc): Document the modules.
22534         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22535         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22536
22537         pty: improve replacement header
22538         * lib/pty.in.h: New file.
22539         * modules/pty (Files): Ship it.
22540         (Makefile.am): Always build replacement.
22541         * m4/pty.m4: Rename...
22542         * m4/pty_h.m4: ...to this.
22543         (gl_PTY): Modernize setting of witness macros; update check of
22544         forkpty to take proper advantage of cache.
22545         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22546
22547         getopt: avoid compiler warning
22548         * lib/getopt.c (attribute_hidden): Remove unused macro.
22549
22550 2010-03-18  Bruno Haible  <bruno@clisp.org>
22551
22552         Fix link errors on Solaris 8.
22553         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22554         * modules/search-tests (test_search_c___LDADD): Likewise.
22555         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22556         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22557         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22558         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22559         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22560         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22561         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22562
22563 2010-03-18  Bruno Haible  <bruno@clisp.org>
22564
22565         Fix bug introduced on 2010-03-14.
22566         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22567         (gl_SPAWN_H): Require it.
22568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22569         Reported by Simon Josefsson.
22570
22571 2010-03-18  Bruno Haible  <bruno@clisp.org>
22572
22573         Fix typo introduced on 2009-12-31.
22574         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22575         posix_spawn_file_actions_adddup2.
22576
22577 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22578         and Eric Blake  <eblake@redhat.com>
22579
22580         test-vc-list-files-git: make more robust
22581         * tests/test-vc-list-files-git.sh: Unset problematic environment
22582         variables.  Chain commands together.
22583
22584 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22585
22586         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22587         `AC_CHECK_DECL' invocation.
22588
22589 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22590
22591         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22592         appears before executable statements. Suggested by Petr Sumbera
22593         <Petr.Sumbera@Sun.COM>.
22594
22595 2010-03-14  Bruno Haible  <bruno@clisp.org>
22596
22597         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22598         portability problems. Instead use a simpler test.
22599         (main): Check that invalid arguments are rejected only on Linux.
22600
22601 2010-03-14  Bruno Haible  <bruno@clisp.org>
22602
22603         Fix bug introduced on 2009-12-31.
22604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22605         gl_PREREQ_SYS_H_WINSOCK2 always.
22606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22607         SYS_SOCKET_H variable.
22608         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22609         Update comments.
22610         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22611         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22612         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22614         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22615
22616 2010-03-14  Bruno Haible  <bruno@clisp.org>
22617
22618         Fix values returned by sinl, cosl.
22619         * lib/trigl.h: Add specification comments.
22620         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22621         that combines the values from the precomputed table with the values of
22622         the Chebyshev polynomials.
22623
22624 2010-03-14  Bruno Haible  <bruno@clisp.org>
22625
22626         Fix compilation error when modules 'posix_spawn[p]' are not used.
22627         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22629
22630 2010-03-14  Bruno Haible  <bruno@clisp.org>
22631
22632         Fix compilation error on mingw when module 'time_r' is not used.
22633         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22634         is 1.
22635         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22636         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22637         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22639
22640 2010-03-14  Bruno Haible  <bruno@clisp.org>
22641
22642         Fix compilation error with Sun C.
22643         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22644         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22645         instead of GCC specific ULONG_LONG_MAX.
22646         * lib/xstrtoll.c: Likewise.
22647         * lib/xstrtoull.c: Likewise.
22648
22649 2010-03-13  Bruno Haible  <bruno@clisp.org>
22650
22651         Allow the user to disable C++ code and tests.
22652         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22653         (gl_PROG_ANSI_CXX): Require it.
22654
22655 2010-03-13  Bruno Haible  <bruno@clisp.org>
22656
22657         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22658         cases.
22659
22660 2010-03-13  Bruno Haible  <bruno@clisp.org>
22661
22662         Test that gnulib does not break the standard C++ headers.
22663         * tests/test-locale-c++2.cc: New file.
22664         * modules/locale-tests (Files): Add it.
22665         (Makefile.am): Compile it for test-locale-c++.
22666         * tests/test-math-c++2.cc: New file.
22667         * modules/math-tests (Files): Add it.
22668         (Makefile.am): Compile it for test-math-c++.
22669         * tests/test-signal-c++2.cc: New file.
22670         * modules/signal-tests (Files): Add it.
22671         (Makefile.am): Compile it for test-signal-c++.
22672         * tests/test-stdio-c++2.cc: New file.
22673         * modules/stdio-tests (Files): Add it.
22674         (Makefile.am): Compile it for test-stdio-c++.
22675         * tests/test-stdlib-c++2.cc: New file.
22676         * modules/stdlib-tests (Files): Add it.
22677         (Makefile.am): Compile it for test-stdlib-c++.
22678         * tests/test-string-c++2.cc: New file.
22679         * modules/string-tests (Files): Add it.
22680         (Makefile.am): Compile it for test-string-c++.
22681         * tests/test-time-c++2.cc: New file.
22682         * modules/time-tests (Files): Add it.
22683         (Makefile.am): Compile it for test-time-c++.
22684         Reported by John W. Eaton <jwe@gnu.org>.
22685
22686 2010-03-13  Bruno Haible  <bruno@clisp.org>
22687
22688         * gnulib-tool (func_usage): Clarify which options are available for
22689         --create-testdir and --create-megatestdir.
22690
22691 2010-03-13  Bruno Haible  <bruno@clisp.org>
22692
22693         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22694         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22695         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22696         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22697         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22698         when appropriate.
22699         Reported by Jim Meyering.
22700
22701 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22702
22703         * gnulib-tool (func_import): Explain origin of code.
22704
22705 2010-03-12  Bruno Haible  <bruno@clisp.org>
22706
22707         Fix problem with automake's definition of CXXLINK.
22708         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22709         Reported by Simon Josefsson and Ludovic Courtès.
22710
22711 2010-03-12  Bruno Haible  <bruno@clisp.org>
22712
22713         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22714         stable releases.
22715
22716 2010-03-11  Bruno Haible  <bruno@clisp.org>
22717
22718         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22719         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22720         whether the system provides one variant or multiple variants of the
22721         function.
22722         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22723         C++ compilers.
22724         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22725         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22726         Reported by Jim Meyering.
22727
22728 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22729
22730         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22731
22732 2010-03-08  Bruno Haible  <bruno@clisp.org>
22733
22734         gnulib-tool: Add support for --libtool in --create-testdir.
22735         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22736         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22737
22738 2010-03-08  Eric Blake  <eblake@redhat.com>
22739
22740         gnulib-tool.texi: mention possibility of git submodule
22741         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22742         submodules.
22743         * doc/.gitignore: Ignore another generated file.
22744
22745 2010-03-08  Karl Berry  <karl@gnu.org>
22746
22747         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22748         of committing gnulib files while skipping others.
22749
22750 2010-03-07  Bruno Haible  <bruno@clisp.org>
22751
22752         Tests of module 'wctype' in C++ mode.
22753         * tests/test-wctype-c++.cc: New file.
22754         * modules/wctype-tests (Files): Add it and tests/signature.h.
22755         (Depends-on): Add ansi-c++-opt.
22756         (Makefile.am): Arrange to compile and run test-wctype-c++.
22757
22758         Tests of module 'wchar' in C++ mode.
22759         * tests/test-wchar-c++.cc: New file.
22760         * modules/wchar-tests (Files): Add it and tests/signature.h.
22761         (Depends-on): Add ansi-c++-opt.
22762         (Makefile.am): Arrange to compile and run test-wchar-c++.
22763         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22764         gl_MODULE_INDICATOR.
22765
22766         Tests of module 'unistd' in C++ mode.
22767         * tests/test-unistd-c++.cc: New file.
22768         * modules/unistd-tests (Files): Add it and tests/signature.h.
22769         (Depends-on): Add ansi-c++-opt.
22770         (Makefile.am): Arrange to compile and run test-unistd-c++.
22771         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22772         gl_MODULE_INDICATOR.
22773
22774         Tests of module 'time' in C++ mode.
22775         * tests/test-time-c++.cc: New file.
22776         * modules/time-tests (Files): Add it and tests/signature.h.
22777         (Depends-on): Add ansi-c++-opt.
22778         (Makefile.am): Arrange to compile and run test-time-c++.
22779         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22780
22781         Tests of module 'sys_time' in C++ mode.
22782         * tests/test-sys_time-c++.cc: New file.
22783         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22784         (Depends-on): Add ansi-c++-opt.
22785         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22786         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22787         gl_MODULE_INDICATOR.
22788
22789         Tests of module 'sys_stat' in C++ mode.
22790         * tests/test-sys_stat-c++.cc: New file.
22791         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22792         (Depends-on): Add ansi-c++-opt.
22793         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22794         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22795         gl_MODULE_INDICATOR.
22796
22797         Tests of module 'sys_socket' in C++ mode.
22798         * tests/test-sys_socket-c++.cc: New file.
22799         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22800         (Depends-on): Add ansi-c++-opt.
22801         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22802         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22803         gl_MODULE_INDICATOR.
22804
22805         Tests of module 'sys_select' in C++ mode.
22806         * tests/test-sys_select-c++.cc: New file.
22807         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22808         (Depends-on): Add ansi-c++-opt.
22809         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22810         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22811         gl_MODULE_INDICATOR.
22812
22813         Tests of module 'sys_ioctl' in C++ mode.
22814         * tests/test-sys_ioctl-c++.cc: New file.
22815         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22816         (Depends-on): Add ansi-c++-opt.
22817         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22819         gl_MODULE_INDICATOR.
22820
22821         Tests of module 'string' in C++ mode.
22822         * tests/test-string-c++.cc: New file.
22823         * modules/string-tests (Files): Add it and tests/signature.h.
22824         (Depends-on): Add ansi-c++-opt.
22825         (Makefile.am): Arrange to compile and run test-string-c++.
22826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22827         gl_MODULE_INDICATOR.
22828
22829         Tests of module 'stdlib' in C++ mode.
22830         * tests/test-stdlib-c++.cc: New file.
22831         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22832         (Depends-on): Add ansi-c++-opt.
22833         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22834         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22835         gl_MODULE_INDICATOR.
22836
22837         Tests of module 'stdio' in C++ mode.
22838         * tests/test-stdio-c++.cc: New file.
22839         * modules/stdio-tests (Files): Add it and tests/signature.h.
22840         (Depends-on): Add ansi-c++-opt.
22841         (Makefile.am): Arrange to compile and run test-stdio-c++.
22842         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22843         gl_MODULE_INDICATOR.
22844
22845         Tests of module 'spawn' in C++ mode.
22846         * tests/test-spawn-c++.cc: New file.
22847         * modules/spawn-tests (Files): Add it and tests/signature.h.
22848         (Depends-on): Add ansi-c++-opt.
22849         (Makefile.am): Arrange to compile and run test-spawn-c++.
22850         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22851         gl_MODULE_INDICATOR.
22852
22853         Tests of module 'signal' in C++ mode.
22854         * tests/test-signal-c++.cc: New file.
22855         * modules/signal-tests (Files): Add it and tests/signature.h.
22856         (Depends-on): Add ansi-c++-opt.
22857         (Makefile.am): Arrange to compile and run test-signal-c++.
22858         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22859         gl_MODULE_INDICATOR.
22860
22861         Tests of module 'search' in C++ mode.
22862         * tests/test-search-c++.cc: New file.
22863         * modules/search-tests (Files): Add it and tests/signature.h.
22864         (Depends-on): Add ansi-c++-opt.
22865         (Makefile.am): Arrange to compile and run test-search-c++.
22866         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22867         gl_MODULE_INDICATOR.
22868
22869         Tests of module 'math' in C++ mode.
22870         * tests/test-math-c++.cc: New file.
22871         * modules/math-tests (Files): Add it and tests/signature.h.
22872         (Depends-on): Add ansi-c++-opt.
22873         (Makefile.am): Arrange to compile and run test-math-c++.
22874         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22875
22876         Tests of module 'locale' in C++ mode.
22877         * tests/test-locale-c++.cc: New file.
22878         * modules/locale-tests (Files): Add it and tests/signature.h.
22879         (Depends-on): Add ansi-c++-opt.
22880         (Makefile.am): Arrange to compile and run test-locale-c++.
22881         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22882         gl_MODULE_INDICATOR.
22883
22884         Tests of module 'langinfo' in C++ mode.
22885         * tests/test-langinfo-c++.cc: New file.
22886         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22887         (Depends-on): Add ansi-c++-opt.
22888         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22889         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22890         gl_MODULE_INDICATOR.
22891
22892         Tests of module 'iconv-h' in C++ mode.
22893         * tests/test-iconv-h-c++.cc: New file.
22894         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22895         (Depends-on): Add ansi-c++-opt.
22896         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22897
22898         Tests of module 'glob' in C++ mode.
22899         * tests/test-glob-c++.cc: New file.
22900         * modules/glob-tests (Files): Add it.
22901         (Depends-on): Add ansi-c++-opt.
22902         (Makefile.am): Arrange to compile and run test-glob-c++.
22903
22904         Tests of module 'fcntl-h' in C++ mode.
22905         * tests/test-fcntl-h-c++.cc: New file.
22906         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22907         (Depends-on): Add ansi-c++-opt.
22908         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22909         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22910         gl_MODULE_INDICATOR.
22911
22912         Tests of module 'dirent' in C++ mode.
22913         * tests/test-dirent-c++.cc: New file.
22914         * modules/dirent-tests (Files): Add it and tests/signature.h.
22915         (Depends-on): Add ansi-c++-opt.
22916         (Makefile.am): Arrange to compile and run test-dirent-c++.
22917         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22918         gl_MODULE_INDICATOR.
22919
22920         New module 'ansi-c++-opt'.
22921         * modules/ansi-c++-opt: New file.
22922         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22923
22924         Document C++ namespace mode.
22925         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22926
22927         wctype: Avoid #define replacements in C++ mode.
22928         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22929         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22930         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22931         In C++, define a namespaced alias symbol.
22932         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22933         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22934         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22935         rule.
22936
22937         wchar: Avoid #define replacements in C++ mode.
22938         * lib/wchar.in.h: Include c++defs.h.
22939         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22940         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22941         symbol.
22942         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22943         * modules/wchar (Depends-on): Add c++defs.
22944         (Makefile.am): Update wchar.h rule.
22945
22946         unistd: Avoid #define replacements in C++ mode.
22947         * lib/unistd.in.h: Include c++defs.h.
22948         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22949         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22950         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22951         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22952         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22953         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22954         symbol.
22955         (environ): Update.
22956         * modules/unistd (Depends-on): Add c++defs.
22957         (Makefile.am): Update unistd.h rule.
22958
22959         time: Avoid #define replacements in C++ mode.
22960         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22961         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22962         define a namespaced alias symbol.
22963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22964         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22965         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22966         * modules/time (Depends-on): Add c++defs, warn-on-use.
22967         (Makefile.am): Update time.h rule.
22968         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22969         * modules/nanosleep (configure.ac): Likewise.
22970         * modules/strptime (configure.ac): Likewise.
22971         * modules/timegm (configure.ac): Likewise.
22972
22973         sys_time: Avoid #define replacements in C++ mode.
22974         * lib/sys_time.in.h: Include c++defs.h.
22975         (gettimeofday): In C++, define a namespaced alias symbol.
22976         * modules/sys_time (Depends-on): Add c++defs.
22977         (Makefile.am): Update sys/time.h rule.
22978
22979         sys_stat: Avoid #define replacements in C++ mode.
22980         * lib/sys_stat.in.h: Include c++defs.h.
22981         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22982         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22983         namespaced alias symbol.
22984         In C++, define a namespaced alias symbol.
22985         * modules/sys_stat (Depends-on): Add c++defs.
22986         (Makefile.am): Update sys/stat.h rule.
22987
22988         sys_socket: Avoid #define replacements in C++ mode.
22989         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22990         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22991         definitions also when the system has a <sys/socket.h>.
22992         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22993         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22994         In C++, define a namespaced alias symbol.
22995         * modules/sys_socket (Depends-on): Add c++defs.
22996         (Makefile.am): Update sys/socket.h rule.
22997
22998         sys_select: Avoid #define replacements in C++ mode.
22999         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23000         definitions also when the system has a <sys/select.h>.
23001         (select): In C++, define a namespaced alias symbol.
23002         * modules/sys_select (Depends-on): Add c++defs.
23003         (Makefile.am): Update sys/select.h rule.
23004
23005         sys_ioctl: Avoid #define replacements in C++ mode.
23006         * lib/sys_ioctl.in.h: Include c++defs.h.
23007         (ioctl): In C++, define a namespaced alias symbol.
23008         * modules/sys_ioctl (Depends-on): Add c++defs.
23009         (Makefile.am): Update sys/ioctl.h rule.
23010
23011         string: Avoid #define replacements in C++ mode.
23012         * lib/string.in.h: Include c++defs.h.
23013         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23014         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23015         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23016         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23017         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23018         * modules/string (Depends-on): Add c++defs.
23019         (Makefile.am): Update string.h rule.
23020
23021         stdlib: Avoid #define replacements in C++ mode.
23022         * lib/stdlib.in.h: Include c++defs.h.
23023         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23024         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23025         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23026         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23027         symbol.
23028         * modules/stdlib (Depends-on): Add c++defs.
23029         (Makefile.am): Update stdlib.h rule.
23030
23031         stdio: Avoid #define replacements in C++ mode.
23032         * lib/stdio.in.h: Include c++defs.h.
23033         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23034         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23035         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23036         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23037         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23038         namespaced alias symbol.
23039         * modules/stdio (Depends-on): Add c++defs.
23040         (Makefile.am): Update stdio.h rule.
23041
23042         spawn: Avoid #define replacements in C++ mode.
23043         * lib/spawn.in.h: Include c++defs.h.
23044         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23045         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23046         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23047         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23048         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23049         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23050         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23051         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23052         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23053         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23054         In C++, define a namespaced alias symbol.
23055         * modules/spawn (Depends-on): Add c++defs.
23056         (Makefile.am): Update spawn.h rule.
23057
23058         signal: Avoid #define replacements in C++ mode.
23059         * lib/signal.in.h: Include c++defs.h.
23060         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23061         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23062         namespaced alias symbol.
23063         * modules/signal (Depends-on): Add c++defs.
23064         (Makefile.am): Update signal.h rule.
23065
23066         search: Avoid #define replacements in C++ mode.
23067         * lib/search.in.h: Include c++defs.h.
23068         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23069         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23070         symbol.
23071         * modules/search (Depends-on): Add c++defs.
23072         (Makefile.am): Update search.h rule.
23073
23074         math: Avoid #define replacements in C++ mode.
23075         * lib/math.in.h: Include c++defs.h.
23076         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23077         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23078         trunc, truncl): In C++, define a namespaced alias symbol.
23079         * modules/math (Depends-on): Add c++defs.
23080         (Makefile.am): Update math.h rule.
23081
23082         locale: Avoid #define replacements in C++ mode.
23083         * lib/locale.in.h: Include c++defs.h.
23084         (duplocale): In C++, define a namespaced alias symbol.
23085         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23086         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23087         * modules/locale (Depends-on): Add c++defs.
23088         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23089
23090         langinfo: Avoid #define replacements in C++ mode.
23091         * lib/langinfo.in.h: Include c++defs.h.
23092         (nl_langinfo): In C++, define a namespaced alias symbol.
23093         * modules/langinfo (Depends-on): Add c++defs.
23094         (Makefile.am): Update langinfo.h rule.
23095
23096         iconv-h: Avoid #define replacements in C++ mode.
23097         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23098         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23099         symbol.
23100         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23101         whenever iconv is present.
23102         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23103         (Makefile.am): Update iconv.h rule.
23104
23105         glob: Avoid #define replacements in C++ mode.
23106         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23107         (_gl_glob_errfunc_fn): New type.
23108         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23109         symbol.
23110         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23111         (Makefile.am): Update glob.h rule.
23112
23113         fcntl-h: Avoid #define replacements in C++ mode.
23114         * lib/fcntl.in.h: Include c++defs.h.
23115         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23116         * modules/fcntl-h (Depends-on): Add c++defs.
23117         (Makefile.am): Update fcntl.h rule.
23118
23119         dirent: Avoid #define replacements in C++ mode.
23120         * lib/dirent.in.h: Include c++defs.h.
23121         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23122         namespaced alias symbol.
23123         (dirfd): Update declaration.
23124         * modules/dirent (Depends-on): Add c++defs.
23125         (Makefile.am): Update dirent.h rule.
23126
23127         ctype: Make it usable in C++ code.
23128         * lib/ctype.in.h: Include c++defs.h.
23129         (isblank): Declare as extern "C".
23130         * modules/ctype (Depends-on): Add c++defs.
23131         (Makefile.am): Update ctype.h rule.
23132
23133         New module 'c++defs'.
23134         * modules/c++defs: New file.
23135         * build-aux/c++defs.h: New file.
23136         Reported by John W. Eaton <jwe@gnu.org>.
23137
23138 2010-03-07  Bruno Haible  <bruno@clisp.org>
23139
23140         logb: Provide missing declaration for Cygwin.
23141         * lib/math.in.h (logb): New declaration.
23142         * m4/logb.m4: New file.
23143         * modules/logb (Files): Add m4/logb.m4.
23144         (Depends-on): Add math.
23145         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23146         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23148         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23149         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23150
23151 2010-03-07  Bruno Haible  <bruno@clisp.org>
23152
23153         Fix test-cond link error.
23154         * tests/test-cond.c: Include <stdio.h>.
23155
23156 2010-03-07  Bruno Haible  <bruno@clisp.org>
23157
23158         Fix test-dirent-safer link error.
23159         * modules/dirent-safer-tests (Makefile.am): Define
23160         test_dirent_safer_LDADD.
23161
23162 2010-03-07  Bruno Haible  <bruno@clisp.org>
23163
23164         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23165         among default module list.
23166
23167 2010-03-07  Bruno Haible  <bruno@clisp.org>
23168
23169         Fix link error on platforms with GNU libiconv.
23170         * modules/unistr/u8-strcoll-tests (Makefile): Define
23171         test_u8_strcoll_LDADD.
23172         * modules/unistr/u16-strcoll-tests (Makefile): Define
23173         test_u16_strcoll_LDADD.
23174         * modules/unistr/u32-strcoll-tests (Makefile): Define
23175         test_u32_strcoll_LDADD.
23176
23177 2010-03-07  Bruno Haible  <bruno@clisp.org>
23178
23179         Use POSIX declarations for socket functions.
23180         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23181         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23182         rpl_sendto): Change declaration to match POSIX.
23183         * lib/connect.c (rpl_connect): Likewise.
23184         * lib/accept.c (rpl_accept): Likewise.
23185         * lib/bind.c (rpl_bind): Likewise.
23186         * lib/getpeername.c (rpl_getpeername): Likewise.
23187         * lib/getsockname.c (rpl_getsockname): Likewise.
23188         * lib/recv.c (rpl_recv): Likewise.
23189         * lib/send.c (rpl_send): Likewise.
23190         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23191         * lib/sendto.c (rpl_sendto): Likewise.
23192
23193 2010-03-06  Bruno Haible  <bruno@clisp.org>
23194
23195         Clarify access, euidaccess, faccessat.
23196         * doc/posix-functions/faccessat.texi: Mention security problem under
23197         "Other problems", not "Portability problems".
23198         * doc/posix-functions/access.texi: Likewise. Mention a related security
23199         problem.
23200         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23201         * lib/euidaccess.c: Add comments about platforms.
23202         * lib/unistd.in.h (access, euidaccess): Add warnings.
23203
23204 2010-03-07  Bruno Haible  <bruno@clisp.org>
23205
23206         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23207         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23208         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23209         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23210         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23211         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23212         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23213         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23214         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23216         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23217         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23218         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23219         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23220         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23221         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23222         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23223         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23224         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23225         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23226         Likewise.
23227         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23228         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23229         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23230         Likewise.
23231         * tests/test-spawn.c (main): Make it work when
23232         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23233
23234 2010-03-07  Bruno Haible  <bruno@clisp.org>
23235
23236         Fix incorrect Makefile.am generation in German locale.
23237         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23238         Execute sed command with character range in C locale.
23239
23240 2010-03-06  Bruno Haible  <bruno@clisp.org>
23241
23242         Tests for module 'iconv-h'.
23243         * modules/iconv-h-tests: New file.
23244         * tests/test-iconv-h.c: New file.
23245
23246         New module 'iconv-h'.
23247         * modules/iconv-h: New file.
23248         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23249         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23250         (configure.ac): Remove gl_ICONV_H.
23251         (Makefile.am): Remove rule for iconv.h.
23252
23253 2010-03-06  Bruno Haible  <bruno@clisp.org>
23254
23255         More consistent naming of *.m4 files.
23256         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23257         * modules/wctype (Files): Update.
23258
23259         More consistent naming of *.m4 files.
23260         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23261         * modules/wchar (Files): Update.
23262
23263 2010-03-06  Jim Meyering  <meyering@redhat.com>
23264
23265         euidaccess: relax license to LGPLv2+
23266         * modules/euidaccess (License): Relax to LGPLv2+.
23267
23268 2010-03-06  Bruno Haible  <bruno@clisp.org>
23269
23270         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23271         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23272         (Makefile.am): Augment lib_SOURCES instead.
23273
23274 2010-03-04  Jim Meyering  <meyering@redhat.com>
23275
23276         utime: remove obsolete module
23277         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23278         unnecessary for years, and has been marked as obsolete for 10 months.
23279         * modules/utime: Remove file.
23280         * lib/utime.c: Remove file.
23281         * m4/utime.m4: Remove file.
23282         * m4/utimes-null.m4: Remove file.
23283         * doc/posix-functions/utime.texi (utime): Remove reference to
23284         the module.  Move the sole "fixed by gnulib" item into the
23285         "problems not fixed by Gnulib" list.
23286         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23287
23288 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23289
23290         * modules/exit (License): Relax license to LGPLv2+.
23291         (Status): Mark as obsolete.
23292         * NEWS: Mention deprecated 'exit' module.
23293         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23294         of now obsolete 'exit'.
23295
23296 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23297
23298         fts-lgpl: remove unused module
23299         * modules/fts-lgpl: Remove.
23300         * MODULES.html.sh (func_all_modules): Adjust.
23301         * check-module (find_included_lib_files): Adjust.
23302         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23303
23304 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23305
23306         copy-acl: enhance Solaris ACL error handling
23307         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23308         * lib/set-mode-acl.c (qset_acl): Likewise.
23309
23310 2010-03-02  Bruno Haible  <bruno@clisp.org>
23311
23312         spawn: Don't override the system defined values on FreeBSD 8.
23313         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23314         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23315         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23316         if HAVE_POSIX_SPAWN is 1.
23317         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23318
23319 2010-03-01  Bruno Haible  <bruno@clisp.org>
23320
23321         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23322         regarding Automake.
23323
23324 2010-02-25  Bruno Haible  <bruno@clisp.org>
23325
23326         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23327         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23328         setting, not afterwards.
23329         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23330
23331 2010-02-24  Eric Blake  <eblake@redhat.com>
23332
23333         bootstrap, git-version-gen: use timestamp
23334         * build-aux/git-version-gen (scriptversion): Force UTC.
23335         * build-aux/bootstrap (scriptversion): New variable.
23336
23337         bootstrap: allow older git
23338         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23339         older than 1.6.4.  Requested by the libvirt project.
23340
23341 2010-02-23  Eric Blake  <eblake@redhat.com>
23342
23343         warn-on-use: work with old autoconf
23344         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23345         AS_VAR semantics of autoconf 2.60.
23346         Reported by Bruno Haible.
23347
23348         bootstrap: improve some comments
23349         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23350         clarification comments.
23351
23352         gettimeofday: provide correct function
23353         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23354         when replacement is declared, otherwise provide gettimeofday.
23355         Reported by Michael Goffioul.
23356
23357 2010-02-23  Jim Meyering  <meyering@redhat.com>
23358
23359         lib-ignore: relax license to "unlimited", not LGPLv2+
23360         * modules/lib-ignore (License): Relax to "unlimited".
23361
23362 2010-02-23  Jim Meyering  <meyering@redhat.com>
23363
23364         lib-ignore: relax license to LGPLv2+
23365         * modules/lib-ignore (License): Relax to LGPLv2+.
23366
23367 2010-02-22  Eric Blake  <eblake@redhat.com>
23368
23369         lseek: avoid bash 3.2 broken pipe bug
23370         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23371         warning from bash 3.2.
23372         Reported by Ben Pfaff, with analysis from Bruno Haible.
23373
23374         bootstrap: support non-FSF copyright holder
23375         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23376         bootstrap.conf override of COPYRIGHT_HOLDER.
23377         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23378
23379         bootstrap: interoperate with gettext 0.14.1
23380         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23381
23382         bootstrap: allow for alternate submodule location
23383         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23384         hardcoding submodule location.
23385         (gnulib_mk): Allow direct use of Makefile.am.
23386
23387         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23388         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23389         rather than reconfiguring where the submodule points.
23390
23391         gettimeofday: restore support for platforms that lack function
23392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23393         replacement if function is missing.
23394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23395         * modules/sys_time (Makefile.am): Substitute it.
23396         * lib/sys_time.in.h (gettimeofday): Check it.
23397         Reported by Michael Goffioul.
23398
23399 2010-02-21  Bruno Haible  <bruno@clisp.org>
23400
23401         * lib/stdio.in.h (obstack_printf): Fix typo.
23402
23403 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23404
23405         vc-list-files: use bzr ls's -R option
23406         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23407         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23408
23409 2010-02-21  Jim Meyering  <meyering@redhat.com>
23410
23411         init.sh: fix EXEEXT shims to work also for names like test-prog
23412         * tests/init.sh: Re-exec a better shell, when needed.
23413         If the current shell lacks support for posix $(...), an init.sh-using
23414         test will now try to find a shell that supports that.  If EXEEXT is
23415         nonempty, we also require support for hyphen-in-alias-name and shell
23416         substitutions like ${var#glob}.  Failure to find such a shell results
23417         in a skipped test.
23418
23419 2010-02-21  Bruno Haible  <bruno@clisp.org>
23420
23421         Really work around around "broken pipe" error message from bash 3.2.
23422         * gnulib-tool (func_reset_sigpipe): Remove function.
23423         (echo): In bash 3.2, define to a function that uses printf.
23424         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23425
23426 2010-02-20  Bruno Haible  <bruno@clisp.org>
23427
23428         Restore support for automake 1.9.6 with autoconf 2.61.
23429         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23430         Reported by James Youngman <jay@gnu.org>.
23431
23432 2010-02-20  Bruno Haible  <bruno@clisp.org>
23433
23434         Improve *printf warning condition.
23435         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23436         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23437         and the function is overridden due to SIGPIPE emulation.
23438
23439 2010-02-20  Bruno Haible  <bruno@clisp.org>
23440
23441         * lib/stdio.in.h: Tweak comments.
23442
23443 2010-02-19  Bruno Haible  <bruno@clisp.org>
23444
23445         Make it easier to find modules. New gnulib-tool option '--find'.
23446         * gnulib-tool: New option --find.
23447         (func_usage): Document it.
23448         (func_sanitize_modulelist): New function, extracted from
23449         func_all_modules.
23450         (func_all_modules): Invoke it.
23451         * doc/gnulib-tool.texi (Which modules?): New node.
23452
23453 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23454
23455         * lib/sys_select.in.h: Provide select replacement even if
23456         sys/select.h exists on a system, for Interix.
23457
23458 2010-02-18  Jim Meyering  <meyering@redhat.com>
23459
23460         init.sh: don't use $(...) just yet
23461         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23462         to accommodate e.g., Solaris' /bin/sh.
23463
23464 2010-02-17  Bruno Haible  <bruno@clisp.org>
23465
23466         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23467         Reported by Ludovic Courtès <ludo@gnu.org>.
23468
23469 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23470
23471         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23472         linking with -lintl.
23473
23474 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23475
23476         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23477         if not provided by the system's netdb.h.  Reported by
23478         ludo@gnu.org (Ludovic Courtès).
23479
23480 2010-02-15  Jim Meyering  <meyering@redhat.com>
23481
23482         init.sh: improve portability and efficiency
23483         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23484         "dummy" in a for loop.
23485         Use '!', not '^' to select the complement of a character set used
23486         in a "case" statement.
23487         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23488         Suggestions from Eric Blake.
23489
23490         init.sh: automatically accommodate programs with the .exe suffix
23491         Automatically arrange for an invocation of "prog" to execute the
23492         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23493         may use the simpler "prog", yet still work when built on a system
23494         that requires specifying the added suffix.
23495         Do this by constructing a function named "prog" that invokes
23496         "prog.exe" for each .exe file in selected directories.
23497         * tests/init.sh (find_exe_basenames_): New function.
23498         (create_exe_shim_functions_): New function.
23499         (path_prepend_): Use it.
23500
23501         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23502         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23503         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23504
23505 2010-02-14  Jim Meyering  <meyering@redhat.com>
23506
23507         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23508         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23509         (sc_prohibit_hash_pjw_without_use): New rule.
23510
23511         maint.mk: allow the default upload destination dir to be overridden
23512         * top/maint.mk (upload_dest_dir_): Define with a default that
23513         preserves the status quo.
23514         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23515         Reported by Peter Simons.
23516
23517         maint.mk: prohibit inclusion of "hash.h" without_use
23518         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23519
23520 2010-02-10  Jim Meyering  <meyering@redhat.com>
23521
23522         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23523         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23524
23525 2010-02-09  Eric Blake  <ebb9@byu.net>
23526         and Bruno Haible  <bruno@clisp.org>
23527
23528         obstack-printf-posix: ensure declaration
23529         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23530         extracted from gl_FUNC_OBSTACK_PRINTF.
23531         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23532         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23533         Likewise.
23534         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23535         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23536         0.
23537
23538 2010-02-08  Bruno Haible  <bruno@clisp.org>
23539
23540         gnulib-tool: Fix typo in 2010-02-07 commit.
23541         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23542         Reported by Eric Blake.
23543
23544 2010-02-07  Bruno Haible  <bruno@clisp.org>
23545
23546         gnulib-tool: Fix up caching patches.
23547         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23548         option --no-cache. Use associative arrays when supported by the shell.
23549         (sed_comments): New variable.
23550         (modcache): Renamed from do_cache.
23551         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23552         abbreviate unnecessarily.
23553         (have_associative): New variable.
23554         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23555         way also for ksh and zsh.
23556         (func_init_sed_convert_to_cache_statements): New function, extracted
23557         from func_cache_lookup_module. Add support for associative arrays.
23558         Don't set the c_MODULE_cached variable here. Ignore all lines before
23559         the first field header. Remove only the final newline, not all trailing
23560         newlines. Support empty fields correctly. Limit the use of 'eval' to
23561         assignments.
23562         (func_get_description, func_get_status, func_get_notice,
23563         func_get_applicability, func_get_filelist, func_get_dependencies,
23564         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23565         func_get_automake_snippet, func_get_include_directive,
23566         func_get_link_directive, func_get_license, func_get_maintainer):
23567         Update documentation. List the unoptimized code first. Add support for
23568         associative arrays. Limit the use of 'eval' to assignments.
23569         (func_get_applicability): Undo stylistic pessimisations.
23570         (func_get_automake_snippet, func_get_include_directive): Reduce code
23571         duplication.
23572         (func_modules_transitive_closure, func_modules_add_dummy,
23573         func_modules_notice, func_modules_to_filelist, func_add_file,
23574         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23575         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23576         func_create_testdir, func_create_megatestdir): Update documentation.
23577
23578 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23579
23580         * gnulib-tool (func_cache_lookup_module): Store the module name
23581         belonging to the cache variable; error out if two different
23582         module names map to the same cache variable name.
23583
23584 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23585
23586         gnulib-tool: Make caching optional.
23587         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23588         Update matching short versions of --no-changelog.
23589         (func_usage): Update.
23590         (sed_extract_cache_prog): Renamed from ...
23591         (sed_extract_prog): ... this; revert to old extraction script.
23592         (func_get_description, func_get_status)
23593         (func_get_notice, func_get_applicability, func_get_filelist)
23594         (func_get_dependencies, func_get_autoconf_early_snippet)
23595         (func_get_autoconf_snippet, func_get_automake_snippet)
23596         (func_get_include_directive, func_get_link_directive)
23597         (func_get_license, func_get_maintainer): If $do_cache is false,
23598         use old, non-caching extraction scripts.
23599         Suggestion by Bruno Haible.
23600
23601 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23602
23603         gnulib-tool: cache module metainformation.
23604         * gnulib-tool (sed_extract_prog): Match newline before each
23605         header, and rewrite header to a shell variable suffix.
23606         (func_cache_var, func_cache_lookup_module): New functions,
23607         to turn a module name into a cache variable prefix, and to
23608         look up and cache module metainformation.
23609         (func_get_description, func_get_status)
23610         (func_get_notice, func_get_applicability, func_get_filelist)
23611         (func_get_dependencies, func_get_autoconf_early_snippet)
23612         (func_get_autoconf_snippet, func_get_automake_snippet)
23613         (func_get_include_directive, func_get_link_directive)
23614         (func_get_license, func_get_maintainer): Use
23615         func_cache_lookup_module.
23616
23617 2010-02-07  Bruno Haible  <bruno@clisp.org>
23618
23619         fnctl: Fix missing dependency.
23620         * modules/fcntl (Depends-on): Add getdtablesize.
23621         Reported by John W. Eaton <jwe@gnu.org>.
23622
23623 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23624
23625         Argp: fix recognition of short alias options.
23626
23627         * lib/argp-parse.c (convert_options): Fix improper use of
23628         `|' between character values.
23629         * tests/test-argp.c (group1_option): New alias option
23630         --read (-r).
23631         (group1_parser): Special handling for 'r'.
23632         (test15): New test case.
23633         (test_fun): Add test15.
23634         * tests/test-argp-2.sh: Update expected --help and --usage
23635         outputs.
23636
23637 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23638
23639         * tests/test-argp.c: Fix indentation.
23640
23641 2010-02-04  Eric Blake  <ebb9@byu.net>
23642
23643         gettimeofday: expose type of second argument
23644         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23645         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23646         * tests/test-gettimeofday.c: Use it to silence warning.
23647         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23648         the issue.
23649
23650 2010-02-03  Jim Meyering  <meyering@redhat.com>
23651
23652         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23653         * lib/regcomp.c (TYPE_SIGNED): Define.
23654         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23655
23656         regcomp.c: avoid a new -Wshadow warning
23657         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23658
23659 2010-02-01  Jim Meyering  <meyering@redhat.com>
23660
23661         removing useless parentheses in cpp #define directives
23662         For motivation, see commit c0221df4, "define STREQ(a,b)
23663         consistently, removing useless parentheses"
23664         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23665         * lib/mountlist.c (MNT_IGNORE): Likewise.
23666         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23667
23668 2010-02-01  Eric Blake  <ebb9@byu.net>
23669
23670         sys_time: use link-warning
23671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23672         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23673         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23674         * modules/sys_time (Depends-on): Add warn-on-use.
23675         (Makefile.am): Always build replacement.
23676         (configure.ac): Update substitutions.
23677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23678         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23679         bother with SYS_TIME_H.
23680         * modules/gettimeofday (configure.ac): Declare indicator.
23681         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23682         in use.
23683
23684         closein-tests: silence compiler warning
23685         * tests/test-closein.c (main): Ignore fread result.
23686         * modules/closein-tests (Depends-on): Add ignore-value.
23687
23688         tests: silence warning about system return
23689         * tests/test-areadlink-with-size.c (main): Ignore system result.
23690         * tests/test-areadlink.c (main): Likewise.
23691         * tests/test-areadlinkat-with-size.c (main): Likewise.
23692         * tests/test-areadlinkat.c (main): Likewise.
23693         * tests/test-canonicalize-lgpl.c (main): Likewise.
23694         * tests/test-canonicalize.c (main): Likewise.
23695         * tests/test-chown.c (main): Likewise.
23696         * tests/test-fchownat.c (main): Likewise.
23697         * tests/test-fdutimensat.c (main): Likewise.
23698         * tests/test-fstatat.c (main): Likewise.
23699         * tests/test-futimens.c (main): Likewise.
23700         * tests/test-lchown.c (main): Likewise.
23701         * tests/test-link.c (main): Likewise.
23702         * tests/test-linkat.c (main): Likewise.
23703         * tests/test-lstat.c (main): Likewise.
23704         * tests/test-mkdir.c (main): Likewise.
23705         * tests/test-mkdirat.c (main): Likewise.
23706         * tests/test-mkfifo.c (main): Likewise.
23707         * tests/test-mkfifoat.c (main): Likewise.
23708         * tests/test-mknod.c (main): Likewise.
23709         * tests/test-readlink.c (main): Likewise.
23710         * tests/test-remove.c (main): Likewise.
23711         * tests/test-rename.c (main): Likewise.
23712         * tests/test-renameat.c (main): Likewise.
23713         * tests/test-rmdir.c (main): Likewise.
23714         * tests/test-symlink.c (main): Likewise.
23715         * tests/test-symlinkat.c (main): Likewise.
23716         * tests/test-unlink.c (main): Likewise.
23717         * tests/test-unlinkat.c (main): Likewise.
23718         * tests/test-utimens.c (main): Likewise.
23719         * tests/test-utimensat.c (main): Likewise.
23720         * modules/areadlink-tests (Depends-on): Add ignore-value.
23721         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23722         * modules/areadlinkat-tests (Depends-on): Likewise.
23723         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23724         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23725         * modules/canonicalize-tests (Depends-on): Likewise.
23726         * modules/chown-tests (Depends-on): Likewise.
23727         * modules/fdutimensat-tests (Depends-on): Likewise.
23728         * modules/futimens-tests (Depends-on): Likewise.
23729         * modules/lchown-tests (Depends-on): Likewise.
23730         * modules/link-tests (Depends-on): Likewise.
23731         * modules/linkat-tests (Depends-on): Likewise.
23732         * modules/lstat-tests (Depends-on): Likewise.
23733         * modules/mkdir-tests (Depends-on): Likewise.
23734         * modules/mkfifo-tests (Depends-on): Likewise.
23735         * modules/mkfifoat-tests (Depends-on): Likewise.
23736         * modules/mknod-tests (Depends-on): Likewise.
23737         * modules/openat-tests (Depends-on): Likewise.
23738         * modules/readlink-tests (Depends-on): Likewise.
23739         * modules/remove-tests (Depends-on): Likewise.
23740         * modules/rename-tests (Depends-on): Likewise.
23741         * modules/renameat-tests (Depends-on): Likewise.
23742         * modules/rmdir-tests (Depends-on): Likewise.
23743         * modules/symlink-tests (Depends-on): Likewise.
23744         * modules/symlinkat-tests (Depends-on): Likewise.
23745         * modules/unlink-tests (Depends-on): Likewise.
23746         * modules/utimens-tests (Depends-on): Likewise.
23747         * modules/utimensat-tests (Depends-on): Likewise.
23748
23749 2010-01-31  Bruno Haible  <bruno@clisp.org>
23750
23751         Perform the same test for many <math.h> functions.
23752         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23753         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23754         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23755         of gl_MATHFUNC.
23756         * modules/acos (configure.ac): Likewise.
23757         * modules/asin (configure.ac): Likewise.
23758         * modules/atan (configure.ac): Likewise.
23759         * modules/atan2 (configure.ac): Likewise.
23760         * modules/cbrt (configure.ac): Likewise.
23761         * modules/copysign (configure.ac): Likewise.
23762         * modules/cos (configure.ac): Likewise.
23763         * modules/cosh (configure.ac): Likewise.
23764         * modules/erf (configure.ac): Likewise.
23765         * modules/erfc (configure.ac): Likewise.
23766         * modules/exp (configure.ac): Likewise.
23767         * modules/fmod (configure.ac): Likewise.
23768         * modules/hypot (configure.ac): Likewise.
23769         * modules/j0 (configure.ac): Likewise.
23770         * modules/j1 (configure.ac): Likewise.
23771         * modules/jn (configure.ac): Likewise.
23772         * modules/lgamma (configure.ac): Likewise.
23773         * modules/log (configure.ac): Likewise.
23774         * modules/log10 (configure.ac): Likewise.
23775         * modules/log1p (configure.ac): Likewise.
23776         * modules/pow (configure.ac): Likewise.
23777         * modules/remainder (configure.ac): Likewise.
23778         * modules/sin (configure.ac): Likewise.
23779         * modules/sinh (configure.ac): Likewise.
23780         * modules/tan (configure.ac): Likewise.
23781         * modules/tanh (configure.ac): Likewise.
23782         * modules/y0 (configure.ac): Likewise.
23783         * modules/y1 (configure.ac): Likewise.
23784         * modules/yn (configure.ac): Likewise.
23785         Suggested by Paolo Bonzini.
23786
23787 2010-01-31  Bruno Haible  <bruno@clisp.org>
23788
23789         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23790
23791 2010-01-31  Bruno Haible  <bruno@clisp.org>
23792
23793         Work around getdelim() bug on FreeBSD 8.0.
23794         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23795         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23796         not work.
23797         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23798         is 1.
23799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23800         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23801         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23802         a non-zero size.
23803         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23804
23805 2010-01-31  Bruno Haible  <bruno@clisp.org>
23806
23807         Work around getline() bug on FreeBSD 8.0.
23808         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23809         and a non-zero size.
23810         * tests/test-getline.c (main): Likewise.
23811         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23812         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23813
23814 2010-01-28  Eric Blake  <ebb9@byu.net>
23815
23816         regex: fix build failure
23817         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23818         platforms.
23819
23820 2010-01-28  Jim Meyering  <meyering@redhat.com>
23821
23822         regex: do not ignore memory allocation failure
23823         * lib/regex_internal.c (create_cd_newstate): Detect
23824         re_node_set_init_copy failure.   Extracted from glibc commit
23825         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23826
23827         regex: sync more white-space changes from libc
23828         * lib/regex_internal.c: White-space only changes.
23829         * lib/regexec.c: Likewise.
23830
23831         regex: add many uses of __attribute_warn_unused_result__
23832         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23833         * lib/regexec.c: Likewise.
23834         Extracted from a messy glibc commit.
23835
23836         regcomp.c: spelling and merge-artifact from glibc
23837         * lib/regcomp.c: Merge remainder of glibc's
23838         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23839
23840         regcomp.c: sync white-space changes from glibc
23841         * lib/regcomp.c: Merge to accommodate white space
23842         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23843
23844         regcomp.c: do not ignore internal return values
23845         * lib/regcomp.c: Do not ignore internal return values.
23846         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23847         but without its white-space changes and spelling fixes.
23848
23849         regex_internal.h: define __attribute_warn_unused_result__
23850         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23851
23852         maint: add a syntax-check rule to check for vulnerable Makefile.in
23853         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23854
23855 2010-01-27  Jim Meyering  <meyering@redhat.com>
23856
23857         ncftpput-ftp: clean up spaces
23858         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23859         Remove trailing blanks.
23860
23861 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23862
23863         * build-aux/git-version-gen: Fix copyright statement.
23864         * build-aux/gnupload: Likewise.
23865         * tests/test-arcfour.c: Likewise.
23866         * tests/test-arctwo.c: Likewise.
23867         * tests/test-count-one-bits.c: Likewise.
23868         * tests/test-crc.c: Likewise.
23869         * tests/test-des.c: Likewise.
23870         * tests/test-gc-arcfour.c: Likewise.
23871         * tests/test-gc-arctwo.c: Likewise.
23872         * tests/test-gc-des.c: Likewise.
23873         * tests/test-gc-hmac-md5.c: Likewise.
23874         * tests/test-gc-hmac-sha1.c: Likewise.
23875         * tests/test-gc-md2.c: Likewise.
23876         * tests/test-gc-md4.c: Likewise.
23877         * tests/test-gc-md5.c: Likewise.
23878         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23879         * tests/test-gc-rijndael.c: Likewise.
23880         * tests/test-gc-sha1.c: Likewise.
23881         * tests/test-gc.c: Likewise.
23882         * tests/test-gethostname.c: Likewise.
23883         * tests/test-gettimeofday.c: Likewise.
23884         * tests/test-hash.c: Likewise.
23885         * tests/test-hmac-md5.c: Likewise.
23886         * tests/test-hmac-sha1.c: Likewise.
23887         * tests/test-md2.c: Likewise.
23888         * tests/test-md4.c: Likewise.
23889         * tests/test-md5.c: Likewise.
23890         * tests/test-memchr.c: Likewise.
23891         * tests/test-memchr2.c: Likewise.
23892         * tests/test-memcmp.c: Likewise.
23893         * tests/test-memmem.c: Likewise.
23894         * tests/test-memrchr.c: Likewise.
23895         * tests/test-rawmemchr.c: Likewise.
23896         * tests/test-read-file.c: Likewise.
23897         * tests/test-rijndael.c: Likewise.
23898         * tests/test-sockets.c: Likewise.
23899         * tests/test-strchrnul.c: Likewise.
23900         * tests/test-strstr.c: Likewise.
23901         * tests/test-strtod.c: Likewise.
23902         * build-aux/ncftpput-ftp: Likewise.
23903
23904 2010-01-26  Eric Blake  <ebb9@byu.net>
23905
23906         ignore-value: update recommended header name
23907         * modules/ignore-value (Include): Only use <> for headers that
23908         exist in glibc.
23909
23910 2010-01-26  Jim Meyering  <meyering@redhat.com>
23911
23912         test-userspec.c: avoid compiler warnings
23913         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23914         and "initialization discards qualifiers..." warnings.
23915         Put the first "uid" in its own scope, and make char* members "const".
23916
23917 2010-01-25  Bruno Haible  <bruno@clisp.org>
23918
23919         gnulib-tool: Make warning diagnostics consistent.
23920         * gnulib-tool (func_warning): New function.
23921         Use it everywhere where gnulib-tool produces output to stderr and it is
23922         not a fatal error.
23923
23924 2010-01-25  Bruno Haible  <bruno@clisp.org>
23925
23926         Fix test dependencies.
23927         * modules/xstrtol-tests (Depends-on): Add inttypes.
23928         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23929
23930 2010-01-25 Pádraig Brady <P@draigBrady.com>
23931
23932         syntax-check: detect incorrect boolean macro values in config.h
23933         * modules/maintainer-makefile (configure.ac): Parameterize the location
23934         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23935         The logic is from Eric Blake and the location indicated by Jim Meyering.
23936         Note the more natural CONFIG_HEADER name is prohibited by automake
23937         for backwards compatibility reasons.
23938         * top/maint.mk (sc_Wundef_boolean): New rule.
23939
23940 2010-01-25  Jim Meyering  <meyering@redhat.com>
23941
23942         bootstrap: detect MacOS 10.6's shasum, too
23943         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23944         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23945
23946 2010-01-23  Jim Meyering  <meyering@redhat.com>
23947
23948         xstrtoll: new module
23949         * modules/xstrtoll: New file.
23950         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23951         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23952         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23953         ./configure fails if you use this module and lack "long long".
23954         * modules/xstrtoll-tests: New module.
23955         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23956         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23957         new init.sh-based test framework.
23958
23959 2010-01-24  Bruno Haible  <bruno@clisp.org>
23960
23961         Tests for module 'yn'.
23962         * modules/yn-tests: New file.
23963         * tests/test-yn.c: New file.
23964
23965         Tests for module 'y1'.
23966         * modules/y1-tests: New file.
23967         * tests/test-y1.c: New file.
23968
23969         Tests for module 'y0'.
23970         * modules/y0-tests: New file.
23971         * tests/test-y0.c: New file.
23972
23973         Tests for module 'tanh'.
23974         * modules/tanh-tests: New file.
23975         * tests/test-tanh.c: New file.
23976
23977         Tests for module 'tan'.
23978         * modules/tan-tests: New file.
23979         * tests/test-tan.c: New file.
23980
23981         Tests for module 'sqrt'.
23982         * modules/sqrt-tests: New file.
23983         * tests/test-sqrt.c: New file.
23984
23985         Tests for module 'sinh'.
23986         * modules/sinh-tests: New file.
23987         * tests/test-sinh.c: New file.
23988
23989         Tests for module 'sin'.
23990         * modules/sin-tests: New file.
23991         * tests/test-sin.c: New file.
23992
23993         Tests for module 'rint'.
23994         * modules/rint-tests: New file.
23995         * tests/test-rint.c: New file.
23996
23997         Tests for module 'remainder'.
23998         * modules/remainder-tests: New file.
23999         * tests/test-remainder.c: New file.
24000
24001         Tests for module 'pow'.
24002         * modules/pow-tests: New file.
24003         * tests/test-pow.c: New file.
24004
24005         Tests for module 'nextafter'.
24006         * modules/nextafter-tests: New file.
24007         * tests/test-nextafter.c: New file.
24008
24009         Tests for module 'modf'.
24010         * modules/modf-tests: New file.
24011         * tests/test-modf.c: New file.
24012
24013         Tests for module 'logb'.
24014         * modules/logb-tests: New file.
24015         * tests/test-logb.c: New file.
24016
24017         Tests for module 'log1p'.
24018         * modules/log1p-tests: New file.
24019         * tests/test-log1p.c: New file.
24020
24021         Tests for module 'log10'.
24022         * modules/log10-tests: New file.
24023         * tests/test-log10.c: New file.
24024
24025         Tests for module 'log'.
24026         * modules/log-tests: New file.
24027         * tests/test-log.c: New file.
24028
24029         Tests for module 'lgamma'.
24030         * modules/lgamma-tests: New file.
24031         * tests/test-lgamma.c: New file.
24032
24033         Tests for module 'ldexp'.
24034         * modules/ldexp-tests: New file.
24035         * tests/test-ldexp.c: New file.
24036
24037         Tests for module 'jn'.
24038         * modules/jn-tests: New file.
24039         * tests/test-jn.c: New file.
24040
24041         Tests for module 'j1'.
24042         * modules/j1-tests: New file.
24043         * tests/test-j1.c: New file.
24044
24045         Tests for module 'j0'.
24046         * modules/j0-tests: New file.
24047         * tests/test-j0.c: New file.
24048
24049         Tests for module 'hypot'.
24050         * modules/hypot-tests: New file.
24051         * tests/test-hypot.c: New file.
24052
24053         Tests for module 'fmod'.
24054         * modules/fmod-tests: New file.
24055         * tests/test-fmod.c: New file.
24056
24057         Tests for module 'fabs'.
24058         * modules/fabs-tests: New file.
24059         * tests/test-fabs.c: New file.
24060
24061         Tests for module 'exp'.
24062         * modules/exp-tests: New file.
24063         * tests/test-exp.c: New file.
24064
24065         Tests for module 'erfc'.
24066         * modules/erfc-tests: New file.
24067         * tests/test-erfc.c: New file.
24068
24069         Tests for module 'erf'.
24070         * modules/erf-tests: New file.
24071         * tests/test-erf.c: New file.
24072
24073         Tests for module 'cosh'.
24074         * modules/cosh-tests: New file.
24075         * tests/test-cosh.c: New file.
24076
24077         Tests for module 'cos'.
24078         * modules/cos-tests: New file.
24079         * tests/test-cos.c: New file.
24080
24081         Tests for module 'copysign'.
24082         * modules/copysign-tests: New file.
24083         * tests/test-copysign.c: New file.
24084
24085         Tests for module 'cbrt'.
24086         * modules/cbrt-tests: New file.
24087         * tests/test-cbrt.c: New file.
24088
24089         Tests for module 'atan2'.
24090         * modules/atan2-tests: New file.
24091         * tests/test-atan2.c: New file.
24092
24093         Tests for module 'atan'.
24094         * modules/atan-tests: New file.
24095         * tests/test-atan.c: New file.
24096
24097         Tests for module 'asin'.
24098         * modules/asin-tests: New file.
24099         * tests/test-asin.c: New file.
24100
24101         Tests for module 'acos'.
24102         * modules/acos-tests: New file.
24103         * tests/test-acos.c: New file.
24104
24105 2010-01-24  Bruno Haible  <bruno@clisp.org>
24106
24107         Fix tests for common <math.h> functions.
24108         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24109         code snippet that references the function pointer, rather than merely
24110         calling the function. Substitute the FUNC_LIBM variable.
24111         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24112         * modules/acos (configure.ac): Likewise.
24113         * modules/asin (configure.ac): Likewise.
24114         * modules/atan (configure.ac): Likewise.
24115         * modules/atan2 (configure.ac): Likewise.
24116         * modules/cbrt (configure.ac): Likewise.
24117         * modules/copysign (configure.ac): Likewise.
24118         * modules/cos (configure.ac): Likewise.
24119         * modules/cosh (configure.ac): Likewise.
24120         * modules/erf (configure.ac): Likewise.
24121         * modules/erfc (configure.ac): Likewise.
24122         * modules/exp (configure.ac): Likewise.
24123         * modules/fabs (configure.ac): Likewise.
24124         * modules/fmod (configure.ac): Likewise.
24125         * modules/hypot (configure.ac): Likewise.
24126         * modules/j0 (configure.ac): Likewise.
24127         * modules/j1 (configure.ac): Likewise.
24128         * modules/jn (configure.ac): Likewise.
24129         * modules/ldexp (configure.ac): Likewise.
24130         * modules/lgamma (configure.ac): Likewise.
24131         * modules/log (configure.ac): Likewise.
24132         * modules/log10 (configure.ac): Likewise.
24133         * modules/log1p (configure.ac): Likewise.
24134         * modules/logb (configure.ac): Likewise.
24135         * modules/modf (configure.ac): Likewise.
24136         * modules/nextafter (configure.ac): Likewise.
24137         * modules/pow (configure.ac): Likewise.
24138         * modules/remainder (configure.ac): Likewise.
24139         * modules/rint (configure.ac): Likewise.
24140         * modules/sin (configure.ac): Likewise.
24141         * modules/sinh (configure.ac): Likewise.
24142         * modules/tan (configure.ac): Likewise.
24143         * modules/tanh (configure.ac): Likewise.
24144         * modules/y0 (configure.ac): Likewise.
24145         * modules/y1 (configure.ac): Likewise.
24146         * modules/yn (configure.ac): Likewise.
24147
24148 2010-01-24  Bruno Haible  <bruno@clisp.org>
24149
24150         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24151         * tests/test-acosl.c (x): New variable.
24152         (main): Store argument in x and fetch it from x.
24153         * tests/test-asinl.c (x): New variable.
24154         (main): Store argument in x and fetch it from x.
24155         * tests/test-atanl.c (x): New variable.
24156         (main): Store argument in x and fetch it from x.
24157         * tests/test-cosl.c (x): New variable.
24158         (main): Store argument in x and fetch it from x.
24159         * tests/test-expl.c (x): New variable.
24160         (main): Store argument in x and fetch it from x.
24161         * tests/test-logl.c (x): New variable.
24162         (main): Store argument in x and fetch it from x.
24163         * tests/test-sinl.c (x): New variable.
24164         (main): Store argument in x and fetch it from x.
24165         * tests/test-sqrtl.c (x): New variable.
24166         (main): Store argument in x and fetch it from x.
24167         * tests/test-tanl.c (x): New variable.
24168         (main): Store argument in x and fetch it from x.
24169
24170 2010-01-24  Bruno Haible  <bruno@clisp.org>
24171
24172         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24173         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24174         assignments to the initial TESTS_ENVIRONMENT.
24175         * doc/gnulib.texi (Unit test modules): Document it.
24176         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24177         TESTS_ENVIRONMENT.
24178         * modules/btowc-tests (Makefile.am): Likewise.
24179         * modules/c-stack-tests (Makefile.am): Likewise.
24180         * modules/c-strcase-tests (Makefile.am): Likewise.
24181         * modules/copy-file-tests (Makefile.am): Likewise.
24182         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24183         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24184         * modules/mbrtowc-tests (Makefile.am): Likewise.
24185         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24186         * modules/mbscasestr-tests (Makefile.am): Likewise.
24187         * modules/mbschr-tests (Makefile.am): Likewise.
24188         * modules/mbscspn-tests (Makefile.am): Likewise.
24189         * modules/mbsinit-tests (Makefile.am): Likewise.
24190         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24191         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24192         * modules/mbspbrk-tests (Makefile.am): Likewise.
24193         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24194         * modules/mbsrchr-tests (Makefile.am): Likewise.
24195         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24196         * modules/mbsspn-tests (Makefile.am): Likewise.
24197         * modules/mbsstr-tests (Makefile.am): Likewise.
24198         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24199         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24200         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24201         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24202         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24203         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24204         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24205         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24206         * modules/wcrtomb-tests (Makefile.am): Likewise.
24207         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24208         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24209         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24210         assignments from TESTS_ENVIRONMENT.
24211         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24212         augmentation.
24213         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24214         * modules/atexit-tests (Makefile.am): Likewise.
24215         * modules/binary-io-tests (Makefile.am): Likewise.
24216         * modules/closein-tests (Makefile.am): Likewise.
24217         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24218         * modules/exclude-tests (Makefile.am): Likewise.
24219         * modules/fflush-tests (Makefile.am): Likewise.
24220         * modules/fpending-tests (Makefile.am): Likewise.
24221         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24222         * modules/freadahead-tests (Makefile.am): Likewise.
24223         * modules/freadptr-tests (Makefile.am): Likewise.
24224         * modules/freadseek-tests (Makefile.am): Likewise.
24225         * modules/fseek-tests (Makefile.am): Likewise.
24226         * modules/fseeko-tests (Makefile.am): Likewise.
24227         * modules/ftell-tests (Makefile.am): Likewise.
24228         * modules/ftello-tests (Makefile.am): Likewise.
24229         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24230         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24231         * modules/lseek-tests (Makefile.am): Likewise.
24232         * modules/parse-duration-tests (Makefile.am): Likewise.
24233         * modules/perror-tests (Makefile.am): Likewise.
24234         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24235         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24236         * modules/pipe-tests (Makefile.am): Likewise.
24237         * modules/pread-tests (Makefile.am): Likewise.
24238         * modules/printf-posix-tests (Makefile.am): Likewise.
24239         * modules/select-tests (Makefile.am): Likewise.
24240         * modules/sigpipe-tests (Makefile.am): Likewise.
24241         * modules/tsearch-tests (Makefile.am): Likewise.
24242         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24243         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24244         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24245         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24246         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24247         * modules/version-etc-tests (Makefile.am): Likewise.
24248         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24249         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24250         * modules/xalloc-die-tests (Makefile.am): Likewise.
24251         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24252         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24253         * modules/xstrtol-tests (Makefile.am): Likewise.
24254         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24255         * modules/yesno-tests (Makefile.am): Likewise.
24256         Suggested by Jim Meyering.
24257
24258 2010-01-24  Bruno Haible  <bruno@clisp.org>
24259
24260         More documentation.
24261         * doc/gnulib.texi (Writing modules): New chapter.
24262         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24263         the new chapter.
24264
24265 2010-01-24  Jim Meyering  <meyering@redhat.com>
24266
24267         maint.mk: do not prepend "./" after filtering
24268         * top/maint.mk (_prepend_srcdir_prefix): New variable
24269         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24270         "./" when $(srcdir) is ".".
24271
24272         define STREQ(a,b) consistently, removing useless parentheses
24273         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24274         since the only risk is that "a" or "b" contains an unparenthesized
24275         comma, but if either did that, STREQ would have 3 or more arguments.
24276         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24277         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24278         * lib/hash-triple.c (STREQ): Likewise.
24279         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24280         * lib/getugroups.c (STREQ): Likewise.
24281
24282 2010-01-23  Jim Meyering  <meyering@redhat.com>
24283
24284         maint.mk: fix syntax-check in a non-srcdir build directory
24285         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24286         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24287
24288 2010-01-22  Jim Meyering  <meyering@redhat.com>
24289
24290         userspec: add unit tests
24291         * tests/test-userspec.c: New file.
24292         * modules/userspec-tests: Likewise.
24293
24294 2010-01-21  Jim Meyering  <meyering@redhat.com>
24295
24296         maint.mk: handle source file names containing "." robustly
24297         * top/maint.mk (_dot_escaped_srcdir): Define.
24298         (VC_LIST): Use it in LHS of sed substitution.
24299
24300 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24301
24302         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24303         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24304         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24305         from a non-srcdir build.
24306
24307 2010-01-20  Eric Blake  <ebb9@byu.net>
24308
24309         warn-on-use: use instead of link-warning
24310         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24311         * modules/unistd (Depends-on, Makefile.am): Likewise.
24312         * modules/arpa_inet (Depends-on): Replace link-warning with
24313         warn-on-use.
24314         (Makefile.am): Update rules accordingly.
24315         * modules/ctype (Depends-on, Makefile.am): Likewise.
24316         * modules/dirent (Depends-on, Makefile.am): Likewise.
24317         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24318         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24319         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24320         * modules/locale (Depends-on, Makefile.am): Likewise.
24321         * modules/math (Depends-on, Makefile.am): Likewise.
24322         * modules/search (Depends-on, Makefile.am): Likewise.
24323         * modules/signal (Depends-on, Makefile.am): Likewise.
24324         * modules/spawn (Depends-on, Makefile.am): Likewise.
24325         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24326         * modules/string (Depends-on, Makefile.am): Likewise.
24327         * modules/strings (Depends-on, Makefile.am): Likewise.
24328         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24329         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24330         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24331         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24332         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24333         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24334         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24335         * modules/wchar (Depends-on, Makefile.am): Likewise.
24336         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24337         should be poisoned.
24338         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24339         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24340         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24341         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24342         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24343         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24344         * m4/math_h.m4 (gl_MATH_H): Likewise.
24345         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24346         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24347         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24348         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24349         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24351         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24352         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24357         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24359         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24360         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24361         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24362         GL_LINK_WARNING.
24363         * lib/ctype.in.h: Likewise.
24364         * lib/dirent.in.h: Likewise.
24365         * lib/fcntl.in.h: Likewise.
24366         * lib/inttypes.in.h: Likewise.
24367         * lib/langinfo.in.h: Likewise.
24368         * lib/locale.in.h: Likewise.
24369         * lib/math.in.h: Likewise.
24370         * lib/search.in.h: Likewise.
24371         * lib/signal.in.h: Likewise.
24372         * lib/spawn.in.h: Likewise.
24373         * lib/stdio.in.h: Likewise.
24374         * lib/stdlib.in.h: Likewise.
24375         * lib/string.in.h: Likewise.
24376         * lib/strings.in.h: Likewise.
24377         * lib/sys_file.in.h: Likewise.
24378         * lib/sys_ioctl.in.h: Likewise.
24379         * lib/sys_select.in.h: Likewise.
24380         * lib/sys_socket.in.h: Likewise.
24381         * lib/sys_stat.in.h: Likewise.
24382         * lib/sys_times.in.h: Likewise.
24383         * lib/sys_utsname.in.h: Likewise.
24384         * lib/unistd.in.h: Likewise.
24385         * lib/wchar.in.h: Likewise.
24386
24387 2010-01-20  Bruno Haible  <bruno@clisp.org>
24388
24389         Avoid duplicate -lm.
24390         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24391         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24394         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24395         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24396         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24397         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24398         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24399         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24400         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24401         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24402         Reported by Paolo Bonzini.
24403
24404 2010-01-19  Bruno Haible  <bruno@clisp.org>
24405
24406         langinfo, nl_langinfo: Relicense under LGPLv2+.
24407         * modules/langinfo (License): Change to LGPLv2+.
24408         * modules/nl_langinfo (License): Likewise.
24409         Patch by David Lutterkort <lutter@redhat.com>.
24410
24411 2010-01-19  Bruno Haible  <bruno@clisp.org>
24412
24413         Avoid compilation error with cc on OSF/1 5.1.
24414         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24415         statement, not before.
24416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24417
24418 2010-01-18  Bruno Haible  <bruno@clisp.org>
24419
24420         Avoid a link error due to the __printf__ symbol.
24421         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24422         and 2.6.x.
24423         (__format__, __printf__): Remove definitions.
24424         * lib/argp-fmtstream.h: Likewise.
24425         * lib/argp.h: Likewise.
24426         * lib/error.h: Likewise.
24427         * lib/vasnprintf.h: Likewise.
24428         * lib/xprintf.h: Likewise.
24429         * lib/xvasprintf.h: Likewise.
24430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24431
24432 2010-01-18  Bruno Haible  <bruno@clisp.org>
24433
24434         Tests for module 'tanl'.
24435         * modules/tanl-tests: New file.
24436         * tests/test-tanl.c: New file.
24437
24438         Tests for module 'sqrtl'.
24439         * modules/sqrtl-tests: New file.
24440         * tests/test-sqrtl.c: New file.
24441
24442         Tests for module 'sinl'.
24443         * modules/sinl-tests: New file.
24444         * tests/test-sinl.c: New file.
24445
24446         Tests for module 'logl'.
24447         * modules/logl-tests: New file.
24448         * tests/test-logl.c: New file.
24449
24450         Tests for module 'expl'.
24451         * modules/expl-tests: New file.
24452         * tests/test-expl.c: New file.
24453
24454         Tests for module 'cosl'.
24455         * modules/cosl-tests: New file.
24456         * tests/test-cosl.c: New file.
24457
24458         Tests for module 'atanl'.
24459         * modules/atanl-tests: New file.
24460         * tests/test-atanl.c: New file.
24461
24462         Tests for module 'asinl'.
24463         * modules/asinl-tests: New file.
24464         * tests/test-asinl.c: New file.
24465
24466         Tests for module 'acosl'.
24467         * modules/acosl-tests: New file.
24468         * tests/test-acosl.c: New file.
24469
24470         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24471         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24472         tanl): Use the standard gnulib idiom.
24473         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24474         * lib/sinl.c: Likewise.
24475         * lib/tanl.c: Don't include trigl.c.
24476         (kernel_tanl): Make static.
24477         * lib/sincosl.c: Include trigl.h first.
24478         * lib/trigl.c: Likewise.
24479         * m4/acosl.m4: New file.
24480         * m4/asinl.m4: New file.
24481         * m4/atanl.m4: New file.
24482         * m4/cosl.m4: New file.
24483         * m4/expl.m4: New file.
24484         * m4/logl.m4: New file.
24485         * m4/sinl.m4: New file.
24486         * m4/sqrtl.m4: New file.
24487         * m4/tanl.m4: New file.
24488         * m4/mathl.m4: Remove file.
24489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24490         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24491         Don't initialize GNULIB_MATHL.
24492         * modules/acosl: New file.
24493         * modules/asinl: New file.
24494         * modules/atanl: New file.
24495         * modules/cosl: New file.
24496         * modules/expl: New file.
24497         * modules/logl: New file.
24498         * modules/sinl: New file.
24499         * modules/sqrtl: New file.
24500         * modules/tanl: New file.
24501         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24502         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24503         substitute GNULIB_MATHL.
24504         * modules/mathl: Rewritten.
24505         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24506         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24507         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24508         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24509         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24510         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24511         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24512         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24513         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24514
24515 2010-01-18  Bruno Haible  <bruno@clisp.org>
24516
24517         sqrt: Make gl_FUNC_SQRT requirable.
24518         * m4/sqrt.m4: New file.
24519         * modules/sqrt (Files): Add it.
24520         (configure.ac): Invoke gl_FUNC_SQRT.
24521
24522 2010-01-18  Bruno Haible  <bruno@clisp.org>
24523
24524         New modules for common <math.h> functions.
24525         * m4/mathfunc.m4: New file.
24526         * modules/acos: New file.
24527         * modules/asin: New file.
24528         * modules/atan: New file.
24529         * modules/atan2: New file.
24530         * modules/cbrt: New file.
24531         * modules/copysign: New file.
24532         * modules/cos: New file.
24533         * modules/cosh: New file.
24534         * modules/erf: New file.
24535         * modules/erfc: New file.
24536         * modules/exp: New file.
24537         * modules/fabs: New file.
24538         * modules/fmod: New file.
24539         * modules/hypot: New file.
24540         * modules/j0: New file.
24541         * modules/j1: New file.
24542         * modules/jn: New file.
24543         * modules/ldexp: New file.
24544         * modules/lgamma: New file.
24545         * modules/log: New file.
24546         * modules/log10: New file.
24547         * modules/log1p: New file.
24548         * modules/logb: New file.
24549         * modules/modf: New file.
24550         * modules/nextafter: New file.
24551         * modules/pow: New file.
24552         * modules/remainder: New file.
24553         * modules/rint: New file.
24554         * modules/sin: New file.
24555         * modules/sinh: New file.
24556         * modules/sqrt: New file.
24557         * modules/tan: New file.
24558         * modules/tanh: New file.
24559         * modules/y0: New file.
24560         * modules/y1: New file.
24561         * modules/yn: New file.
24562         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24563         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24564         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24565         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24566         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24567         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24568         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24569         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24570         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24571         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24572         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24573         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24574         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24575         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24576         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24577         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24578         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24579         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24580         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24581         * doc/posix-functions/log.texi: Mention the 'log' module.
24582         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24583         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24584         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24585         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24586         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24587         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24588         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24589         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24590         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24591         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24592         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24593         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24594         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24595         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24596         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24597         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24598
24599 2010-01-18  Jim Meyering  <meyering@redhat.com>
24600
24601         ignore-value: relax license to LGPLv2+
24602         * modules/ignore-value (License): Relax to LGPLv2+.
24603
24604         getdate: don't leak when TZ contains two or more '"'s
24605         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24606         double quote in TZ after the first one.
24607
24608         readtokens: do not leak internal token_lengths buffer
24609         * lib/readtokens.c (readtokens): Free the local, lengths,
24610         when the supplied "token_lengths" parameter is NULL.
24611
24612 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24613
24614         Fix a couple of missing LIBTHREAD link failures on AIX.
24615         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24616         $(LIBTHREAD).
24617         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24618
24619         Link test-poll against INET_PTON_LIB.
24620         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24621         for inet_pton on Solaris 10.
24622
24623 2010-01-17  Bruno Haible  <bruno@clisp.org>
24624
24625         unistdio/*-sprintf: Fix typo in module description.
24626         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24627         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24628         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24629         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24630         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24631         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24632         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24634
24635 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24636
24637         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24638         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24639         variables in shell case patterns, for AIX and HP-UX ksh.
24640
24641         Split large sed scripts, for HP-UX sed.
24642         * modules/stdio: Split sed scripts around 50 sed commands,
24643         to avoid HP-UX limit of 99 commands, in the near future.
24644         * modules/string: Likewise.
24645         * modules/unistd: Likewise.
24646
24647         gnulib-tool: avoid writing in the current directory.
24648         * gnulib-tool (func_emit_lib_Makefile_am)
24649         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24650         not in the current directory, so concurrent gnulib-tool
24651         instances do not interfere.
24652
24653 2010-01-16  Jim Meyering  <meyering@redhat.com>
24654
24655         doc: update users.txt
24656         * users.txt: Add grep.
24657         (diffutils, gzip): Update URLs.
24658
24659 2010-01-12  Bruno Haible  <bruno@clisp.org>
24660
24661         posix_spawn: Avoid test failure on Cygwin.
24662         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24663         characters.
24664         Reported by Simon Josefsson.
24665
24666 2010-01-12  Bruno Haible  <bruno@clisp.org>
24667
24668         * tests/test-cond.c (main): When skipping the test, show the reason.
24669
24670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24671
24672         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24673
24674 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24675
24676         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24677         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24678
24679 2010-01-12  Eric Blake  <ebb9@byu.net>
24680
24681         build: guarantee AS_VAR_IF
24682         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24683         (gl_AS_VAR_IF): Move...
24684         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24685         Reported by Simon Josefsson.
24686
24687 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24688
24689         * lib/stdio.in.h: Fix typo.
24690
24691 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24692
24693         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24694         libgpg-error.
24695
24696 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24697
24698         * tests/test-xalloc-die.sh: Use $EXEEXT.
24699
24700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24701             Bruno Haible  <bruno@clisp.org>
24702
24703         getlogin, getlogin_r: Avoid test failure.
24704         * tests/test-getlogin.c: Include <stdio.h>.
24705         (main): Skip the test when the function fails because stdin is not a
24706         tty.
24707         * tests/test-getlogin_r.c: Include <stdio.h>.
24708         (main): Skip the test when the function fails because stdin is not a
24709         tty.
24710
24711 2010-01-11  Eric Blake  <ebb9@byu.net>
24712
24713         tests: avoid more large file warnings
24714         * tests/test-fflush.c: Avoid warning about ftell use.
24715         * tests/test-fseek.c: Avoid warning about fseek use.
24716
24717 2010-01-10  Bruno Haible  <bruno@clisp.org>
24718
24719         nproc: Work better on Linux when /proc and /sys are not mounted.
24720         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24721         as lower bound when, on glibc/Linux systems,
24722         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24723         Suggested by Pádraig Brady <P@draigbrady.com>.
24724         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24725
24726         nproc: Refactor.
24727         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24728         extracted from num_processors.
24729         (num_processors): Call it.
24730
24731 2010-01-11  Jim Meyering  <meyering@redhat.com>
24732
24733         utimecmp: avoid new warning from upcoming gcc-4.5.0
24734         * lib/utimecmp.c (BILLION): Define using #define rather than an
24735         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24736
24737 2010-01-11  Eric Blake  <ebb9@byu.net>
24738
24739         math: add portability warnings for classification macros
24740         * modules/math (Depends-on): Add warn-on-use.
24741         (Makefile.am): Provide new substitutions.
24742         * m4/math_h.m4 (gl_MATH_H): Require inline.
24743         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24744         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24745         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24746         implement warnings.
24747
24748         unistd: warn on use of environ without module
24749         * modules/unistd (Depends-on): Add warn-on-use.
24750         (Makefile.am): Provide new substitutions.
24751         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24752         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24753
24754         stdio: warn on suspicious uses
24755         * modules/stdio (Depends-on): Add warn-on-use.
24756         (Makefile.am): Provide new substitutions.
24757         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24758         fseeko.
24759         * lib/stdio.in.h (gets): Always warn on use.
24760         (fseek, ftell): Adjust when warnings are issued, and honor
24761         _GL_NO_LARGE_FILES as a way to silence the warning.
24762         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24763         any warning about large file offsets.
24764         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24765         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24766         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24767         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24768         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24769         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24770         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24771         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24772
24773         warn-on-use: new module
24774         * modules/warn-on-use: New file.
24775         * build-aux/warn-on-use.h: Likewise.
24776         * m4/warn-on-use.m4: Likewise.
24777         * MODULES.html.sh (Support for building): Mention it.
24778
24779 2010-01-10  Bruno Haible  <bruno@clisp.org>
24780
24781         Tests for module 'unistr/u32-strdup'.
24782         * modules/unistr/u32-strdup-tests: New file.
24783         * tests/unistr/test-u32-strdup.c: New file.
24784
24785         Tests for module 'unistr/u16-strdup'.
24786         * modules/unistr/u16-strdup-tests: New file.
24787         * tests/unistr/test-u16-strdup.c: New file.
24788
24789         Tests for module 'unistr/u8-strdup'.
24790         * modules/unistr/u8-strdup-tests: New file.
24791         * tests/unistr/test-u8-strdup.c: New file.
24792         * tests/unistr/test-strdup.h: New file.
24793
24794         Tests for module 'unistr/u32-strncmp'.
24795         * modules/unistr/u32-strncmp-tests: New file.
24796         * tests/unistr/test-u32-strncmp.c: New file.
24797
24798         Tests for module 'unistr/u16-strncmp'.
24799         * modules/unistr/u16-strncmp-tests: New file.
24800         * tests/unistr/test-u16-strncmp.c: New file.
24801
24802         Tests for module 'unistr/u8-strncmp'.
24803         * modules/unistr/u8-strncmp-tests: New file.
24804         * tests/unistr/test-u8-strncmp.c: New file.
24805         * tests/unistr/test-strncmp.h: New file.
24806
24807         Tests for module 'unistr/u32-strcoll'.
24808         * modules/unistr/u32-strcoll-tests: New file.
24809         * tests/unistr/test-u32-strcoll.c: New file.
24810
24811         Tests for module 'unistr/u16-strcoll'.
24812         * modules/unistr/u16-strcoll-tests: New file.
24813         * tests/unistr/test-u16-strcoll.c: New file.
24814
24815         Tests for module 'unistr/u8-strcoll'.
24816         * modules/unistr/u8-strcoll-tests: New file.
24817         * tests/unistr/test-u8-strcoll.c: New file.
24818
24819         Tests for module 'unistr/u32-strcmp'.
24820         * modules/unistr/u32-strcmp-tests: New file.
24821         * tests/unistr/test-u32-strcmp.c: New file.
24822         * tests/unistr/test-u32-strcmp.h: New file.
24823
24824         Tests for module 'unistr/u16-strcmp'.
24825         * modules/unistr/u16-strcmp-tests: New file.
24826         * tests/unistr/test-u16-strcmp.c: New file.
24827         * tests/unistr/test-u16-strcmp.h: New file.
24828
24829         Tests for module 'unistr/u8-strcmp'.
24830         * modules/unistr/u8-strcmp-tests: New file.
24831         * tests/unistr/test-u8-strcmp.c: New file.
24832         * tests/unistr/test-u8-strcmp.h: New file.
24833         * tests/unistr/test-strcmp.h: New file.
24834
24835         Tests for module 'unistr/u32-strncat'.
24836         * modules/unistr/u32-strncat-tests: New file.
24837         * tests/unistr/test-u32-strncat.c: New file.
24838
24839         Tests for module 'unistr/u16-strncat'.
24840         * modules/unistr/u16-strncat-tests: New file.
24841         * tests/unistr/test-u16-strncat.c: New file.
24842
24843         Tests for module 'unistr/u8-strncat'.
24844         * modules/unistr/u8-strncat-tests: New file.
24845         * tests/unistr/test-u8-strncat.c: New file.
24846         * tests/unistr/test-strncat.h: New file.
24847
24848         Tests for module 'unistr/u32-strcat'.
24849         * modules/unistr/u32-strcat-tests: New file.
24850         * tests/unistr/test-u32-strcat.c: New file.
24851
24852         Tests for module 'unistr/u16-strcat'.
24853         * modules/unistr/u16-strcat-tests: New file.
24854         * tests/unistr/test-u16-strcat.c: New file.
24855
24856         Tests for module 'unistr/u8-strcat'.
24857         * modules/unistr/u8-strcat-tests: New file.
24858         * tests/unistr/test-u8-strcat.c: New file.
24859         * tests/unistr/test-strcat.h: New file.
24860
24861         Tests for module 'unistr/u32-stpncpy'.
24862         * modules/unistr/u32-stpncpy-tests: New file.
24863         * tests/unistr/test-u32-stpncpy.c: New file.
24864
24865         Tests for module 'unistr/u16-stpncpy'.
24866         * modules/unistr/u16-stpncpy-tests: New file.
24867         * tests/unistr/test-u16-stpncpy.c: New file.
24868
24869         Tests for module 'unistr/u8-stpncpy'.
24870         * modules/unistr/u8-stpncpy-tests: New file.
24871         * tests/unistr/test-u8-stpncpy.c: New file.
24872         * tests/unistr/test-stpncpy.h: New file.
24873
24874         Tests for module 'unistr/u32-strncpy'.
24875         * modules/unistr/u32-strncpy-tests: New file.
24876         * tests/unistr/test-u32-strncpy.c: New file.
24877
24878         Tests for module 'unistr/u16-strncpy'.
24879         * modules/unistr/u16-strncpy-tests: New file.
24880         * tests/unistr/test-u16-strncpy.c: New file.
24881
24882         Tests for module 'unistr/u8-strncpy'.
24883         * modules/unistr/u8-strncpy-tests: New file.
24884         * tests/unistr/test-u8-strncpy.c: New file.
24885         * tests/unistr/test-strncpy.h: New file.
24886
24887         Tests for module 'unistr/u32-stpcpy'.
24888         * modules/unistr/u32-stpcpy-tests: New file.
24889         * tests/unistr/test-u32-stpcpy.c: New file.
24890
24891         Tests for module 'unistr/u16-stpcpy'.
24892         * modules/unistr/u16-stpcpy-tests: New file.
24893         * tests/unistr/test-u16-stpcpy.c: New file.
24894
24895         Tests for module 'unistr/u8-stpcpy'.
24896         * modules/unistr/u8-stpcpy-tests: New file.
24897         * tests/unistr/test-u8-stpcpy.c: New file.
24898         * tests/unistr/test-stpcpy.h: New file.
24899
24900         Tests for module 'unistr/u32-strcpy'.
24901         * modules/unistr/u32-strcpy-tests: New file.
24902         * tests/unistr/test-u32-strcpy.c: New file.
24903
24904         Tests for module 'unistr/u16-strcpy'.
24905         * modules/unistr/u16-strcpy-tests: New file.
24906         * tests/unistr/test-u16-strcpy.c: New file.
24907
24908         Tests for module 'unistr/u8-strcpy'.
24909         * modules/unistr/u8-strcpy-tests: New file.
24910         * tests/unistr/test-u8-strcpy.c: New file.
24911         * tests/unistr/test-strcpy.h: New file.
24912
24913         Tests for module 'unistr/u32-strnlen'.
24914         * modules/unistr/u32-strnlen-tests: New file.
24915         * tests/unistr/test-u32-strnlen.c: New file.
24916
24917         Tests for module 'unistr/u16-strnlen'.
24918         * modules/unistr/u16-strnlen-tests: New file.
24919         * tests/unistr/test-u16-strnlen.c: New file.
24920
24921         Tests for module 'unistr/u8-strnlen'.
24922         * modules/unistr/u8-strnlen-tests: New file.
24923         * tests/unistr/test-u8-strnlen.c: New file.
24924         * tests/unistr/test-strnlen.h: New file.
24925
24926         Tests for module 'unistr/u32-strlen'.
24927         * modules/unistr/u32-strlen-tests: New file.
24928         * tests/unistr/test-u32-strlen.c: New file.
24929
24930         Tests for module 'unistr/u16-strlen'.
24931         * modules/unistr/u16-strlen-tests: New file.
24932         * tests/unistr/test-u16-strlen.c: New file.
24933
24934         Tests for module 'unistr/u8-strlen'.
24935         * modules/unistr/u8-strlen-tests: New file.
24936         * tests/unistr/test-u8-strlen.c: New file.
24937
24938         Tests for module 'unistr/u32-prev'.
24939         * modules/unistr/u32-prev-tests: New file.
24940         * tests/unistr/test-u32-prev.c: New file.
24941
24942         Tests for module 'unistr/u16-prev'.
24943         * modules/unistr/u16-prev-tests: New file.
24944         * tests/unistr/test-u16-prev.c: New file.
24945
24946         Tests for module 'unistr/u8-prev'.
24947         * modules/unistr/u8-prev-tests: New file.
24948         * tests/unistr/test-u8-prev.c: New file.
24949
24950         Tests for module 'unistr/u32-next'.
24951         * modules/unistr/u32-next-tests: New file.
24952         * tests/unistr/test-u32-next.c: New file.
24953
24954         Tests for module 'unistr/u16-next'.
24955         * modules/unistr/u16-next-tests: New file.
24956         * tests/unistr/test-u16-next.c: New file.
24957
24958         Tests for module 'unistr/u8-next'.
24959         * modules/unistr/u8-next-tests: New file.
24960         * tests/unistr/test-u8-next.c: New file.
24961
24962         Tests for module 'unistr/u32-strmbtouc'.
24963         * modules/unistr/u32-strmbtouc-tests: New file.
24964         * tests/unistr/test-u32-strmbtouc.c: New file.
24965
24966         Tests for module 'unistr/u16-strmbtouc'.
24967         * modules/unistr/u16-strmbtouc-tests: New file.
24968         * tests/unistr/test-u16-strmbtouc.c: New file.
24969
24970         Tests for module 'unistr/u8-strmbtouc'.
24971         * modules/unistr/u8-strmbtouc-tests: New file.
24972         * tests/unistr/test-u8-strmbtouc.c: New file.
24973
24974         Tests for module 'unistr/u32-strmblen'.
24975         * modules/unistr/u32-strmblen-tests: New file.
24976         * tests/unistr/test-u32-strmblen.c: New file.
24977
24978         Tests for module 'unistr/u16-strmblen'.
24979         * modules/unistr/u16-strmblen-tests: New file.
24980         * tests/unistr/test-u16-strmblen.c: New file.
24981
24982         Tests for module 'unistr/u8-strmblen'.
24983         * modules/unistr/u8-strmblen-tests: New file.
24984         * tests/unistr/test-u8-strmblen.c: New file.
24985
24986         Tests for module 'unistr/u32-cpy-alloc'.
24987         * modules/unistr/u32-cpy-alloc-tests: New file.
24988         * tests/unistr/test-u32-cpy-alloc.c: New file.
24989
24990         Tests for module 'unistr/u16-cpy-alloc'.
24991         * modules/unistr/u16-cpy-alloc-tests: New file.
24992         * tests/unistr/test-u16-cpy-alloc.c: New file.
24993
24994         Tests for module 'unistr/u8-cpy-alloc'.
24995         * modules/unistr/u8-cpy-alloc-tests: New file.
24996         * tests/unistr/test-u8-cpy-alloc.c: New file.
24997         * tests/unistr/test-cpy-alloc.h: New file.
24998
24999         Tests for module 'unistr/u32-mbsnlen'.
25000         * modules/unistr/u32-mbsnlen-tests: New file.
25001         * tests/unistr/test-u32-mbsnlen.c: New file.
25002
25003         Tests for module 'unistr/u16-mbsnlen'.
25004         * modules/unistr/u16-mbsnlen-tests: New file.
25005         * tests/unistr/test-u16-mbsnlen.c: New file.
25006
25007         Tests for module 'unistr/u8-mbsnlen'.
25008         * modules/unistr/u8-mbsnlen-tests: New file.
25009         * tests/unistr/test-u8-mbsnlen.c: New file.
25010
25011         Tests for module 'unistr/u32-chr'.
25012         * modules/unistr/u32-chr-tests: New file.
25013         * tests/unistr/test-u32-chr.c: New file.
25014
25015         Tests for module 'unistr/u16-chr'.
25016         * modules/unistr/u16-chr-tests: New file.
25017         * tests/unistr/test-u16-chr.c: New file.
25018
25019         Tests for module 'unistr/u8-chr'.
25020         * modules/unistr/u8-chr-tests: New file.
25021         * tests/unistr/test-u8-chr.c: New file.
25022         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25023
25024         Tests for module 'unistr/u32-cmp2'.
25025         * modules/unistr/u32-cmp2-tests: New file.
25026         * tests/unistr/test-u32-cmp2.c: New file.
25027
25028         Tests for module 'unistr/u16-cmp2'.
25029         * modules/unistr/u16-cmp2-tests: New file.
25030         * tests/unistr/test-u16-cmp2.c: New file.
25031
25032         Tests for module 'unistr/u8-cmp2'.
25033         * modules/unistr/u8-cmp2-tests: New file.
25034         * tests/unistr/test-u8-cmp2.c: New file.
25035         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25036
25037         Tests for module 'unistr/u32-cmp'.
25038         * modules/unistr/u32-cmp-tests: New file.
25039         * tests/unistr/test-u32-cmp.c: New file.
25040
25041         Tests for module 'unistr/u16-cmp'.
25042         * modules/unistr/u16-cmp-tests: New file.
25043         * tests/unistr/test-u16-cmp.c: New file.
25044
25045         Tests for module 'unistr/u8-cmp'.
25046         * modules/unistr/u8-cmp-tests: New file.
25047         * tests/unistr/test-u8-cmp.c: New file.
25048         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25049
25050         Tests for module 'unistr/u32-set'.
25051         * modules/unistr/u32-set-tests: New file.
25052         * tests/unistr/test-u32-set.c: New file.
25053
25054         Tests for module 'unistr/u16-set'.
25055         * modules/unistr/u16-set-tests: New file.
25056         * tests/unistr/test-u16-set.c: New file.
25057
25058         Tests for module 'unistr/u8-set'.
25059         * modules/unistr/u8-set-tests: New file.
25060         * tests/unistr/test-u8-set.c: New file.
25061         * tests/unistr/test-set.h: New file.
25062
25063         Tests for module 'unistr/u32-move'.
25064         * modules/unistr/u32-move-tests: New file.
25065         * tests/unistr/test-u32-move.c: New file.
25066
25067         Tests for module 'unistr/u16-move'.
25068         * modules/unistr/u16-move-tests: New file.
25069         * tests/unistr/test-u16-move.c: New file.
25070
25071         Tests for module 'unistr/u8-move'.
25072         * modules/unistr/u8-move-tests: New file.
25073         * tests/unistr/test-u8-move.c: New file.
25074         * tests/unistr/test-move.h: New file.
25075
25076         Tests for module 'unistr/u32-cpy'.
25077         * modules/unistr/u32-cpy-tests: New file.
25078         * tests/unistr/test-u32-cpy.c: New file.
25079
25080         Tests for module 'unistr/u16-cpy'.
25081         * modules/unistr/u16-cpy-tests: New file.
25082         * tests/unistr/test-u16-cpy.c: New file.
25083
25084         Tests for module 'unistr/u8-cpy'.
25085         * modules/unistr/u8-cpy-tests: New file.
25086         * tests/unistr/test-u8-cpy.c: New file.
25087         * tests/unistr/test-cpy.h: New file.
25088
25089 2010-01-09  Bruno Haible  <bruno@clisp.org>
25090
25091         Tests for module 'unistr/u32-uctomb'.
25092         * modules/unistr/u32-uctomb-tests: New file.
25093         * tests/unistr/test-u32-uctomb.c: New file.
25094
25095         Tests for module 'unistr/u16-uctomb'.
25096         * modules/unistr/u16-uctomb-tests: New file.
25097         * tests/unistr/test-u16-uctomb.c: New file.
25098
25099         Tests for module 'unistr/u8-uctomb'.
25100         * modules/unistr/u8-uctomb-tests: New file.
25101         * tests/unistr/test-u8-uctomb.c: New file.
25102
25103         Tests for module 'unistr/u32-mbtoucr'.
25104         * modules/unistr/u32-mbtoucr-tests: New file.
25105         * tests/unistr/test-u32-mbtoucr.c: New file.
25106
25107         Tests for module 'unistr/u16-mbtoucr'.
25108         * modules/unistr/u16-mbtoucr-tests: New file.
25109         * tests/unistr/test-u16-mbtoucr.c: New file.
25110
25111         Tests for module 'unistr/u8-mbtoucr'.
25112         * modules/unistr/u8-mbtoucr-tests: New file.
25113         * tests/unistr/test-u8-mbtoucr.c: New file.
25114
25115         Tests for module 'unistr/u32-mbtouc'.
25116         * modules/unistr/u32-mbtouc-tests: New file.
25117         * tests/unistr/test-u32-mbtouc.c: New file.
25118
25119         Tests for module 'unistr/u16-mbtouc'.
25120         * modules/unistr/u16-mbtouc-tests: New file.
25121         * tests/unistr/test-u16-mbtouc.c: New file.
25122
25123         Tests for module 'unistr/u8-mbtouc'.
25124         * modules/unistr/u8-mbtouc-tests: New file.
25125         * tests/unistr/test-u8-mbtouc.c: New file.
25126
25127         Tests for module 'unistr/u32-mbtouc-unsafe'.
25128         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25129         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25130         * tests/unistr/test-u32-mbtouc.h: New file.
25131
25132         Tests for module 'unistr/u16-mbtouc-unsafe'.
25133         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25134         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25135         * tests/unistr/test-u16-mbtouc.h: New file.
25136
25137         Tests for module 'unistr/u8-mbtouc-unsafe'.
25138         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25139         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25140         * tests/unistr/test-u8-mbtouc.h: New file.
25141
25142         Tests for module 'unistr/u32-mblen'.
25143         * modules/unistr/u32-mblen-tests: New file.
25144         * tests/unistr/test-u32-mblen.c: New file.
25145
25146         Tests for module 'unistr/u16-mblen'.
25147         * modules/unistr/u16-mblen-tests: New file.
25148         * tests/unistr/test-u16-mblen.c: New file.
25149
25150         Tests for module 'unistr/u8-mblen'.
25151         * modules/unistr/u8-mblen-tests: New file.
25152         * tests/unistr/test-u8-mblen.c: New file.
25153
25154         Tests for module 'unistr/u32-to-u16'.
25155         * modules/unistr/u32-to-u16-tests: New file.
25156         * tests/unistr/test-u32-to-u16.c: New file.
25157
25158         Tests for module 'unistr/u32-to-u8'.
25159         * modules/unistr/u32-to-u8-tests: New file.
25160         * tests/unistr/test-u32-to-u8.c: New file.
25161
25162         Tests for module 'unistr/u16-to-u32'.
25163         * modules/unistr/u16-to-u32-tests: New file.
25164         * tests/unistr/test-u16-to-u32.c: New file.
25165
25166         Tests for module 'unistr/u16-to-u8'.
25167         * modules/unistr/u16-to-u8-tests: New file.
25168         * tests/unistr/test-u16-to-u8.c: New file.
25169
25170         Tests for module 'unistr/u8-to-u32'.
25171         * modules/unistr/u8-to-u32-tests: New file.
25172         * tests/unistr/test-u8-to-u32.c: New file.
25173
25174         Tests for module 'unistr/u8-to-u16'.
25175         * modules/unistr/u8-to-u16-tests: New file.
25176         * tests/unistr/test-u8-to-u16.c: New file.
25177
25178         Tests for module 'unistr/u32-check'.
25179         * modules/unistr/u32-check-tests: New file.
25180         * tests/unistr/test-u32-check.c: New file.
25181
25182         Tests for module 'unistr/u16-check'.
25183         * modules/unistr/u16-check-tests: New file.
25184         * tests/unistr/test-u16-check.c: New file.
25185
25186         Tests for module 'unistr/u8-check'.
25187         * modules/unistr/u8-check-tests: New file.
25188         * tests/unistr/test-u8-check.c: New file.
25189
25190         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25191         (category_equals): New function.
25192         (main): Add more tests.
25193         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25194
25195         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25196
25197 2010-01-10  Bruno Haible  <bruno@clisp.org>
25198
25199         unistr/u*-strcoll: Try harder to distinguish different strings.
25200         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25201         compare s1 and s2 to see if they are different.
25202
25203 2010-01-10  Bruno Haible  <bruno@clisp.org>
25204
25205         unistr/u*-stpncpy: Fix the return value.
25206         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25207         description of the return value consistent with stpncpy in glibc.
25208         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25209         written non-NUL unit.
25210
25211 2010-01-10  Bruno Haible  <bruno@clisp.org>
25212
25213         unistr/u*-next: Add missing dependencies.
25214         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25215         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25216         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25217
25218 2010-01-10  Bruno Haible  <bruno@clisp.org>
25219
25220         unistr/u8-mbsnlen: Fix return value for incomplete character.
25221         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25222         u8_mblen.
25223         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25224         Remove unistr/u8-mblen.
25225         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25226         u16_mblen.
25227         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25228         Remove unistr/u16-mblen.
25229
25230 2010-01-10  Bruno Haible  <bruno@clisp.org>
25231
25232         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25233         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25234         Reported by Brian Gough <bjg@gnu.org> and
25235         Chris Clayton <chris2553@googlemail.com> via
25236         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25237
25238 2010-01-09  Bruno Haible  <bruno@clisp.org>
25239
25240         unistr/u16-to-u32: Reject invalid input.
25241         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25242         u16_mbtouc.
25243         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25244         Remove unistr/u16-mbtouc.
25245
25246         unistr/u16-to-u8: Reject invalid input.
25247         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25248         u16_mbtouc.
25249         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25250         Remove unistr/u16-mbtouc.
25251
25252         unistr/u8-to-u32: Reject invalid input.
25253         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25254         u8_mbtouc.
25255         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25256         Remove unistr/u8-mbtouc.
25257
25258         unistr/u8-to-u16: Reject invalid input.
25259         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25260         u8_mbtouc.
25261         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25262         Remove unistr/u8-mbtouc.
25263
25264 2010-01-09  Bruno Haible  <bruno@clisp.org>
25265
25266         Tests for module 'getlogin'.
25267         * modules/getlogin-tests: New file.
25268         * tests/test-getlogin.c: New file.
25269
25270         New module 'getlogin'.
25271         * lib/unistd.in.h (getlogin): New declaration.
25272         * lib/getlogin.c: New file.
25273         * m4/getlogin.m4: New file.
25274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25275         HAVE_GETLOGIN.
25276         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25277         HAVE_GETLOGIN.
25278         * modules/getlogin: New file.
25279         * doc/posix-functions/getlogin.texi: Mention the new module.
25280         Reported by John W. Eaton <jwe@gnu.org>.
25281
25282 2010-01-09  Bruno Haible  <bruno@clisp.org>
25283
25284         getlogin_r: Support for native Windows.
25285         * lib/getlogin_r.c: Include <windows.h>
25286         (getlogin_r): Implement for native Windows.
25287         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25288         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25289         via John W. Eaton <jwe@gnu.org>.
25290
25291 2010-01-09  Bruno Haible  <bruno@clisp.org>
25292
25293         getlogin_r: Small fixes.
25294         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25295         succeeds.
25296         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25297         before testing whether getlogin_r is declared. No need to set
25298         HAVE_DECL_GETLOGIN_R to 1.
25299         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25300
25301 2010-01-09  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/unistd.in.h (getlogin_r): Add comment.
25304
25305 2010-01-09  Bruno Haible  <bruno@clisp.org>
25306
25307         Tests for module 'getlogin_r'.
25308         * modules/getlogin_r-tests: New file.
25309         * tests/test-getlogin_r.c: New file.
25310
25311 2010-01-09  Jim Meyering  <meyering@redhat.com>
25312
25313         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25314         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25315         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25316
25317 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25318
25319         * lib/dup2.c (rpl_dup2): Improve comment.
25320
25321 2010-01-08  Eric Blake  <ebb9@byu.net>
25322
25323         maint.mk: allow packages to add makefile @@ exceptions
25324         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25325         (sc_makefile_check): Rename...
25326         (sc_makefile_at_at_check): ...to this, and use hook.
25327
25328         dup2: work around mingw bug
25329         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25330         Reported by Simon Josefsson.
25331
25332 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25333
25334         glob: Fix C++ compilation.
25335         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25336         C++.
25337
25338 2010-01-07  Bruno Haible  <bruno@clisp.org>
25339
25340         Fix indentation of wctype.in.h, broken since 2007-01-06.
25341         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25342
25343 2010-01-07  Bruno Haible  <bruno@clisp.org>
25344
25345         mbslen: Avoid collision with system function.
25346         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25347         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25348         * m4/mbslen.m4: New file.
25349         * modules/mbslen (Files): Add it.
25350         (configure.ac): Invoke gl_MBSLEN.
25351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25352         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25353         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25354         via Ian Beckwith <ianb@erislabs.net>.
25355
25356 2010-01-07  Bruno Haible  <bruno@clisp.org>
25357
25358         dirent: Document the last fix.
25359         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25360
25361 2010-01-07  Bruno Haible  <bruno@clisp.org>
25362
25363         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25364         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25365         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25366         va_list are defined.
25367         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25368         Reported by Eric Blake.
25369
25370 2010-01-07  Bruno Haible  <bruno@clisp.org>
25371
25372         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25373         * modules/xlist (Depends-on): Add 'list',
25374         * modules/xoset (Depends-on): Add 'oset'.
25375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25376
25377 2010-01-07  Bruno Haible  <bruno@clisp.org>
25378
25379         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25380         * doc/posix-functions/strncasecmp.texi: Likewise.
25381
25382 2010-01-07  Bruno Haible  <bruno@clisp.org>
25383
25384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25385
25386 2010-01-07  John W. Eaton  <jwe@octave.org>
25387
25388         wctype: allow C++ use
25389         * lib/wctype.in.h: Add extern "C" block for C++.
25390
25391 2010-01-06  Eric Blake  <ebb9@byu.net>
25392
25393         maint.mk: detect incorrect GFDL usage
25394         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25395
25396 2010-01-06  Jim Meyering  <meyering@redhat.com>
25397         and Eric Blake  <ebb9@byu.net>
25398
25399         maint.mk: ignore multi-line copyright in NEWS
25400         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25401
25402 2010-01-06  Eric Blake  <ebb9@byu.net>
25403
25404         select: add missing dependency
25405         * modules/select-tests (Depends-on): Move sockets dependency...
25406         * modules/select (Depends-on): ...here.
25407         Reported by Ian Beckwith.
25408
25409         doc: regenerate INSTALL
25410         * doc/INSTALL: Reflect recent autoconf update.
25411         * doc/INSTALL.ISO: Likewise.
25412         * doc/INSTALL.UTF-8: Likewise.
25413
25414         pread: fix compilation on glibc
25415         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25416         Reported by Ralf Wildenhues.
25417
25418         dirent: fix test failure
25419         * lib/dirent.in.h (includes): Guarantee ino_t.
25420         Reported by Ralf Wildenhues.
25421
25422 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25423
25424         linkat, renameat: avoid bad free
25425         * lib/at-func2.c (at_func2): Fix typo.
25426         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25427
25428 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25429
25430         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25431         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25432         to avoid failure of symlink test later.
25433
25434 2010-01-06  Eric Blake  <ebb9@byu.net>
25435
25436         stdio, unistd: guarantee ssize_t
25437         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25438         2008 are exposed when needed.
25439         * lib/stdio.in.h (includes): Likewise.
25440         Reported by Ralf Wildenhues.
25441
25442 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25443
25444         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25445         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25446         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25447
25448 2010-01-06  Jim Meyering  <meyering@redhat.com>
25449
25450         readtokens: this module *does* require xalloc.h
25451         It uses only functions that were omitted by the old syntax-check rule.
25452         * lib/readtokens.c: Include "xalloc.h" once again.
25453         * modules/readtokens (Depends-on): Add xalloc.
25454         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25455
25456 2010-01-05  Eric Blake  <ebb9@byu.net>
25457
25458         maint: support 'make announcement' from a VPATH build
25459         * top/maint.mk (announcement): Look for correct NEWS file.
25460
25461 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25462
25463         utimens (fdutimens): ignore a negative FD, per contract
25464         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25465         when we have a valid file descriptor.  Otherwise, using a brand
25466         new glibc (with just-patched futimens that now fails with EBADF)
25467         would cause this function to fail with ENOSYS.
25468         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25469         See also http://bugzilla.redhat.com/552320.
25470
25471 2010-01-05  Eric Blake  <ebb9@byu.net>
25472
25473         strcase: document what it provides
25474         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25475         gnulib module.
25476         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25477         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25478
25479 2010-01-05  Jim Meyering  <meyering@redhat.com>
25480
25481         maint: remove useless inclusions of "xalloc.h"
25482         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25483         * lib/readtokens.c: Likewise.
25484         * lib/same.c: Likewise.
25485         * modules/getloadavg (Depends-on): Remove xalloc.
25486         * modules/readtokens: Likewise.
25487         * modules/same: Likewise.
25488
25489         maint.mk: include 4 more function names in alloca.h-checking regexp
25490         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25491         regexp.  Before, we would give a false-positive (saying alloca.h
25492         is included unnecessarily) when the only uses involved omitted symbols.
25493
25494         xalloc.h: use consistent formatting
25495         * lib/xalloc.h: Move declarations to start in the first column.
25496
25497 2010-01-05  Eric Blake  <ebb9@byu.net>
25498
25499         mkdir: avoid xalloc
25500         * lib/mkdir.c (includes): Drop unused header.
25501         Reported by John W. Eaton.
25502
25503 2010-01-04  Jim Meyering  <meyering@redhat.com>
25504
25505         nl_langinfo: avoid configure-time syntax error
25506         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25507         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25508         the empty string.  Don't let that provoke a shell syntax error.
25509
25510         regcomp, regexec, fnmatch: avoid array bounds read error
25511         * lib/regcomp.c (build_equiv_class): From glibc:
25512         Use only the low 24 bits of a findidx return value as an index
25513         into the weights array.  Patch by Ulrich Drepper:
25514         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25515         * lib/regexec.c (check_node_accept_bytes): Likewise.
25516         * lib/fnmatch_loop.c (FCT): Likewise.
25517
25518         regcomp: skip collseq lookup when there are no rules
25519         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25520         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25521
25522         regcomp: recognize ill-formed { } expressions
25523         * lib/regcomp.c (parse_dup_op): From glibc:
25524         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25525
25526         regcomp: fix typo in comment
25527         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25528         s/satisfy/satisfies/.
25529
25530         regcomp: sync from glibc: remove dead store
25531         * lib/regcomp.c (duplicate_node_closure): Remove useless
25532         search_duplicated_node call and dead store.
25533
25534         regcomp: sync from glibc; always use nl_langinfo
25535         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25536         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25537         * modules/regex (Depends-on): Add nl_langinfo.
25538
25539 2010-01-04  Eric Blake  <ebb9@byu.net>
25540
25541         fdopendir: fix configure test
25542         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25543
25544 2010-01-01  Bruno Haible  <bruno@clisp.org>
25545
25546         wchar: Remove unused configure check.
25547         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25548
25549 2010-01-01  Eric Blake  <ebb9@byu.net>
25550
25551         headers: make check of system header explicit
25552         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25553         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25554         ourselves.
25555         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25558         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25559         internals.
25560         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25561         missing.
25562         Suggested by Bruno Haible.
25563
25564 2010-01-01  Jim Meyering  <meyering@redhat.com>
25565
25566         ChangeLog: tweak to eliminate unnecessary copyright line
25567         * ChangeLog: Remove a copyright line that was mistakenly updated
25568         by today's update-copyright run.  Reported by Eric Blake.
25569
25570         test-update-copyright: don't let envvar setting cause test failure
25571         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25572
25573 2010-01-01  Bruno Haible  <bruno@clisp.org>
25574
25575         localename: Avoid gcc warning.
25576         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25577         function if it is not used.
25578
25579 2010-01-01  Jim Meyering  <meyering@redhat.com>
25580
25581         update nearly all FSF copyright year lists to include 2010
25582         Use the same procedure as for 2009, outlined in
25583         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25584
25585         version-etc: set COPYRIGHT_YEAR to 2010
25586         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25587
25588 2009-12-31  Eric Blake  <ebb9@byu.net>
25589
25590         doc: correct availability of cygwin 1.5.x getopt
25591         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25592         variables.
25593         * doc/posix-functions/opterr.texi (opterr): Likewise.
25594         * doc/posix-functions/optind.texi (optind): Likewise.
25595         * doc/posix-functions/optopt.texi (optopt): Likewise.
25596         * doc/posix-functions/tzname.texi (tzname): Likewise.
25597
25598         openat: update maintainer
25599         * modules/openat (Maintainer): Add myself.
25600
25601         utimens: avoid shadowing warning
25602         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25603         buffers into one, to avoid shadowing, as well as avoiding a
25604         redundant stat.
25605         Reported by Jim Meyering.
25606
25607         test-dup2: avoid compiler warning
25608         * tests/test-dup2.c (is_inheritable): Only define if used.
25609
25610 2010-01-01  Bruno Haible  <bruno@clisp.org>
25611
25612         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25613         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25614         defined, use wctomb instead of wcrtomb.
25615
25616 2010-01-01  Bruno Haible  <bruno@clisp.org>
25617
25618         iconv: Reject native Solaris iconv.
25619         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25620         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25621
25622 2009-12-31  Bruno Haible  <bruno@clisp.org>
25623
25624         * tests/test-signal.c (main): Remove test of 'SIG'.
25625
25626 2009-12-31  Bruno Haible  <bruno@clisp.org>
25627
25628         spawn: Fix incomplete fix.
25629         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25630         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25631         warnings for GNULIB_POSIXCHECK again.
25632         Reported by Eric Blake.
25633
25634 2009-12-31  Bruno Haible  <bruno@clisp.org>
25635
25636         Avoid namespace pollution on glibc systems.
25637         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25638         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25639         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25640         glibc systems.
25641
25642 2009-12-31  Bruno Haible  <bruno@clisp.org>
25643
25644         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25645         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25646         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25647         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25648         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25649         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25650         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25651
25652 2009-12-31  Bruno Haible  <bruno@clisp.org>
25653
25654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25655         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25656         afterwards.
25657
25658 2009-12-31  Bruno Haible  <bruno@clisp.org>
25659
25660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25661         SYS_UTSNAME_H.
25662
25663 2009-12-31  Bruno Haible  <bruno@clisp.org>
25664
25665         spawn: Fix misapplied patch.
25666         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25667         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25668         warnings for GNULIB_POSIXCHECK.
25669
25670 2009-12-31  Bruno Haible  <bruno@clisp.org>
25671
25672         times: Update after sys_times changed.
25673         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25674         * modules/times (Files): Add it.
25675         (configure.ac): Invoke gl_FUNC_TIMES.
25676
25677 2009-12-31  Bruno Haible  <bruno@clisp.org>
25678
25679         Use AC_C_INLINE where necessary.
25680         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25681         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25683         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25684         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25685         * m4/mbiter.m4 (gl_MBITER): Likewise.
25686         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25687         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25688         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25689         * modules/u64 (configure.ac): Likewise.
25690
25691 2009-12-31  Bruno Haible  <bruno@clisp.org>
25692
25693         Use AC_C_INLINE instead of module 'inline' where possible.
25694         * modules/inline (Description): Clarify purpose.
25695         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25696         * modules/count-one-bits (Depends-on): Remove inline.
25697         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25698         * modules/openat (Depends-on): Remove inline.
25699         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25700         instead of depending on module 'inline'.
25701         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25702         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25703         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25704         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25705         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25706         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25707         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25708         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25709         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25710         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25711         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25712         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25713         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25714         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25715         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25716         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25717         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25718         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25719         Likewise.
25720         * modules/unictype/property-ascii-hex-digit (Depends-on,
25721         configure.ac): Likewise.
25722         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25723         configure.ac): Likewise.
25724         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25725         configure.ac): Likewise.
25726         * modules/unictype/property-bidi-block-separator (Depends-on,
25727         configure.ac): Likewise.
25728         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25729         configure.ac): Likewise.
25730         * modules/unictype/property-bidi-common-separator (Depends-on,
25731         configure.ac): Likewise.
25732         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25733         Likewise.
25734         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25735         configure.ac): Likewise.
25736         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25737         configure.ac): Likewise.
25738         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25739         configure.ac): Likewise.
25740         * modules/unictype/property-bidi-european-digit (Depends-on,
25741         configure.ac): Likewise.
25742         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25743         configure.ac): Likewise.
25744         * modules/unictype/property-bidi-left-to-right (Depends-on,
25745         configure.ac): Likewise.
25746         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25747         configure.ac): Likewise.
25748         * modules/unictype/property-bidi-other-neutral (Depends-on,
25749         configure.ac): Likewise.
25750         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25751         Likewise.
25752         * modules/unictype/property-bidi-segment-separator (Depends-on,
25753         configure.ac): Likewise.
25754         * modules/unictype/property-bidi-whitespace (Depends-on,
25755         configure.ac): Likewise.
25756         * modules/unictype/property-combining (Depends-on, configure.ac):
25757         Likewise.
25758         * modules/unictype/property-composite (Depends-on, configure.ac):
25759         Likewise.
25760         * modules/unictype/property-currency-symbol (Depends-on,
25761         configure.ac): Likewise.
25762         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25763         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25764         Likewise.
25765         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25766         configure.ac): Likewise.
25767         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25768         Likewise.
25769         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25770         Likewise.
25771         * modules/unictype/property-extender (Depends-on, configure.ac):
25772         Likewise.
25773         * modules/unictype/property-format-control (Depends-on, configure.ac):
25774         Likewise.
25775         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25776         Likewise.
25777         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25778         Likewise.
25779         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25780         Likewise.
25781         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25782         Likewise.
25783         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25784         Likewise.
25785         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25786         Likewise.
25787         * modules/unictype/property-id-start (Depends-on, configure.ac):
25788         Likewise.
25789         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25790         Likewise.
25791         * modules/unictype/property-ids-binary-operator (Depends-on,
25792         configure.ac): Likewise.
25793         * modules/unictype/property-ids-trinary-operator (Depends-on,
25794         configure.ac): Likewise.
25795         * modules/unictype/property-ignorable-control (Depends-on,
25796         configure.ac): Likewise.
25797         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25798         Likewise.
25799         * modules/unictype/property-join-control (Depends-on, configure.ac):
25800         Likewise.
25801         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25802         Likewise.
25803         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25804         Likewise.
25805         * modules/unictype/property-logical-order-exception (Depends-on,
25806         configure.ac): Likewise.
25807         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25808         Likewise.
25809         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25810         * modules/unictype/property-non-break (Depends-on, configure.ac):
25811         Likewise.
25812         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25813         Likewise.
25814         * modules/unictype/property-numeric (Depends-on, configure.ac):
25815         Likewise.
25816         * modules/unictype/property-other-alphabetic (Depends-on,
25817         configure.ac): Likewise.
25818         * modules/unictype/property-other-default-ignorable-code-point
25819         (Depends-on, configure.ac): Likewise.
25820         * modules/unictype/property-other-grapheme-extend (Depends-on,
25821         configure.ac): Likewise.
25822         * modules/unictype/property-other-id-continue (Depends-on,
25823         configure.ac): Likewise.
25824         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25825         Likewise.
25826         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25827         Likewise.
25828         * modules/unictype/property-other-math (Depends-on, configure.ac):
25829         Likewise.
25830         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25831         Likewise.
25832         * modules/unictype/property-paired-punctuation (Depends-on,
25833         configure.ac): Likewise.
25834         * modules/unictype/property-paragraph-separator (Depends-on,
25835         configure.ac): Likewise.
25836         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25837         Likewise.
25838         * modules/unictype/property-pattern-white-space (Depends-on,
25839         configure.ac): Likewise.
25840         * modules/unictype/property-private-use (Depends-on, configure.ac):
25841         Likewise.
25842         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25843         Likewise.
25844         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25845         Likewise.
25846         * modules/unictype/property-radical (Depends-on, configure.ac):
25847         Likewise.
25848         * modules/unictype/property-sentence-terminal (Depends-on,
25849         configure.ac): Likewise.
25850         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25851         Likewise.
25852         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25853         * modules/unictype/property-terminal-punctuation (Depends-on,
25854         configure.ac): Likewise.
25855         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25856         Likewise.
25857         * modules/unictype/property-unassigned-code-value (Depends-on,
25858         configure.ac): Likewise.
25859         * modules/unictype/property-unified-ideograph (Depends-on,
25860         configure.ac): Likewise.
25861         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25862         Likewise.
25863         * modules/unictype/property-variation-selector (Depends-on,
25864         configure.ac): Likewise.
25865         * modules/unictype/property-white-space (Depends-on, configure.ac):
25866         Likewise.
25867         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25868         Likewise.
25869         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25870         Likewise.
25871         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25872         Likewise.
25873         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25874         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25875         Likewise.
25876
25877 2009-12-31  Bruno Haible  <bruno@clisp.org>
25878
25879         Remove unnecessary AC_C_INLINE invocation.
25880         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25881         since 2009-08-21.
25882
25883 2009-12-31  Jim Meyering  <meyering@redhat.com>
25884
25885         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25886         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25887         With this change, we can all remove the gpg_key_ID = ... definition
25888         from our respective cfg.mk files.
25889
25890         maint.mk: create announcement template in ~/, not in /tmp
25891         * top/maint.mk (emit_upload_commands): Adjust.
25892         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25893         Remove temporary file, .ci-msg.
25894
25895 2009-12-31  Eric Blake  <ebb9@byu.net>
25896
25897         link-warning: always build headers with link warnings
25898         * modules/arpa_inet (Makefile.am): Always build replacement
25899         header.
25900         * modules/ctype (Makefile.am): Likewise.
25901         * modules/dirent (Makefile.am): Likewise.
25902         * modules/inttypes (Makefile.am): Likewise.
25903         * modules/langinfo (Makefile.am): Likewise.
25904         * modules/locale (Makefile.am): Likewise.
25905         * modules/spawn (Makefile.am): Likewise.
25906         * modules/sys_file (Makefile.am): Likewise.
25907         * modules/sys_ioctl (Makefile.am): Likewise.
25908         * modules/sys_select (Makefile.am): Likewise.
25909         * modules/sys_socket (Makefile.am): Likewise.
25910         * modules/sys_times (Makefile.am): Likewise.
25911         * modules/sys_utsname (Makefile.am): Likewise.
25912         * modules/sys_wait (Makefile.am): Likewise.
25913         * modules/wchar (Makefile.am): Likewise.
25914         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25915         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25916         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25917         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25918         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25919         Likewise.
25920         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25921         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25922         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25923         Likewise.
25924         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25925         Likewise.
25926         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25928         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25930         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25932         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25933         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25934         (gl_WCHAR_H_DEFAULTS): Likewise.
25935
25936 2009-12-31  Eric Blake  <ebb9@byu.net>
25937
25938         signal, spawn: use link warnings
25939         * lib/signal.in.h (sigset_t): Make unconditional.
25940         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25941         (sigpending, sigprocmask, sigaction): Add link warnings.
25942         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25943         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25944         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25945         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25946         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25947         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25948         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25949         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25950         (posix_spawn_file_actions_destroy)
25951         (posix_spawn_file_actions_addopen)
25952         (posix_spawn_file_actions_addclose)
25953         (posix_spawn_file_actions_adddup2): Likewise.
25954         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25955         * tests/test-signal.c (main): Enhance test.
25956
25957         spawn: improve wrapper support
25958         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25959         (gl_SPAWN_H_DEFAULTS): New defaults.
25960         * modules/spawn (Makefile.am): Substitute them.
25961         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25962         Only declare if missing or broken.
25963
25964         sys_times, sys_utsname: use include_next
25965         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25966         header.
25967         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25968         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25969         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25970         * modules/sys_times (Depends-on): Add include_next.
25971         (Makefile.am): Substitute additional values.
25972         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25973         * lib/sys_times.in.h (includes): Include native header, if
25974         available.
25975         * lib/sys_utsname.in.h (includes): Likewise.
25976         * tests/test-sys_times.c (main): Enhance test.
25977
25978         fdutimensat: revert prior patch
25979         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25980         utimens.h.
25981         Reported by Bruno Haible.
25982
25983 2009-12-30  Eric Blake  <ebb9@byu.net>
25984
25985         sys_wait: drop link-warning dependency
25986         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25987         link-warning efforts.
25988         * lib/sys_wait.in.h: Likewise.
25989
25990         fdutimensat: remove bogus dependency
25991         * modules/fdutimensat (Depends-on): Drop inline.
25992
25993         unistd: fix typo
25994         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25995
25996 2009-12-30  Bruno Haible  <bruno@clisp.org>
25997
25998         Fix compilation error with Solaris cc.
25999         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26000         * lib/unicase/u16-is-invariant.c: Likewise.
26001         * lib/unicase/u32-is-invariant.c: Likewise.
26002         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26003
26004 2009-12-30  Bruno Haible  <bruno@clisp.org>
26005
26006         Fix test crash.
26007         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26008         locales.
26009         Reported by Simon Josefsson <simon@josefsson.org>.
26010
26011 2009-12-30  Bruno Haible  <bruno@clisp.org>
26012
26013         Fix compilation error on most platforms.
26014         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26015         Reported by Simon Josefsson <simon@josefsson.org>
26016         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26017
26018 2009-12-30  Eric Blake  <ebb9@byu.net>
26019
26020         futimens, utimensat: work around ntfs-3g bug
26021         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26022         a ctime bug is present, and expand workaround to cover ntfs-3g.
26023         * lib/utimens.c (fdutimens, lutimens): Likewise.
26024         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26025         (validate_timespec): Adjust return value.
26026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26028         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26029
26030 2009-12-29  Eric Blake  <ebb9@byu.net>
26031
26032         link-warning: make usage consistent
26033         * modules/ctype (Depends-on): Add link-warning.
26034         (Makefile.am): Update rules accordingly.
26035         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26036         * modules/locale (Depends-on, Makefile.am): Likewise.
26037         * modules/sys_file (Makefile.am): Likewise.
26038         * modules/getopt-posix (Makefile.am): Delete unused link warning
26039         efforts.
26040         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26041         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26042         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26043         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26044
26045         stdio: remove unused variables
26046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26047         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26048         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26049
26050         tests: test more substitute headers
26051         * modules/ctype-tests: New file.
26052         * modules/dirent-tests: Likewise.
26053         * modules/spawn-tests: Likewise.
26054         * modules/sys_file-tests: Likewise.
26055         * modules/sys_ioctl-tests: Likewise.
26056         * modules/sys_wait-tests: Likewise.
26057         * tests/test-ctype.c: Likewise.
26058         * tests/test-dirent.c: Likewise.
26059         * tests/test-spawn.c: Likewise.
26060         * tests/test-sys_file.c: Likewise.
26061         * tests/test-sys_ioctl.c: Likewise.
26062         * tests/test-sys_wait.c: Likewise.
26063         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26064         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26065         whether or not flock is in use.
26066
26067         tests: remove License section from module
26068         * modules/arpa_inet-tests: Remove unneeded section.
26069         * modules/byteswap-tests: Likewise.
26070         * modules/ceilf-tests: Likewise.
26071         * modules/ceill-tests: Likewise.
26072         * modules/crypto/des-tests: Likewise.
26073         * modules/crypto/gc-arcfour-tests: Likewise.
26074         * modules/crypto/gc-arctwo-tests: Likewise.
26075         * modules/crypto/gc-des-tests: Likewise.
26076         * modules/crypto/gc-hmac-md5-tests: Likewise.
26077         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26078         * modules/crypto/gc-md2-tests: Likewise.
26079         * modules/crypto/gc-md4-tests: Likewise.
26080         * modules/crypto/gc-md5-tests: Likewise.
26081         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26082         * modules/crypto/gc-rijndael-tests: Likewise.
26083         * modules/crypto/gc-sha1-tests: Likewise.
26084         * modules/crypto/gc-tests: Likewise.
26085         * modules/crypto/md2-tests: Likewise.
26086         * modules/crypto/md4-tests: Likewise.
26087         * modules/fcntl-h-tests: Likewise.
26088         * modules/floorf-tests: Likewise.
26089         * modules/floorl-tests: Likewise.
26090         * modules/frexp-nolibm-tests: Likewise.
26091         * modules/frexp-tests: Likewise.
26092         * modules/frexpl-nolibm-tests: Likewise.
26093         * modules/frexpl-tests: Likewise.
26094         * modules/getaddrinfo-tests: Likewise.
26095         * modules/inttypes-tests: Likewise.
26096         * modules/isfinite-tests: Likewise.
26097         * modules/isinf-tests: Likewise.
26098         * modules/ldexpl-tests: Likewise.
26099         * modules/locale-tests: Likewise.
26100         * modules/math-tests: Likewise.
26101         * modules/netdb-tests: Likewise.
26102         * modules/netinet_in-tests: Likewise.
26103         * modules/printf-frexp-tests: Likewise.
26104         * modules/printf-frexpl-tests: Likewise.
26105         * modules/priv-set-tests: Likewise.
26106         * modules/random_r-tests: Likewise.
26107         * modules/round-tests: Likewise.
26108         * modules/roundf-tests: Likewise.
26109         * modules/roundl-tests: Likewise.
26110         * modules/search-tests: Likewise.
26111         * modules/select-tests: Likewise.
26112         * modules/signal-tests: Likewise.
26113         * modules/stdbool-tests: Likewise.
26114         * modules/stddef-tests: Likewise.
26115         * modules/stdint-tests: Likewise.
26116         * modules/stdio-tests: Likewise.
26117         * modules/stdlib-tests: Likewise.
26118         * modules/string-tests: Likewise.
26119         * modules/strings-tests: Likewise.
26120         * modules/sys_select-tests: Likewise.
26121         * modules/sys_socket-tests: Likewise.
26122         * modules/sys_stat-tests: Likewise.
26123         * modules/sys_time-tests: Likewise.
26124         * modules/sys_utsname-tests: Likewise.
26125         * modules/sysexits-tests: Likewise.
26126         * modules/time-tests: Likewise.
26127         * modules/trunc-tests: Likewise.
26128         * modules/truncf-tests: Likewise.
26129         * modules/truncl-tests: Likewise.
26130         * modules/tsearch-tests: Likewise.
26131         * modules/unistd-tests: Likewise.
26132         * modules/wchar-tests: Likewise.
26133         * modules/wctype-tests: Likewise.
26134
26135         tests: fix license on several tests
26136         * tests/test-des.c: Update to GPLv3+.
26137         * tests/test-flock.c: Likewise.
26138         * tests/test-fsync.c: Likewise.
26139         * tests/test-futimens.h: Likewise.
26140         * tests/test-gc-arcfour.c: Likewise.
26141         * tests/test-gc-arctwo.c: Likewise.
26142         * tests/test-gc-des.c: Likewise.
26143         * tests/test-gc-hmac-md5.c: Likewise.
26144         * tests/test-gc-hmac-sha1.c: Likewise.
26145         * tests/test-gc-md2.c: Likewise.
26146         * tests/test-gc-md4.c: Likewise.
26147         * tests/test-gc-md5.c: Likewise.
26148         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26149         * tests/test-gc-rijndael.c: Likewise.
26150         * tests/test-gc-sha1.c: Likewise.
26151         * tests/test-gc.c: Likewise.
26152         * tests/test-getcwd.c: Likewise.
26153         * tests/test-link.c: Likewise.
26154         * tests/test-link.h: Likewise.
26155         * tests/test-lutimens.h: Likewise.
26156         * tests/test-md2.c: Likewise.
26157         * tests/test-md4.c: Likewise.
26158         * tests/test-mkdir.h: Likewise.
26159         * tests/test-rename.c: Likewise.
26160         * tests/test-rename.h: Likewise.
26161         * tests/test-safe-alloc.c: Likewise.
26162         * tests/test-utimens-common.h: Likewise.
26163         * tests/test-utimens.h: Likewise.
26164
26165         maint: sync license texts
26166         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26167         * doc/gpl-3.0.texi: Revert copyright year update.
26168         * doc/lgpl-3.0.texi: Likewise.
26169
26170 2009-12-29  Jim Meyering  <meyering@redhat.com>
26171
26172         update nearly all FSF copyright year lists to include 2009
26173         The files named by the following are exempted:
26174             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26175               test -f "$dst" && { echo "$dst"; continue; }
26176               test -d "$dst" || continue
26177               echo "$dst"/$(basename "$src")
26178             done > exempt
26179             git ls-files tests/unictype >> exempt
26180         In the remaining files, convert to all-interval notation if
26181         - there is already at least one year interval like 2000-2003
26182         - the file is maintained by me
26183         - the file is in lib/uni*/, where that style already prevails
26184         Otherwise, use update-copyright's default.
26185
26186 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26187         and Eric Blake  <ebb9@byu.net>
26188
26189         tests: don't require debug system() to pass
26190         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26191         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26192         * tests/test-unlink.h (test_unlink_func): Likewise.
26193         * tests/test-fstatat.c (main): ...into callers.
26194         * tests/test-lstat.c (main): Likewise.
26195         * tests/test-rmdir.c (main): Likewise.
26196         * tests/test-unlink.c (main): Likewise.
26197         * tests/test-unlinkat.c (main): Likewise.
26198         * tests/test-areadlink-with-size.c (main): Don't require a
26199         debug-only system call to pass, aiding cross-testing to mingw.
26200         * tests/test-areadlink.c (main): Likewise.
26201         * tests/test-areadlinkat-with-size.c (main): Likewise.
26202         * tests/test-areadlinkat.c (main): Likewise.
26203         * tests/test-canonicalize-lgpl.c (main): Likewise.
26204         * tests/test-canonicalize.c (main): Likewise.
26205         * tests/test-chown.c (main): Likewise.
26206         * tests/test-fchownat.c (main): Likewise.
26207         * tests/test-lchown.c (main): Likewise.
26208         * tests/test-fdutimensat.c (main): Likewise.
26209         * tests/test-futimens.c (main): Likewise.
26210         * tests/test-link.c (main): Likewise.
26211         * tests/test-linkat.c (main): Likewise.
26212         * tests/test-mkdir.c (main): Likewise.
26213         * tests/test-mkdirat.c (main): Likewise.
26214         * tests/test-mkfifo.c (main): Likewise.
26215         * tests/test-mkfifoat.c (main): Likewise.
26216         * tests/test-mknod.c (main): Likewise.
26217         * tests/test-readlink.c (main): Likewise.
26218         * tests/test-remove.c (main): Likewise.
26219         * tests/test-rename.c (main): Likewise.
26220         * tests/test-renameat.c (main): Likewise.
26221         * tests/test-symlink.c (main): Likewise.
26222         * tests/test-symlinkat.c (main): Likewise.
26223         * tests/test-utimens.c (main): Likewise.
26224         * tests/test-utimensat.c (main): Likewise.
26225
26226 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26227
26228         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26229         on $(UNUSED_PARAMETER_H) to avoid build failure.
26230
26231 2009-12-28  Jim Meyering  <meyering@redhat.com>
26232
26233         update-copyright: you may specify a max. line length other than 72
26234         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26235
26236         maint: use consistent FSF copyright line syntax
26237         * lib/posixtm.c: Add missing comma in FSF copyright line.
26238         * lib/posixtm.h: Likewise.
26239         * lib/getugroups.c: Add missing ", Inc.".
26240
26241         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26242         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26243         FSF copyright line.  Remove trailing blanks.
26244
26245 2009-12-28  Eric Blake  <ebb9@byu.net>
26246
26247         test-dup2: reduce dependencies
26248         * modules/cloexec (Configure.ac): Set witness.
26249         * modules/dup2-tests (Depends-on): Drop cloexec.
26250         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26251         not present.
26252         Suggested by Bruno Haible.
26253
26254 2009-12-26  Bruno Haible  <bruno@clisp.org>
26255
26256         Remove an unneeded dependency.
26257         * modules/fseterr (Depends-on): Remove dup2.
26258
26259 2009-12-26  Eric Blake  <ebb9@byu.net>
26260
26261         tests: use macros.h in more places
26262         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26263         (ASSERT_STREAM): Provide default of stderr.
26264         * tests/test-dirent-safer.c: Include macros.h, using alternate
26265         stream for assertions.
26266         * tests/test-dup-safer.c: Likewise.
26267         * tests/test-freopen-safer.c: Likewise.
26268         * tests/test-getopt.c: Likewise.
26269         * tests/test-openat-safer.c: Likewise.
26270         * tests/test-pipe.c: Likewise.
26271         * tests/test-popen-safer.c: Likewise.
26272         * modules/dirent-safer-tests (Files): Include macros.h.
26273         * modules/unistd-safer-tests (Files): Likewise.
26274         * modules/freopen-safer-tests (Files): Likewise.
26275         * modules/getopt-posix-tests (Files): Likewise.
26276         * modules/openat-safer-tests (Files): Likewise.
26277         * modules/pipe-tests (Files): Likewise.
26278
26279 2009-12-26  Bruno Haible  <bruno@clisp.org>
26280
26281         javacomp: Portability fix.
26282         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26283         that it also works on Solaris.
26284
26285 2009-12-26  Bruno Haible  <bruno@clisp.org>
26286
26287         localename: Fix storage allocation of gl_locale_name_thread's result.
26288         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26289         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26290         all platforms that have 'uselocale'.
26291         (gl_locale_name_thread_unsafe): New function, extracted from
26292         gl_locale_name_thread.
26293         (gl_locale_name_thread): Call struniq on all platforms that have
26294         'uselocale'.
26295         * tests/test-localename.c (test_locale_name_thread): Check that the
26296         resulting strings are permanently allocated.
26297         * modules/localename-tests (Depends-on): Add strdup.
26298
26299 2009-12-26  Bruno Haible  <bruno@clisp.org>
26300
26301         * tests/test-localename.c (categories): Fill in the strings.
26302
26303 2009-12-26  Jim Meyering  <meyering@redhat.com>
26304
26305         isdir: complete the removal of m4/isdir.m4
26306         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26307
26308         isdir: clean up, since at least grep still uses it
26309         * lib/isdir.c: Include "isdir.h".
26310         (S_ISDIR): Remove now-unneeded definition.
26311         * modules/isdir (Files): Add lib/isdir.h.
26312         * lib/isdir.h: New file, with declaration.
26313         * m4/isdir.m4: Remove file -- unneeded.
26314
26315 2009-12-25  Bruno Haible  <bruno@clisp.org>
26316
26317         selinux-h: Make generated .h files standalone.
26318         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26319         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26320         * lib/se-selinux.in.h: Likewise.
26321         * modules/selinux-h (Depends-on): Add unused-parameter.
26322         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26323         selinux/selinux.h and selinux/context.h.
26324         Suggested by Eric Blake.
26325
26326 2009-12-25  Bruno Haible  <bruno@clisp.org>
26327
26328         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26329         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26330         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26331         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26332         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26333
26334 2009-12-24  Bruno Haible  <bruno@clisp.org>
26335
26336         openat: Fix warning.
26337         * lib/openat-proc.c: Include <unistd.h>.
26338
26339 2009-12-24  Bruno Haible  <bruno@clisp.org>
26340
26341         New module 'unused-parameter'.
26342         * build-aux/unused-parameter.h: New file, extracted from earlier
26343         gnulib-common.m4.
26344         * modules/unused-parameter: New file.
26345         * lib/unistr.h: Include unused-parameter.h.
26346         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26347         _GL_UNUSED.
26348         * modules/unistr/base (Depends-on): Add unused-parameter.
26349
26350 2009-12-24  Bruno Haible  <bruno@clisp.org>
26351
26352         Add missing dependencies to 'extensions' module.
26353         * m4/extensions.m4: Add comment.
26354         * modules/accept4 (Depends-on): Add extensions.
26355         * modules/dup3 (Depends-on): Likewise.
26356         * modules/fcntl (Depends-on): Likewise.
26357         * modules/futimens (Depends-on): Likewise.
26358         * modules/mknod (Depends-on): Likewise.
26359         * modules/pipe2 (Depends-on): Likewise.
26360         * modules/stat-time (Depends-on): Likewise.
26361         * modules/strcasestr-simple (Depends-on): Likewise.
26362         * modules/strsignal (Depends-on): Likewise.
26363         * modules/utimensat (Depends-on): Likewise.
26364         * modules/localcharset (Depends-on): Likewise. Needed because of
26365         gl_FCNTL_O_FLAGS.
26366         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26367         AC_TYPE_MBSTATE_T.
26368         * modules/wcsnrtombs (Depends-on): Likewise.
26369         * modules/wcsrtombs (Depends-on): Likewise.
26370
26371 2009-12-24  Bruno Haible  <bruno@clisp.org>
26372
26373         binary-io: Avoid gcc warning due to SET_BINARY.
26374         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26375         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26376
26377 2009-12-24  Bruno Haible  <bruno@clisp.org>
26378
26379         Avoid future namespace pollution on glibc systems.
26380         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26381         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26382         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26383         glibc systems.
26384
26385 2009-12-24  Bruno Haible  <bruno@clisp.org>
26386
26387         Refactor common macros used in tests.
26388         * tests/macros.h: New file.
26389         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26390         and/or <stdlib.h>, if appropriate.
26391         (ASSERT, SIZEOF): Remove macros.
26392         * tests/test-areadlink-with-size.c: Likewise.
26393         * tests/test-areadlinkat.c: Likewise.
26394         * tests/test-areadlinkat-with-size.c: Likewise.
26395         * tests/test-argmatch.c: Likewise.
26396         * tests/test-argv-iter.c: Likewise.
26397         * tests/test-array-mergesort.c: Likewise.
26398         * tests/test-array_list.c: Likewise.
26399         * tests/test-array_oset.c: Likewise.
26400         * tests/test-avltree_list.c: Likewise.
26401         * tests/test-avltree_oset.c: Likewise.
26402         * tests/test-avltreehash_list.c: Likewise.
26403         * tests/test-base64.c: Likewise.
26404         * tests/test-binary-io.c: Likewise.
26405         * tests/test-bitrotate.c: Likewise.
26406         * tests/test-btowc.c: Likewise.
26407         * tests/test-byteswap.c: Likewise.
26408         * tests/test-c-ctype.c: Likewise.
26409         * tests/test-c-stack.c: Likewise.
26410         * tests/test-c-strcasecmp.c: Likewise.
26411         * tests/test-c-strcasestr.c: Likewise.
26412         * tests/test-c-strncasecmp.c: Likewise.
26413         * tests/test-c-strstr.c: Likewise.
26414         * tests/test-canonicalize-lgpl.c: Likewise.
26415         * tests/test-canonicalize.c: Likewise.
26416         * tests/test-carray_list.c: Likewise.
26417         * tests/test-ceilf1.c: Likewise.
26418         * tests/test-ceilf2.c: Likewise.
26419         * tests/test-ceill.c: Likewise.
26420         * tests/test-chown.c: Likewise.
26421         * tests/test-cloexec.c: Likewise.
26422         * tests/test-copy-acl.c: Likewise.
26423         * tests/test-copy-file.c: Likewise.
26424         * tests/test-count-one-bits.c: Likewise.
26425         * tests/test-dprintf-posix.c: Likewise.
26426         * tests/test-dup2.c: Likewise.
26427         * tests/test-dup3.c: Likewise.
26428         * tests/test-duplocale.c: Likewise.
26429         * tests/test-fbufmode.c: Likewise.
26430         * tests/test-fchdir.c: Likewise.
26431         * tests/test-fchownat.c: Likewise.
26432         * tests/test-fcntl-safer.c: Likewise.
26433         * tests/test-fcntl.c: Likewise.
26434         * tests/test-fdopendir.c: Likewise.
26435         * tests/test-fdutimensat.c: Likewise.
26436         * tests/test-fflush2.c: Likewise.
26437         * tests/test-file-has-acl.c: Likewise.
26438         * tests/test-filevercmp.c: Likewise.
26439         * tests/test-flock.c: Likewise.
26440         * tests/test-floorf1.c: Likewise.
26441         * tests/test-floorf2.c: Likewise.
26442         * tests/test-floorl.c: Likewise.
26443         * tests/test-fnmatch.c: Likewise.
26444         * tests/test-fopen.h: Likewise.
26445         * tests/test-fpending.c: Likewise.
26446         * tests/test-fprintf-posix.c: Likewise.
26447         * tests/test-fpurge.c: Likewise.
26448         * tests/test-freadable.c: Likewise.
26449         * tests/test-freadahead.c: Likewise.
26450         * tests/test-freading.c: Likewise.
26451         * tests/test-freadptr.c: Likewise.
26452         * tests/test-freadptr2.c: Likewise.
26453         * tests/test-freadseek.c: Likewise.
26454         * tests/test-freopen.c: Likewise.
26455         * tests/test-frexp.c: Likewise.
26456         * tests/test-frexpl.c: Likewise.
26457         * tests/test-fseek.c: Likewise.
26458         * tests/test-fseeko.c: Likewise.
26459         * tests/test-fstatat.c: Likewise.
26460         * tests/test-fstrcmp.c: Likewise.
26461         * tests/test-fsync.c: Likewise.
26462         * tests/test-ftell.c: Likewise.
26463         * tests/test-ftello.c: Likewise.
26464         * tests/test-func.c: Likewise.
26465         * tests/test-futimens.c: Likewise.
26466         * tests/test-fwritable.c: Likewise.
26467         * tests/test-fwriting.c: Likewise.
26468         * tests/test-getcwd.c: Likewise.
26469         * tests/test-getdate.c: Likewise.
26470         * tests/test-getdelim.c: Likewise.
26471         * tests/test-getdtablesize.c: Likewise.
26472         * tests/test-getgroups.c: Likewise.
26473         * tests/test-getline.c: Likewise.
26474         * tests/test-getndelim2.c: Likewise.
26475         * tests/test-glob.c: Likewise.
26476         * tests/test-hash.c: Likewise.
26477         * tests/test-i-ring.c: Likewise.
26478         * tests/test-iconv-utf.c: Likewise.
26479         * tests/test-iconv.c: Likewise.
26480         * tests/test-idpriv-drop.c: Likewise.
26481         * tests/test-idpriv-droptemp.c: Likewise.
26482         * tests/test-inet_ntop.c: Likewise.
26483         * tests/test-inet_pton.c: Likewise.
26484         * tests/test-isblank.c: Likewise.
26485         * tests/test-isfinite.c: Likewise.
26486         * tests/test-isinf.c: Likewise.
26487         * tests/test-isnan.c: Likewise.
26488         * tests/test-isnand.h: Likewise.
26489         * tests/test-isnanf.h: Likewise.
26490         * tests/test-isnanl.h: Likewise.
26491         * tests/test-lchown.c: Likewise.
26492         * tests/test-ldexpl.c: Likewise.
26493         * tests/test-link.c: Likewise.
26494         * tests/test-linkat.c: Likewise.
26495         * tests/test-linked_list.c: Likewise.
26496         * tests/test-linkedhash_list.c: Likewise.
26497         * tests/test-localename.c: Likewise.
26498         * tests/test-lseek.c: Likewise.
26499         * tests/test-lstat.c: Likewise.
26500         * tests/test-mbmemcasecmp.c: Likewise.
26501         * tests/test-mbmemcasecoll.c: Likewise.
26502         * tests/test-mbrtowc.c: Likewise.
26503         * tests/test-mbscasecmp.c: Likewise.
26504         * tests/test-mbscasestr1.c: Likewise.
26505         * tests/test-mbscasestr2.c: Likewise.
26506         * tests/test-mbscasestr3.c: Likewise.
26507         * tests/test-mbscasestr4.c: Likewise.
26508         * tests/test-mbschr.c: Likewise.
26509         * tests/test-mbscspn.c: Likewise.
26510         * tests/test-mbsinit.c: Likewise.
26511         * tests/test-mbsncasecmp.c: Likewise.
26512         * tests/test-mbsnrtowcs.c: Likewise.
26513         * tests/test-mbspbrk.c: Likewise.
26514         * tests/test-mbspcasecmp.c: Likewise.
26515         * tests/test-mbsrchr.c: Likewise.
26516         * tests/test-mbsrtowcs.c: Likewise.
26517         * tests/test-mbsspn.c: Likewise.
26518         * tests/test-mbsstr1.c: Likewise.
26519         * tests/test-mbsstr2.c: Likewise.
26520         * tests/test-mbsstr3.c: Likewise.
26521         * tests/test-memchr.c: Likewise.
26522         * tests/test-memchr2.c: Likewise.
26523         * tests/test-memcmp.c: Likewise.
26524         * tests/test-memmem.c: Likewise.
26525         * tests/test-memrchr.c: Likewise.
26526         * tests/test-mkdir.c: Likewise.
26527         * tests/test-mkdirat.c: Likewise.
26528         * tests/test-mkfifo.c: Likewise.
26529         * tests/test-mkfifoat.c: Likewise.
26530         * tests/test-mknod.c: Likewise.
26531         * tests/test-nanosleep.c: Likewise.
26532         * tests/test-nl_langinfo.c: Likewise.
26533         * tests/test-obstack-printf.c: Likewise.
26534         * tests/test-open.c: Likewise.
26535         * tests/test-openat.c: Likewise.
26536         * tests/test-pipe-filter-gi1.c: Likewise.
26537         * tests/test-pipe-filter-gi2-main.c: Likewise.
26538         * tests/test-pipe-filter-ii1.c: Likewise.
26539         * tests/test-pipe-filter-ii2-main.c: Likewise.
26540         * tests/test-pipe2.c: Likewise.
26541         * tests/test-popen.h: Likewise.
26542         * tests/test-posixtm.c: Likewise.
26543         * tests/test-pread.c: Likewise.
26544         * tests/test-printf-frexp.c: Likewise.
26545         * tests/test-printf-frexpl.c: Likewise.
26546         * tests/test-printf-posix.c: Likewise.
26547         * tests/test-priv-set.c: Likewise.
26548         * tests/test-quotearg.c: Likewise.
26549         * tests/test-random_r.c: Likewise.
26550         * tests/test-rawmemchr.c: Likewise.
26551         * tests/test-rbtree_list.c: Likewise.
26552         * tests/test-rbtree_oset.c: Likewise.
26553         * tests/test-rbtreehash_list.c: Likewise.
26554         * tests/test-readlink.c: Likewise.
26555         * tests/test-remove.c: Likewise.
26556         * tests/test-rename.c: Likewise.
26557         * tests/test-renameat.c: Likewise.
26558         * tests/test-rmdir.c: Likewise.
26559         * tests/test-round1.c: Likewise.
26560         * tests/test-roundf1.c: Likewise.
26561         * tests/test-roundl.c: Likewise.
26562         * tests/test-safe-alloc.c: Likewise.
26563         * tests/test-sameacls.c: Likewise.
26564         * tests/test-set-mode-acl.c: Likewise.
26565         * tests/test-setenv.c: Likewise.
26566         * tests/test-sigaction.c: Likewise.
26567         * tests/test-signbit.c: Likewise.
26568         * tests/test-sleep.c: Likewise.
26569         * tests/test-snprintf-posix.c: Likewise.
26570         * tests/test-snprintf.c: Likewise.
26571         * tests/test-sprintf-posix.c: Likewise.
26572         * tests/test-stat-time.c: Likewise.
26573         * tests/test-stat.c: Likewise.
26574         * tests/test-strcasestr.c: Likewise.
26575         * tests/test-strchrnul.c: Likewise.
26576         * tests/test-strerror.c: Likewise.
26577         * tests/test-striconv.c: Likewise.
26578         * tests/test-striconveh.c: Likewise.
26579         * tests/test-striconveha.c: Likewise.
26580         * tests/test-strsignal.c: Likewise.
26581         * tests/test-strstr.c: Likewise.
26582         * tests/test-strtod.c: Likewise.
26583         * tests/test-strverscmp.c: Likewise.
26584         * tests/test-symlink.c: Likewise.
26585         * tests/test-symlinkat.c: Likewise.
26586         * tests/test-trunc1.c: Likewise.
26587         * tests/test-trunc2.c: Likewise.
26588         * tests/test-truncf1.c: Likewise.
26589         * tests/test-truncf2.c: Likewise.
26590         * tests/test-truncl.c: Likewise.
26591         * tests/test-uname.c: Likewise.
26592         * tests/test-unlink.c: Likewise.
26593         * tests/test-unlinkat.c: Likewise.
26594         * tests/test-unsetenv.c: Likewise.
26595         * tests/test-usleep.c: Likewise.
26596         * tests/test-utimens.c: Likewise.
26597         * tests/test-utimensat.c: Likewise.
26598         * tests/test-vasnprintf-posix.c: Likewise.
26599         * tests/test-vasnprintf-posix2.c: Likewise.
26600         * tests/test-vasnprintf.c: Likewise.
26601         * tests/test-vasprintf-posix.c: Likewise.
26602         * tests/test-vasprintf.c: Likewise.
26603         * tests/test-vdprintf-posix.c: Likewise.
26604         * tests/test-vfprintf-posix.c: Likewise.
26605         * tests/test-vprintf-posix.c: Likewise.
26606         * tests/test-vsnprintf-posix.c: Likewise.
26607         * tests/test-vsnprintf.c: Likewise.
26608         * tests/test-vsprintf-posix.c: Likewise.
26609         * tests/test-wcrtomb.c: Likewise.
26610         * tests/test-wcsnrtombs.c: Likewise.
26611         * tests/test-wcsrtombs.c: Likewise.
26612         * tests/test-wctype.c: Likewise.
26613         * tests/test-wcwidth.c: Likewise.
26614         * tests/test-xfprintf-posix.c: Likewise.
26615         * tests/test-xmemdup0.c: Likewise.
26616         * tests/test-xprintf-posix.c: Likewise.
26617         * tests/test-xvasprintf.c: Likewise.
26618         * tests/unicase/test-locale-language.c: Likewise.
26619         * tests/unicase/test-mapping-part1.h: Likewise.
26620         * tests/unicase/test-predicate-part1.h: Likewise.
26621         * tests/unicase/test-u8-casecmp.c: Likewise.
26622         * tests/unicase/test-u8-casecoll.c: Likewise.
26623         * tests/unicase/test-u8-casefold.c: Likewise.
26624         * tests/unicase/test-u8-is-cased.c: Likewise.
26625         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26626         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26627         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26628         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26629         * tests/unicase/test-u8-tolower.c: Likewise.
26630         * tests/unicase/test-u8-totitle.c: Likewise.
26631         * tests/unicase/test-u8-toupper.c: Likewise.
26632         * tests/unicase/test-u16-casecmp.c: Likewise.
26633         * tests/unicase/test-u16-casecoll.c: Likewise.
26634         * tests/unicase/test-u16-casefold.c: Likewise.
26635         * tests/unicase/test-u16-is-cased.c: Likewise.
26636         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26637         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26638         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26639         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26640         * tests/unicase/test-u16-tolower.c: Likewise.
26641         * tests/unicase/test-u16-totitle.c: Likewise.
26642         * tests/unicase/test-u16-toupper.c: Likewise.
26643         * tests/unicase/test-u32-casecmp.c: Likewise.
26644         * tests/unicase/test-u32-casecoll.c: Likewise.
26645         * tests/unicase/test-u32-casefold.c: Likewise.
26646         * tests/unicase/test-u32-is-cased.c: Likewise.
26647         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26648         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26649         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26650         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26651         * tests/unicase/test-u32-tolower.c: Likewise.
26652         * tests/unicase/test-u32-totitle.c: Likewise.
26653         * tests/unicase/test-u32-toupper.c: Likewise.
26654         * tests/unicase/test-ulc-casecmp.c: Likewise.
26655         * tests/unicase/test-ulc-casecoll.c: Likewise.
26656         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26657         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26658         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26659         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26660         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26661         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26662         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26663         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26664         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26665         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26666         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26667         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26668         * tests/unictype/test-bidi_byname.c: Likewise.
26669         * tests/unictype/test-bidi_name.c: Likewise.
26670         * tests/unictype/test-bidi_of.c: Likewise.
26671         * tests/unictype/test-bidi_test.c: Likewise.
26672         * tests/unictype/test-block_list.c: Likewise.
26673         * tests/unictype/test-block_of.c: Likewise.
26674         * tests/unictype/test-block_test.c: Likewise.
26675         * tests/unictype/test-categ_and.c: Likewise.
26676         * tests/unictype/test-categ_and_not.c: Likewise.
26677         * tests/unictype/test-categ_byname.c: Likewise.
26678         * tests/unictype/test-categ_name.c: Likewise.
26679         * tests/unictype/test-categ_none.c: Likewise.
26680         * tests/unictype/test-categ_of.c: Likewise.
26681         * tests/unictype/test-categ_or.c: Likewise.
26682         * tests/unictype/test-categ_test_withtable.c: Likewise.
26683         * tests/unictype/test-combining.c: Likewise.
26684         * tests/unictype/test-decdigit.c: Likewise.
26685         * tests/unictype/test-digit.c: Likewise.
26686         * tests/unictype/test-mirror.c: Likewise.
26687         * tests/unictype/test-numeric.c: Likewise.
26688         * tests/unictype/test-pr_byname.c: Likewise.
26689         * tests/unictype/test-pr_test.c: Likewise.
26690         * tests/unictype/test-predicate-part1.h: Likewise.
26691         * tests/unictype/test-scripts.c: Likewise.
26692         * tests/unictype/test-sy_c_ident.c: Likewise.
26693         * tests/unictype/test-sy_java_ident.c: Likewise.
26694         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26695         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26696         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26697         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26698         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26699         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26700         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26701         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26702         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26703         * tests/uninorm/test-compat-decomposition.c: Likewise.
26704         * tests/uninorm/test-composition.c: Likewise.
26705         * tests/uninorm/test-decomposing-form.c: Likewise.
26706         * tests/uninorm/test-decomposition.c: Likewise.
26707         * tests/uninorm/test-u8-nfc.c: Likewise.
26708         * tests/uninorm/test-u8-nfd.c: Likewise.
26709         * tests/uninorm/test-u8-nfkc.c: Likewise.
26710         * tests/uninorm/test-u8-nfkd.c: Likewise.
26711         * tests/uninorm/test-u8-normcmp.c: Likewise.
26712         * tests/uninorm/test-u8-normcoll.c: Likewise.
26713         * tests/uninorm/test-u16-nfc.c: Likewise.
26714         * tests/uninorm/test-u16-nfd.c: Likewise.
26715         * tests/uninorm/test-u16-nfkc.c: Likewise.
26716         * tests/uninorm/test-u16-nfkd.c: Likewise.
26717         * tests/uninorm/test-u16-normcmp.c: Likewise.
26718         * tests/uninorm/test-u16-normcoll.c: Likewise.
26719         * tests/uninorm/test-u32-nfc.c: Likewise.
26720         * tests/uninorm/test-u32-nfd.c: Likewise.
26721         * tests/uninorm/test-u32-nfkc.c: Likewise.
26722         * tests/uninorm/test-u32-nfkd.c: Likewise.
26723         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26724         * tests/uninorm/test-u32-normcmp.c: Likewise.
26725         * tests/uninorm/test-u32-normcoll.c: Likewise.
26726         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26727         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26728         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26729         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26730         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26731         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26732         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26733         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26734         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26735         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26736         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26737         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26738         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26739         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26740         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26741         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26742         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26743         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26744         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26745         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26746         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26747         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26748         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26749         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26750         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26751         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26752         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26753         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26754         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26755         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26756         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26757         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26758         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26759         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26760         * tests/uniwidth/test-u8-width.c: Likewise.
26761         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26762         * tests/uniwidth/test-u16-width.c: Likewise.
26763         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26764         * tests/uniwidth/test-u32-width.c: Likewise.
26765         * tests/uniwidth/test-uc_width.c: Likewise.
26766         * tests/uniwidth/test-uc_width2.c: Likewise.
26767         * modules/acl-tests (Files): Add tests/macros.h.
26768         * modules/areadlink-tests (Files): Likewise.
26769         * modules/areadlink-with-size-tests (Files): Likewise.
26770         * modules/areadlinkat-tests (Files): Likewise.
26771         * modules/areadlinkat-with-size-tests (Files): Likewise.
26772         * modules/argmatch-tests (Files): Likewise.
26773         * modules/argv-iter-tests (Files): Likewise.
26774         * modules/array-list-tests (Files): Likewise.
26775         * modules/array-mergesort-tests (Files): Likewise.
26776         * modules/array-oset-tests (Files): Likewise.
26777         * modules/avltree-list-tests (Files): Likewise.
26778         * modules/avltree-oset-tests (Files): Likewise.
26779         * modules/avltreehash-list-tests (Files): Likewise.
26780         * modules/base64-tests (Files): Likewise.
26781         * modules/binary-io-tests (Files): Likewise.
26782         * modules/bitrotate-tests (Files): Likewise.
26783         * modules/btowc-tests (Files): Likewise.
26784         * modules/byteswap-tests (Files): Likewise.
26785         * modules/c-ctype-tests (Files): Likewise.
26786         * modules/c-stack-tests (Files): Likewise.
26787         * modules/c-strcase-tests (Files): Likewise.
26788         * modules/c-strcasestr-tests (Files): Likewise.
26789         * modules/c-strstr-tests (Files): Likewise.
26790         * modules/canonicalize-lgpl-tests (Files): Likewise.
26791         * modules/canonicalize-tests (Files): Likewise.
26792         * modules/carray-list-tests (Files): Likewise.
26793         * modules/ceilf-tests (Files): Likewise.
26794         * modules/ceill-tests (Files): Likewise.
26795         * modules/chown-tests (Files): Likewise.
26796         * modules/cloexec-tests (Files): Likewise.
26797         * modules/copy-file-tests (Files): Likewise.
26798         * modules/count-one-bits-tests (Files): Likewise.
26799         * modules/dprintf-posix-tests (Files): Likewise.
26800         * modules/dup2-tests (Files): Likewise.
26801         * modules/dup3-tests (Files): Likewise.
26802         * modules/duplocale-tests (Files): Likewise.
26803         * modules/fbufmode-tests (Files): Likewise.
26804         * modules/fchdir-tests (Files): Likewise.
26805         * modules/fcntl-safer-tests (Files): Likewise.
26806         * modules/fcntl-tests (Files): Likewise.
26807         * modules/fdopendir-tests (Files): Likewise.
26808         * modules/fdutimensat-tests (Files): Likewise.
26809         * modules/fflush-tests (Files): Likewise.
26810         * modules/filevercmp-tests (Files): Likewise.
26811         * modules/flock-tests (Files): Likewise.
26812         * modules/floorf-tests (Files): Likewise.
26813         * modules/floorl-tests (Files): Likewise.
26814         * modules/fnmatch-tests (Files): Likewise.
26815         * modules/fopen-safer-tests (Files): Likewise.
26816         * modules/fopen-tests (Files): Likewise.
26817         * modules/fpending-tests (Files): Likewise.
26818         * modules/fprintf-posix-tests (Files): Likewise.
26819         * modules/fpurge-tests (Files): Likewise.
26820         * modules/freadable-tests (Files): Likewise.
26821         * modules/freadahead-tests (Files): Likewise.
26822         * modules/freading-tests (Files): Likewise.
26823         * modules/freadptr-tests (Files): Likewise.
26824         * modules/freadseek-tests (Files): Likewise.
26825         * modules/freopen-tests (Files): Likewise.
26826         * modules/frexp-nolibm-tests (Files): Likewise.
26827         * modules/frexp-tests (Files): Likewise.
26828         * modules/frexpl-nolibm-tests (Files): Likewise.
26829         * modules/frexpl-tests (Files): Likewise.
26830         * modules/fseek-tests (Files): Likewise.
26831         * modules/fseeko-tests (Files): Likewise.
26832         * modules/fstrcmp-tests (Files): Likewise.
26833         * modules/fsync-tests (Files): Likewise.
26834         * modules/ftell-tests (Files): Likewise.
26835         * modules/ftello-tests (Files): Likewise.
26836         * modules/func-tests (Files): Likewise.
26837         * modules/futimens-tests (Files): Likewise.
26838         * modules/fwritable-tests (Files): Likewise.
26839         * modules/fwriting-tests (Files): Likewise.
26840         * modules/getcwd-tests (Files): Likewise.
26841         * modules/getdate-tests (Files): Likewise.
26842         * modules/getdelim-tests (Files): Likewise.
26843         * modules/getdtablesize-tests (Files): Likewise.
26844         * modules/getgroups-tests (Files): Likewise.
26845         * modules/getline-tests (Files): Likewise.
26846         * modules/getndelim2-tests (Files): Likewise.
26847         * modules/glob-tests (Files): Likewise.
26848         * modules/hash-tests (Files): Likewise.
26849         * modules/i-ring-tests (Files): Likewise.
26850         * modules/iconv-tests (Files): Likewise.
26851         * modules/iconv_open-utf-tests (Files): Likewise.
26852         * modules/idpriv-drop-tests (Files): Likewise.
26853         * modules/idpriv-droptemp-tests (Files): Likewise.
26854         * modules/inet_ntop-tests (Files): Likewise.
26855         * modules/inet_pton-tests (Files): Likewise.
26856         * modules/isblank-tests (Files): Likewise.
26857         * modules/isfinite-tests (Files): Likewise.
26858         * modules/isinf-tests (Files): Likewise.
26859         * modules/isnan-tests (Files): Likewise.
26860         * modules/isnand-nolibm-tests (Files): Likewise.
26861         * modules/isnand-tests (Files): Likewise.
26862         * modules/isnanf-nolibm-tests (Files): Likewise.
26863         * modules/isnanf-tests (Files): Likewise.
26864         * modules/isnanl-nolibm-tests (Files): Likewise.
26865         * modules/isnanl-tests (Files): Likewise.
26866         * modules/lchown-tests (Files): Likewise.
26867         * modules/ldexpl-tests (Files): Likewise.
26868         * modules/link-tests (Files): Likewise.
26869         * modules/linkat-tests (Files): Likewise.
26870         * modules/linked-list-tests (Files): Likewise.
26871         * modules/linkedhash-list-tests (Files): Likewise.
26872         * modules/localename-tests (Files): Likewise.
26873         * modules/lseek-tests (Files): Likewise.
26874         * modules/lstat-tests (Files): Likewise.
26875         * modules/mbmemcasecmp-tests (Files): Likewise.
26876         * modules/mbmemcasecoll-tests (Files): Likewise.
26877         * modules/mbrtowc-tests (Files): Likewise.
26878         * modules/mbscasecmp-tests (Files): Likewise.
26879         * modules/mbscasestr-tests (Files): Likewise.
26880         * modules/mbschr-tests (Files): Likewise.
26881         * modules/mbscspn-tests (Files): Likewise.
26882         * modules/mbsinit-tests (Files): Likewise.
26883         * modules/mbsncasecmp-tests (Files): Likewise.
26884         * modules/mbsnrtowcs-tests (Files): Likewise.
26885         * modules/mbspbrk-tests (Files): Likewise.
26886         * modules/mbspcasecmp-tests (Files): Likewise.
26887         * modules/mbsrchr-tests (Files): Likewise.
26888         * modules/mbsrtowcs-tests (Files): Likewise.
26889         * modules/mbsspn-tests (Files): Likewise.
26890         * modules/mbsstr-tests (Files): Likewise.
26891         * modules/memchr-tests (Files): Likewise.
26892         * modules/memchr2-tests (Files): Likewise.
26893         * modules/memcmp-tests (Files): Likewise.
26894         * modules/memmem-tests (Files): Likewise.
26895         * modules/memrchr-tests (Files): Likewise.
26896         * modules/mkdir-tests (Files): Likewise.
26897         * modules/mkfifo-tests (Files): Likewise.
26898         * modules/mkfifoat-tests (Files): Likewise.
26899         * modules/mknod-tests (Files): Likewise.
26900         * modules/nanosleep-tests (Files): Likewise.
26901         * modules/nl_langinfo-tests (Files): Likewise.
26902         * modules/obstack-printf-tests (Files): Likewise.
26903         * modules/open-tests (Files): Likewise.
26904         * modules/openat-tests (Files): Likewise.
26905         * modules/pipe-filter-gi-tests (Files): Likewise.
26906         * modules/pipe-filter-ii-tests (Files): Likewise.
26907         * modules/pipe2-tests (Files): Likewise.
26908         * modules/popen-safer-tests (Files): Likewise.
26909         * modules/popen-tests (Files): Likewise.
26910         * modules/posixtm-tests (Files): Likewise.
26911         * modules/pread-tests (Files): Likewise.
26912         * modules/printf-frexp-tests (Files): Likewise.
26913         * modules/printf-frexpl-tests (Files): Likewise.
26914         * modules/printf-posix-tests (Files): Likewise.
26915         * modules/priv-set-tests (Files): Likewise.
26916         * modules/quotearg-tests (Files): Likewise.
26917         * modules/random_r-tests (Files): Likewise.
26918         * modules/rawmemchr-tests (Files): Likewise.
26919         * modules/rbtree-list-tests (Files): Likewise.
26920         * modules/rbtree-oset-tests (Files): Likewise.
26921         * modules/rbtreehash-list-tests (Files): Likewise.
26922         * modules/readlink-tests (Files): Likewise.
26923         * modules/remove-tests (Files): Likewise.
26924         * modules/rename-tests (Files): Likewise.
26925         * modules/renameat-tests (Files): Likewise.
26926         * modules/rmdir-tests (Files): Likewise.
26927         * modules/round-tests (Files): Likewise.
26928         * modules/roundf-tests (Files): Likewise.
26929         * modules/roundl-tests (Files): Likewise.
26930         * modules/safe-alloc-tests (Files): Likewise.
26931         * modules/setenv-tests (Files): Likewise.
26932         * modules/sigaction-tests (Files): Likewise.
26933         * modules/signbit-tests (Files): Likewise.
26934         * modules/sleep-tests (Files): Likewise.
26935         * modules/snprintf-posix-tests (Files): Likewise.
26936         * modules/snprintf-tests (Files): Likewise.
26937         * modules/sprintf-posix-tests (Files): Likewise.
26938         * modules/stat-tests (Files): Likewise.
26939         * modules/stat-time-tests (Files): Likewise.
26940         * modules/strcasestr-tests (Files): Likewise.
26941         * modules/strchrnul-tests (Files): Likewise.
26942         * modules/strerror-tests (Files): Likewise.
26943         * modules/striconv-tests (Files): Likewise.
26944         * modules/striconveh-tests (Files): Likewise.
26945         * modules/striconveha-tests (Files): Likewise.
26946         * modules/strsignal-tests (Files): Likewise.
26947         * modules/strstr-tests (Files): Likewise.
26948         * modules/strtod-tests (Files): Likewise.
26949         * modules/strverscmp-tests (Files): Likewise.
26950         * modules/symlink-tests (Files): Likewise.
26951         * modules/symlinkat-tests (Files): Likewise.
26952         * modules/trunc-tests (Files): Likewise.
26953         * modules/truncf-tests (Files): Likewise.
26954         * modules/truncl-tests (Files): Likewise.
26955         * modules/uname-tests (Files): Likewise.
26956         * modules/unicase/cased-tests (Files): Likewise.
26957         * modules/unicase/ignorable-tests (Files): Likewise.
26958         * modules/unicase/locale-language-tests (Files): Likewise.
26959         * modules/unicase/tolower-tests (Files): Likewise.
26960         * modules/unicase/totitle-tests (Files): Likewise.
26961         * modules/unicase/toupper-tests (Files): Likewise.
26962         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26963         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26964         * modules/unicase/u8-casefold-tests (Files): Likewise.
26965         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26966         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26967         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26968         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26969         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26970         * modules/unicase/u8-tolower-tests (Files): Likewise.
26971         * modules/unicase/u8-totitle-tests (Files): Likewise.
26972         * modules/unicase/u8-toupper-tests (Files): Likewise.
26973         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26974         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26975         * modules/unicase/u16-casefold-tests (Files): Likewise.
26976         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26977         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26978         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26979         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26980         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26981         * modules/unicase/u16-tolower-tests (Files): Likewise.
26982         * modules/unicase/u16-totitle-tests (Files): Likewise.
26983         * modules/unicase/u16-toupper-tests (Files): Likewise.
26984         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26985         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26986         * modules/unicase/u32-casefold-tests (Files): Likewise.
26987         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26988         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26989         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26990         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26991         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26992         * modules/unicase/u32-tolower-tests (Files): Likewise.
26993         * modules/unicase/u32-totitle-tests (Files): Likewise.
26994         * modules/unicase/u32-toupper-tests (Files): Likewise.
26995         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26996         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26997         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26998         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26999         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27000         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27001         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27002         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27003         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27004         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27005         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27006         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27007         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27008         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27009         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27010         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27011         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27012         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27013         * modules/unictype/block-list-tests (Files): Likewise.
27014         * modules/unictype/block-of-tests (Files): Likewise.
27015         * modules/unictype/block-test-tests (Files): Likewise.
27016         * modules/unictype/category-C-tests (Files): Likewise.
27017         * modules/unictype/category-Cc-tests (Files): Likewise.
27018         * modules/unictype/category-Cf-tests (Files): Likewise.
27019         * modules/unictype/category-Cn-tests (Files): Likewise.
27020         * modules/unictype/category-Co-tests (Files): Likewise.
27021         * modules/unictype/category-Cs-tests (Files): Likewise.
27022         * modules/unictype/category-L-tests (Files): Likewise.
27023         * modules/unictype/category-Ll-tests (Files): Likewise.
27024         * modules/unictype/category-Lm-tests (Files): Likewise.
27025         * modules/unictype/category-Lo-tests (Files): Likewise.
27026         * modules/unictype/category-Lt-tests (Files): Likewise.
27027         * modules/unictype/category-Lu-tests (Files): Likewise.
27028         * modules/unictype/category-M-tests (Files): Likewise.
27029         * modules/unictype/category-Mc-tests (Files): Likewise.
27030         * modules/unictype/category-Me-tests (Files): Likewise.
27031         * modules/unictype/category-Mn-tests (Files): Likewise.
27032         * modules/unictype/category-N-tests (Files): Likewise.
27033         * modules/unictype/category-Nd-tests (Files): Likewise.
27034         * modules/unictype/category-Nl-tests (Files): Likewise.
27035         * modules/unictype/category-No-tests (Files): Likewise.
27036         * modules/unictype/category-P-tests (Files): Likewise.
27037         * modules/unictype/category-Pc-tests (Files): Likewise.
27038         * modules/unictype/category-Pd-tests (Files): Likewise.
27039         * modules/unictype/category-Pe-tests (Files): Likewise.
27040         * modules/unictype/category-Pf-tests (Files): Likewise.
27041         * modules/unictype/category-Pi-tests (Files): Likewise.
27042         * modules/unictype/category-Po-tests (Files): Likewise.
27043         * modules/unictype/category-Ps-tests (Files): Likewise.
27044         * modules/unictype/category-S-tests (Files): Likewise.
27045         * modules/unictype/category-Sc-tests (Files): Likewise.
27046         * modules/unictype/category-Sk-tests (Files): Likewise.
27047         * modules/unictype/category-Sm-tests (Files): Likewise.
27048         * modules/unictype/category-So-tests (Files): Likewise.
27049         * modules/unictype/category-Z-tests (Files): Likewise.
27050         * modules/unictype/category-Zl-tests (Files): Likewise.
27051         * modules/unictype/category-Zp-tests (Files): Likewise.
27052         * modules/unictype/category-Zs-tests (Files): Likewise.
27053         * modules/unictype/category-and-not-tests (Files): Likewise.
27054         * modules/unictype/category-and-tests (Files): Likewise.
27055         * modules/unictype/category-byname-tests (Files): Likewise.
27056         * modules/unictype/category-name-tests (Files): Likewise.
27057         * modules/unictype/category-none-tests (Files): Likewise.
27058         * modules/unictype/category-of-tests (Files): Likewise.
27059         * modules/unictype/category-or-tests (Files): Likewise.
27060         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27061         * modules/unictype/combining-class-tests (Files): Likewise.
27062         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27063         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27064         * modules/unictype/ctype-blank-tests (Files): Likewise.
27065         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27066         * modules/unictype/ctype-digit-tests (Files): Likewise.
27067         * modules/unictype/ctype-graph-tests (Files): Likewise.
27068         * modules/unictype/ctype-lower-tests (Files): Likewise.
27069         * modules/unictype/ctype-print-tests (Files): Likewise.
27070         * modules/unictype/ctype-punct-tests (Files): Likewise.
27071         * modules/unictype/ctype-space-tests (Files): Likewise.
27072         * modules/unictype/ctype-upper-tests (Files): Likewise.
27073         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27074         * modules/unictype/decimal-digit-tests (Files): Likewise.
27075         * modules/unictype/digit-tests (Files): Likewise.
27076         * modules/unictype/mirror-tests (Files): Likewise.
27077         * modules/unictype/numeric-tests (Files): Likewise.
27078         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27079         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27080         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27081         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27082         Likewise.
27083         * modules/unictype/property-bidi-block-separator-tests (Files):
27084         Likewise.
27085         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27086         Likewise.
27087         * modules/unictype/property-bidi-common-separator-tests (Files):
27088         Likewise.
27089         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27090         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27091         Likewise.
27092         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27093         Likewise.
27094         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27095         Likewise.
27096         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27097         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27098         Likewise.
27099         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27100         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27101         Likewise.
27102         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27103         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27104         * modules/unictype/property-bidi-segment-separator-tests (Files):
27105         Likewise.
27106         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27107         * modules/unictype/property-byname-tests (Files): Likewise.
27108         * modules/unictype/property-combining-tests (Files): Likewise.
27109         * modules/unictype/property-composite-tests (Files): Likewise.
27110         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27111         * modules/unictype/property-dash-tests (Files): Likewise.
27112         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27113         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27114         Likewise.
27115         * modules/unictype/property-deprecated-tests (Files): Likewise.
27116         * modules/unictype/property-diacritic-tests (Files): Likewise.
27117         * modules/unictype/property-extender-tests (Files): Likewise.
27118         * modules/unictype/property-format-control-tests (Files): Likewise.
27119         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27120         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27121         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27122         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27123         * modules/unictype/property-hyphen-tests (Files): Likewise.
27124         * modules/unictype/property-id-continue-tests (Files): Likewise.
27125         * modules/unictype/property-id-start-tests (Files): Likewise.
27126         * modules/unictype/property-ideographic-tests (Files): Likewise.
27127         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27128         * modules/unictype/property-ids-trinary-operator-tests (Files):
27129         Likewise.
27130         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27131         * modules/unictype/property-iso-control-tests (Files): Likewise.
27132         * modules/unictype/property-join-control-tests (Files): Likewise.
27133         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27134         * modules/unictype/property-line-separator-tests (Files): Likewise.
27135         * modules/unictype/property-logical-order-exception-tests (Files):
27136         Likewise.
27137         * modules/unictype/property-lowercase-tests (Files): Likewise.
27138         * modules/unictype/property-math-tests (Files): Likewise.
27139         * modules/unictype/property-non-break-tests (Files): Likewise.
27140         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27141         * modules/unictype/property-numeric-tests (Files): Likewise.
27142         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27143         * modules/unictype/property-other-default-ignorable-code-point-tests
27144         (Files): Likewise.
27145         * modules/unictype/property-other-grapheme-extend-tests (Files):
27146         Likewise.
27147         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27148         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27149         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27150         * modules/unictype/property-other-math-tests (Files): Likewise.
27151         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27152         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27153         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27154         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27155         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27156         * modules/unictype/property-private-use-tests (Files): Likewise.
27157         * modules/unictype/property-punctuation-tests (Files): Likewise.
27158         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27159         * modules/unictype/property-radical-tests (Files): Likewise.
27160         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27161         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27162         * modules/unictype/property-space-tests (Files): Likewise.
27163         * modules/unictype/property-terminal-punctuation-tests (Files):
27164         Likewise.
27165         * modules/unictype/property-test-tests (Files): Likewise.
27166         * modules/unictype/property-titlecase-tests (Files): Likewise.
27167         * modules/unictype/property-unassigned-code-value-tests (Files):
27168         Likewise.
27169         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27170         * modules/unictype/property-uppercase-tests (Files): Likewise.
27171         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27172         * modules/unictype/property-white-space-tests (Files): Likewise.
27173         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27174         * modules/unictype/property-xid-start-tests (Files): Likewise.
27175         * modules/unictype/property-zero-width-tests (Files): Likewise.
27176         * modules/unictype/scripts-tests (Files): Likewise.
27177         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27178         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27179         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27180         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27181         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27182         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27183         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27184         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27185         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27186         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27187         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27188         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27189         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27190         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27191         * modules/uninorm/composition-tests (Files): Likewise.
27192         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27193         * modules/uninorm/decomposition-tests (Files): Likewise.
27194         * modules/uninorm/filter-tests (Files): Likewise.
27195         * modules/uninorm/nfc-tests (Files): Likewise.
27196         * modules/uninorm/nfd-tests (Files): Likewise.
27197         * modules/uninorm/nfkc-tests (Files): Likewise.
27198         * modules/uninorm/nfkd-tests (Files): Likewise.
27199         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27200         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27201         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27202         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27203         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27204         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27205         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27206         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27207         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27208         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27209         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27210         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27211         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27212         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27213         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27214         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27215         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27216         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27217         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27218         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27219         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27220         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27221         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27222         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27223         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27224         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27225         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27226         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27227         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27228         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27229         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27230         * modules/uniwidth/u8-width-tests (Files): Likewise.
27231         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27232         * modules/uniwidth/u16-width-tests (Files): Likewise.
27233         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27234         * modules/uniwidth/u32-width-tests (Files): Likewise.
27235         * modules/uniwidth/width-tests (Files): Likewise.
27236         * modules/unlink-tests (Files): Likewise.
27237         * modules/unsetenv-tests (Files): Likewise.
27238         * modules/usleep-tests (Files): Likewise.
27239         * modules/utimens-tests (Files): Likewise.
27240         * modules/utimensat-tests (Files): Likewise.
27241         * modules/vasnprintf-posix-tests (Files): Likewise.
27242         * modules/vasnprintf-tests (Files): Likewise.
27243         * modules/vasprintf-posix-tests (Files): Likewise.
27244         * modules/vasprintf-tests (Files): Likewise.
27245         * modules/vdprintf-posix-tests (Files): Likewise.
27246         * modules/vfprintf-posix-tests (Files): Likewise.
27247         * modules/vprintf-posix-tests (Files): Likewise.
27248         * modules/vsnprintf-posix-tests (Files): Likewise.
27249         * modules/vsnprintf-tests (Files): Likewise.
27250         * modules/vsprintf-posix-tests (Files): Likewise.
27251         * modules/wcrtomb-tests (Files): Likewise.
27252         * modules/wcsnrtombs-tests (Files): Likewise.
27253         * modules/wcsrtombs-tests (Files): Likewise.
27254         * modules/wctype-tests (Files): Likewise.
27255         * modules/wcwidth-tests (Files): Likewise.
27256         * modules/xmemdup0-tests (Files): Likewise.
27257         * modules/xprintf-posix-tests (Files): Likewise.
27258         * modules/xvasprintf-tests (Files): Likewise.
27259
27260 2009-12-24  Eric Blake  <ebb9@byu.net>
27261
27262         test-nanosleep: fix typo
27263         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27264         patch.
27265         Reported by Bruno Haible.
27266
27267 2009-12-24  Bruno Haible  <bruno@clisp.org>
27268
27269         Reduce namespace pollution on glibc systems.
27270         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27271         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27272         systems.
27273         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27274         <getopt.h> on glibc systems.
27275         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27276         systems.
27277         * lib/fcntl.c: Include <unistd.h> here instead.
27278
27279 2009-12-24  Bruno Haible  <bruno@clisp.org>
27280
27281         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27282
27283 2009-12-24  Eric Blake  <ebb9@byu.net>
27284
27285         tests: add signature checks
27286         * tests/signature.h (SIGNATURE_CHECK): New file.
27287         * modules/atexit-tests (Files): Use it.
27288         * modules/btowc-tests (Files): Likewise.
27289         * modules/canonicalize-lgpl-tests (Files): Likewise.
27290         * modules/ceilf-tests (Files): Likewise.
27291         * modules/ceill-tests (Files): Likewise.
27292         * modules/chown-tests (Files): Likewise.
27293         * modules/dprintf-posix-tests (Files): Likewise.
27294         * modules/dup2-tests (Files): Likewise.
27295         * modules/dup3-tests (Files): Likewise.
27296         * modules/duplocale-tests (Files): Likewise.
27297         * modules/fchdir-tests (Files): Likewise.
27298         * modules/fcntl-tests (Files): Likewise.
27299         * modules/fdopendir-tests (Files): Likewise.
27300         * modules/fflush-tests (Files): Likewise.
27301         * modules/flock-tests (Files): Likewise.
27302         * modules/floorf-tests (Files): Likewise.
27303         * modules/floorl-tests (Files): Likewise.
27304         * modules/fnmatch-tests (Files): Likewise.
27305         * modules/fopen-tests (Files): Likewise.
27306         * modules/fprintf-posix-tests (Files): Likewise.
27307         * modules/freopen-tests (Files): Likewise.
27308         * modules/frexp-nolibm-tests (Files): Likewise.
27309         * modules/frexp-tests (Files): Likewise.
27310         * modules/frexpl-nolibm-tests (Files): Likewise.
27311         * modules/frexpl-tests (Files): Likewise.
27312         * modules/fseek-tests (Files): Likewise.
27313         * modules/fseeko-tests (Files): Likewise.
27314         * modules/fsync-tests (Files): Likewise.
27315         * modules/ftell-tests (Files): Likewise.
27316         * modules/ftello-tests (Files): Likewise.
27317         * modules/futimens-tests (Files): Likewise.
27318         * modules/getaddrinfo-tests (Files): Likewise.
27319         * modules/getcwd-tests (Files): Likewise.
27320         * modules/getdelim-tests (Files): Likewise.
27321         * modules/getdtablesize-tests (Files): Likewise.
27322         * modules/getgroups-tests (Files): Likewise.
27323         * modules/gethostname-tests (Files): Likewise.
27324         * modules/getline-tests (Files): Likewise.
27325         * modules/getopt-posix-tests (Files): Likewise.
27326         * modules/gettimeofday-tests (Files): Likewise.
27327         * modules/glob-tests (Files): Likewise.
27328         * modules/iconv-tests (Files): Likewise.
27329         * modules/inet_ntop-tests (Files): Likewise.
27330         * modules/inet_pton-tests (Files): Likewise.
27331         * modules/isblank-tests (Files): Likewise.
27332         * modules/lchown-tests (Files): Likewise.
27333         * modules/ldexpl-tests (Files): Likewise.
27334         * modules/link-tests (Files): Likewise.
27335         * modules/linkat-tests (Files): Likewise.
27336         * modules/lseek-tests (Files): Likewise.
27337         * modules/lstat-tests (Files): Likewise.
27338         * modules/mbrtowc-tests (Files): Likewise.
27339         * modules/mbsinit-tests (Files): Likewise.
27340         * modules/mbsnrtowcs-tests (Files): Likewise.
27341         * modules/mbsrtowcs-tests (Files): Likewise.
27342         * modules/memchr-tests (Files): Likewise.
27343         * modules/memcmp-tests (Files): Likewise.
27344         * modules/memmem-tests (Files): Likewise.
27345         * modules/memrchr-tests (Files): Likewise.
27346         * modules/mkdir-tests (Files): Likewise.
27347         * modules/mkfifo-tests (Files): Likewise.
27348         * modules/mkfifoat-tests (Files): Likewise.
27349         * modules/mknod-tests (Files): Likewise.
27350         * modules/nanosleep-tests (Files): Likewise.
27351         * modules/nl_langinfo-tests (Files): Likewise.
27352         * modules/obstack-printf-tests (Files): Likewise.
27353         * modules/open-tests (Files): Likewise.
27354         * modules/openat-tests (Files): Likewise.
27355         * modules/perror-tests (Files): Likewise.
27356         * modules/pipe2-tests (Files): Likewise.
27357         * modules/poll-tests (Files): Likewise.
27358         * modules/popen-tests (Files): Likewise.
27359         * modules/posix_spawn-tests (Files): Likewise.
27360         * modules/posix_spawnp-tests (Files): Likewise.
27361         * modules/pread-tests (Files): Likewise.
27362         * modules/printf-posix-tests (Files): Likewise.
27363         * modules/pty-tests (Files): Likewise.
27364         * modules/random_r-tests (Files): Likewise.
27365         * modules/rawmemchr-tests (Files): Likewise.
27366         * modules/readlink-tests (Files): Likewise.
27367         * modules/remove-tests (Files): Likewise.
27368         * modules/rename-tests (Files): Likewise.
27369         * modules/renameat-tests (Files): Likewise.
27370         * modules/rmdir-tests (Files): Likewise.
27371         * modules/round-tests (Files): Likewise.
27372         * modules/roundf-tests (Files): Likewise.
27373         * modules/roundl-tests (Files): Likewise.
27374         * modules/select-tests (Files): Likewise.
27375         * modules/setenv-tests (Files): Likewise.
27376         * modules/sigaction-tests (Files): Likewise.
27377         * modules/sleep-tests (Files): Likewise.
27378         * modules/snprintf-posix-tests (Files): Likewise.
27379         * modules/snprintf-tests (Files): Likewise.
27380         * modules/sprintf-posix-tests (Files): Likewise.
27381         * modules/stat-tests (Files): Likewise.
27382         * modules/strcasestr-tests (Files): Likewise.
27383         * modules/strchrnul-tests (Files): Likewise.
27384         * modules/strerror-tests (Files): Likewise.
27385         * modules/strsignal-tests (Files): Likewise.
27386         * modules/strstr-tests (Files): Likewise.
27387         * modules/strtod-tests (Files): Likewise.
27388         * modules/strverscmp-tests (Files): Likewise.
27389         * modules/symlink-tests (Files): Likewise.
27390         * modules/symlinkat-tests (Files): Likewise.
27391         * modules/times-tests (Files): Likewise.
27392         * modules/trunc-tests (Files): Likewise.
27393         * modules/truncf-tests (Files): Likewise.
27394         * modules/truncl-tests (Files): Likewise.
27395         * modules/tsearch-tests (Files): Likewise.
27396         * modules/uname-tests (Files): Likewise.
27397         * modules/unlink-tests (Files): Likewise.
27398         * modules/unsetenv-tests (Files): Likewise.
27399         * modules/usleep-tests (Files): Likewise.
27400         * modules/utimensat-tests (Files): Likewise.
27401         * modules/vasprintf-tests (Files): Likewise.
27402         * modules/vdprintf-posix-tests (Files): Likewise.
27403         * modules/vfprintf-posix-tests (Files): Likewise.
27404         * modules/vprintf-posix-tests (Files): Likewise.
27405         * modules/vsnprintf-posix-tests (Files): Likewise.
27406         * modules/vsnprintf-tests (Files): Likewise.
27407         * modules/vsprintf-posix-tests (Files): Likewise.
27408         * modules/wcrtomb-tests (Files): Likewise.
27409         * modules/wcsnrtombs-tests (Files): Likewise.
27410         * modules/wcsrtombs-tests (Files): Likewise.
27411         * modules/wcwidth-tests (Files): Likewise.
27412         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27413         * tests/test-isinf.c (isinf): Likewise.
27414         * tests/test-isnan.c (isnan): Likewise.
27415         * tests/test-signbit.c (signbit): Likewise.
27416         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27417         declaration, either as macro or with correct signature.
27418         (select): Ensure function under test is declared with correct
27419         signature in correct header.
27420         * tests/test-atexit.c (atexit): Likewise.
27421         * tests/test-btowc.c (btowc): Likewise.
27422         * tests/test-canonicalize-lgpl.c (realpath)
27423         (canonicalize_file_name): Likewise.
27424         * tests/test-ceilf1.c (ceilf): Likewise.
27425         * tests/test-ceill.c (ceill): Likewise.
27426         * tests/test-chown.c (chown): Likewise.
27427         * tests/test-dprintf-posix.c (dprintf): Likewise.
27428         * tests/test-dup2.c (dup2): Likewise.
27429         * tests/test-dup3.c (dup3): Likewise.
27430         * tests/test-duplocale.c (duplocale): Likewise.
27431         * tests/test-fchdir.c (fchdir): Likewise.
27432         * tests/test-fchownat.c (fchownat): Likewise.
27433         * tests/test-fcntl.c (fcntl): Likewise.
27434         * tests/test-fdopendir.c (fdopendir): Likewise.
27435         * tests/test-fflush.c (fflush): Likewise.
27436         * tests/test-flock.c (flock): Likewise.
27437         * tests/test-floorf1.c (floorf): Likewise.
27438         * tests/test-floorl.c (floorl): Likewise.
27439         * tests/test-fnmatch.c (fnmatch): Likewise.
27440         * tests/test-fopen.c (fopen): Likewise.
27441         * tests/test-fprintf-posix.c (fprintf): Likewise.
27442         * tests/test-freopen.c (freopen): Likewise.
27443         * tests/test-frexp.c (frexp): Likewise.
27444         * tests/test-frexpl.c (frexpl): Likewise.
27445         * tests/test-fseek.c (fseek): Likewise.
27446         * tests/test-fseeko.c (fseeko): Likewise.
27447         * tests/test-fstatat.c (fstatat): Likewise.
27448         * tests/test-fsync.c (fsync): Likewise.
27449         * tests/test-ftell.c (ftell): Likewise.
27450         * tests/test-ftello.c (ftello): Likewise.
27451         * tests/test-futimens.c (futimens): Likewise.
27452         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27453         (gai_strerror): Likewise.
27454         * tests/test-getcwd.c (getcwd): Likewise.
27455         * tests/test-getdelim.c (getdelim): Likewise.
27456         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27457         * tests/test-getgroups.c (getgroups): Likewise.
27458         * tests/test-gethostname.c (gethostname): Likewise.
27459         * tests/test-getline.c (getline): Likewise.
27460         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27461         Likewise.
27462         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27463         * tests/test-glob.c (glob, globfree): Likewise.
27464         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27465         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27466         * tests/test-inet_pton.c (inet_pton): Likewise.
27467         * tests/test-isblank.c (isblank): Likewise.
27468         * tests/test-lchown.c (lchown): Likewise.
27469         * tests/test-ldexpl.c (ldexpl): Likewise.
27470         * tests/test-link.c (link): Likewise.
27471         * tests/test-linkat.c (linkat): Likewise.
27472         * tests/test-lseek.c (lseek): Likewise.
27473         * tests/test-lstat.c (lstat): Likewise.
27474         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27475         * tests/test-mbsinit.c (mbsinit): Likewise.
27476         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27477         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27478         * tests/test-memchr.c (memchr): Likewise.
27479         * tests/test-memcmp.c (memcmp): Likewise.
27480         * tests/test-memmem.c (memmem): Likewise.
27481         * tests/test-memrchr.c (memrchr): Likewise.
27482         * tests/test-mkdir.c (mkdir): Likewise.
27483         * tests/test-mkdirat.c (mkdirat): Likewise.
27484         * tests/test-mkfifo.c (mkfifo): Likewise.
27485         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27486         * tests/test-mknod.c (mknod): Likewise.
27487         * tests/test-nanosleep.c (nanosleep): Likewise.
27488         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27489         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27490         Likewise.
27491         * tests/test-open.c (open): Likewise.
27492         * tests/test-openat.c (openat): Likewise.
27493         * tests/test-perror.c (perror): Likewise.
27494         * tests/test-pipe2.c (pipe2): Likewise.
27495         * tests/test-poll.c (poll): Likewise.
27496         * tests/test-popen.c (popen, pclose): Likewise.
27497         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27498         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27499         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27500         (posix_spawn_file_actions_destroy)
27501         (posix_spawn_file_actions_addclose)
27502         (posix_spawn_file_actions_addopen)
27503         (posix_spawn_file_actions_adddup2): Likewise.
27504         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27505         * tests/test-pread.c (pread): Likewise.
27506         * tests/test-printf-posix.c (printf): Likewise.
27507         * tests/test-pty.c (openpty, forkpty): Likewise.
27508         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27509         (random_r): Likewise.
27510         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27511         * tests/test-readlink.c (readlink): Likewise.
27512         * tests/test-remove.c (remove): Likewise.
27513         * tests/test-rename.c (rename): Likewise.
27514         * tests/test-renameat.c (renameat): Likewise.
27515         * tests/test-rmdir.c (rmdir): Likewise.
27516         * tests/test-round1.c (round): Likewise.
27517         * tests/test-roundf1.c (roundf): Likewise.
27518         * tests/test-roundl.c (roundl): Likewise.
27519         * tests/test-setenv.c (setenv): Likewise.
27520         * tests/test-sigaction.c (sigaction): Likewise.
27521         * tests/test-sleep.c (sleep): Likewise.
27522         * tests/test-snprintf.c (snprintf): Likewise.
27523         * tests/test-sprintf-posix.c (sprintf): Likewise.
27524         * tests/test-stat.c (stat): Likewise.
27525         * tests/test-stpncpy.c (stpncpy): Likewise.
27526         * tests/test-strcasestr.c (strcasestr): Likewise.
27527         * tests/test-strchrnul.c (strchrnul): Likewise.
27528         * tests/test-strerror.c (strerror): Likewise.
27529         * tests/test-strsignal.c (strsignal): Likewise.
27530         * tests/test-strstr.c (strstr): Likewise.
27531         * tests/test-strtod.c (strtod): Likewise.
27532         * tests/test-strverscmp.c (strverscmp): Likewise.
27533         * tests/test-symlink.c (symlink): Likewise.
27534         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27535         * tests/test-times.c (times): Likewise.
27536         * tests/test-trunc1.c (trunc): Likewise.
27537         * tests/test-truncf1.c (truncf): Likewise.
27538         * tests/test-truncl.c (truncl): Likewise.
27539         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27540         Likewise.
27541         * tests/test-uname.c (uname): Likewise.
27542         * tests/test-unlink.c (unlink): Likewise.
27543         * tests/test-unlinkat.c (unlinkat): Likewise.
27544         * tests/test-unsetenv.c (unsetenv): Likewise.
27545         * tests/test-usleep.c (usleep): Likewise.
27546         * tests/test-utimensat.c (utimensat): Likewise.
27547         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27548         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27549         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27550         * tests/test-vprintf-posix.c (vprintf): Likewise.
27551         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27552         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27553         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27554         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27555         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27556         * tests/test-wcwidth.c (wcwidth): Likewise.
27557
27558         build: pull in conditional headers during GNULIB_POSIXCHECK
27559         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27560         definitions from any conditionally-included headers.
27561         * lib/stdlib.in.h (includes): Likewise.
27562         * lib/unistd.in.h (includes): Likewise.
27563
27564 2009-12-24  Bruno Haible  <bruno@clisp.org>
27565
27566         * tests/test-argv-iter.c: Include header file being tested immediately
27567         after config.h.
27568         * tests/test-base64.c: Likewise.
27569         * tests/test-flock.c: Likewise.
27570         * tests/test-fsync.c: Likewise.
27571         * tests/test-getdate.c: Likewise.
27572         * tests/test-getndelim2.c: Likewise.
27573         * tests/test-isfinite.c: Likewise.
27574         * tests/test-isinf.c: Likewise.
27575         * tests/test-strerror.c: Likewise.
27576         * tests/test-strsignal.c: Likewise.
27577
27578 2009-12-23  Eric Blake  <ebb9@byu.net>
27579
27580         unistd: work around cygwin bug
27581         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27582         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27583         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27584
27585 2009-12-23  Bruno Haible  <bruno@clisp.org>
27586
27587         localename: More tests.
27588         * tests/test-localename.c (SIZEOF): New macro.
27589         (categories): New variable.
27590         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27591         test_locale_name_default): Add test w.r.t. thread locale.
27592         (test_locale_name_thread): New function.
27593         (main): Invoke it.
27594
27595         localename: Make aware of thread locale.
27596         * lib/localename.h (gl_locale_name_thread): New declaration.
27597         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27598         behaviour with respect to thread locale.
27599         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27600         <langinfo.h>, glthread/lock.h.
27601         (SIZE_BITS): New macro.
27602         (string_hash): New function.
27603         (struct hash_node): New type.
27604         (HASH_TABLE_SIZE): New macro.
27605         (struniq_hash_table, struniq_lock): New variables.
27606         (struniq): New function.
27607         (gl_locale_name_thread): New function.
27608         (gl_locale_name): Invoke it.
27609         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27610         * modules/localename (Depends-on): Add lock.
27611         Reported by Mike Gran <spk121@yahoo.com>.
27612
27613 2009-12-23  Eric Blake  <ebb9@byu.net>
27614
27615         va-args: new module
27616         * modules/va-args: New file.
27617         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27618         * MODULES.html.sh (Core language properties): Mention it.
27619
27620         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27621         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27622         named alias for __attribute__((__unused__)).
27623         * lib/chown.c: Update client.
27624         * lib/fchmodat.c: Likewise.
27625         * lib/fts.c: Likewise.
27626         * lib/getdate.y: Likewise.
27627         * lib/getgroups.c: Likewise.
27628         * lib/getopt.c: Likewise.
27629         * lib/getugroups.c: Likewise.
27630         * lib/mkdir.c: Likewise.
27631         * lib/mkfifo.c: Likewise.
27632         * lib/mkfifoat.c: Likewise.
27633         * lib/mknod.c: Likewise.
27634         * lib/mknodat.c: Likewise.
27635         * lib/readlink.c: Likewise.
27636         * lib/se-context.in.h: Likewise.
27637         * lib/se-selinux.in.h: Likewise.
27638         * lib/sockets.c: Likewise.
27639         * lib/symlink.c: Likewise.
27640         * lib/symlinkat.c: Likewise.
27641         * lib/unicodeio.c: Likewise.
27642         * lib/unistr.h: Likewise.
27643         * tests/test-areadlink.c: Likewise.
27644         * tests/test-areadlinkat.c: Likewise.
27645         * tests/test-filenamecat.c: Likewise.
27646         * tests/test-fseeko.c: Likewise.
27647         * tests/test-ftello.c: Likewise.
27648         * tests/test-getdate.c: Likewise.
27649         * tests/test-getgroups.c: Likewise.
27650         * tests/test-gethostname.c: Likewise.
27651         * tests/test-quotearg.c: Likewise.
27652         * tests/test-version-etc.c: Likewise.
27653         * tests/test-xalloc-die.c: Likewise.
27654         * tests/test-xfprintf-posix.c: Likewise.
27655         * tests/test-xprintf-posix.c: Likewise.
27656         * tests/test-xvasprintf.c: Likewise.
27657
27658         tests: avoid compiler warnings
27659         * tests/test-fcntl.c (main): Delete unused parameters.
27660         * tests/test-freopen-safer.c (main): Likewise.
27661         * tests/test-xalloc-die.c (main): Mark unused parameters.
27662         * tests/test-fseeko.c (main): Likewise.
27663         * tests/test-ftello.c (main): Likewise.
27664         * tests/test-nanosleep.c (main): Avoid declaration warning.
27665         * tests/test-sleep.c (main): Likewise.
27666         * tests/test-unsetenv.c (main): Silence warning about string
27667         literal.
27668         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27669
27670 2009-12-23  Bruno Haible  <bruno@clisp.org>
27671
27672         * tests/test-localename.c (test_locale_name): New function, extracted
27673         from main. Also test mixed situations.
27674         (test_locale_name_posix, test_locale_name_environ,
27675         test_locale_name_default): New functions.
27676         (main): Invoke them all.
27677         * modules/localename-tests (configure.ac): Test for newlocale.
27678
27679 2009-12-23  Bruno Haible  <bruno@clisp.org>
27680
27681         unistd: Ensure getcwd gets declared before being overridden.
27682         * lib/unistd.in.h: Conditionally include <io.h>.
27683
27684 2009-12-22  Bruno Haible  <bruno@clisp.org>
27685
27686         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27687         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27688         (gl_WCHAR_H): Invoke it.
27689         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27690         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27691         Reported by Karl Berry <karl@freefriends.org>.
27692
27693 2009-12-22  Eric Blake  <ebb9@byu.net>
27694
27695         math, unistd: avoid redundant includes
27696         * lib/math.in.h (isnan): No need to re-include <math.h>.
27697         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27698
27699         getsubopt: work around cygwin bug
27700         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27701         avoid conflicting with system getsubopt.
27702         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27703         bug.
27704
27705         getopt: synchronize from glibc
27706         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27707         parameter order.  Adjust all callers.
27708         (_getopt_internal_r, main): Adjust quoting in error messages.
27709         Drop considerations for outdated POSIX 1003.2 error message.
27710         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27711         callers.
27712         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27713
27714         test-getopt: test stderr behavior
27715         * modules/getopt-posix-tests (Depends-on): Add dup2.
27716         * tests/test-getopt.c (ASSERT): Avoid stderr.
27717         (main): Move stderr to a temporary file.
27718         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27719         Instead, add parameter to inform caller if output occurred.
27720         (test_getopt): Adjust all existing tests to expect silence, and
27721         add new tests of leading ":".
27722         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27723         glibc shortcomings with leading "-:" or "+:" in optstring.
27724         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27725         Likewise.
27726         * doc/posix-functions/getopt.texi (getopt): Likewise.
27727
27728         test-getopt: enhance test
27729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27730         supports optind=0.
27731         * tests/test-getopt.c (OPTIND_MIN): Move...
27732         * tests/test-getopt.h (OPTIND_MIN): ...here.
27733         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27734         Require that optind=0 works, since modern BSD supports it in
27735         addition to optreset, and since coreutils expects it.
27736         (test_getopt_long_only): New test.
27737         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27738         glibc shortcomings with 'W;', and enforcement of optind=0.
27739         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27740         Likewise.
27741
27742 2009-12-21  Bruno Haible  <bruno@clisp.org>
27743
27744         localename: Improvements for MacOS X and Cygwin.
27745         * lib/localename.h (gl_locale_name_environ): New declaration.
27746         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27747         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27748         (gl_locale_name_posix): Invoke it.
27749         (gl_locale_name_default): Add comments. Use Windows native API also on
27750         Cygwin.
27751
27752 2009-12-21  Bruno Haible  <bruno@clisp.org>
27753
27754         Update list of Win32 locale ids.
27755         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27756         (LANG_SAMI): Renamed from LANG_SAAMI.
27757         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27758         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27759         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27760         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27761         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27762         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27763         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27764         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27765         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27766         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27767         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27768         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27769         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27770         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27771         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27772         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27773         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27774         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27775         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27776         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27777         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27778         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27779         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27780         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27781         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27782         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27783         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27784         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27785         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27786         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27787         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27788         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27789         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27790         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27791         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27792         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27793         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27794         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27795         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27796         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27797         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27798         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27799         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27800         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27801         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27802         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27803         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27804         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27805         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27806         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27807         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27808         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27809         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27810         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27811         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27812         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27813         Add more languages and countries for Sami, Sorbian. Add more countries
27814         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27815         for Pashto. Change country for Syriac, Tswana.
27816
27817 2009-12-21  Eric Blake  <ebb9@byu.net>
27818
27819         test-utimens: avoid spurious failure
27820         * tests/test-chown.h (nap): Factor...
27821         * tests/nap.h: ...into new file.
27822         * tests/test-lchown.h (nap): Avoid duplication.
27823         * tests/test-utimens-common.h (nap): Use shared implementation,
27824         necessary on file systems with 1-second resolution.
27825         * modules/chown-tests (Files): Include new file.
27826         * modules/fdutimensat-tests (Files): Likewise.
27827         * modules/futimens-tests (Files): Likewise.
27828         * modules/lchown-tests (Files): Likewise.
27829         * modules/openat-tests (Files): Likewise.
27830         * modules/utimens-tests (Files): Likewise.
27831         * modules/utimensat-tests (Files): Likewise.
27832
27833 2009-12-19  Eric Blake  <ebb9@byu.net>
27834
27835         futimens, utimensat: work around Linux bug
27836         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27837         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27838         * lib/utimensat.c (rpl_utimensat): Work around it.
27839         * lib/futimens.c (rpl_futimens): Adjust comment.
27840
27841         utimens: work around Linux ctime bug
27842         * lib/utimens.c (detect_ctime_bug): New helper function.
27843         (update_timespec): Differentiate between workaround needed for
27844         this bug vs. what is needed for systems that lack utimensat.
27845         (fdutimens, lutimens): Work around bug.
27846
27847         utimens: check for ctime update
27848         * tests/test-utimens-common.h (check_ctime): Define.
27849         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27850         * tests/test-futimens.h (test_futimens): Likewise.
27851         * tests/test-lutimens.h (test_lutimens): Likewise.
27852         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27853         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27854
27855 2009-12-19  Bruno Haible  <bruno@clisp.org>
27856
27857         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27858         * tests/test-dprintf-posix2.sh: New file.
27859         * tests/test-dprintf-posix2.c: New file.
27860         * modules/dprintf-posix-tests (Files): Add them.
27861         (configure.ac): Check for getrlimit and setrlimit.
27862         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27863
27864 2009-12-19  Bruno Haible  <bruno@clisp.org>
27865
27866         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27867         * tests/test-fprintf-posix3.sh: New file.
27868         * tests/test-fprintf-posix3.c: New file.
27869         * modules/fprintf-posix-tests (Files): Add them.
27870         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27871
27872 2009-12-19  Eric Blake  <ebb9@byu.net>
27873
27874         dirfd: fix prototype
27875         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27876         * lib/dirfd.c (dirfd): Likewise.
27877
27878         canonicalize: reduce memory usage
27879         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27880         allocation to size.
27881         Reported by Solar Designer <solar@openwall.com>.
27882
27883 2009-12-19  Bruno Haible  <bruno@clisp.org>
27884
27885         New module attribute 'Applicability'.
27886         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27887         * gnulib-tool: New option --extract-applicability.
27888         (func_usage): Document it.
27889         (sed_extract_prog): Recognize it.
27890         (func_get_applicability): New function.
27891         (func_import): Generalize handling of 'link-warning' module.
27892         * modules/link-warning (Applicability): New section.
27893         * modules/arg-nonnull (Applicability): New section.
27894         Repoted by Simon Josefsson <simon@josefsson.org>.
27895
27896 2009-12-19  Bruno Haible  <bruno@clisp.org>
27897
27898         fflush: tweak
27899         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27900         * lib/fseeko.c (rpl_fseeko): Likewise.
27901
27902 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27903
27904         * lib/gl_list.h: Fix typo in comment.
27905
27906 2009-12-16  Eric Blake  <ebb9@byu.net>
27907
27908         fcntl: use to simplify other modules
27909         * modules/cloexec (Depends-on): Add fcntl.
27910         * modules/fchdir (Depends-on): Likewise.
27911         * modules/fd-safer-flag (Depends-on): Likewise.
27912         * modules/unistd-safer (Depends-on): Likewise.
27913         * modules/dup3 (configure.ac): Set module indicator.
27914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27915         missing.
27916         * lib/fchdir.c (_gl_register_dup): Fix comment.
27917         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27918         * lib/dup-safer.c (dup_safer): Likewise.
27919         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27920         * lib/dup3.c (dup3): Likewise.
27921         * tests/test-fchdir.c (main): Enhance test.
27922         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27923
27924         fcntl: port portions of fcntl to mingw
27925         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27926         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27927         replacement for mingw.
27928         * modules/fcntl (Description): Update.
27929         (Depends-on): Add dup2.
27930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27931         * modules/fcntl-h (Makefile.am): Substitute it.
27932         * lib/fcntl.in.h (fcntl): Update declaration.
27933         (F_DUPFD, F_GETFD): New macros, when needed.
27934         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27935         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27936         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27937         we now guarantee.
27938
27939         fcntl: work around cygwin bug in F_DUPFD
27940         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27941         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27942         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27943         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27944         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27945
27946         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27947         * modules/fcntl (Files): List new files.
27948         (configure.ac): Run a test.
27949         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27950         * lib/fcntl.c (rpl_fcntl): Likewise.
27951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27952         (gl_FCNTL_H): Always replace fcntl.h.
27953         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27954         * lib/fcntl.in.h (fcntl): Declare replacement.
27955         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27956         needed, plus a witness.
27957         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27958         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27959         * tests/test-fcntl.c: New file.
27960         * modules/fcntl-tests: Likewise.
27961
27962         binary-io: avoid potential compilation warning
27963         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27964         directives.
27965
27966         fflush: avoid compilation error on NetBSD
27967         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27968         between off_t and fpos_t, since the latter is sometimes a struct.
27969         * lib/fseeko.c (rpl_fseeko): Likewise.
27970         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27971
27972 2009-12-15  Eric Blake  <ebb9@byu.net>
27973
27974         fcntl-h, stdio, sys_ioctl: fix declarations
27975         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27976         function must not take arguments.
27977         * lib/sys_ioctl.in.h (ioctl): Likewise.
27978         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27979         (open): Add a link warning.
27980
27981 2009-12-15  Jim Meyering  <meyering@redhat.com>
27982
27983         areadlink, areadlink-with-size: relax license to LGPLv2+
27984         * modules/areadlink (License): Relax to LGPLv2+.
27985         * modules/areadlink-with-size (License): Likewise.
27986
27987 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27988             Bruno Haible  <bruno@clisp.org>
27989
27990         *printf: Fix memory leak.
27991         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27992         * lib/vfprintf.c (vfprintf): Likewise.
27993         * lib/dprintf.c (dprintf): Likewise.
27994         * lib/vdprintf.c (vdprintf): Likewise.
27995
27996 2009-12-14  Eric Blake  <ebb9@byu.net>
27997
27998         accept4: adjust module dependencies
27999         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28000
28001         utimens: one more try at avoiding compiler warning
28002         * lib/utimens.c (lutimens): Lower scope of result.
28003
28004 2009-12-13  Bruno Haible  <bruno@clisp.org>
28005
28006         Move the malloc checking from module 'list' to new module 'xlist'.
28007         * modules/xlist: New file.
28008         * lib/gl_xlist.h: New file.
28009         * lib/gl_xlist.c: New file.
28010         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28011         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28012         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28013         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28014         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28015         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28016         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28017         gl_sortedlist_nx_add): New declarations.
28018         (struct gl_list_implementation): Rename and change methods accordingly.
28019         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28020         (gl_list_nx_create): Renamed from gl_list_create.
28021         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28022         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28023         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28024         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28025         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28026         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28027         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28028         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28029         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28030         gl_list_create_empty.
28031         (gl_list_nx_create): Renamed from gl_list_create.
28032         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28033         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28034         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28035         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28036         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28037         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28038         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28039         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28040         * lib/gl_array_list.c: Don't include xalloc.h.
28041         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28042         NULL upon out-of-memory.
28043         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28044         out-of-memory.
28045         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28046         Change return type to 'int'.
28047         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28048         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28049         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28050         upon out-of-memory.
28051         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28052         upon out-of-memory.
28053         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28054         upon out-of-memory.
28055         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28056         upon out-of-memory.
28057         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28058         out-of-memory.
28059         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28060         Update.
28061         (gl_array_list_implementation): Update.
28062         * lib/gl_carray_list.c: Don't include xalloc.h.
28063         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28064         Return NULL upon out-of-memory.
28065         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28066         out-of-memory.
28067         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28068         Change return type to 'int'.
28069         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28070         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28071         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28072         upon out-of-memory.
28073         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28074         upon out-of-memory.
28075         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28076         out-of-memory.
28077         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28078         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28079         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28080         Update.
28081         (gl_carray_list_implementation): Update.
28082         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28083         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28084         gl_linked_create_empty. Return NULL upon out-of-memory.
28085         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28086         out-of-memory.
28087         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28088         Change return type to 'int'. Return -1 upon out-of-memory.
28089         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28090         out-of-memory.
28091         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28092         upon out-of-memory.
28093         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28094         upon out-of-memory.
28095         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28096         NULL upon out-of-memory.
28097         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28098         upon out-of-memory.
28099         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28100         out-of-memory.
28101         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28102         Update.
28103         * lib/gl_linked_list.c: Don't include xalloc.h.
28104         (gl_linked_list_implementation): Update.
28105         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28106         (add_to_bucket): Change return type to 'int'.
28107         (gl_linkedhash_list_implementation): Update.
28108         * lib/gl_anytree_list1.h (free_subtree): New function.
28109         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28110         gl_tree_create_empty. Return NULL upon out-of-memory.
28111         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28112         Change return type to 'int'. Return -1 upon out-of-memory.
28113         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28114         out-of-memory.
28115         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28116         (gl_tree_remove_node): New function, moved here from
28117         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28118         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28119         Update.
28120         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28121         malloc, not xmalloc. Return NULL upon out-of-memory.
28122         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28123         out-of-memory.
28124         (gl_tree_remove_node_from_tree): New function, extracted from
28125         gl_tree_remove_node.
28126         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28127         upon out-of-memory.
28128         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28129         out-of-memory.
28130         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28131         upon out-of-memory.
28132         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28133         upon out-of-memory.
28134         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28135         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28136         not xmalloc. Return NULL upon out-of-memory.
28137         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28138         out-of-memory.
28139         (gl_tree_remove_node_from_tree): New function, extracted from
28140         gl_tree_remove_node.
28141         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28142         upon out-of-memory.
28143         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28144         out-of-memory.
28145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28146         upon out-of-memory.
28147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28148         upon out-of-memory.
28149         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28150         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28151         gl_anytree_list1.h before gl_anyavltree_list2.h.
28152         (gl_avltree_list_implementation): Update.
28153         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28154         gl_anytree_list1.h before gl_anyavltree_list2.h.
28155         (gl_rbtree_list_implementation): Update.
28156         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28157         Change return type to 'int'. Return -1 upon out-of-memory. Use
28158         __builtin_expect.
28159         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28160         (gl_avltreehash_list_implementation): Update.
28161         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28162         (gl_rbtreehash_list_implementation): Update.
28163         * modules/array-list (Depends-on): Remove xalloc.
28164         * modules/carray-list (Depends-on): Likewise.
28165         * modules/linked-list (Depends-on): Likewise.
28166         * modules/linkedhash-list (Depends-on): Likewise.
28167         * modules/avltree-list (Depends-on): Likewise.
28168         * modules/rbtree-list (Depends-on): Likewise.
28169         * modules/avltreehash-list (Depends-on): Likewise.
28170         * modules/rbtreehash-list (Depends-on): Likewise.
28171
28172         * modules/xsublist: New file.
28173         * lib/gl_xsublist.h: New file.
28174         * lib/gl_xsublist.c: New file.
28175         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28176         (gl_sublist_nx_create): New declaration.
28177         * lib/gl_sublist.c: Don't include xalloc.h.
28178         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28179         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28180         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28181         Change return type to 'int'. Return -1 upon out-of-memory.
28182         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28183         upon out-of-memory.
28184         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28185         NULL upon out-of-memory.
28186         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28187         upon out-of-memory.
28188         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28189         NULL upon out-of-memory.
28190         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28191         NULL upon out-of-memory.
28192         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28193         upon out-of-memory.
28194         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28195         (gl_sublist_list_implementation): Update.
28196         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28197         upon out-of-memory.
28198         * modules/sublist (Depends-on): Remove xalloc.
28199
28200         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28201         * tests/test-carray_list.c: Likewise.
28202         * tests/test-linked_list.c: Likewise.
28203         * tests/test-linkedhash_list.c: Likewise.
28204         * tests/test-avltree_list.c: Likewise.
28205         * tests/test-rbtree_list.c: Likewise.
28206         * tests/test-avltreehash_list.c: Likewise.
28207         * tests/test-rbtreehash_list.c: Likewise.
28208         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28209         * modules/carray-list-tests (Makefile.am): Likewise.
28210         * modules/linked-list-tests (Makefile.am): Likewise.
28211         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28212         * modules/avltree-list-tests (Makefile.am): Likewise.
28213         * modules/rbtree-list-tests (Makefile.am): Likewise.
28214         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28215         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28216
28217         * NEWS: Mention the changes.
28218
28219         * lib/clean-temp.c: Include gl_xlist.h.
28220         * modules/clean-temp (Depends-on): Add xlist.
28221
28222         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28223         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28224
28225         * tests/test-array_oset.c: Include gl_xlist.h.
28226         * modules/array-oset-tests (Depends-on): Add xlist.
28227
28228         Reported by José E. Marchesi <jemarch@gnu.org>.
28229
28230 2009-12-13  Bruno Haible  <bruno@clisp.org>
28231
28232         Move the malloc checking from module 'oset' to new module 'xoset'.
28233         * modules/xoset: New file.
28234         * lib/gl_xoset.h: New file.
28235         * lib/gl_xoset.c: New file.
28236         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28237         declarations.
28238         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28239         (struct gl_oset_implementation): Rename and change methods accordingly.
28240         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28241         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28242         'int'. Mark as __warn_unused_result__.
28243         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28244         gl_oset_create_empty.
28245         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28246         'int'.
28247         * lib/gl_array_oset.c: Don't include xalloc.h.
28248         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28249         malloc, not xmalloc.
28250         (grow): Change return type to 'int'. Don't call xalloc_die.
28251         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28252         to 'int'.
28253         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28254         'int'.
28255         (gl_array_oset_implementation): Update.
28256         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28257         gl_tree_create_empty.
28258         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28259         'int'.
28260         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28261         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28262         xmalloc.
28263         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28264         not xmalloc.
28265         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28266         xmalloc.
28267         (gl_avltree_oset_implementation): Update.
28268         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28269         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28270         xmalloc.
28271         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28272         not xmalloc.
28273         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28274         xmalloc.
28275         (gl_rbtree_oset_implementation): Update.
28276         * modules/array-oset (Depends-on): Remove xalloc.
28277         * modules/avltree-oset (Depends-on): Likewise.
28278         * modules/rbtree-oset (Depends-on): Likewise.
28279         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28280         * tests/test-avltree_oset.c: Likewise.
28281         * tests/test-rbtree_oset.c: Likewise.
28282         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28283         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28284         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28285         * NEWS: Mention the change.
28286
28287 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28288
28289         maint.mk: allow a project to override release-prep commands
28290         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28291         commands into a new rule.
28292         (release-prep): New rule.
28293         (release-prep-hook): New overridable variable.
28294
28295 2009-12-13  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28298
28299 2009-12-13  Jim Meyering  <meyering@redhat.com>
28300
28301         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28302         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28303
28304 2009-12-12  Bruno Haible  <bruno@clisp.org>
28305
28306         duplocale: Tweak.
28307         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28308
28309 2009-12-12  Karl Berry  <karl@gnu.org>
28310
28311         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28312
28313 2009-12-12  Bruno Haible  <bruno@clisp.org>
28314
28315         * m4/po.m4: Undo incorrect untabification.
28316
28317 2009-12-12  Bruno Haible  <bruno@clisp.org>
28318
28319         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28320         * modules/c-strtod (Depends-on): Add locale.
28321         * modules/c-strtold (Depends-on): Likewise.
28322
28323 2009-12-12  Bruno Haible  <bruno@clisp.org>
28324
28325         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28326
28327 2009-12-11  Eric Blake  <ebb9@byu.net>
28328
28329         setenv: relax requirement in light of POSIX ruling
28330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28331         not NULL.
28332         * tests/test-setenv.c (main): Relax test.
28333         * tests/test-unsetenv.c (main): Likewise.
28334         * doc/posix-functions/setenv.texi (setenv): Document this.
28335         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28336
28337 2009-12-11  Bruno Haible  <bruno@clisp.org>
28338
28339         New module 'fd-safer-flag'.
28340         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28341         * lib/dup-safer.c (dup_safer_flag): Remove function.
28342         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28343         * lib/fd-safer.c (fd_safer_flag): Remove function.
28344         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28345         * modules/cloexec (configure.ac): Drop indicator macro.
28346         * modules/fd-safer-flag: New file.
28347         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28348         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28349         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28350
28351 2009-12-11  Bruno Haible  <bruno@clisp.org>
28352
28353         Tests for module 'nl_langinfo'.
28354         * modules/nl_langinfo-tests: New file.
28355         * tests/test-nl_langinfo.sh: New file.
28356         * tests/test-nl_langinfo.c: New file.
28357
28358         New module 'nl_langinfo'.
28359         * lib/nl_langinfo.c: New file.
28360         * m4/nl_langinfo.m4: New file.
28361         * modules/nl_langinfo: New file.
28362         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28363
28364 2009-12-11  Bruno Haible  <bruno@clisp.org>
28365
28366         Tests for module 'langinfo'.
28367         * modules/langinfo-tests: New file.
28368         * tests/test-langinfo.c: New file.
28369
28370         New module 'langinfo'.
28371         * lib/langinfo.in.h: New file.
28372         * m4/langinfo_h.m4: New file.
28373         * modules/langinfo: New file.
28374         * doc/posix-headers/langinfo.texi: Mention the new module.
28375
28376 2009-12-11  Bruno Haible  <bruno@clisp.org>
28377
28378         * lib/config.charset: Untabify.
28379
28380 2009-12-11  Bruno Haible  <bruno@clisp.org>
28381
28382         * modules/unistd-safer (configure.ac): Drop indicator macro.
28383
28384 2009-12-11  Bruno Haible  <bruno@clisp.org>
28385
28386         Move pipe2-safer code to its own file.
28387         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28388         * lib/pipe-safer.c (pipe2_safer): Remove function.
28389         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28390         (Makefile.am): Add it to lib_SOURCES.
28391
28392 2009-12-10  Bruno Haible  <bruno@clisp.org>
28393
28394         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28395
28396 2009-12-10  Bruno Haible  <bruno@clisp.org>
28397
28398         Declare which arguments expect non-NULL values, for GCC and clang.
28399         * build-aux/arg-nonnull.h: New file.
28400         * modules/arg-nonnull: New file.
28401         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28402         (inet_ntop, inet_pton): Use it.
28403         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28404         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28405         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28406         (open, openat): Use it.
28407         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28408         (fnmatch): Use it.
28409         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28410         (getopt, getopt_long, getopt_long_only): Use it.
28411         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28412         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28413         Use it.
28414         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28415         (iconv_open): Use it.
28416         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28417         (strtoimax, strtoumax): Use it.
28418         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28419         (duplocale): Use it.
28420         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28421         (frexp, frexpl): Use it.
28422         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28423         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28424         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28425         (tsearch, tfind, tdelete, twalk): Use it.
28426         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28427         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28428         sigpending): Use it.
28429         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28430         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28431         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28432         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28433         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28434         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28435         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28436         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28437         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28438         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28439         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28440         Use it.
28441         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28442         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28443         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28444         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28445         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28446         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28447         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28448         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28449         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28450         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28451         strtoull, unsetenv): Use it.
28452         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28453         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28454         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28455         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28456         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28457         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28458         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28459         (strcasecmp, strncasecmp): Use it.
28460         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28461         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28462         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28463         rpl_setsockopt): Use it.
28464         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28465         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28466         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28467         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28468         (gettimeofday): Use it.
28469         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28470         (times): Use it.
28471         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28472         (uname): Use it.
28473         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28474         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28475         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28476         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28477         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28478         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28479         unlinkat, write): Use it.
28480         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28481         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28482         * lib/argv-iter.h: Include arg-nonnull.h.
28483         (_ATTRIBUTE_NONNULL_): Remove macro.
28484         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28485         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28486         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28487         optimization.
28488         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28489         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28490         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28491         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28492         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28493         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28494         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28495         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28496         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28497         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28498         * modules/dirent (Depends-on): Add arg-nonnull.
28499         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28500         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28501         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28502         * modules/fnmatch (Depends-on): Add arg-nonnull.
28503         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28504         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28505         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28506         * modules/glob (Depends-on): Add arg-nonnull.
28507         (Makefile.am): Insert arg-nonnull.h into glob.h.
28508         * modules/iconv_open (Depends-on): Add arg-nonnull.
28509         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28510         * modules/inttypes (Depends-on): Add arg-nonnull.
28511         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28512         * modules/locale (Depends-on): Add arg-nonnull.
28513         (Makefile.am): Insert arg-nonnull.h into locale.h.
28514         * modules/math (Depends-on): Add arg-nonnull.
28515         (Makefile.am): Insert arg-nonnull.h into math.h.
28516         * modules/netdb (Depends-on): Add arg-nonnull.
28517         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28518         * modules/search (Depends-on): Add arg-nonnull.
28519         (Makefile.am): Insert arg-nonnull.h into search.h.
28520         * modules/signal (Depends-on): Add arg-nonnull.
28521         (Makefile.am): Insert arg-nonnull.h into signal.h.
28522         * modules/spawn (Depends-on): Add arg-nonnull.
28523         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28524         * modules/stdio (Depends-on): Add arg-nonnull.
28525         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28526         * modules/stdlib (Depends-on): Add arg-nonnull.
28527         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28528         * modules/string (Depends-on): Add arg-nonnull.
28529         (Makefile.am): Insert arg-nonnull.h into string.h.
28530         * modules/strings (Depends-on): Add arg-nonnull.
28531         (Makefile.am): Insert arg-nonnull.h into strings.h.
28532         * modules/sys_socket (Depends-on): Add arg-nonnull.
28533         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28534         * modules/sys_stat (Depends-on): Add arg-nonnull.
28535         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28536         * modules/sys_time (Depends-on): Add arg-nonnull.
28537         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28538         * modules/sys_times (Depends-on): Add arg-nonnull.
28539         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28540         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28541         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28542         * modules/time (Depends-on): Add arg-nonnull.
28543         (Makefile.am): Insert arg-nonnull.h into time.h.
28544         * modules/unistd (Depends-on): Add arg-nonnull.
28545         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28546         * modules/wchar (Depends-on): Add arg-nonnull.
28547         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28548         * modules/argv-iter (Depends-on): Add arg-nonnull.
28549         * tests/test-canonicalize.c (null_ptr): New function.
28550         (main): Use it.
28551         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28552         (main): Use it.
28553         * tests/test-memmem.c (null_ptr): New function.
28554         (main): Use it.
28555         Reported by Jim Meyering.
28556
28557 2009-12-10  Bruno Haible  <bruno@clisp.org>
28558
28559         Use spaces for indentation, not tabs.
28560         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28561         * m4/*.m4: Untabify.
28562         * build-aux/*.h: Untabify.
28563         * tests/**/*.[hc]: Untabify.
28564         * README: New section "Indent with spaces, not TABs", based on
28565         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28566         * NEWS: Mention the change.
28567
28568 2009-12-10  Bruno Haible  <bruno@clisp.org>
28569
28570         pty test: Fix link error.
28571         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28572         test_pty_LDADD.
28573
28574 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28575
28576         * modules/pty: New file.
28577         * modules/pty-tests: New file.
28578         * m4/pty.m4: New file.
28579         * tests/test-pty.c: New file.
28580         * doc/glibc-headers/pty.texi: Modified.
28581         * doc/glibc-functions/forkpty.texi: Modified.
28582         * doc/glibc-functions/openpty.texi: Modified.
28583
28584 2009-12-10  Bruno Haible  <bruno@clisp.org>
28585
28586         Avoid syntax error in C++ mode.
28587         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28588
28589 2009-12-10  Bruno Haible  <bruno@clisp.org>
28590
28591         Use sed with option -e.
28592         * gnulib-tool (func_version, func_emit_copyright_notice,
28593         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28594         option -e to sed.
28595         * modules/link-warning (Makefile.am): Likewise.
28596
28597 2009-12-10  Jim Meyering  <meyering@redhat.com>
28598
28599         mgetgroups: do not write bytes beyond end of malloc'd buffer
28600         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28601         username, we call getgroups with a one-element-shorter buffer,
28602         but still told it the length was original, max_n_groups.
28603
28604 2009-12-09  Eric Blake  <ebb9@byu.net>
28605
28606         cloexec: relax license
28607         * modules/cloexec (Maintainer): Add myself.
28608         (License): Use LGPL, not GPL.
28609
28610         link-warning: optimize generation
28611         * modules/link-warning (Makefile.am): Reduce process usage.
28612
28613 2009-12-09  Bruno Haible  <bruno@clisp.org>
28614
28615         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28616         workaround was added on 2009-11-17.
28617
28618 2009-12-09  Jim Meyering  <meyering@redhat.com>
28619             Bruno Haible  <bruno@clisp.org>
28620
28621         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28622         * modules/link-warning (Makefile.am): Make the comment-removing sed
28623         command more robust in the face of bootstrap-prepended comment lines.
28624
28625 2009-12-09  Bruno Haible  <bruno@clisp.org>
28626
28627         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28628         most one group.
28629
28630 2009-12-09  Simon Josefsson <simon@josefsson.org>
28631             Bruno Haible  <bruno@clisp.org>
28632
28633         * build-aux/link-warning.h: Add copyright notice.
28634         * modules/link-warning (Makefile.am): Generate link-warning.h from
28635         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28636         * NEWS: Mention change in link-warning module.
28637         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28638         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28639         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28640         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28641         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28642         * modules/math (Makefile.am): Add dependency to math.h.
28643         * modules/search (Makefile.am): Add dependency to search.h.
28644         * modules/signal (Makefile.am): Add dependency to signal.h.
28645         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28646         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28647         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28648         * modules/string (Makefile.am): Add dependency to string.h.
28649         * modules/strings (Makefile.am): Add dependency to strings.h.
28650         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28651         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28652         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28653         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28654         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28655         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28656         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28657         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28658         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28659
28660 2009-12-09  Bruno Haible  <bruno@clisp.org>
28661
28662         fchdir: Optimize away rpl_fstat when possible.
28663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28664         REPLACE_OPEN_DIRECTORY.
28665         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28666
28667 2009-12-09  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/fchdir.c: Update comment.
28670
28671 2009-12-09  Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28674
28675 2009-12-08  Eric Blake  <ebb9@byu.net>
28676
28677         fchdir: avoid memory leak on re-registration.
28678         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28679
28680 2009-12-08  Jim Meyering  <meyering@redhat.com>
28681
28682         init.sh: avoid Solaris 10 /bin/sh portability problem
28683         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28684         sourced script:
28685           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28686           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28687           bar
28688         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28689         and two tests used that idiom.
28690         * tests/init.sh: Update suggested usage comments.
28691         (path_prepend_): New function, to be used in place
28692         of the --src-path=DIR option.
28693         (setup_): Move PATH-prepending code into path_prepend_.
28694         * tests/test-pread.sh: Adapt to new usage.
28695         * tests/test-xalloc-die.sh: Likewise.
28696
28697 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28698
28699         * doc/gnulib.texi (Glibc pty.h): Add.
28700         * doc/glibc-functions/forkpty.texi: Add.
28701         * doc/glibc-functions/openpty.texi: Add.
28702         Suggested by Bruno Haible.
28703
28704 2009-12-08  Eric Blake  <ebb9@byu.net>
28705
28706         fchdir: fix logic bugs
28707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28708         * tests/test-fchdir.c (main): Enhance test.
28709         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28710         is in use.
28711
28712         dup2: fix logic bugs
28713         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28714         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28715         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28716         exists.
28717         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28718
28719 2009-12-07  Eric Blake  <ebb9@byu.net>
28720
28721         unlink: fix m4 detection
28722         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28723
28724         unistd-safer: add unit test
28725         * modules/unistd-safer-tests: New file.
28726         * tests/test-dup-safer.c: Likewise.
28727         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28728         * tests/test-dup2.c (setmode): Likewise.
28729         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28730
28731         cloexec: preserve text vs. binary across dup_cloexec
28732         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28733         mode.
28734         * modules/dup2-tests (Depends-on): Add binary-io.
28735         * modules/cloexec-tests (Depends-on): Likewise.
28736         * tests/test-dup2.c (setmode, is_mode): New helpers.
28737         (main): Add tests that translation mode is preserved.
28738         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28739         Reported by Bruno Haible.
28740
28741         mgetgroups: reduce duplicate listings
28742         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28743         resulting array.
28744         * tests/test-chown.h (test_chown): Simplify client.
28745         * tests/test-lchown.h (test_lchown): Likewise.
28746
28747 2009-12-06  Bruno Haible  <bruno@clisp.org>
28748
28749         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28750         value.
28751
28752 2009-12-06  Bruno Haible  <bruno@clisp.org>
28753
28754         * lib/progname.c: Include stdio.h, stdlib.h.
28755         (set_program_name): Reject a NULL argument.
28756
28757 2009-12-05  Eric Blake  <ebb9@byu.net>
28758
28759         pipe2-safer: new module
28760         * modules/pipe2-safer: New file.
28761         * lib/unistd-safer.h (pipe2_safer): New prototype.
28762         * lib/unistd--.h (pipe2): New wrapper.
28763         * lib/pipe-safer.c (pipe2_safer): New function.
28764         * modules/pipe (Depends-on): Add pipe2-safer.
28765         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28766
28767         stdlib-safer: preserve cloexec flag for mkostemp[s]
28768         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28769         fd_safer_flag.
28770
28771         unistd-safer: allow preservation of cloexec status via flag
28772         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28773         prototypes.
28774         * lib/dup-safer.c (dup_safer_flag): New function.
28775         * lib/fd-safer.c (fd_safer_flag): Likewise.
28776         * modules/cloexec (configure.ac): Set witness.
28777
28778         test-dup2: enhance test
28779         * modules/dup2-tests (Depends-on): Add cloexec.
28780         * tests/test-dup2.c (main): Enhance test.
28781
28782         cloexec: add dup_cloexec
28783         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28784         header and comments.
28785         * lib/cloexec.c (set_cloexec_flag): Add comments.
28786         (dup_cloexec): New function, with mingw implementation borrowed
28787         from...
28788         * lib/w32spawn.h (dup_noinherit): ...here.
28789         * modules/execute (Depends-on): Add cloexec.
28790         * modules/pipe (Depends-on): Likewise.
28791         * modules/cloexec (Depends-on): Add dup2.
28792         * modules/cloexec-tests (Files): New file.
28793         * tests/test-cloexec.c: Likewise.
28794
28795         test-xalloc-die: fix test for mingw
28796         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28797         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28798         directory and .exe suffix off argv[0] output.
28799
28800         test-fseeko: fix test for mingw
28801         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28802         than undefining fseek, so test will pass on mingw.
28803
28804 2009-12-05  Bruno Haible  <bruno@clisp.org>
28805
28806         * lib/progname.h (set_program_name): Clarify specification.
28807         * lib/progname.c (set_program_name): Likewise.
28808         Reported by Jim Meyering.
28809
28810 2009-12-05  Jim Meyering  <meyering@redhat.com>
28811
28812         maint.mk: backslash-escape parens in default regexp
28813         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28814         backslash-escape the literal parentheses.
28815
28816         maint.mk: news-date-check: use grep -E
28817         * top/maint.mk (today): Define a Make variable, not a...
28818         (news-date-check): ...shell variable.
28819         (news-date-regexp): Use the Make variable.
28820         Use grep's -E option.  Change the failing diagnostic to mention
28821         the variable, $(news-date-regexp).
28822
28823 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28824
28825         maintainer-makefile: allow customization of NEWS entry format
28826         * top/maint.mk (news-date-regexp): New overridable variable.
28827         (news-date-check): Use it.
28828
28829 2009-12-04  Eric Blake  <ebb9@byu.net>
28830
28831         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28832         * lib/mgetgroups.h (xgetgroups): New prototype.
28833         * lib/mgetgroups.c (xgetgroups): New wrapper.
28834         (mgetgroups): Handle ENOSYS.
28835         * modules/mgetgroups (Depends-on): Add realloc.
28836         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28837
28838         mgetgroups: avoid argument promotion issues with -1
28839         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28840         for invalid gid_t.
28841         * tests/test-chown.h (getegid, test_chown): Likewise.
28842         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28843
28844 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28845
28846         exclude: Fix header file problems.
28847         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28848
28849 2009-12-01  Jim Meyering  <meyering@redhat.com>
28850
28851         fts: fts_open: do not let an empty string cause immediate failure
28852         This is required in support of GNU rm, for which the command
28853         "rm A '' B" must process and remove both A and B, in spite of
28854         the empty string argument.
28855         * lib/fts.c (fts_open): Do not let the presence of an empty string
28856         cause fts_open to fail immediately.  Most fts-using tools must be
28857         able to process all arguments, in order, and can be expected to
28858         diagnose such arguments themselves.
28859
28860 2009-11-30  Eric Blake  <ebb9@byu.net>
28861
28862         utimens: fix compilation error
28863         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28864         Declare variable at right scope.
28865
28866 2009-11-29  Jim Meyering  <meyering@redhat.com>
28867
28868         bootstrap: handle perl-5.11's changed --version output
28869         * build-aux/bootstrap (get_version): Handle perl separately,
28870         since perl-5.11's --version output is different.
28871
28872 2009-11-28  Jim Meyering  <meyering@redhat.com>
28873
28874         userspec: depend on the inttostr module, too
28875         * modules/userspec (Depends-on): Add inttostr.
28876
28877         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28878         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28879         number of MAXUID when it evaluates to (uid_t) -1.
28880         Likewise for group ID.  Reported by Matt McCutchen in
28881         <http://savannah.gnu.org/bugs/?28113>
28882
28883         userspec: reformat to use spaces, not TABs
28884         * lib/userspec.c: Expand TABs to spaces.
28885         Add Emacs' "indent-tabs-mode: nil" hint.
28886
28887 2009-11-27  Eric Blake  <ebb9@byu.net>
28888
28889         getopt-gnu: flush out another BSD bug
28890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28891         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28892         flush out BSD bug.
28893         * tests/test-getopt.h (test_getopt): End lists with NULL.
28894         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28895         (test_getopt_long_posix): Enhance test.
28896         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28897         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28898         getopt-gnu.
28899         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28900         Likewise.
28901
28902 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28903
28904         * modules/idpriv-droptemp-tests (Notice): Fix text.
28905
28906 2009-11-27  Jim Meyering  <meyering@redhat.com>
28907
28908         test-xalloc-die: avoid spurious failure due to libtool argv difference
28909         In a libtool-enabled project, this test would fail due to a difference
28910         in the emitted program name, e.g.,
28911         -test-xalloc-die: memory exhausted
28912         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28913         Use program to avoid that.
28914         * modules/xalloc-die-tests (Depends-on): Add progname.
28915         * tests/test-xalloc-die.c: Include progname.h".
28916         (program_name): Remove decl.
28917         (main): Call set_program_name.
28918         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28919
28920 2009-11-26  Richard Jones  <rjones@redhat.com>
28921
28922         w32sock: leave win32 error in place.
28923         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28924
28925 2009-11-26  Eric Blake  <ebb9@byu.net>
28926
28927         init.sh: suggest to use skip_ and fail_ functions in comments
28928         * tests/init.sh: Add a sentence.
28929
28930 2009-11-25  Bruno Haible  <bruno@clisp.org>
28931
28932         init.sh: add documentation in comments
28933         * tests/init.sh: Add some developer and user documentation.
28934
28935 2009-11-26  Jim Meyering  <meyering@redhat.com>
28936
28937         init.sh: accommodate even those who specify bogus srcdir manually
28938         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28939         configure-time tests to be sanitized, so that there is no need to
28940         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28941         (with no double quotes) suffices.  However, since tests may be
28942         invoked manually, and since you may explicitly set srcdir to the
28943         name of a directory containing spaces, do quote its uses here.
28944         * tests/test-pread.sh: Likewise.
28945         Suggested by Bruno Haible.
28946
28947         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28948         * tests/test-pread.sh: Write no data into the pipe, because
28949         test-pread actually reads none.  This avoids a diagnostic,
28950         "bash: echo: write error: Broken pipe", that arises in the unusual
28951         event something is ignoring SIGPIPE, and might be interpreted
28952         as some sort of failure.  Reported by Bruno Haible.
28953
28954 2009-11-25  Jim Meyering  <meyering@redhat.com>
28955
28956         test-pread: cover failure with ESPIPE and EINVAL
28957         * tests/test-pread.c (main): Test for failure, too.
28958         * tests/test-pread.sh: Invoke with stdin on a pipe.
28959         Suggested by Eric Blake.
28960
28961         pread: improvement and fix
28962         * modules/pread (Depends-on): Depend on lseek, for portability to
28963         e.g., mingw.  Suggested by Eric Blake.
28964         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28965
28966         unistd.in.h: correct declaration of pread
28967         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28968         Reported by Richard W.M. Jones.
28969
28970         test-pread.sh: distribute the test script
28971         * modules/pread-tests (Files): Include test-pread.sh.
28972
28973         test-pread.sh: clean up
28974         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28975         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28976         That is unnecessary, since it's always ".".
28977         Suggestion from Eric Blake.
28978
28979         test-pread.sh: make executable
28980         * tests/test-pread.sh: Set executable bit.
28981         Reported by Eric Blake.
28982
28983         correct typo in test-pread.sh
28984         * tests/test-pread.sh: Add #! line.
28985
28986         test pread
28987         * tests/test-pread.c: New file.
28988         * tests/test-pread.sh: Likewise.
28989         * modules/pread-tests: Likewise.
28990
28991         pread: new module
28992         * modules/pread: New file.
28993         * lib/unistd.in.h (pread): Define/declare.
28994         * lib/pread.c (pread): New file.
28995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28996         * modules/unistd (Makefile.am): Substitute witnesses.
28997         * doc/posix-functions/pread.texi (pread): Update.
28998         * MODULES.html.sh: Add pread.
28999
29000 2009-11-25  Jim Meyering  <meyering@redhat.com>
29001
29002         tests/init.sh: new file to be used via most *.sh tests
29003         * tests/init.sh: New file.
29004
29005 2009-11-25  Eric Blake  <ebb9@byu.net>
29006
29007         utimens: work around older Linux failure with symlinks
29008         * lib/utimens.c (lutimensat_works_really): New variable.
29009         (fdutimens, lutimens): Use it to manage kernels that support
29010         nanosecond times on files, but not on symlinks.
29011         Reported by OndÅ™ej Vašík.
29012
29013         utimes: fix configure grammar
29014         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29015
29016 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29017
29018         regex: Fix fastmap for multibyte character ranges.
29019         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29020         characters when a multibyte character range is included.
29021
29022 2009-11-22  Andy Wingo  <wingo@pobox.com>
29023
29024         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29025         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29026
29027 2009-11-24  Bruno Haible  <bruno@clisp.org>
29028
29029         doc: Most *_l functions exist in MacOS X 10.5.
29030         * doc/posix-functions/duplocale.texi: Update platforms list.
29031         * doc/posix-functions/freelocale.texi: Likewise.
29032         * doc/posix-functions/newlocale.texi: Likewise.
29033         * doc/posix-functions/uselocale.texi: Likewise.
29034         * doc/posix-functions/isalnum_l.texi: Likewise.
29035         * doc/posix-functions/isalpha_l.texi: Likewise.
29036         * doc/posix-functions/isblank_l.texi: Likewise.
29037         * doc/posix-functions/iscntrl_l.texi: Likewise.
29038         * doc/posix-functions/isdigit_l.texi: Likewise.
29039         * doc/posix-functions/isgraph_l.texi: Likewise.
29040         * doc/posix-functions/islower_l.texi: Likewise.
29041         * doc/posix-functions/isprint_l.texi: Likewise.
29042         * doc/posix-functions/ispunct_l.texi: Likewise.
29043         * doc/posix-functions/isspace_l.texi: Likewise.
29044         * doc/posix-functions/isupper_l.texi: Likewise.
29045         * doc/posix-functions/iswalnum_l.texi: Likewise.
29046         * doc/posix-functions/iswalpha_l.texi: Likewise.
29047         * doc/posix-functions/iswblank_l.texi: Likewise.
29048         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29049         * doc/posix-functions/iswctype_l.texi: Likewise.
29050         * doc/posix-functions/iswdigit_l.texi: Likewise.
29051         * doc/posix-functions/iswgraph_l.texi: Likewise.
29052         * doc/posix-functions/iswlower_l.texi: Likewise.
29053         * doc/posix-functions/iswprint_l.texi: Likewise.
29054         * doc/posix-functions/iswpunct_l.texi: Likewise.
29055         * doc/posix-functions/iswspace_l.texi: Likewise.
29056         * doc/posix-functions/iswupper_l.texi: Likewise.
29057         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29058         * doc/posix-functions/isxdigit_l.texi: Likewise.
29059         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29060         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29061         * doc/posix-functions/strcoll_l.texi: Likewise.
29062         * doc/posix-functions/strfmon_l.texi: Likewise.
29063         * doc/posix-functions/strftime_l.texi: Likewise.
29064         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29065         * doc/posix-functions/strxfrm_l.texi: Likewise.
29066         * doc/posix-functions/tolower_l.texi: Likewise.
29067         * doc/posix-functions/toupper_l.texi: Likewise.
29068         * doc/posix-functions/towctrans_l.texi: Likewise.
29069         * doc/posix-functions/towlower_l.texi: Likewise.
29070         * doc/posix-functions/towupper_l.texi: Likewise.
29071         * doc/posix-functions/wcscoll_l.texi: Likewise.
29072         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29073         * doc/posix-functions/wctrans_l.texi: Likewise.
29074         * doc/posix-functions/wctype_l.texi: Likewise.
29075         * doc/glibc-functions/strptime_l.texi: Likewise.
29076         * doc/glibc-functions/strtod_l.texi: Likewise.
29077         * doc/glibc-functions/strtof_l.texi: Likewise.
29078         * doc/glibc-functions/strtol_l.texi: Likewise.
29079         * doc/glibc-functions/strtold_l.texi: Likewise.
29080         * doc/glibc-functions/strtoll_l.texi: Likewise.
29081         * doc/glibc-functions/strtoul_l.texi: Likewise.
29082         * doc/glibc-functions/strtoull_l.texi: Likewise.
29083         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29084         * doc/glibc-functions/wcstod_l.texi: Likewise.
29085         * doc/glibc-functions/wcstof_l.texi: Likewise.
29086         * doc/glibc-functions/wcstol_l.texi: Likewise.
29087         * doc/glibc-functions/wcstold_l.texi: Likewise.
29088         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29091
29092 2009-11-24  Bruno Haible  <bruno@clisp.org>
29093
29094         duplocale: Fix logic bug.
29095         * lib/duplocale.c: Don't include <langinfo.h>.
29096         (_NL_LOCALE_NAME): Remove macro.
29097         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29098         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29099
29100 2009-11-23  Jim Meyering  <meyering@redhat.com>
29101
29102         test-update-copyright: don't hard-code /usr/bin/perl
29103         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29104         perl to print the current year.  Gilles Espinasse reported that
29105         the replaced use of perl was hard-coded as /usr/bin/perl.
29106
29107 2009-11-23  Bruno Haible  <bruno@clisp.org>
29108
29109         duplocale: Add support for glibc 2.3.x.
29110         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29111
29112 2009-11-22  Bruno Haible  <bruno@clisp.org>
29113
29114         vasnprintf: Tiny optimization.
29115         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29116         MacOS X.
29117
29118 2009-11-22  Bruno Haible  <bruno@clisp.org>
29119
29120         Tests for module 'duplocale'.
29121         * modules/duplocale-tests: New file.
29122         * tests/test-duplocale.c: New file.
29123
29124         New module 'duplocale'.
29125         * m4/duplocale.m4: New file.
29126         * lib/locale.in.h (duplocale): New declaration.
29127         * lib/duplocale.c: New file.
29128         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29129         gl_LOCALE_H_DEFAULTS): New macros.
29130         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29131         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29132         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29133         REPLACE_DUPLOCALE.
29134         * modules/duplocale: New file.
29135         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29136
29137 2009-11-22  Bruno Haible  <bruno@clisp.org>
29138
29139         * modules/locale-tests (configure.ac): Test for newlocale function.
29140         * tests/test-locale.c: When the system has extended locale functions,
29141         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29142
29143         locale: Make locale_t available when possible.
29144         * lib/locale.in.h: Include <xlocale.h> when it exists.
29145         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29146         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29147         * modules/locale (Depends-on): Add extensions.
29148         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29149         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29150
29151 2009-11-22  Bruno Haible  <bruno@clisp.org>
29152
29153         Add comments.
29154         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29155         invocation.
29156         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29157         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29158         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29159
29160 2009-11-22  Bruno Haible  <bruno@clisp.org>
29161
29162         error: account for the possibility of freopen (stdout).
29163         * lib/error.c: Include <unistd.h>.
29164         (flush_stdout): New function, extracted from error and error_at_line.
29165         Determine stdout's fd dynamically.
29166         (error, error_at_line): Invoke flush_stdout.
29167         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29168         * modules/error (Depends-on): Add unistd.
29169
29170 2009-11-22  Bruno Haible  <bruno@clisp.org>
29171
29172         diffseq: Add comment.
29173         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29174
29175 2009-11-22  Jim Meyering  <meyering@redhat.com>
29176
29177         c-stack: avoid defining an unused static function
29178         * lib/c-stack.c (find_stack_direction): Do not define this function
29179         when it will not be used.
29180
29181         diffseq: avoid spurious gcc warnings
29182         * lib/diffseq.h (IF_LINT2): Define.
29183         (compareseq): Use it to initialize two members of "part".
29184         This avoids two used-uninitialized warnings.
29185
29186 2009-11-21  Jim Meyering  <meyering@redhat.com>
29187
29188         c-stack: avoid "ignoring return value of `write'" warning
29189         * lib/c-stack.c: Include "ignore-value.h".
29190         (die): Explicitly ignore each write return value.
29191         * modules/c-stack (Depends-on): Add ignore-value.
29192
29193 2009-11-21  Bruno Haible  <bruno@clisp.org>
29194
29195         diffseq: reduce scope of variable 'best'.
29196         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29197         variable, earlier used for two different purposes.
29198
29199 2009-11-21  Jim Meyering  <meyering@redhat.com>
29200
29201         diffseq: remove useless assignment to "best"
29202         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29203         assignment.  At that point "best" is already guaranteed to be zero.
29204
29205 2009-11-20  Eric Blake  <ebb9@byu.net>
29206
29207         build: mention ftp redirector in release announcements
29208         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29209         values that used to come from cfg.mk; mention FTP redirect URL.
29210         * build-aux/announce-gen: Mention the mirror list.
29211         Suggested by Karl Berry.
29212
29213         nanosleep: improve port to mingw
29214         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29216         LIB_NANOSLEEP, but only when needed.
29217         * modules/select (Link): Document LIBSOCKET.
29218         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29219         enough.
29220
29221         nanosleep: work around cygwin bug
29222         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29223         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29224         bug.
29225         (getnow): Delete, not needed.
29226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29227         LIB_CLOCK_GETTIME.
29228         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29229         clock-time, gettime.
29230         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29231         bug.
29232         * modules/nanosleep-tests: New test.
29233         * tests/test-nanosleep.c: New file.
29234
29235         sleep: work around cygwin bug
29236         * lib/sleep.c (rpl_sleep): Work around the bug.
29237         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29238         (gl_PREREQ_SLEEP): Delete unused macro.
29239         * modules/sleep (Depends-on): Add verify.
29240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29241         * modules/unistd (Makefile.am): Substitute witness.
29242         * lib/unistd.in.h (sleep): Update prototype.
29243         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29244         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29245         * modules/sleep-tests (Depends-on): Check for alarm.
29246
29247 2009-11-20  Jim Meyering  <meyering@redhat.com>
29248
29249         maint.mk: improve sc_prohibit_magic_number_exit
29250         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29251         so it does not match uses like System.exit(1).
29252         Add comments showing how to correct all offenders.
29253
29254 2009-11-19  Eric Blake  <ebb9@byu.net>
29255
29256         xalloc-die-tests: add missing library
29257         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29258
29259         test-xvasprintf: silence compiler warnings
29260         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29261         empty string from gcc.
29262
29263 2009-11-19  Jim Meyering  <meyering@redhat.com>
29264
29265         xfreopen: new module, from coreutils
29266         * modules/xfreopen: New module.
29267         * lib/xfreopen.c: New file.
29268         * lib/xfreopen.h: New file.
29269         * MODULES.html.sh (File stream based Input/Output"): Add it.
29270
29271 2009-11-19  Eric Blake  <ebb9@byu.net>
29272
29273         manywarnings: depend on warnings
29274         * modules/manywarnings (Depends-on): Add warnings.
29275
29276         build: avoid compiler warnings
29277         * lib/select.c (rpl_select): Delete unused variable.
29278         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29279
29280 2009-11-18  Eric Blake  <ebb9@byu.net>
29281
29282         tests: avoid false negative with --with-packager
29283         * tests/test-version-etc.sh: Discard packager information.
29284         * tests/test-argp-version-etc-1.sh: Likewise.
29285         Reported by Mike Frysinger.
29286
29287         utimens: fix regression on Solaris
29288         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29289         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29290         can only change fd timestamps via futimesat.  Instead, use an
29291         additional witness macro to avoid BSD bug.
29292         Reported by Jim Meyering.
29293
29294 2009-11-17  Eric Blake  <ebb9@byu.net>
29295
29296         usleep: use it to simplify tests
29297         * modules/stat-time-tests (Depends-on): Add usleep.
29298         (configure.ac): Drop usleep check.
29299         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29300         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29301         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29302         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29303         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29304         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29305         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29306         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29307         Likewise.
29308         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29309         * tests/test-lchown.h (nap): Likewise.
29310         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29311         * tests/test-stat-time.c (nap): Likewise.
29312         * tests/test-utimens-common.h (nap): Update comments.
29313
29314         usleep: new module
29315         * modules/usleep: New file.
29316         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29317         * lib/usleep.c (usleep): Likewise.
29318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29319         * modules/unistd (Makefile.am): Substitute witnesses.
29320         * lib/unistd.in.h (usleep): Add declaration.
29321         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29322         * MODULES.html.sh (Date and time): Likewise.
29323         * modules/usleep-tests (Depends-on): New test.
29324         * tests/test-usleep.c: New file.
29325
29326         chown: work around OpenBSD bug
29327         * lib/chown.c (rpl_chown): Work around the bug.
29328         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29329         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29331         * modules/chown (Depends-on): Add stdbool.
29332         * modules/lchown (Depends-on): Likewise.
29333         * doc/posix-functions/chown.texi (chown): Document the bug.
29334         * doc/posix-functions/lchown.texi (lchown): Likewise.
29335         * tests/test-lchown.h (test_chown): Relax test.
29336
29337         mkstemp: avoid conflict with C++ keyword template
29338         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29339         * lib/mkostemp.c (mkostemp): Likewise.
29340         * lib/mkostemps.c (mkostemps): Likewise.
29341         * lib/mkstemp.c (mkstemp): Likewise.
29342         * lib/mkstemps.c (mkstemps): Likewise.
29343
29344         xalloc-die-tests: optimize
29345         * tests/test-xalloc-die.sh: Reduce number of processes.
29346
29347 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29348
29349         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29350         patch from ludo@gnu.org (Ludovic Courtès).
29351
29352 2009-11-17  Jim Meyering  <meyering@redhat.com>
29353
29354         version-etc: use proper license string
29355         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29356         * modules/version-etc-fsf: Likewise.
29357
29358 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29359
29360         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29361         printed to stdout.  Deal with EOL differences.
29362
29363 2009-11-17  Eric Blake  <ebb9@byu.net>
29364
29365         unsetenv: work around Solaris bug
29366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29367         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29368         Reported by Jim Meyering.
29369
29370         vasnprintf: avoid compiler warnings
29371         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29372         variables.
29373         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29374
29375 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29376
29377         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29378         settings since xalloc-die is no longer the self test,
29379         xalloc-die.sh is.
29380
29381 2009-11-17  Jim Meyering  <meyering@redhat.com>
29382
29383         test-xalloc-die.sh: make the code agree with the commit log
29384         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29385         at the end, just in case you happen to have a test-xalloc-die
29386         program in some other PATH directory.
29387
29388         test-xalloc-die.sh: fix a portability bug
29389         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29390         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29391         Otherwise, argv[0] (as often seen in diagnostics) would be too
29392         system-dependent, sometimes with, and sometimes without the leading "./".
29393
29394         version-etc-fsf: relax license to LGPLv3+
29395         * modules/version-etc-fsf (License): Relax license.
29396
29397 2009-11-16  Eric Blake  <ebb9@byu.net>
29398
29399         xalloc-die-tests: avoid printing null pointer
29400         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29401         shell script.
29402         * tests/test-xalloc-die.c (program_name): Declare.
29403         * tests/test-xalloc-die.sh (tmpfiles): New file.
29404
29405         setenv, unsetenv: work around various bugs
29406         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29407         (setenv) [HAVE_SETENV]: Work around bugs.
29408         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29409         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29410         for bugs.
29411         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29412         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29414         * modules/stdlib (Makefile.am): Update substitutions.
29415         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29416         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29417         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29418         * modules/setenv-tests: New test.
29419         * modules/unsetenv-tests: Likewise.
29420         * tests/test-setenv.c: New file.
29421         * tests/test-unsetenv.c: Likewise.
29422
29423 2009-11-16  Jim Meyering  <meyering@redhat.com>
29424
29425         version-etc: relax license to LGPLv3+
29426         * modules/version-etc (License): Relax license.
29427
29428         better AC_REQUIRE expanded-before-required-warning avoidance
29429         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29430         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29431         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29432         which is no longer needed.
29433
29434 2009-11-16  Eric Blake  <ebb9@byu.net>
29435
29436         test-freading: clean up temporary file
29437         * tests/test-freading.c (main): Remove file on success, and use
29438         ASSERT more liberally.
29439         Reported by Jim Meyering.
29440
29441 2009-11-16  Jim Meyering  <meyering@redhat.com>
29442
29443         avoid new AC_REQUIRE expanded-before-required warnings
29444         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29445         merely using it.
29446         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29447         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29448
29449 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29450
29451         * tests/test-xalloc-die.c: New file.
29452         * modules/xalloc-die-tests: New file.
29453         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29454         XFAIL_TESTS so it can be appended by modules.
29455
29456 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29457
29458         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29459         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29460
29461 2009-11-14  Eric Blake  <ebb9@byu.net>
29462
29463         fnmatch: avoid compiler warning
29464         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29465         to silence compiler warning about mismatch signedness in ?:.
29466         Reported by Robert Millan.
29467
29468         intprops: add double-inclusion guard
29469         * lib/intprops.h: Allow idempotent includes.
29470         Suggested by Bruce Korb.
29471
29472         openat: detect Solaris fchownat bug
29473         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29474         penalizing glibc chownat when only lchownat is broken.
29475         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29476         trailing slash bugs.
29477         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29478         * modules/openat-tests (Files): Include more files.
29479         (Depends-on): Add mgetgroups, sleep, stat-time.
29480         (configure.ac): Add additional checks.
29481         (Makefile.am): Build new test.
29482         * tests/test-fchownat.c: New file.
29483
29484         lchown: detect Solaris and FreeBSD bug
29485         * lib/lchown.c (rpl_lchown): Work around bug.
29486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29488         * modules/unistd (Makefile.am): Populate it.
29489         * lib/unistd.in.h (lchown): Update declaration.
29490         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29491         * modules/lchown-tests: New file.
29492         * tests/test-lchown.h (test_lchown): Likewise.
29493         * tests/test-lchown.c (main): Likewise.
29494
29495         chown: detect Solaris and FreeBSD bug
29496         * lib/chown.c (rpl_chown): Work around bug.
29497         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29498         (gl_PREREQ_CHOWN): Delete.
29499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29500         * modules/unistd (Makefile.am): Populate it.
29501         * lib/unistd.in.h (chown): Update declaration.
29502         * lib/lchown.c (chown): Update client.
29503         * modules/lchown (Depends-on): Add lstat.
29504         * doc/posix-functions/chown.texi (chown): Document the bug.
29505         * doc/posix-functions/getgroups.texi (getgroups): Document
29506         getgroups pitfall.
29507         * modules/chown-tests: New file.
29508         * tests/test-chown.h (test_chown): Likewise.
29509         * tests/test-chown.c (main): Likewise.
29510
29511 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29512
29513         gnulib-tool: correctly detect absence of m4 directories
29514         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29515
29516 2009-11-14  Jim Meyering  <meyering@redhat.com>
29517
29518         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29519         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29520
29521 2009-11-14  John W. Eaton  <jwe@gnu.org>
29522
29523         strftime.h: wrap funtion declaration in extern "C" block
29524         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29525
29526 2009-11-13  Eric Blake  <ebb9@byu.net>
29527
29528         getgroups: avoid compiler warning
29529         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29530
29531         getgroups: work around FreeBSD bug
29532         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29533         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29534         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29535         * tests/test-getgroups.c (main): Fix buffer overrun.
29536
29537         getgroups: avoid compilation failure
29538         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29539         * modules/getgroups (Depends-on): Add stdint.
29540
29541 2009-11-13  Jim Meyering  <meyering@redhat.com>
29542
29543         test-getgroups: avoid compilation failure
29544         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29545
29546 2009-11-13  Eric Blake  <ebb9@byu.net>
29547
29548         mgetgroups: new module, taken from coreutils
29549         * modules/mgetgroups: New file.
29550         * lib/mgetgroups.h: Likewise.
29551         * lib/mgetgroups.c (mgetgroups): Likewise.
29552         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29553         * MODULES.html.sh (Users and groups): Mention it.
29554
29555         getgroups: don't expose GETGROUPS_T to user
29556         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29557         an element at a time if GETGROUPS_T is wrong size.
29558         * lib/getugroups.h (getugroups): Change signature.
29559         * lib/unistd.in.h (getgroups): Likewise.
29560         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29561         signature needs fixing.
29562         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29563         AC_TYPE_GETGROUPS.
29564         * modules/group-member (Depends-on): Add getgroups.
29565         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29566         (group_member): Rely on getgroups replacement.
29567         * lib/getugroups.c (getugroups): Use gid_t.
29568         * tests/test-getgroups.c (main): Likewise.
29569         * NEWS: Mention the signature change.
29570         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29571         problem with signature.
29572         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29573         GETGROUPS_T is still useful for setgroups.
29574
29575         getgroups, getugroups: provide stubs for mingw
29576         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29577         * lib/getugroups.c (getugroups): Likewise.
29578         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29579         function.  Modernize replacement scheme.
29580         (gl_PREREQ_GETGROUPS): Delete.
29581         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29582         * modules/getgroups (configure.ac): Declare witness.
29583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29584         * modules/unistd (Depends-on): Substitute witness.
29585         * lib/unistd.in.h (getgroups): Declare replacement.
29586
29587         getgroups: avoid calling exit
29588         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29589         drop xalloc.
29590         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29591         dependencies.
29592         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29593         exiting, in the rare case of malloc failure.
29594
29595         getgroups: fix logic error
29596         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29597         has more than 20 groups.
29598         * modules/getgroups-tests: New test.
29599         * tests/test-getgroups.c: New file.
29600
29601 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29602
29603         * tests/test-base64.c: Improve.
29604
29605 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29606
29607         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29608         Blake <ebb9@byu.net>.
29609
29610 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29611
29612         * tests/test-xvasprintf.c: Add %s%s related checks.
29613
29614 2009-11-12  Eric Blake  <ebb9@byu.net>
29615
29616         version-etc: match standards.texi style
29617         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29618         and use <> only for URLs.
29619
29620 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29621
29622         fts: do not fail on a submount during traversal
29623         * lib/fts.c (fts_build): Read the stat info again after opening
29624         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29625         Original report at http://bugzilla.redhat.com/501848.
29626
29627 2009-11-12  Jim Meyering  <meyering@redhat.com>
29628
29629         bootstrap: sync from coreutils
29630         * build-aux/bootstrap (bootstrap_epilogue): New function.
29631         Use git_modules_config in one more place.  This make bootstrap's
29632         --gnulib-srcdir option more useful for testing.
29633
29634         bootstrap: generalize autoheader check
29635         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29636         AC_CONFIG_HEADERS.
29637
29638 2009-11-11  Eric Blake  <ebb9@byu.net>
29639
29640         mkfifoat: use new modules for Solaris and BSD bugs
29641         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29642         * lib/mkfifoat.c (mknodat): Split...
29643         * lib/mknodat.c (mknodat): ...into new file.
29644         * modules/mkfifoat (Files): Ship new file.
29645         (Depends-on): Add mkfifo, mknod.
29646         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29647         (Depends-on): Add symlink.
29648         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29649         redundant with test_mkfifo.h.
29650         (do_mkfifoat, do_mknodat): New helpers.
29651
29652         mknod: new module
29653         * modules/mknod: New file.
29654         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29655         * lib/mknod.c (mknod): Likewise.
29656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29657         defaults.
29658         * modules/sys_stat (Makefile.am): Substitute them.
29659         * lib/sys_stat.in.h (mknod): Declare replacement.
29660         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29661         Document it.
29662         * doc/posix-functions/mknod.texi (mknod): Likewise.
29663         * modules/mknod-tests: New test.
29664         * tests/test-mknod.c: Likewise.
29665
29666         mkfifo: new module
29667         * modules/mkfifo: New file.
29668         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29669         * lib/mkfifo.c (mkfifo): Likewise.
29670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29671         defaults.
29672         * modules/sys_stat (Makefile.am): Substitute them.
29673         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29674         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29675         Document it.
29676         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29677         * modules/mkfifo-tests: New test.
29678         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29679         from test-mkfifoat.c.
29680         * tests/test-mkfifo.c: New file.
29681
29682         readlink: detect FreeBSD bug
29683         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29684         slash on symlink.
29685         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29686         * tests/test-readlink.h (test_readlink): Enhance test.
29687
29688         symlink: detect FreeBSD bug
29689         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29690         slash on symlink.
29691         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29692         * tests/test-symlink.h (test_symlink): Enhance test.
29693
29694 2009-11-10  Eric Blake  <ebb9@byu.net>
29695
29696         link: detect FreeBSD bug
29697         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29698         symlink.
29699         * doc/posix-functions/link.texi (link): Document the bug.
29700         * tests/test-link.h (test_link): Enhance test.
29701         * tests/test-linkat.c (main): Update caller.
29702
29703         unlink, remove: detect FreeBSD bug
29704         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29705         slash on symlink.
29706         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29707         * doc/posix-functions/remove.texi (remove): Likewise.
29708         * tests/test-unlink.h (test_unlink): Enhance test.
29709         * tests/test-remove.c (main): Likewise.
29710
29711 2009-11-09  Eric Blake  <ebb9@byu.net>
29712
29713         rename: detect FreeBSD bug
29714         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29715         slash on symlink.
29716         * modules/renameat-tests (Depends-on): Add filenamecat.
29717         * tests/test-rename.h (test_rename): Allow one more errno.
29718         * tests/test-renameat.c (main): Likewise.
29719         * doc/posix-functions/rename.texi (rename): Document the bug.
29720
29721         open: detect FreeBSD bug
29722         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29723         symlink.
29724         * doc/posix-functions/open.texi (open): Document the bug.
29725         * doc/posix-functions/utimes.texi (utimes): Likewise.
29726         * tests/test-open.h (test_open): Add parameters, and test symlink
29727         handling.
29728         * tests/test-open.c (main): Adjust caller.
29729         * tests/test-fcntl-safer.c (main): Likewise.
29730         * modules/open-tests (Depends-on): Add stdbool, symlink.
29731         * modules/fcntl-safer-tests (Depends-on): Likewise.
29732         * tests/test-openat.c (main): Add test-open tests.
29733
29734         stat: detect FreeBSD bug
29735         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29736         symlink.
29737         * doc/posix-functions/stat.texi (stat): Document the bug.
29738         * tests/test-stat.h (test_stat_func): Add argument.
29739         * tests/test-stat.c (main): Adjust caller.
29740         * tests/test-fstatat.c (main): Likewise.
29741         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29742         Reported by Jim Meyering.
29743
29744 2009-11-09  James Youngman  <jay@gnu.org>
29745
29746         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29747         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29748
29749 2009-11-08  Jim Meyering  <meyering@redhat.com>
29750
29751         utimens: remove invalid futimesat call
29752         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29753         It used the file descriptor of the target file as the DIR_FD
29754         parameter and NULL as the file name.  That caused failure with
29755         errno == EFAULT on FreeBSD-8.0-rc2
29756
29757 2009-11-07  Eric Blake  <ebb9@byu.net>
29758
29759         fflush, freadseek: use fseeko, not fseek
29760         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29761         (clear_ungetc_buffer): Avoid potential problems on large files.
29762         * lib/freadseek.c (freadseek): Likewise.
29763         * modules/freadseek (Depends-on): Add fseeko.
29764         * modules/fseek (configure.ac): Set a witness.
29765         * tests/test-fflush.c (main): Use fseeko.
29766         * tests/test-fpurge.c (fseek): Disable link warning.
29767         * tests/test-freadable.c (fseek): Likewise.
29768         * tests/test-freading.c (fseek): Likewise.
29769         * tests/test-fseeko.c (fseek): Likewise.
29770         * tests/test-ftell.c (fseek): Likewise.
29771         * tests/test-ftello.c (fseek): Likewise.
29772         * tests/test-fwritable.c (fseek): Likewise.
29773         * tests/test-fwriting.c (fseek): Likewise.
29774
29775 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29776
29777         * modules/memchr (Depends-on): Drop getpagesize dependency.
29778
29779 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29780
29781         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29782         Reported by Ludovic Courtès.
29783         * build-aux/pmccabe2html: Improve example usage.
29784         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29785
29786 2009-11-06  Jim Meyering  <meyering@redhat.com>
29787
29788         do-release-commit-and-tag: New module.
29789         Automate the release-commit and tag process.
29790         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29791         * modules/do-release-commit-and-tag: New file.
29792         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29793
29794 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29795
29796         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29797         because test-select.c uses inet_pton.
29798
29799 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29800
29801         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29802         GETADDRINFO_LIB.  Bump serial number.
29803         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29804         Suggested by Eric Blake <ebb9@byu.net>.
29805
29806 2009-11-05  Eric Blake  <ebb9@byu.net>
29807
29808         strtod: detect darwin bug
29809         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29810         Reported by Leo Davis.
29811
29812         freopen-safer: new module
29813         * modules/freopen-safer: New module.
29814         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29815         * lib/freopen-safer.c (freopen_safer): New file.
29816         * lib/stdio-safer.h (freopen_safer): New declaration.
29817         * lib/stdio--.h (freopen): New override.
29818         * MODULES.html.sh (File stream based Input/Output): Mention it.
29819         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29820         freopen-safer module.
29821         * doc/posix-functions/stderr.texi (stderr): Likewise.
29822         * doc/posix-functions/stdin.texi (stdin): Likewise.
29823         * doc/posix-functions/stdout.texi (stdout): Likewise.
29824         * modules/freopen-safer-tests: New test.
29825         * tests/test-reopen-safer.c: New file.
29826
29827 2009-11-05  Jim Meyering  <meyering@redhat.com>
29828
29829         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29830         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29831
29832 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29833
29834         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29835
29836 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29837
29838         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29839
29840 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29841
29842         Fix link error.
29843         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29845
29846 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29847
29848         * tests/test-func.c: Also test value of __func__.
29849
29850 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29851
29852         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29853         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29854
29855 2009-11-05  Bruno Haible  <bruno@clisp.org>
29856
29857         Fix link error.
29858         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29859         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29860         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29861
29862 2009-11-05  Bruno Haible  <bruno@clisp.org>
29863
29864         Tests for module 'inet_pton'.
29865         * modules/inet_pton-tests: New file.
29866         * tests/test-inet_pton.c: New file.
29867
29868 2009-11-05  Bruno Haible  <bruno@clisp.org>
29869
29870         Tests for module 'inet_ntop'.
29871         * modules/inet_ntop-tests: New file.
29872         * tests/test-inet_ntop.c: New file.
29873
29874 2009-11-04  Eric Blake  <ebb9@byu.net>
29875
29876         stdlib-safer: wrap all mkstemp variants
29877         * modules/mkostemp (configure.ac): Set witness.
29878         * modules/mkostemps (configure.ac): Likewise.
29879         * modules/mkstemps (configure.ac): Likewise.
29880         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29881         (mkstemps_safer): Wrap more functions.
29882         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29883         wrapping.
29884         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29885         (mkstemps_safer): Implement the wrappers.
29886
29887         mkstemps, mkostemps: new modules
29888         * modules/mkostemps: New module.
29889         * modules/mkstemps: Likewise.
29890         * lib/mkostemps.c (mkostemps): New file.
29891         * lib/mkstemps.c (mkstemps): Likewise.
29892         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29893         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29895         * modules/stdlib (Makefile.am): Substitute them.
29896         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29897         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29898         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29899         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29900         * MODULES.html.sh (File system functions): Mention them.
29901
29902         tempname: resync from glibc
29903         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29904         same values for __GT_FILE as glibc.  Abort even when assertions
29905         are disabled.
29906         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29907         match its value otherwise.  Allow idempotent inclusion.
29908         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29909         * lib/mkostemp.c (mkostemp): Likewise.
29910         * lib/mkstemp.c (mkstemp): Likewise.
29911         * lib/tmpfile.c (tmpfile): Likewise.
29912         * NEWS: Document this.
29913
29914         utimens: fix use of futimens on older Linux
29915         * lib/utimens.c (fdutimens): Use updated, rather than original,
29916         timespec to avoid bug in older Linux kernel.
29917         Reported by Simon Josefsson.
29918
29919 2009-11-04  Bruno Haible  <bruno@clisp.org>
29920
29921         Make num_processors more flexible and consistent.
29922         * lib/nproc.h (enum nproc_query): New type.
29923         (num_processors): Add a 'query' argument.
29924         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29925         (num_processors): Add a 'query' argument. Test the value of the
29926         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29927         mingw, count the number of CPUs available for the current process.
29928         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29929         Check for sched_getaffinity and sched_getaffinity_np.
29930         * modules/nproc (Depends-on): Add c-ctype, extensions.
29931         * NEWS: Mention the change.
29932
29933 2009-11-03  Bruno Haible  <bruno@clisp.org>
29934
29935         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29936
29937 2009-11-03  Jim Meyering  <meyering@redhat.com>
29938
29939         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29940         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29941         if it is defined.
29942
29943 2009-11-02  Eric Blake  <ebb9@byu.net>
29944
29945         mktime, timegm: share common declaration
29946         * lib/mktime-internal.h: New file.
29947         * lib/mktime.c: Use it rather than open-coding a declaration.
29948         * lib/timegm.c: Likewise.
29949         * modules/mktime (Files): Ship it.
29950         * modules/timegm (Files): Likewise.
29951         Suggested by Bruno Haible.
29952
29953         test-update-copyright: update test to match script changes
29954         * tests/test-update-copyright.sh: Avoid hard-coding perl
29955         location.  Don't update *.bak created by earlier runs.
29956
29957 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29958             Simon Josefsson  <simon@josefsson.org>
29959             Bruno Haible  <bruno@clisp.org>
29960
29961         Fix link error on Solaris 8.
29962         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29963         also in libnsl. Define also INET_PTON_LIB.
29964         * modules/inet_pton (Link): New section.
29965
29966 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29967             Bruno Haible  <bruno@clisp.org>
29968
29969         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29970         * modules/inet_ntop (Link): New section.
29971         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29972
29973 2009-11-02  Eric Blake  <ebb9@byu.net>
29974
29975         maint: avoid compiler warnings in m4 macros
29976         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29977         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29978
29979 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29980
29981         * m4/pmccabe2html.m4: Remove file.
29982         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29983         function.  Change maintainer.
29984         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29985         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29986         Courtès).
29987
29988 2009-10-31  Eric Blake  <ebb9@byu.net>
29989
29990         fseeko: fix m4 regression
29991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29992         regression from 2009-10-27.
29993         Reported by Ralf Wildenhues.
29994
29995 2009-10-31  Jim Meyering  <meyering@redhat.com>
29996
29997         inttostr: aesthetics and improved (compile-time) safety
29998         Define inttype_is_signed rather than inttype_is_unsigned,
29999         since the sole use is via "#if inttype_is_signed".
30000         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30001         inttype_is_unsigned.
30002         * lib/offtostr.c (inttype_is_signed): Likewise.
30003         * lib/uinttostr.c (inttype_is_signed): Likewise.
30004         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30005         * lib/inttostr.c (inttostr): Use verify to cross-check the
30006         inttype_is_signed value and the signedness of the actual type.
30007         * modules/inttostr (Depends-on): Add verify.
30008
30009 2009-10-30  Eric Blake  <ebb9@byu.net>
30010
30011         build: avoid compiler warnings
30012         * lib/fchmodat.c (lchmod): Mark unused variables.
30013         * lib/getopt.c (_getopt_initialize): Likewise.
30014         * lib/mktime.c (__mktime_internal): Provide prototype.
30015         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30016         older gcc that do not understand #pragma GCC diagnostic.
30017         * lib/uinttostr.c (inttype_is_unsigned): Define.
30018         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30019
30020 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30021
30022         stat: fix compilation on AIX
30023         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30024         only see struct stat64.
30025
30026 2009-10-30  Eric Blake  <ebb9@byu.net>
30027
30028         exclude: make more robust
30029         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30030         rather than masking a coding bug.
30031         Suggested by Bruno Haible.
30032
30033 2009-10-30  Jim Meyering  <meyering@redhat.com>
30034
30035         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30036         Rather than putting #!/usr/bin/perl on the first line,
30037         start with a variant of what's recommended by "man perlrun" that
30038         invokes the first "perl" program from your shell's search path.
30039         * build-aux/gitlog-to-changelog: Replace #!... as above.
30040         Add a "Local Variables" perl mode setting.
30041         Prompted by a patch from Ludovic Courtès.
30042         Improved by Eric Blake.
30043         * build-aux/useless-if-before-free: Likewise.
30044         * build-aux/announce-gen: Likewise.
30045         * build-aux/update-copyright: Likewise.
30046
30047 2009-10-29  Eric Blake  <ebb9@byu.net>
30048
30049         filenamecat-lgpl: adjust clients
30050         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30051         filenamecat.
30052         * modules/renameat (Depends-on): Likewise.
30053
30054         filenamecat: split into filenamecat-lgpl
30055         * modules/filenamecat-lgpl: New module.
30056         * modules/filenamecat (Files): Move library-safe files into
30057         filenamecat-lgpl.
30058         (Depends-on): Add filenamecat-lgpl.
30059         (configure.ac): Declare witness.
30060         * lib/filenamecat.h (file_name_concat): Only declare when using
30061         GPL module.
30062         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30063         Move...
30064         * lib/filenamecat-lgpl.c: ...into new file.
30065         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30066         (gl_FILE_NAME_CONCAT): Use it.
30067         * MODULES.html.sh (File system functions): Mention new module.
30068
30069         argp: avoid memory leak
30070         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30071         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30072         base_name, since the latter malloc()s and can call exit().
30073         Leak introduced 2006-07-03.
30074
30075         dirname-lgpl: adjust clients that don't need full dirname
30076         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30077         * modules/filenamecat (Depends-on): Likewise.
30078         * modules/linkat (Depends-on): Likewise.
30079         * modules/mkancesdirs (Depends-on): Likewise.
30080         * modules/mkdir (Depends-on): Likewise.
30081         * modules/openat (Depends-on): Likewise.
30082         * modules/savewd (Depends-on): Likewise.
30083         * modules/rename (Depends-on): Likewise.
30084         (License): Relax license.
30085         * modules/mkdir-tests (Depends-on): Drop progname.
30086         (Makefile.am): Delete unneeded LDADD.
30087         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30088
30089         dirname: split into dirname-lgpl
30090         * modules/dirname-lgpl: New module.
30091         * modules/dirname (Files): Move library-safe files into
30092         dirname-lgpl.
30093         (Depends-on): Add dirname-lgpl.
30094         (configure.ac): Declare witness.
30095         * modules/double-slash-root (License): Relax license.
30096         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30097         module.
30098         * lib/dirname.c (dir_len, mdir_name): Move...
30099         * lib/dirname-lgpl.c: ...into new file.
30100         * lib/basename.c (last_component, base_len): Move...
30101         * lib/basename-lgpl.c: ...into new file.
30102         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30103         (gl_DIRNAME): Use it.
30104         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30105         Mention new module.
30106         * modules/dirname-tests (Depends-on): Add progname.
30107         * tests/test-dirname.c (program_name): Delete.
30108
30109         mkdir: make safe for libraries
30110         * modules/mkdir (Depends-on): Drop xalloc.
30111         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30112         exit.
30113
30114         tests: avoid some compiler warnings
30115         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30116         literals.
30117         * tests/test-memchr.c (main): Avoid type mismatch.
30118         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30119         * tests/test-base64.c (main): Likewise.
30120         * tests/test-getdelim.c (main): Likewise.
30121         * tests/test-gethostname.c (main): Likewise.
30122         * tests/test-getline.c (main): Likewise.
30123         * tests/test-netinet_in.c (main): Likewise.
30124         * tests/test-select.c (open_server_socket, main): Likewise.
30125         * tests/test-select-stdin.c (main): Likewise.
30126         * tests/test-sockets.c (main): Likewise.
30127         * tests/test-strsignal.c (main): Likewise.
30128         * tests/test-sys_select.c (main): Likewise.
30129         * tests/test-sys_socket.c (main): Likewise.
30130         * tests/test-u64.c (main): Likewise.
30131         * tests/test-xfprintf-posix.c (main): Likewise.
30132         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30133
30134         sockets: avoid compiler warning
30135         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30136
30137         maint: detect usage(1) and other suspicious exits
30138         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30139
30140 2009-10-29  Jim Meyering  <meyering@redhat.com>
30141
30142         timespec: long-to-int truncation could make timespec_cmp malfunction
30143         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30144         a multiple of 2^32 nanoseconds as no difference.
30145
30146 2009-10-28  Jim Meyering  <meyering@redhat.com>
30147
30148         fprintftime: wrap macro code argument in "do {...} while(0)"
30149         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30150         cpy macro must be a statement that can be followed by a semicolon.
30151         Now that the else clause contains a comment and is hence longer
30152         than one line, I require curly braces.  That in turn requires
30153         that we wrap this code block in the standard do...while(0).
30154
30155         fprintftime: remove stray semicolon from previous change
30156         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30157
30158         fprintftime: avoid a warning about ignored fwrite return value
30159         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30160         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30161         that is unsafe.
30162         * modules/fprintftime (Depends-on): Add ignore-value.
30163
30164         exclude: avoid an unwarranted warning
30165         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30166
30167 2009-10-27  Eric Blake  <ebb9@byu.net>
30168
30169         fseek: avoid compilation failure when fflush is replaced
30170         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30171         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30172         module is in use.
30173         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30174         module is not in use; since REPLACE_FSEEK worked otherwise.
30175         (GNULIB_FTELLO): Likewise for ftell.
30176         Reported by Ian Beckwith and others.
30177
30178 2009-10-27  Bruno Haible  <bruno@clisp.org>
30179
30180         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30181         Reported by Jim Meyering.
30182
30183 2009-10-27  Jim Meyering  <jim@meyering.net>
30184             Bruno Haible  <bruno@clisp.org>
30185
30186         Avoid warning despite dropping the return value of fwrite.
30187         * lib/unicodeio.c: Include ignore-value.h.
30188         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30189         * modules/unicodeio (Depends-on): Add ignore-value.
30190
30191 2009-10-26  Eric Blake  <ebb9@byu.net>
30192
30193         areadlinkat: fix fallback path
30194         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30195         pointer and zero.
30196
30197 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30198
30199         Use a better IO block size for modern systems
30200         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30201         * lib/md2.c: Likewise.
30202         * lib/md4.c: Likewise.
30203         * lib/md5.c: Likewise.
30204         * lib/sha1.c: Likewise.
30205         * lib/sha256.c: Likewise.
30206         * lib/sha512.c: Likewise.
30207
30208 2009-10-22  Eric Blake  <ebb9@byu.net>
30209
30210         tests: avoid several compiler warnings
30211         * tests/test-getcwd.c (main): Avoid buffer underflow.
30212         * tests/test-getdate.c (main): String literals are not safe with
30213         putenv, so use setenv.  Declare unused argument.
30214         * modules/getdate-tests (Depends-on): Add setenv.
30215         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30216         problems with string literals in char *.
30217         * tests/test-hash.c (main): Avoid shadowing declaration.
30218         (insert_new): Treat string literals as char const *.
30219         * tests/test-getopt.h (test_getopt): Likewise.
30220         (getopt_loop): Alter types to minimize casting elsewhere.
30221         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30222         (test_getopt_long_posix): Likewise.
30223         (do_getopt_long): Add wrapper to minimize casting.
30224         * tests/test-atexit.c (clear_temp_file): Use void.
30225         * tests/test-areadlink-with-size.c (main): Declare unused
30226         arguments.
30227         * tests/test-areadlink.c (main): Likewise.
30228         * tests/test-areadlinkat-with-size.c (main): Likewise.
30229         * tests/test-areadlinkat.c (main): Likewise.
30230         * tests/test-canonicalize-lgpl.c (main): Likewise.
30231         * tests/test-canonicalize.c (main): Likewise.
30232         * tests/test-dirent-safer.c (main): Likewise.
30233         * tests/test-dirname.c (main): Likewise.
30234         * tests/test-dup2.c (main): Likewise.
30235         * tests/test-fchdir.c (main): Likewise.
30236         * tests/test-fcntl-h.c (main): Likewise.
30237         * tests/test-fcntl-safer.c (main): Likewise.
30238         * tests/test-fdopendir.c (main): Likewise.
30239         * tests/test-fdutimensat.c (main): Likewise.
30240         * tests/test-fflush.c (main): Likewise.
30241         * tests/test-filenamecat.c (main): Likewise.
30242         * tests/test-filevercmp.c (main): Likewise.
30243         * tests/test-fopen-safer.c (main): Likewise.
30244         * tests/test-fopen.c (main): Likewise.
30245         * tests/test-fpending.c (main): Likewise.
30246         * tests/test-fpurge.c (main): Likewise.
30247         * tests/test-freading.c (main): Likewise.
30248         * tests/test-fstatat.c (main): Likewise.
30249         * tests/test-fsync.c (main): Likewise.
30250         * tests/test-futimens.c (main): Likewise.
30251         * tests/test-getndelim2.c (main): Likewise.
30252         * tests/test-gettimeofday.c (main): Likewise.
30253         * tests/test-getopt.c (main): Likewise.
30254         * tests/test-i-ring.c (main): Likewise.
30255         * tests/test-inttypes.c (main): Likewise.
30256         * tests/test-link.c (main): Likewise.
30257         * tests/test-lstat.c (main): Likewise.
30258         * tests/test-math.c (main): Likewise.
30259         * tests/test-md5.c (main): Likewise.
30260         * tests/test-memchr2.c (main): Likewise.
30261         * tests/test-memrchr.c (main): Likewise.
30262         * tests/test-mkdir.c (main): Likewise.
30263         * tests/test-mkdirat.c (main): Likewise.
30264         * tests/test-mkfifoat.c (main): Likewise.
30265         * tests/test-open.c (main): Likewise.
30266         * tests/test-openat-safer.c (main): Likewise.
30267         * tests/test-openat.c (main): Likewise.
30268         * tests/test-quotearg.c (main): Likewise.
30269         * tests/test-rawmemchr.c (main): Likewise.
30270         * tests/test-readlink.c (main): Likewise.
30271         * tests/test-remove.c (main): Likewise.
30272         * tests/test-rename.c (main): Likewise.
30273         * tests/test-renameat.c (main): Likewise.
30274         * tests/test-rmdir.c (main): Likewise.
30275         * tests/test-sha1.c (main): Likewise.
30276         * tests/test-signal.c (main): Likewise.
30277         * tests/test-sigaction.c (main): Likewise.
30278         * tests/test-stat.c (main): Likewise.
30279         * tests/test-stat-time.c (main): Likewise.
30280         * tests/test-stddef.c (main): Likewise.
30281         * tests/test-stdint.c (main): Likewise.
30282         * tests/test-stdio.c (main): Likewise.
30283         * tests/test-stdlib.c (main): Likewise.
30284         * tests/test-strchrnul.c (main): Likewise.
30285         * tests/test-strerror.c (main): Likewise.
30286         * tests/test-string.c (main): Likewise.
30287         * tests/test-strtod.c (main): Likewise.
30288         * tests/test-strverscmp.c (main): Likewise.
30289         * tests/test-symlink.c (main): Likewise.
30290         * tests/test-symlinkat.c (main): Likewise.
30291         * tests/test-sys_stat.c (main): Likewise.
30292         * tests/test-sys_time.c (main): Likewise.
30293         * tests/test-time.c (main): Likewise.
30294         * tests/test-unistd.c (main): Likewise.
30295         * tests/test-unlink.c (main): Likewise.
30296         * tests/test-unlinkat.c (main): Likewise.
30297         * tests/test-utimens.c (main): Likewise.
30298         * tests/test-utimensat.c (main): Likewise.
30299         * tests/test-version-etc.c (main): Likewise.
30300         * tests/test-wchar.c (main): Likewise.
30301         * tests/test-wctype.c (main): Likewise.
30302         * tests/test-xprintf-posix.c (main): Likewise.
30303         * tests/test-posixtm.c (main): Likewise.
30304         (STREQ): Delete unused macro.
30305         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30306         shadowed variables.
30307         * tests/test-memchr.c (main): Likewise.
30308
30309 2009-10-21  Eric Blake  <ebb9@byu.net>
30310
30311         areadlinkat: avoid failure on older glibc
30312         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30313         rather than mis-comparing 0 against FUNC_RESULT of char*.
30314
30315 2009-10-21  Bruno Haible  <bruno@clisp.org>
30316
30317         * modules/stpncpy (License): Relicense under LGPLv2+.
30318         Reported by David Lutterkort <lutter@redhat.com>.
30319
30320 2009-10-20  Eric Blake  <ebb9@byu.net>
30321
30322         utimensat: work around Solaris 9 bug
30323         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30324         has trailing slash bugs.
30325         * tests/test-lutimens.h (test_lutimens): Enhance test.
30326         * tests/test-utimens.h (test_utimens): Likewise.
30327         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30328         * doc/posix-functions/utimes.texi (utimes): Likewise.
30329         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30330         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30331         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30332         * doc/posix-functions/futimens.texi (futimens): Likewise.
30333
30334         fdutimensat: new module
30335         * modules/fdutimensat: New file.
30336         * lib/fdutimensat.c (fdutimensat): Likewise.
30337         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30338         * MODULES.html.sh (File system functions): Mention module.
30339         * modules/fdutimensat-tests: New test.
30340         * tests/test-fdutimensat.c: Likewise.
30341
30342         doc: regenerate INSTALL
30343         * doc/INSTALL: Reflect recent autoconf update.
30344         * doc/INSTALL.ISO: Likewise.
30345         * doc/INSTALL.UTF-8: Likewise.
30346
30347 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30348
30349         acl: warn if ACL support is not detected
30350         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30351
30352 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30353
30354         * lib/nproc.h: Add extern "C" block for C++.
30355
30356 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30357             Bruno Haible  <bruno@clisp.org>
30358
30359         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30360         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30361         * doc/posix-functions/isalpha.texi: Likewise.
30362         * doc/posix-functions/isblank.texi: Likewise.
30363         * doc/posix-functions/iscntrl.texi: Likewise.
30364         * doc/posix-functions/isdigit.texi: Likewise.
30365         * doc/posix-functions/isgraph.texi: Likewise.
30366         * doc/posix-functions/islower.texi: Likewise.
30367         * doc/posix-functions/isprint.texi: Likewise.
30368         * doc/posix-functions/ispunct.texi: Likewise.
30369         * doc/posix-functions/isspace.texi: Likewise.
30370         * doc/posix-functions/isupper.texi: Likewise.
30371         * doc/posix-functions/isxdigit.texi: Likewise.
30372
30373 2009-10-18  Bruno Haible  <bruno@clisp.org>
30374
30375         Tests for module 'isblank'.
30376         * modules/isblank-tests: New file.
30377         * tests/test-isblank.c: New file.
30378
30379         New module 'isblank'.
30380         * lib/isblank.c: New file.
30381         * m4/isblank.m4: New file.
30382         * modules/isblank: New file.
30383         * doc/posix-functions/isblank.texi: Mention the new module.
30384
30385 2009-10-18  Bruno Haible  <bruno@clisp.org>
30386
30387         New module 'ctype'.
30388         * lib/ctype.in.h: New file.
30389         * m4/ctype.m4: New file.
30390         * modules/ctype: New file.
30391         * doc/posix-headers/ctype.texi: Mention the new module.
30392
30393 2009-10-18  Jim Meyering  <meyering@redhat.com>
30394
30395         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30396         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30397         right after its initialization, rather than farther down.
30398         Keeping these in close proximity makes it easier to ensure
30399         that each such variable is initialized.  E.g.,
30400
30401             LIB_CLOCK_GETTIME=
30402             AC_SUBST([LIB_CLOCK_GETTIME])
30403
30404         This change also increments these serial numbers.
30405         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30406         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30408
30409 2009-10-18  Bruno Haible  <bruno@clisp.org>
30410
30411         Don't let environment variables perturb build.
30412         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30413         (gl_PREREQ_GETHRXTIME): ... not here.
30414
30415 2009-10-18  Bruno Haible  <bruno@clisp.org>
30416
30417         Avoid symlink attack in localcharset module.
30418         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30419         (O_NOFOLLOW): Define fallback.
30420         (get_charset_aliases): Don't open the file if it is a symbolic link.
30421         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30422         gl_FCNTL_H.
30423         (gl_FCNTL_H): Require it.
30424         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30425         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30426         Reported by Fergal Glynn <fglynn@veracode.com>.
30427
30428 2009-10-18  Bruno Haible  <bruno@clisp.org>
30429
30430         Implement nproc for mingw.
30431         * lib/nproc.c: Include <windows.h>
30432         (num_processors): On native Windows platforms, try GetSystemInfo.
30433
30434 2009-10-18  Bruno Haible  <bruno@clisp.org>
30435
30436         Implement nproc for IRIX.
30437         * lib/nproc.c: Include <sys/sysmp.h>.
30438         (num_processors): On IRIX systems, try sysmp.
30439         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30440
30441 2009-10-18  Bruno Haible  <bruno@clisp.org>
30442
30443         Implement nproc for HP-UX.
30444         * lib/nproc.c: Include <sys/pstat.h>
30445         (num_processors): On HP-UX systems, try pstat_getdynamic.
30446         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30447         pstat_getdynamic.
30448
30449 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30450             Bruno Haible  <bruno@clisp.org>
30451
30452         Implement nproc for NetBSD, OpenBSD.
30453         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30454         (ARRAY_SIZE): New macro.
30455         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30456         * m4/nproc.m4: New file.
30457         * modules/nproc (Files): Add m4/nproc.m4.
30458         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30459         (Makefile.am): Instead, augment lib_SOURCES.
30460
30461 2009-10-18  Bruno Haible  <bruno@clisp.org>
30462
30463         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30464         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30465         sys/param.h.
30466
30467 2009-10-16  Eric Blake  <ebb9@byu.net>
30468
30469         utimensat: new module
30470         * modules/utimensat: New file.
30471         * lib/utimensat.c (utimensat): Likewise.
30472         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30473         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30474         so we can work around Linux bugs.
30475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30476         * modules/sys_stat (Makefile.am): Substitute them.
30477         * lib/sys_stat.in.h (utimensat): Declare it.
30478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30479         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30480         * modules/utimensat-tests: New test.
30481         * tests/test-utimensat.c: Likewise.
30482
30483         utimens: let lutimens work on non-symlinks
30484         * lib/utimens.c (lutimens): Fall back to utimens rather than
30485         failing with ENOSYS, when file is not a symlink.
30486         (utimens): Reduce redirection.
30487         * tests/test-lutimens.h (test_lutimens): Update test to cover
30488         non-symlinks.
30489         * tests/test-utimens.h (test_utimens): Update test to cover
30490         symlinks.
30491         * tests/test-utimens.c (main): Update caller.
30492
30493         utimens: cache whether utimensat syscall works
30494         * lib/utimens.c (utimensat_works_really): New cache variable.
30495         (fdutimens, lutimens): Use it to avoid failing syscall.
30496
30497         test-stat-time, test-utimens: improve portability
30498         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30499         ext4 on alpha, and for cygwin.
30500         * tests/test-utimens-common.h: New file.
30501         (nap): Factor delays into single function.
30502         * tests/test-lutimens.h (test_lutimens): Use new header.
30503         * tests/test-futimens.h (test_futimens): Likewise.
30504         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30505         timestamps to occur from same machine, as was done previously for
30506         test_utimens.
30507         * modules/utimens-tests (Files): Ship new file.
30508         * modules/futimens-tests (Files): Likewise.
30509         Reported in part by Jim Meyering.
30510
30511         sys_stat: sort replacement declarations
30512         * lib/sys_stat.in.h: Sort declarations.
30513         * lib/futimens.c (futimens): Fix typo.
30514
30515 2009-10-15  Jim Meyering  <meyering@redhat.com>
30516
30517         don't let environment settings perturb build
30518         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30519         could cause a configure-time and/or build-time malfunction.
30520         Typically, a configure-time function-in-library test is performed
30521         via code like this:
30522
30523           LIB_VAR=
30524           AC_SUBST([LIB_VAR])
30525           prefix_saved_LIBS=$LIBS
30526             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30527                        [test "$ac_cv_search_FUNC" = "none required" ||
30528                         LIB_VAR=$ac_cv_search_FUNC])
30529           LIBS=$prefix_saved_LIBS
30530
30531         However, in each of the files affected by this change, the LIB_VAR=
30532         initialization was omitted.  Thus, when set in the environment, its
30533         value would propagate into generated Makefiles when FUNC is not found
30534         in LIB_NAME.
30535         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30536         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30538
30539 2009-10-14  Eric Blake  <ebb9@byu.net>
30540
30541         fchdir: avoid infinite recursion in mingw
30542         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30543         recursing.
30544
30545         test-stat-time: port to mingw
30546         * tests/test-stat-time.c (force_unlink): Return a value.
30547         (test_ctime) [W32]: Fix compilation error.
30548         (nap): Don't call usleep with too large an argument.  Use
30549         force_unlink.
30550         * doc/pastposix-functions/usleep.texi (usleep): Document the
30551         portability issue.
30552
30553 2009-10-13  Jim Meyering  <meyering@redhat.com>
30554
30555         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30556         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30557         * modules/pipe-filter-ii: Likewise.
30558         * modules/sys_socket-tests: Likewise.
30559         * modules/tsearch-tests: Likewise.
30560         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30561         (check): Depend on it.
30562
30563 2009-10-12  Eric Blake  <ebb9@byu.net>
30564
30565         utimens-tests: port to NFS file systems
30566         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30567         comparisons to avoid spurious failures from timestamp drift
30568         between NFS machines.
30569
30570 2009-10-12  Eric Blake  <ebb9@byu.net>
30571
30572         stat-time-tests: minor cleanups
30573         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30574         * tests/test-stat-time.c (nap): Separate assignment from call.
30575         Suggested by Paolo Bonzini and Bruno Haible.
30576
30577         sys_stat: guarantee struct timespec
30578         * lib/sys_stat.in.h (includes): Always include <time.h>
30579         * modules/sys_stat (Depends-on): Add time.
30580         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30581         mode_t permission values.
30582         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30583         get at subsecond timestamps.
30584
30585 2009-10-10  Eric Blake  <ebb9@byu.net>
30586
30587         futimens: new module
30588         * modules/futimens: New file.
30589         * lib/futimens.c (futimens): Likewise.
30590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30591         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30592         we can work around Linux bugs.
30593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30594         * modules/sys_stat (Makefile.am): Substitute them.
30595         * lib/sys_stat.in.h (futimens): Declare it.
30596         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30597         * doc/posix-functions/futimens.texi (futimens): Likewise.
30598         * modules/futimens-tests: New test.
30599         * tests/test-futimens.c: Likewise.
30600
30601         utimens: introduce fdutimens
30602         * lib/utimens.h (fdutimens): New prototype.
30603         * lib/utimens.c (gl_futimens): Move guts...
30604         (fdutimens): ...to new interface.
30605         * tests/test-utimens.c (do_fdutimens): Use it.
30606
30607         utimens: add UTIME_NOW and UTIME_OMIT support
30608         * lib/utimens.c (validate_timespec, update_timespec): New helper
30609         functions.
30610         (gl_futimens, lutimens): Use them.
30611         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30612         stdbool, sys_stat.
30613         (Link): Mention resulting library dependency.
30614         * modules/utimecmp (Link): Likewise.
30615         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30616         (Makefile.am): Pick up library dependency.
30617         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30618         definition.
30619         * tests/test-sys_stat.c: Test the definitions.
30620         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30621         * NEWS: Document library dependency.
30622
30623         utimecmp: support symlink timestamps
30624         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30625         hashing when possible.  Use pathconf when available.
30626         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30627         * modules/utimecmp (Depends-on): Add lstat.
30628
30629         utimens: add lutimens interface
30630         * lib/utimens.c (lutimens): New function.
30631         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30632         * lib/utimens.h (lutimens): Declare new interface.
30633         * tests/test-utimens.c (main): Enhance test.
30634         * tests/test-lutimens.h (test_lutimens): New file.
30635         * modules/utimens-tests (Files): Distribute it.
30636         (Depends-on): Add symlink.
30637         (configure.ac): Check for usleep.
30638
30639         utimens: validate futimens usage
30640         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30641         fewer syscalls on failure later on.  Avoid compiler warning on
30642         mingw.
30643         * modules/utimens (Depends-on): Add dup2.
30644
30645         utimens: add test
30646         * modules/utimens-tests: New test.
30647         * tests/test-utimens.h: New file.
30648         * tests/test-futimens.h: Likewise.
30649         * tests/test-utimens.c: Likewise.
30650
30651         doc: mention timestamp portability issues
30652         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30653         instead.
30654         * doc/posix-functions/utime.texi (utime): Likewise.
30655         * doc/posix-functions/utimes.texi (utimes): Likewise.
30656         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30657         instead.
30658         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30659         module.
30660         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30661         Mention weakness with symlink timestamps.
30662         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30663         to utimensat/futimens instead.
30664         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30665
30666         test-dup2: enhance test
30667         * tests/test-dup2.c (main): Also check AT_FDCWD.
30668
30669         test-stat-time: avoid more spurious failures
30670         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30671         xfs; and avoid race if the two timestamps cross quantization edge.
30672
30673         relocatable: prefer 'file system' over 'filesystem'
30674         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30675         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30676         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30677         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30678         * lib/relocatable.c (compute_curr_prefix): Likewise.
30679
30680 2009-10-10  Jim Meyering  <meyering@redhat.com>
30681
30682         stat-time-tests: check for the usleep function
30683         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30684
30685 2009-10-10  Bruno Haible  <bruno@clisp.org>
30686
30687         * modules/xnanosleep: Put the Link section after the Include section.
30688
30689 2009-10-09  Eric Blake  <ebb9@byu.net>
30690
30691         dup2: work around FreeBSD 6.1 bug
30692         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30693         * doc/posix-functions/dup2.texi (dup2): Document it.
30694         Reported by Nelson H. F. Beebe and Jim Meyering.
30695
30696         test-stat-time: port to buggy NFS clients
30697         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30698         (test_ctime): Also skip test if mtime and ctime are skewed.
30699
30700         maint: prefer 'file system' over 'filesystem'
30701         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30702         * doc/posix-functions/lstat.texi (lstat): Likewise.
30703         * lib/file-has-acl.c (file_has_acl): Likewise.
30704         * lib/fwriteerror.c [TEST]: Likewise.
30705         * tests/test-areadlink.h (test_areadlink): Likewise.
30706         * tests/test-areadlinkat-with-size.c (main): Likewise.
30707         * tests/test-areadlinkat.c (main): Likewise.
30708         * tests/test-canonicalize-lgpl.c (main): Likewise.
30709         * tests/test-canonicalize.c (main): Likewise.
30710         * tests/test-fstatat.c (main): Likewise.
30711         * tests/test-linkat.c (main): Likewise.
30712         * tests/test-lstat.h (test_lstat_func): Likewise.
30713         * tests/test-mkdir.h (test_mkdir): Likewise.
30714         * tests/test-readlink.h (test_readlink): Likewise.
30715         * tests/test-remove.c (main): Likewise.
30716         * tests/test-rename.h (test_rename): Likewise.
30717         * tests/test-renameat.c (main): Likewise.
30718         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30719         * tests/test-symlink.h (test_symlink): Likewise.
30720         * tests/test-symlinkat.c (main): Likewise.
30721         * tests/test-unlink.h (test_unlink_func): Likewise.
30722         * tests/test-unlinkat.c (main): Likewise.
30723
30724         maint: make realtime library usage explicit
30725         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30726         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30727         * modules/settime (Link): Likewise.
30728         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30729
30730         test-stat-time: speed up execution
30731         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30732         warning on mingw.
30733         (nap): New helper function.
30734         (prepare_test): Use it to reduce sleep time.
30735         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30736         execution.
30737         * modules/stat-time-tests (configure.ac): Check for usleep.
30738
30739 2009-10-09  Jim Meyering  <meyering@redhat.com>
30740
30741         selinux-h: always use getfilecon wrappers
30742         * lib/getfilecon.c: New file.
30743         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30744         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30745         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30746         (fgetfilecon): Provide a stub.
30747         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30748         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30749         file unconditionally.
30750         When <selinux/selinux.h> is found, arrange to use wrappers.
30751         * modules/selinux-h (Files): Add getfilecon.c.
30752         (Makefile.am): Substitute include-next-related bits
30753         into the now-always-generated selinux/selinux.h file.
30754         * doc/glibc-functions/lgetfilecon.texi: New file.
30755         * doc/glibc-functions/fgetfilecon.texi: New file.
30756         * doc/glibc-functions/getfilecon.texi: New file.
30757         * doc/glibc-functions/getfilecon-desc.texi: New file.
30758         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30759         which to pull in the new files.
30760         * MODULES.html.sh (Misc): Add selinux-h.
30761
30762 2009-10-08  Jim Meyering  <meyering@redhat.com>
30763
30764         unistd: fix comment typo
30765         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30766
30767 2009-10-08  Eric Blake  <ebb9@byu.net>
30768
30769         areadlink: use SIZE_MAX consistently
30770         * modules/areadlink (Depends-on): Add stdint.
30771         * modules/areadlink-with-size (Depends-on): Likewise.
30772         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30773         gives NULL; drop sys/types, since unistd gives size_t; and add
30774         stdint for SIZE_MAX.
30775         (SIZE_MAX): Rely on headers.
30776         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30777         and add stdint.
30778         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30779         (SIZE_MAX): Likewise.
30780         (INITIAL_BUF_SIZE): Turn into enum.
30781         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30782
30783 2009-10-08  Jim Meyering  <meyering@redhat.com>
30784
30785         areadlinkat: avoid compilation failure
30786         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30787         Fix typo in comment.
30788
30789 2009-10-07  Eric Blake  <ebb9@byu.net>
30790
30791         areadlinkat-with-size: new module
30792         * modules/areadlinkat-with-size: New module.
30793         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30794         * lib/areadlink.h (areadlinkat): Declare it.
30795         * MODULES.html.sh (File system functions): Mention it.
30796         * modules/areadlinkat-with-size-tests: New test.
30797         * tests/test-areadlinkat-with-size.c: New file.
30798
30799         xreadlinkat: new module
30800         * modules/xreadlinkat: New module.
30801         * lib/xreadlinkat.c (xreadlinkat): New file.
30802         * lib/xreadlink.h (xreadlinkat): Declare it.
30803         * MODULES.html.sh (File system functions): Mention it.
30804
30805         areadlinkat: new module
30806         * lib/at-func.c (FUNC_FAIL): New define.
30807         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30808         * modules/areadlinkat: New module.
30809         * lib/linkat.c (areadlinkat): Move...
30810         * lib/areadlinkat.c (areadlinkat): ...to new file.
30811         * lib/areadlink.h (areadlinkat): Declare it.
30812         * modules/linkat (Depends-on): Add areadlinkat.
30813         * MODULES.html.sh (File system functions): Mention it.
30814         * modules/areadlinkat-tests: New test.
30815         * tests/test-areadlinkat.c: New file.
30816
30817         areadlink, areadlink-with-size: add tests
30818         * modules/areadlink-tests: New test.
30819         * modules/areadlink-with-size-tests: Likewise.
30820         * tests/test-areadlink.h: New file.
30821         * tests/test-areadlink.c: Likewise.
30822         * tests/test-areadlink-with-size.c: Likewise.
30823
30824         maint: minor cleanups
30825         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30826         _UNUSED_PARAMETER_ instead.
30827         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30828         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30829         * modules/linkat-tests (Files): Distribute test-link.h.
30830
30831         openat, utimens: whitespace cleanup
30832         * lib/openat.c: Prefer space throughout, rather than mix of 8
30833         spaces vs. tabs.
30834         * lib/at-func.c: Likewise.
30835         * lib/utimens.c: Likewise.
30836
30837         openat: avoid using wrong fd
30838         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30839         working directory chooses same fd.
30840         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30841
30842         mkdir, mkdirat: fix cygwin 1.5.x bug
30843         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30844         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30845         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30846         bug.
30847         (gl_PREREQ_MKDIR): Delete unused macro.
30848         * modules/mkdir (Files): Track file rename.
30849         (configure.ac): Update macro name.
30850         * modules/openat (Depends-on): Add mkdir.
30851         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30852
30853         mkdir, mkdirat: add tests
30854         * modules/mkdir-tests: New test.
30855         * tests/test-mkdir.h: New file.
30856         * tests/test-mkdir.c: Likewise.
30857         * tests/test-mkdirat.c: Likewise.
30858         * modules/openat-tests (Files): Add new files.
30859         (Makefile.am): Run new test.
30860
30861 2009-10-06  Eric Blake  <ebb9@byu.net>
30862
30863         doc: tweak *at function documentation
30864         * doc/posix-functions/faccessat.texi (faccessat): Mention
30865         known issue with replacement.
30866         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30867         * doc/posix-functions/linkat.texi (linkat): Likewise.
30868         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30869         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30870         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30871         * doc/posix-functions/renameat.texi (renameat): Likewise.
30872         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30873
30874         openat: fix GNU/Hurd bug in unlinkat
30875         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30876         broken.
30877         * doc/posix-functions/unlink.texi (unlink): Document this.
30878         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30879
30880         fdopendir: fix GNU/Hurd bug
30881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30882         allowing non-directory fds.
30883         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30884         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30885         * modules/dirent (Makefile.am): Substitute it.
30886         * lib/dirent.in.h (fdopendir): Declare replacement.
30887         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30888         * tests/test-fdopendir.c (main): Test something other than
30889         /dev/null, since on Hurd that behaves like a directory.
30890
30891         test-symlink: port to GNU/Hurd
30892         * tests/test-symlink.h (test_symlink): Relax expected errno.
30893
30894         doc: tweak more cygwin information
30895         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30896         now compatible with glibc.
30897         * doc/posix-functions/getopt.texi (getopt): Likewise.
30898
30899         getopt-gnu: add another test
30900         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30901         guarantee behavior relied on by m4.
30902         * tests/test-getopt.c (main): Use it.
30903         * modules/getopt-posix-tests (Depends-on): Add setenv.
30904         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30905
30906         getopt: fix compilation on darwin
30907         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30908         include.
30909         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30910         Reported by Ludovic Courtès.
30911
30912 2009-10-06  Bruno Haible  <bruno@clisp.org>
30913
30914         * modules/size_max (Description): Discourage its use.
30915         Reported by Simon Josefsson.
30916
30917 2009-10-06  Jim Meyering  <meyering@redhat.com>
30918
30919         linkat: avoid compilation failure
30920         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30921
30922 2009-10-05  Eric Blake  <ebb9@byu.net>
30923
30924         linkat: support Linux 2.6.17
30925         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30926         linkat on Linux, but allow cache variable override.
30927         * lib/linkat.c (rpl_linkat): Define override.
30928         * modules/linkat (Depends-on): Add symlinkat.
30929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30930         * modules/unistd (Makefile.am): Substitute it.
30931         * lib/unistd.in.h (linkat): Declare replacement.
30932         Reported by Pádraig Brady.
30933
30934         quotearg: port test to systems with C.UTF-8 locale
30935         * tests/test-quotearg.c (struct result_strings): Add another
30936         member, differentiating between C.ASCII and C.UTF-8 handling.
30937         (compare_strings): Add parameter.
30938         (main): Adjust all callers.
30939
30940         getopt: avoid clash with FreeBSD _getopt_internal
30941         * lib/getopt.in.h (_getopt_internal): Override the name.
30942         * lib/getopt_int.h (includes): Pick up any overrides.
30943         Reported by Reuben Thomas.
30944
30945         hash: allow C89 compilation
30946         * lib/hash.c (check_tuning): Move declaration before statement.
30947         Reported by Reuben Thomas.
30948
30949 2009-10-05  Karl Berry  <karl@gnu.org>
30950
30951         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30952
30953 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30954             Bruno Haible  <bruno@clisp.org>
30955
30956         * lib/uname.c (uname): Use a table-driven algorithm to compute
30957         Windows NT versions.
30958
30959 2009-10-04  Bruno Haible  <bruno@clisp.org>
30960
30961         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30962         program_invocation_short_name.
30963         * modules/progname (configure.ac): Test for presence of
30964         program_invocation_short_name.
30965         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30966
30967 2009-10-04  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/progname.c (set_program_name): Fix comment.
30970         Reported by Jim Meyering.
30971
30972 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30973             Bruno Haible  <bruno@clisp.org>
30974
30975         * lib/uname.c: Include <string.h>.
30976         (uname): Do only one call to GetVersionEx in the common case.
30977
30978 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30979             Bruno Haible  <bruno@clisp.org>
30980
30981         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30982         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30983         (uname): Add support for Windows CE and various non-x86 CPU types.
30984
30985 2009-10-03  Bruno Haible  <bruno@clisp.org>
30986
30987         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30988         invocation to tests/configure.ac.
30989         Reported by Ian Beckwith <ianb@erislabs.net>.
30990
30991 2009-10-02  Eric Blake  <ebb9@byu.net>
30992
30993         fchdir: avoid compiler warning
30994         * lib/fchdir.c (canonicalize_file_name)
30995         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30996
30997         test-open: support mingw errno values
30998         * tests/test-open.h (test_open): Relax test.
30999         * tests/test-fopen.h (test_fopen): Likewise.
31000         * tests/test-openat-safer.c (main): Likewise.
31001
31002         open: fix opening directory on mingw
31003         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31004
31005         test-open: on GNU/Hurd, /dev/null is a directory
31006         * tests/test-fopen.h (main): Rename...
31007         (test_fopen): ...to this.  Use a guaranteed non-directory when
31008         confirming open behavior on trailing slash.
31009         * tests/test-openat-safer.c (main): Likewise.
31010         * tests/test-open.h (main): Likewise....
31011         (test_open): ...to this.
31012         * tests/test-fopen.c (main): Adjust caller.
31013         * tests/test-fopen-safer.c (main): Likewise.
31014         * tests/test-open.c (main): Likewise.
31015         * tests/test-fcntl-safer.c (main): Likewise.
31016         Reported by Samuel Thibault.
31017
31018         rename, fchdir: don't ignore chdir failure
31019         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31020         * lib/rename.c (rpl_rename) [W32]: Likewise.
31021         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31022         an empty destination directory if source cannot be renamed,
31023         although there is still possibility for failure.
31024         * doc/posix-functions/rename.texi (rename): Document the race.
31025         Reported by Jim Meyering.
31026
31027         maint: cleanup whitespace in recent commits
31028         * lib/rename.c (rpl_rename): Remove tabs.
31029         * tests/test-link.h (test_link): Likewise.
31030         * lib/fchdir.c (get_name): Likewise.
31031         Reported by Jim Meyering.
31032
31033 2009-10-02  Ben Pfaff  <blp@gnu.org>
31034
31035         relocatable-prog-wrapper: Add missing dependency on
31036         double-slash-root.
31037         * modules/relocatable-prog-wrapper: Add dependency.
31038         Reported by Ian Beckwith <ianb@erislabs.net>.
31039
31040 2009-10-02  Eric Blake  <ebb9@byu.net>
31041
31042         renameat: fix Solaris bugs
31043         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31044         needed fixing.
31045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31046         * modules/stdio (Makefile.am): Substitute it.
31047         * lib/stdio.in.h (renameat): Declare replacement.
31048         * lib/renameat.c (rpl_renameat): Implement fix.
31049
31050         renameat: new module
31051         * modules/renameat: New file.
31052         * lib/renameat.c (renameat): Likewise.
31053         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31055         * modules/stdio (Makefile.am): Substitute them.
31056         * lib/stdio.in.h (renameat): Declare it.
31057         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31058         * doc/posix-functions/renameat.texi (renameat): Likewise.
31059         * modules/renameat-tests: New test.
31060         * tests/test-renameat.c: Likewise.
31061
31062         rename: fix mingw bugs
31063         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31064         directory overwrite bugs.
31065
31066         rename: fix another cygwin 1.5 bug
31067         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31068         checks.
31069         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31070         unnecessary cygwin workarounds.  Also work around bug with moving
31071         full directory onto an empty one.
31072         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31073
31074         rename-dest-slash: merge into rename module
31075         * modules/rename-dest-slash (Status): Mark obsolete.
31076         (Depends-on): Add rename.
31077         (Files): Let rename do it all.
31078         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31079         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31080         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31081         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31082         * lib/rename.c (rpl_rename): Update comments.
31083
31084         rename: fix cygwin 1.5.x bugs
31085         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31086         * lib/rename.c (rpl_rename): Work around them.
31087         * modules/rename (Depends-on): Add same-inode.
31088
31089         rename: fix Solaris 10 bug
31090         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31091         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31092         was the only bug.
31093
31094         rename: fix Solaris 9 bug
31095         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31096         on non-directory.  Avoid calling exit.
31097         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31098         strdup.
31099         * modules/rename-tests (Depends-on): Drop lstat.
31100         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31101         (gl_PREREQ_RENAME): Delete unused macro.
31102
31103         rename-dest-slash: fix NetBSD bug
31104         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31105         links.
31106         * modules/rename-dest-slash (Depends-on): Add same-inode.
31107
31108         rename-tests: new test, exposes several platform bugs
31109         * modules/rename-tests: New file.
31110         * tests/test-rename.h: Likewise.
31111         * tests/test-rename.c: Likewise.
31112         * doc/posix-functions/rename.texi (rename): Improve documentation,
31113         including bugs that will eventually be fixed in gnulib.
31114
31115 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31116
31117         * lib/uname.c: Include <stdlib.h>
31118         (uname): Assume version info is available.
31119
31120 2009-10-02  Jim Meyering  <meyering@redhat.com>
31121
31122         gnu-web-doc-update: correct --help output
31123         * build-aux/gnu-web-doc-update: Make --help output relevant.
31124
31125         gnu-web-doc-update: add standard options
31126         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31127
31128         gnu-web-doc-update: New module.
31129         Use this script to automatically update the on-line web documentation
31130         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31131         * modules/gnu-web-doc-update: New file, from coreutils.
31132         * build-aux/gnu-web-doc-update: New script.
31133
31134 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31135
31136         link: LoadLibrary is not needed.
31137         * lib/link.c: Use GetModuleHandle.
31138
31139 2009-10-01  Eric Blake  <ebb9@byu.net>
31140
31141         getopt: bump serial number
31142         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31143         change.
31144
31145         tests: tighten link, rmdir, and remove tests
31146         * tests/test-link.h (includes): No need to use <config.h> here.
31147         Clean up if directory hard link was created, otherwise test for
31148         trailing '.'.
31149         * tests/test-linkat.c (main): Simplify.
31150         * tests/test-remove.c (main): Enhance test for trailing '.'.
31151         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31152
31153 2009-10-01  Jim Meyering  <meyering@redhat.com>
31154
31155         maint.mk: requiring "make major" was annoying, for a "minor" release.
31156         What is intended is "stable", to contrast with alpha and beta,
31157         so require "make stable", not "make major".
31158         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31159         (get_tool_versions): Likewise.
31160         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31161
31162 2009-09-30  Ben Pfaff  <blp@gnu.org>
31163
31164         Fix broken build of replacement for Windows tmpfile().
31165         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31166         flags argument added along with the 'mkostemp' module.
31167
31168 2009-09-28  Bruno Haible  <bruno@clisp.org>
31169
31170         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31171         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31172         to 'remove_elt'.
31173         (gl_list_remove): Update.
31174         * lib/gl_list.c (gl_list_remove): Update.
31175         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31176         to 'remove_elt'.
31177         (gl_oset_remove): Update.
31178         * lib/gl_list.c (gl_oset_remove): Update.
31179         Reported by Eric Blake.
31180
31181 2009-09-28  Eric Blake  <ebb9@byu.net>
31182
31183         doc: mention yet more cygwin 1.7 status
31184         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31185         cygwin.
31186         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31187         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31188
31189         argp: fix test failure
31190         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31191         that are not upper-case.  Pass correct range to tolower.
31192
31193 2009-09-27  Jim Meyering  <meyering@redhat.com>
31194
31195         test-yesno: work around sparc-dash here-document infelicity
31196         Without this change, the literal \177 byte in a here document
31197         would make dash 0.5.5.1-3 access uninitialized memory.
31198         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31199         Instead, use a marker, "@", and filter through tr to create the desired
31200         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31201
31202 2009-09-27  Bruno Haible  <bruno@clisp.org>
31203
31204         Disable untested support for new flavours of ACLs on AIX.
31205         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31206         progress.
31207         * lib/set-mode-acl.c (qset_acl): Likewise.
31208
31209 2008-12-07  Bruno Haible  <bruno@clisp.org>
31210
31211         Add support for new flavours of ACLs on AIX. (Untested.)
31212         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31213         (file_has_acl): Add support for newer AIX.
31214         * lib/set-mode-acl.c (qset_acl): Likewise.
31215         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31216         Rainer Tammer <tammer@tammer.net>.
31217
31218 2009-09-26  Eric Blake  <ebb9@byu.net>
31219
31220         argp: fix compilation of getopt
31221         * lib/getopt.in.h (includes): Use different guard than glibc.
31222         Reported by Sergey Poznyakoff.
31223
31224         doc: mention more cygwin 1.7 status
31225         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31226         bug.
31227         * doc/posix-functions/execl.texi (execl): Likewise.
31228         * doc/posix-functions/execle.texi (execle): Likewise.
31229         * doc/posix-functions/execlp.texi (execlp): Likewise.
31230         * doc/posix-functions/execv.texi (execv): Likewise.
31231         * doc/posix-functions/execve.texi (execve): Likewise.
31232         * doc/posix-functions/execvp.texi (execvp): Likewise.
31233         * doc/glibc-functions/canonicalize_file_name.texi
31234         (canonicalize_file_name): Cygwin 1.7 now provides this.
31235         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31236         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31237         on AT_SYMLINK_NOFOLLOW.
31238
31239 2009-09-24  Eric Blake  <ebb9@byu.net>
31240
31241         test-linkat: make test more robust
31242         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31243
31244         getopt: fix inclusion guards for cygwin
31245         * modules/getopt-posix (Depends-on): Add include-next.
31246         (Makefile.am): Substitute more items in replacement header.
31247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31248         <getopt.h>.
31249         * lib/getopt.in.h (includes): Use split inclusion guard, and
31250         prefer <getopt.h> over include <unistd.h> when one is present.
31251         (option): Also override name of 'struct option'.
31252
31253         same-inode: revert prior change; it is not yet ready
31254         * NEWS: Undo mention of this change.
31255         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31256         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31257         * lib/cycle-check.c (cycle_check): Likewise.
31258         * lib/same.c (same_name): Likewise.
31259         * lib/at-func2.c (at_func2): Likewise.
31260
31261 2009-09-23  Eric Blake  <ebb9@byu.net>
31262
31263         linkat: new module
31264         * modules/linkat: New file.
31265         * lib/at-func2.c (at_func2): Likewise.
31266         * lib/linkat.c (linkat): Likewise.
31267         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31268         * lib/openat-priv.h (at_func2): Add declaration.
31269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31270         * modules/unistd (Makefile.am): Substitute them.
31271         * lib/unistd.in.h (linkat): Declare it.
31272         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31273         * doc/posix-functions/linkat.texi (linkat): Likewise.
31274         * doc/posix-functions/link.texi (link): Tweak wording.
31275         * tests/test-link.c (main): Move guts...
31276         * tests/test-link.h (test_link): ...into new file.
31277         * modules/linkat-tests: New test.
31278         * tests/test-linkat.c: Likewise.
31279         * modules/link-tests (Files): Ship new file.
31280         (Depends-on): Add stdbool.
31281
31282         dirname: add library-safe mdir_name
31283         * lib/dirname.h (mdir_name): New prototype.
31284         * lib/dirname.c (dir_name): Move guts...
31285         (mdir_name): ...to new function that avoids xalloc_die.
31286
31287         fchdir: another mingw fix
31288         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31289         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31290         on mingw (where it has not yet been ported), and make it optional
31291         elsewhere.
31292         (_gl_register_fd): Use it.
31293
31294         same-inode: make SAME_INODE tri-state, to port to mingw
31295         * NEWS: Mention this change.
31296         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31297         st_ino always being 0.
31298         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31299         * lib/cycle-check.c (cycle_check): Likewise.
31300         * lib/same.c (same_name): Likewise.
31301
31302         lstat: avoid mingw compilation error
31303         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31304         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31305         lstat ourselves.
31306         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31307         was adequate.
31308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31309         the checks for lstat.
31310         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31311
31312         link: fix test failure on Solaris 9
31313         * lib/link.c (rpl_link): Don't assume link will catch bogus
31314         trailing slash on source.
31315
31316         test-symlinkat: enhance test
31317         * tests/test-readlink.c (main): Move guts...
31318         * tests/test-readlink.h (test_readlink): ...into new file.
31319         * tests/test-symlink.c (main): Move guts...
31320         * tests/test-symlink.h (test_symlink): ...into new file.
31321         * tests/test-symlinkat.c (main): Use new files for further
31322         coverage.
31323         (do_symlink, do_readlink): New helper functions.
31324         * modules/symlink-tests (Files): Ship new file.
31325         (Depends-on): Add stdbool.
31326         * modules/readlink-tests (Files): Ship new file.
31327         (Depends-on): Add stdbool.
31328         * modules/symlinkat-tests (Files): Use new files.
31329
31330 2009-09-23  Eric Blake  <ebb9@byu.net>
31331
31332         readlink: document portability issue with symlink length
31333         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31334         systems have bogus st_size on symlinks, and mention the
31335         areadlink-with-size module.
31336         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31337         * doc/posix-functions/readlink.texi (readlink): Mention the
31338         areadlink module, and ERANGE failure.
31339         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31340         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31341
31342         readlink: fix Solaris 9 bug with trailing slash
31343         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31344         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31345         * doc/posix-functions/readlink.texi (readlink): Document this.
31346         * modules/readlink-tests: New test.
31347         * tests/test-readlink.c: Likewise.
31348
31349         readlink: fix cygwin 1.5.x bug with return type
31350         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31351         * lib/unistd.in.h (readlink): Use ssize_t.
31352         * lib/readlink.c (readlink): Likewise.
31353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31354         * modules/unistd (Makefile.am): Substitute it.
31355         * lib/unistd.in.h (readlink): Declare replacement.
31356         * doc/posix-functions/readlink.texi (readlink): Document this.
31357
31358         symlink: use throughout gnulib
31359         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31360         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31361         symlink is not used.
31362         * modules/symlinkat (Depends-on): Add symlink.
31363         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31364         * modules/canonicalize-tests (Depends-on): Likewise.
31365         * modules/lstat-tests (Depends-on): Likewise.
31366         * modules/openat-tests (Depends-on): Likewise.
31367         * modules/remove-tests (Depends-on): Likewise.
31368         * modules/rmdir-tests (Depends-on): Likewise.
31369         * modules/unlink-tests (Depends-on): Likewise.
31370         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31371         * tests/test-canonicalize.c (symlink): Likewise.
31372         * tests/test-fstatat.c (symlink): Likewise.
31373         * tests/test-lstat.c (symlink): Likewise.
31374         * tests/test-remove.c (symlink): Likewise.
31375         * tests/test-rmdir.c (symlink): Likewise.
31376         * tests/test-unlink.c (symlink): Likewise.
31377         * tests/test-unlinkat.c (symlink): Likewise.
31378
31379         symlink: new module, for Solaris 9 bug
31380         * modules/symlink: New file.
31381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31382         * lib/symlink.c: Likewise.
31383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31384         * modules/unistd (Makefile.am): Substitute them.
31385         * lib/unistd.in.h (symlink): Declare replacement.
31386         * MODULES.html.sh (File system functions): Mention it.
31387         * doc/posix-functions/symlink.texi (symlink): Likewise.
31388         * modules/symlink-tests: New test.
31389         * tests/test-symlink.c: Likewise.
31390
31391 2009-09-23  Bruno Haible  <bruno@clisp.org>
31392
31393         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31394         when needed.
31395         Test case: gnulib-tool --import --with-tests atexit inttypes.
31396         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31397
31398 2009-09-23  Bruno Haible  <bruno@clisp.org>
31399
31400         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31401         subcommand, not in a subshell.
31402
31403 2009-09-22  Eric Blake  <ebb9@byu.net>
31404
31405         unistd: sort replacement declarations
31406         * lib/unistd.in.h: Sort declarations.
31407
31408         open, openat: minor optimization
31409         * lib/open.c (open): If open succeeded, len is non-zero.
31410         * lib/openat.c (rpl_openat): Likewise.
31411
31412         link-follow: ensure correct result
31413         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31414         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31415         distinguish between possible failures.
31416
31417 2009-09-21  Eric Blake  <ebb9@byu.net>
31418
31419         fts: avoid compiler warning
31420         * lib/fts.c (dirent_inode_sort_may_be_useful)
31421         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31422
31423 2009-09-19  Bruno Haible  <bruno@clisp.org>
31424
31425         * lib/progreloc.c (canonicalize_file_name): New declaration.
31426
31427 2009-09-19  Eric Blake  <ebb9@byu.net>
31428
31429         link: fix quoting
31430         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31431
31432         openat: fix openat bugs on Solaris 9
31433         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31434         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31435         * modules/openat (Depends-on): Add open.
31436         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31437         * modules/fcntl-h (Makefile.am): Substitute it.
31438         * lib/fcntl.in.h (openat): Declare replacement.
31439         * doc/posix-functions/openat.texi (openat): Document this.
31440
31441         openat: move fstatat and unlinkat into correct files
31442         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31443         compiled.
31444         * lib/openat.c (fstatat, unlinkat): Move...
31445         * lib/fstatat.c (fstatat): ...into correct files.
31446         * lib/unlinkat.c (unlinkat): Likewise.
31447
31448         openat: fix unlinkat bugs on Solaris 9
31449         * lib/unlinkat.c (unlinkat): New file.
31450         * modules/openat (Depends-on): Add unlink.
31451         (Files): Distribute it.
31452         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31453         trailing slash behavior is broken.
31454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31455         * modules/unistd (Makefile.am): Substitute it.
31456         * lib/unistd.in.h (unlinkat): Declare replacement.
31457         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31458
31459         openat: fix fstatat bugs on Solaris 9
31460         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31461         stat.
31462         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31463
31464         test-unlinkat: enhance test, to expose Solaris 9 bug
31465         * tests/test-unlink.c (main): Factor guts...
31466         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31467         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31468         * tests/test-rmdir.c (main): Adjust caller.
31469         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31470         (unlinker): New helper function.
31471         (rmdirat): Enhance check.
31472         * modules/rmdir-tests (Depends-on): Add stdbool.
31473         * modules/unlink-tests (Depends-on): Likewise.
31474         (Files): Add test-unlink.h.
31475         * modules/openat-tests (Files): Likewise.
31476         (Depends-on): Add unlinkdir.
31477
31478         test-fstatat: new test, to expose Solaris 9 bugs
31479         * tests/test-stat.c (main): Factor guts...
31480         * tests/test-stat.h (test_stat_func): ...into new file.
31481         * tests/test-lstat.c (main): Factor guts...
31482         * tests/test-lstat.h (test_lstat_func): ...into new file.
31483         * tests/test-fstatat.c: New file.
31484         * modules/stat-tests (Files): Add test-stat.h.
31485         * modules/lstat-tests (Files): Add test-lstat.h.
31486         (Depends-on): Add stdbool.
31487         * modules/openat-tests (Depends-on): Add pathmax.
31488         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31489         (Makefile.am): Run new test.
31490
31491         remove: new module, for mingw and Solaris 9 bugs
31492         * modules/remove: New file.
31493         * lib/remove.c: Likewise.
31494         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31496         * modules/stdio (Makefile.am): Use them.
31497         * lib/stdio.in.h (remove): Declare replacement.
31498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31499         * doc/posix-functions/remove.texi (remove): Likewise.
31500         * modules/remove-tests: New test.
31501         * tests/test-remove.c: Likewise.
31502
31503         unlink: new module, for Solaris 9 bug
31504         * modules/unlink: New file.
31505         * lib/unlink.c: Likewise.
31506         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31508         * modules/unistd (Makefile.am): Use them.
31509         * lib/unistd.in.h (stat): Declare replacement.
31510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31511         * doc/posix-functions/unlink.texi (unlink): Likewise.
31512         * modules/unlink-tests: New test.
31513         * tests/test-unlink.c: Likewise.
31514
31515         lstat: fix Solaris 9 bug
31516         * lib/lstat.c (lstat): Also check for trailing slash on
31517         non-symlink, non-directories.  Use stat module to simplify logic.
31518         * doc/posix-functions/lstat.texi (lstat): Document it.
31519         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31520         (configure.ac): Check for symlink.
31521         * tests/test-lstat.c (main): Add more tests.
31522
31523         stat: add as dependency to other modules
31524         * modules/chown (Depends-on): Add stat.
31525         * modules/euidaccess (Depends-on): Likewise.
31526         * modules/fchdir (Depends-on): Likewise.
31527         * modules/isdir (Depends-on): Likewise.
31528         * modules/link (Depends-on): Likewise.
31529         * modules/lstat (Depends-on): Likewise.
31530         * modules/mkdir-p (Depends-on): Likewise.
31531         * modules/modechange (Depends-on): Likewise.
31532         * modules/open (Depends-on): Likewise.
31533         * modules/readlink (Depends-on): Likewise.
31534         * modules/same (Depends-on): Likewise.
31535
31536         stat: fix Solaris 9 bug
31537         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31538         slash.
31539         * lib/stat.c (rpl_stat): Work around it.
31540         * doc/posix-functions/stat.texi (stat): Update documentation.
31541
31542         stat: new module, for mingw bug
31543         * modules/stat: New file.
31544         * lib/stat.c: Likewise.
31545         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31547         * modules/sys_stat (Makefile.am): Use them.
31548         * lib/sys_stat.in.h (stat): Declare replacement.
31549         * lib/openat.c (fstatat): Deal with lstat and stat being function
31550         macros.
31551         * modules/openat (Depends-on): Add inline.
31552         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31553         * doc/posix-functions/stat.texi (stat): Likewise.
31554         * modules/stat-tests: New test.
31555         * tests/test-stat.c: Likewise.
31556
31557 2009-09-19  Jim Meyering  <meyering@redhat.com>
31558
31559         syntax-check: detect unnecessary inclusion of canonicalize.h
31560         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31561
31562 2009-09-19  Eric Blake  <ebb9@byu.net>
31563
31564         canonicalize-lgpl: adjust clients to use correct header
31565         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31566         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31567         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31568         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31569         * lib/progreloc.c (includes): Likewise.
31570
31571 2009-09-19  Jim Meyering  <meyering@redhat.com>
31572
31573         test-posixtm.c: correct a comment
31574         * tests/test-posixtm.c: Correct first-line comment.
31575         Spotted by Eric Blake.
31576
31577 2009-09-16  Jim Meyering  <meyering@redhat.com>
31578
31579         posixtm-tests: make T const-correct; add a test case
31580         * tests/test-posixtm.c (T): Declare const.
31581         Add a test for -(2^31+1).
31582         Remove useless can-succeed-only-in-2002 test.
31583
31584         posixtm-tests: adjust the sole failing test
31585         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31586         expected output matches what mktime now produces.  Cross-checked via
31587         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31588
31589         posixtm: move #ifdef'd tests into a new module
31590         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31591         * tests/test-posixtm.c: ... this new file.
31592         * modules/posixtm-tests: New module.
31593
31594 2009-09-19  Eric Blake  <ebb9@byu.net>
31595
31596         openat: simplify use of at-func.c
31597         * lib/at-func.c (includes): Include prerequisites here, to
31598         simplify requirements on client files.
31599         * lib/openat-priv.h: Add double-inclusion guard.
31600         * lib/faccessat.c (includes): Simplify.
31601         * lib/fchmodat.c (includes): Likewise.
31602         * lib/fchownat.c (includes): Likewise.
31603         * lib/mkdirat.c (includes): Likewise.
31604         * lib/mkfifoat.c (includes): Likewise.
31605         * lib/symlinkat.c (includes): Likewise.
31606
31607         openat: allow return of fd 0
31608         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31609         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31610         unistd-safer.
31611         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31612         <fcntl.h>; this module does not leak fds.
31613         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31614         must be allowed to return 0, leaving openat_safer to add the
31615         safety.
31616         (openat_permissive): Avoid writing to just-opened fd 2 if
31617         restoring the current directory fails.
31618         * lib/openat-die.c (openat_restore_fail): Add comment.
31619         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31620         (save_cwd): Guarantee safe fd, but without use of open_safer.
31621         * tests/test-openat.c: New test.
31622         * modules/openat-tests (Files, Makefile.am): Distribute and build
31623         new file.
31624
31625         relocatable-prog-wrapper: fix build
31626         * modules/relocatable-prog-wrapper (Files): Update name of
31627         canonicalize m4 file, broken on 2009-09-17.
31628         Reported by emad hajjar <aleppos@hotmail.com>.
31629
31630 2009-09-19  Bruno Haible  <bruno@clisp.org>
31631
31632         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31633         * lib/safe-alloc.c: Likewise.
31634         Reported by Ian Beckwith <ianb@erislabs.net>.
31635
31636 2009-09-18  Bruno Haible  <bruno@clisp.org>
31637
31638         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31639         Reported by <erobles@sensacd.com.mx>.
31640
31641 2009-09-17  Eric Blake  <ebb9@byu.net>
31642
31643         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31644         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31645         slashes when checking if last component is missing.
31646         * tests/test-canonicalize.c (main): Test this.
31647
31648         canonicalize, canonicalize-lgpl: honor // if distinct from /
31649         * modules/canonicalize (Files): Add double-slash-root.m4.
31650         * modules/canonicalize-lgpl (Files): Likewise.
31651         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31652         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31653         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31654         fallback definition.
31655         (canonicalize_filename_mode): Use it to protect //.
31656         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31657         (__realpath): Likewise.
31658         * tests/test-canonicalize.c (main): Test this.
31659         * tests/test-canonicalize-lgpl.c (main): Likewise.
31660         * modules/canonicalize-tests (Depends-on): Add same-inode.
31661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31662
31663         canonicalize-lgpl: fix glibc bug with trailing slash
31664         * m4/canonicalize-lgpl.m4: Move contents...
31665         * m4/canonicalize.m4: ...here.
31666         (gl_CANONICALIZE_LGPL): Factor realpath check...
31667         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31668         glibc 2.3.5 bug, fixed 2005-04-27.
31669         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31670         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31671         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31672         * modules/canonicalize-lgpl (Files): Manage file rename.
31673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31674         * modules/stdlib (Makefile.am): Substitute witness.
31675         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31676         is needed.
31677         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31678         replacement is required.
31679         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31680         * doc/glibc-functions/canonicalize_file_name.texi
31681         (canonicalize_file_name): Document this.
31682         * doc/posix-functions/realpath.texi (realpath): Likewise.
31683
31684         canonicalize-lgpl: reject non-directory with trailing slash
31685         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31686         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31687         catches failures in glibc 2.3.5.
31688         * tests/test-canonicalize.c (main): Likewise.
31689
31690         canonicalize-lgpl: use native realpath if it works
31691         * lib/canonicalize-lgpl.c (realpath): Guard with
31692         FUNC_REALPATH_WORKS.
31693         * lib/stdlib.in.h (realpath): Make declaration optional based on
31694         HAVE_REALPATH.
31695         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31696         native realpath works.
31697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31698         * modules/stdlib (Makefile.am): Substitute witness.
31699
31700         canonicalize, canonicalize-lgpl: use <stdlib.h>
31701         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31702         (Include): Mention <stdlib.h>.
31703         (configure.ac): Mention functions we provide.
31704         * modules/canonicalize (configure.ac): Likewise.
31705         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31706         realpath if canonicalize_file_name is missing.
31707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31708         * modules/stdlib (Makefile.am): Substitute witnesses.
31709         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31710         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31711         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31712         * NEWS: Document this.
31713         * doc/glibc-functions/canonicalize_file_name.texi
31714         (canonicalize_file_name): Likewise.
31715         * doc/posix-functions/realpath.texi (realpath): Likewise.
31716         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31717
31718         test-canonicalize: consolidate into single C program
31719         * tests/test-canonicalize.sh: Delete; move setup into...
31720         * tests/test-canonicalize.c (main): ...the program, making it
31721         easier to run in debugger.  Add some tests.
31722         * modules/canonicalize-tests (Files): Remove unused file.
31723         (Depends-on): Add progname.
31724         (configure.ac, Makefile.am): Simplify.
31725
31726         test-canonicalize-lgpl: consolidate into single C program
31727         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31728         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31729         easier to run in debugger.  Add some tests.
31730         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31731         (configure.ac, Makefile.am): Simplify.
31732
31733         canonicalize: avoid resolvepath
31734         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31735         unnecessary checks.
31736         * lib/canonicalize.c (includes): Simplify.
31737         (canonicalize_file_name): Drop resolvepath implementation.
31738         * modules/canonicalize (Depends-on): Drop filenamecat.
31739
31740         canonicalize: don't lose errno
31741         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31742         over calls to free.
31743
31744         canonicalize: simplify errno handling
31745         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31746         assignment.
31747
31748         canonicalize, canonicalize-lgpl: update module dependencies
31749         * modules/canonicalize (Depends-on): Add extensions, lstat,
31750         pathmax, stdlib.
31751         (Files): Drop pathmax.h.
31752         (configure.ac): Adjust macro name.
31753         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31754         lstat, stdlib, sys_stat.
31755         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31756         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31757         extensions.
31758         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31759         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31760         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31761         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31762         declaration, if available.
31763         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31764         we can rely on the readlink module.
31765         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31766         (includes): Use <unistd.h> unconditionally.
31767
31768 2009-09-17  Eric Blake  <ebb9@byu.net>
31769
31770         maint: make Include sections of modules consistent
31771         * modules/alloca: Use only header name; no need to list #include.
31772         * modules/alloca-opt: Likewise.
31773         * modules/arpa_inet: Likewise.
31774         * modules/canon-host: Likewise.
31775         * modules/configmake: Likewise.
31776         * modules/dirent: Likewise.
31777         * modules/eealloc: Likewise.
31778         * modules/environ: Likewise.
31779         * modules/fchdir: Likewise.
31780         * modules/fcntl: Likewise.
31781         * modules/fcntl-h: Likewise.
31782         * modules/gethrxtime: Likewise.
31783         * modules/gettime: Likewise.
31784         * modules/ignore-value: Likewise.
31785         * modules/inet_ntop: Likewise.
31786         * modules/inet_pton: Likewise.
31787         * modules/inttypes: Likewise.
31788         * modules/isnand-nolibm: Likewise.
31789         * modules/isnanf-nolibm: Likewise.
31790         * modules/mbchar: Likewise.
31791         * modules/mbfile: Likewise.
31792         * modules/mbiter: Likewise.
31793         * modules/mbuiter: Likewise.
31794         * modules/netdb: Likewise.
31795         * modules/netinet_in: Likewise.
31796         * modules/nproc: Likewise.
31797         * modules/pagealign_alloc: Likewise.
31798         * modules/poll: Likewise.
31799         * modules/printf-frexp: Likewise.
31800         * modules/pthread: Likewise.
31801         * modules/putenv: Likewise.
31802         * modules/random_r: Likewise.
31803         * modules/relocatable-prog: Likewise.
31804         * modules/search: Likewise.
31805         * modules/select: Likewise.
31806         * modules/selinux-h: Likewise.
31807         * modules/settime: Likewise.
31808         * modules/signal: Likewise.
31809         * modules/size_max: Likewise.
31810         * modules/socklen: Likewise.
31811         * modules/ssize_t: Likewise.
31812         * modules/stdarg: Likewise.
31813         * modules/stdbool: Likewise.
31814         * modules/stddef: Likewise.
31815         * modules/stdint: Likewise.
31816         * modules/stdio: Likewise.
31817         * modules/stdlib: Likewise.
31818         * modules/string: Likewise.
31819         * modules/strings: Likewise.
31820         * modules/sys_file: Likewise.
31821         * modules/sys_ioctl: Likewise.
31822         * modules/sys_select: Likewise.
31823         * modules/sys_socket: Likewise.
31824         * modules/sys_stat: Likewise.
31825         * modules/sys_time: Likewise.
31826         * modules/sys_times: Likewise.
31827         * modules/sys_utsname: Likewise.
31828         * modules/sys_wait: Likewise.
31829         * modules/sysexits: Likewise.
31830         * modules/time: Likewise.
31831         * modules/times: Likewise.
31832         * modules/tmpfile: Likewise.
31833         * modules/trim: Likewise.
31834         * modules/unistd: Likewise.
31835         * modules/wchar: Likewise.
31836         * modules/wctype: Likewise.
31837
31838 2009-09-17  Bruno Haible  <bruno@clisp.org>
31839
31840         Make getdate.y compile on QNX and NetBSD 5 / i386.
31841         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31842         TIME_T_FITS_IN_LONG_INT.
31843         * lib/getdate.y (long_time_t): New type.
31844         (relative_time): Change type of 'seconds' field to long_time_t.
31845         (get_date): Update types of local variables. Check against overflow
31846         during conversion from long_time_t to time_t.
31847         Reported by Matt Kraai <kraai@ftbfs.org>
31848         and Hasso Tepper <hasso@netbsd.org>.
31849
31850 2009-09-17  Bruno Haible  <bruno@clisp.org>
31851
31852         * modules/COPYING: Update copyright years.
31853         * modules/README: Likeiwse.
31854         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31855         Reported by Ian Beckwith <ianb@erislabs.net>.
31856
31857 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31858
31859         * users.txt: Update references for gnuit package.
31860
31861 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31862
31863         * m4/getdelim.m4: Fix typo in copyright line.
31864
31865 2009-09-17  Bruno Haible  <bruno@clisp.org>
31866
31867         * lib/atoll.c: Use the standard header with GPL copyright.
31868         * lib/argz.in.h: Likewise.
31869         * lib/glob.c: Likewise.
31870         * lib/glob-libc.h: Likewise.
31871         * lib/random_r.c: Likewise.
31872         * lib/siglist.h: Likewise.
31873         * lib/strsignal.c: Likewise.
31874         Reported by Ian Beckwith <ianb@erislabs.net>.
31875
31876 2009-09-17  Eric Blake  <ebb9@byu.net>
31877
31878         rmdir: ensure correct dependency order
31879         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31880
31881 2009-09-17  Bruno Haible  <bruno@clisp.org>
31882
31883         Disable assertion that fails on NetBSD 5 / i386.
31884         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31885         Reported by Sam Steingold <sds@gnu.org>
31886         and Hasso Tepper <hasso@netbsd.org>.
31887
31888 2009-09-16  Eric Blake  <ebb9@byu.net>
31889
31890         unlinkdir: port to mingw
31891         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31892         on which no one can unlink a directory.
31893
31894         stdlib: sort witness names
31895         * modules/stdlib (Makefile.am): Sort replacements.
31896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31897         * lib/stdlib.in.h: Likewise.
31898
31899         parse-duration-tests: avoid link failure
31900         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31901         LIBINTL.
31902         Reported by Tom G. Christensen.
31903
31904         openat-tests: ensure unlinkat behaves like rmdir
31905         * tests/test-rmdir.c (main): Factor guts...
31906         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31907         * modules/rmdir-tests (Files): Ship new file.
31908         * modules/openat-tests: New test.
31909         * tests/test-unlinkat.c: Likewise.
31910
31911         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31912         * modules/rmdir-errno (Status, Notice): Now obsolete.
31913
31914         rmdir: work around cygwin 1.5.x and mingw bugs
31915         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31916         * lib/rmdir.c (rmdir): Work around it.
31917         * modules/rmdir (Status, Notice): No longer obsolete.
31918         (Files): Add dos.m4.
31919         (Depends-on): Add unistd.
31920         (configure.ac): Set witnesses.
31921         (License): Relax to LGPLv2+.
31922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31923         * modules/unistd (Makefile.am): Substitute witnesses.
31924         * lib/unistd.in.h (rmdir): Declare replacement.
31925         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31926         * modules/rmdir-tests: New tests.
31927         * tests/test-rmdir.c: Likewise.
31928
31929 2009-09-15  Eric Blake  <ebb9@byu.net>
31930
31931         fchdir: improve use of replacement functions
31932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31934         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31935         REPLACE_CLOSEDIR.
31936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31937         * modules/sys_stat (Makefile.am): Substitute correct witness.
31938         * modules/dirent (Makefile.am): Likewise.
31939         * modules/unistd (Makefile.am): Likewise.
31940         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31941         * lib/unistd.in.h (dup): Likewise.
31942         * lib/sys_stat.in.h (fstat): Likewise.
31943
31944         maint: ignore gnulib-tool temp files
31945         * .gitignore: Ignore files created during gnulib-tool --test.
31946
31947 2009-09-13  Jim Meyering  <meyering@redhat.com>
31948
31949         posixtm: don't reject a time that specify "60" as the number of seconds
31950         * lib/posixtm.c (posixtime): The code to reject invalid dates
31951         would also reject a time specified with the .60 suffix.
31952         But POSIX allows that, in order to accommodate leap seconds.
31953         So don't reject it.
31954         (main): Adjust tests accordingly.
31955         * modules/posixtm (Depends-on): Add stpcpy.
31956
31957 2009-09-11  Jim Meyering  <meyering@redhat.com>
31958
31959         announce-gen: include [$release_type] in emitted Subject:
31960         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31961         e.g., [stable] in the emitted Subject: line.
31962
31963 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31964
31965         Remove obsolete macros from several modules.
31966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31967         obsolete Autoconf macros with their modern counterparts.
31968         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31969         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31971         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31972         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31973         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31975         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31976         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31977         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31978         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31980         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31981         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31982         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31983         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31984         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31985         * m4/time_r.m4 (gl_TIME_R): Likewise.
31986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31987         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31988         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31989
31990         Fix copyright header in build-aux scripts.
31991         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31992         recommendation.
31993         * build-aux/ncftpput-ftp: Likewise.
31994         * build-aux/update-copyright: Likewise.
31995
31996 2009-09-09  Eric Blake  <ebb9@byu.net>
31997
31998         test-link: allow Linux choice of errno
31999         * tests/test-link.c (main): Relax test for alternate error.
32000
32001         strndup: fix improper m4 caching
32002         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32003         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32004         (gl_PREREQ_STRNDUP): Delete.
32005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32006         * modules/string (Makefile.am): Substitute it.
32007         * lib/string.in.h (strndup): Modernize prototype.
32008
32009         getcwd: port to mingw
32010         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32011         different from the POSIX assumptions made throughout the getcwd
32012         module; fortunately, the mingw getcwd does not need replacement.
32013         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32014         * modules/getcwd-tests: New test.
32015         * tests/test-getcwd.c: Likewise.
32016
32017         link: fix platform bugs
32018         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32019         * lib/link.c (link): Work around them.  Fix related mingw bug.
32020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32021         * modules/unistd (Makefile.am): Substitute it.
32022         * lib/unistd.in.h (link): Declare replacement.
32023         * doc/posix-functions/link.texi (link): Document this.
32024         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32025
32026         test-link: consolidate into single C program, test more cases
32027         * tests/test-link.sh: Delete.
32028         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32029         at least Cygwin and Solaris.
32030         * modules/link-tests (Files): Remove unused file.
32031         (Depends-on): Add errno, sys_stat.
32032         (Makefile.am): Simplify.
32033
32034 2009-09-08  Bruno Haible  <bruno@clisp.org>
32035
32036         Work around towlower, towupper bug on mingw.
32037         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32038         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32039         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32040         * doc/posix-functions/towupper.texi: Likewise.
32041         Reported by Eric Blake.
32042
32043 2009-09-08  Jim Meyering  <meyering@redhat.com>
32044
32045         build: don't try to run autoheader if we don't use it
32046         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32047         is not used in configure.ac.
32048
32049 2009-09-08  Eric Blake  <ebb9@byu.net>
32050
32051         euidaccess: fix compilation error
32052         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32053
32054         rawmemchr: relax license
32055         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32056         okay.
32057         Reported by Jim Meyering.
32058
32059         mkfifoat: new module
32060         * modules/mkfifoat: New file.
32061         * lib/mkfifoat.c: Likewise.
32062         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32063         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32064         * modules/sys_stat (Makefile.am): Use them.
32065         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32066         * MODULES.html.sh (File system functions): Mention module.
32067         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32068         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32069         * modules/mkfifoat-tests: New test.
32070         * tests/test-mkfifoat.c: Likewise.
32071
32072         strchrnul: relax license
32073         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32074         okay.
32075         Reported by Jim Meyering.
32076
32077 2009-09-08  Eric Blake  <ebb9@byu.net>
32078
32079         fstatat: fix compilation on Solaris
32080         * lib/fstatat.c (includes): Add fcntl.h.
32081         Reported by Pádraig Brady.
32082
32083 2009-09-07  Eric Blake  <ebb9@byu.net>
32084
32085         rename: modernize replacement
32086         * modules/rename (Depends-on): Add stdio.
32087         (configure.ac): Declare witness.
32088         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32089         stdio take care of replacement.
32090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32091         * modules/stdio (Makefile.am): Substitute them.
32092         * lib/stdio.in.h (rename): Declare replacement.
32093         * lib/rename.c (includes): Allow cross-compilation to non-windows
32094         machines.
32095         * doc/posix-functions/rename.texi (rename): Improve
32096         documentation.
32097
32098         stdio: sort witness names
32099         * modules/stdio (Makefile.am): Sort replacements.
32100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32101         * lib/stdio.in.h: Likewise.
32102
32103         getcwd: minor cleanups
32104         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32105         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32106
32107         openat: provide more convenience names
32108         * modules/faccessat (configure.ac): Add C witness.
32109         * lib/unistd.in.h (readlinkat): Fix typo.
32110         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32111         convenience wrappers.
32112         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32113         wrappers in syntax checks.
32114
32115 2009-09-06  Eric Blake  <ebb9@byu.net>
32116
32117         doc: fix comments in recent patches
32118         * lib/faccessat.c: Mention correct function.
32119         * lib/fchmodat.c: Likewise.
32120         * lib/fchownat.c: Likewise.
32121         * lib/symlinkat.c: Likewise.
32122         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32123         constants.
32124
32125         faccessat, symlinkat: continue cleanup of previous patch
32126         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32127         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32128         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32130         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32131         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32132         set.
32133
32134 2009-09-06  Bruno Haible  <bruno@clisp.org>
32135
32136         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32137         (fstatat): Declare if GNULIB_FSTATAT is set.
32138         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32139         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32140         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32141         * modules/fcntl-h (Files): Remove m4/openat.m4.
32142         * modules/sys_stat (Files): Remove m4/openat.m4.
32143         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32144         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32145         * modules/unistd (Files): Remove m4/openat.m4.
32146         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32147         GNULIB_OPENAT.
32148         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32149         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32151         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32152         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32153         gl_OPENAT_DEFAULTS.
32154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32155         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32156         Don't require gl_OPENAT_DEFAULTS.
32157         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32158         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32159         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32160         (gl_OPENAT_DEFAULTS): Remove macro.
32161
32162 2009-09-06  Bruno Haible  <bruno@clisp.org>
32163
32164         * modules/openat (configure.ac): Remove unneeded witness.
32165
32166 2009-09-06  Bruno Haible  <bruno@clisp.org>
32167
32168         Set errno to ENOSYS when a function is entirely unsupported.
32169         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32170         EOPNOTSUPP.
32171         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32172         * modules/chown (Depends-on): Remove errno.
32173
32174 2009-09-06  Bruno Haible  <bruno@clisp.org>
32175
32176         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32177
32178 2009-09-06  Bruno Haible  <bruno@clisp.org>
32179
32180         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32181
32182 2009-09-06  Ben Pfaff  <blp@gnu.org>
32183             Bruno Haible  <bruno@clisp.org>
32184
32185         Work around a glibc bug in strtok_r.
32186         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32187         Undefine if UNDEFINE_STRTOK_R is set.
32188         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32190         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32192         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32193         UNDEFINE_STRTOK_R.
32194         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32195
32196 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32197
32198         exclude: minor fix
32199         * lib/exclude.c: Include wctype.h
32200
32201 2009-09-06  Akim Demaille  <demaille@gostai.com>
32202
32203         bootstrap: improve error message
32204         * build-aux/bootstrap (find_tool): Upon failure, report the list
32205         of candidates.
32206         Honor the initial value of the envvar.
32207
32208 2009-09-05  Eric Blake  <ebb9@byu.net>
32209
32210         symlinkat: new module
32211         * modules/symlinkat: New file.
32212         * lib/symlinkat.c: Likewise.
32213         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32215         * modules/unistd (Makefile.am): Use them.
32216         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32217         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32218         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32219         * MODULES.html.sh (File system functions): Mention module.
32220         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32221         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32222         * modules/symlinkat-tests: New test.
32223         * tests/test-symlinkat.c: Likewise.
32224
32225         test-openat-safer: add more checks
32226         * tests/test-openat-safer.c (main): Check more code paths.
32227
32228 2009-09-05  Jim Meyering  <meyering@redhat.com>
32229
32230         syntax-check: detect unnecessary inclusion of openat.h
32231         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32232
32233 2009-09-05  Bruno Haible  <bruno@clisp.org>
32234
32235         Support towlower, towupper.
32236         * doc/posix-functions/towlower.texi: Mention module wctype.
32237         * doc/posix-functions/towupper.texi: Likewise.
32238         * lib/wctype.in.h (towlower, towupper): New functions.
32239         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32240         (ASSERT): New macro.
32241         (e): New variable.
32242         (main): Test also towlower, towupper. Test WEOF argument.
32243         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32244
32245 2009-09-05  Bruno Haible  <bruno@clisp.org>
32246
32247         Fix conversion behaviour when the input is invalid.
32248         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32249         mark occurring in first pass of indirect conversion.
32250         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32251         input.
32252         Found by clang's static analyzer.
32253
32254 2009-09-05  Bruno Haible  <bruno@clisp.org>
32255
32256         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32257         where direct conversion is possible.
32258
32259 2009-09-04  Eric Blake  <ebb9@byu.net>
32260
32261         openat: fail with ENOENT on empty name
32262         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32263         buffer.
32264
32265         link-follow: fix logic bug in prior patch
32266         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32267         reversed sense of yes and no in prior patch.  Avoid confusing
32268         compilation failure with desired semantics.
32269
32270         link-follow: accomodate mingw and cross-compilation
32271         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32272         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32273         cross-compilation results to -1, to make linkat easier to
32274         implement when cross-compiling.  Trivially support mingw.
32275         * modules/link-follow (configure.ac): Call new name.
32276         * NEWS: Mention this.
32277
32278 2009-09-03  Eric Blake  <ebb9@byu.net>
32279
32280         faccessat: compile replacement
32281         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32282         needed.
32283
32284         fts: fix compilation error
32285         * lib/fts.c (includes): Re-add "openat.h", for
32286         openat_needs_fchdir.
32287
32288         faccessat: new module
32289         * modules/faccessat: New file.
32290         * lib/faccessat.c: Likewise.
32291         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32293         * modules/unistd (Makefile.am): Use it.
32294         * lib/unistd.in.h (faccessat): Declare it.
32295         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32296         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32297         * MODULES.html.sh (File system functions): Mention it.
32298         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32299         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32300
32301         euidaccess: prefer POSIX over non-standard implementation
32302         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32303         * lib/euidaccess.c (euidaccess): Use it if available.
32304
32305         openat: make template easier to use
32306         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32307         AT_FUNC_F2 to be undefined.
32308         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32309         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32310         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32311         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32312         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32313         Likewise.
32314         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32315         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32316         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32317         Likewise.
32318
32319         openat: declare in POSIX headers
32320         * NEWS: Mention this.
32321         * modules/openat (configure.ac): Declare witnesses.
32322         (Depends-on): Add fcntl-h, sys_stat, unistd.
32323         (Include): Mention correct headers.
32324         * modules/fcntl-h (Depends-on): Add link-warning.
32325         (Files): Add openat.m4.
32326         (Makefile.am): Substitute witnesses.
32327         * modules/sys_stat (Files, Makefile.am): Likewise.
32328         * modules/unistd (Files, Makefile.am): Likewise.
32329         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32330         (gl_OPENAT_DEFAULTS): New macro.
32331         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32333         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32334         (SYS_STAT_H): Remove unused variable.
32335         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32336         * lib/fcntl--.h (includes): Remove unneeded header.
32337         * lib/openat-safer.c (includes): Likewise.
32338         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32339         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32340         appropriate headers.
32341         (__OPENAT_PREFIX): Delete.
32342         * lib/fcntl.in.h (openat): Provide declaration.
32343         (AT_FDCWD): Fix Solaris bug.
32344         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32345         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32346         * lib/fchmodat.c (includes):  Adjust to find declaration.
32347         * lib/fchownat.c (includes): Likewise.
32348         * lib/mkdirat.c (includes): Likewise.
32349         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32350         still visible.
32351
32352 2009-09-02  Eric Blake  <ebb9@byu.net>
32353
32354         errno: use consistently
32355         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32356         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32357         * lib/canonicalize.c (ELOOP): Likewise.
32358         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32359         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32360         * lib/lchown.c (EOPNOTSUPP): Likewise.
32361         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32362         * lib/savewd.c (ESTALE): Likewise.
32363         * lib/settime.c (ENOSYS): Likewise.
32364         * lib/utimens.c (ENOSYS): Likewise.
32365         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32366         * lib/chdir-safer.c (ELOOP): Likewise.
32367         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32368         * modules/c-stack (Depends-on): Add errno.
32369         * modules/canonicalize (Depends-on): Likewise.
32370         * modules/chdir-safer (Depends-on): Likewise.
32371         * modules/fdopendir (Depends-on): Likewise.
32372         * modules/inet_ntop (Depends-on): Likewise.
32373         * modules/inet_pton (Depends-on): Likewise.
32374         * modules/lchown (Depends-on): Likewise.
32375         * modules/openat (Depends-on): Likewise.
32376         * modules/savewd (Depends-on): Likewise.
32377         * modules/settime (Depends-on): Likewise.
32378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32379
32380         fts: avoid leaking fds
32381         * modules/fts (Depends-on): Add cloexec.
32382         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32383         flag.
32384
32385         fts: make directory fds more robust
32386         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32387         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32388
32389         backupfile, chdir-long, fts, savedir: make safer
32390         * lib/backupfile.c (includes): Use "dirent--.h", since
32391         numbered_backup can write to stderr during readdir.
32392         * lib/savedir.c (includes): Likewise.
32393         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32394         emulation can write to stderr on failure.
32395         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32396         * lib/getcwd.c: Document why opendir_safer is unused.
32397         * lib/glob.c: Likewise.
32398         * lib/scandir.c: Likewise.
32399         * lib/openat-proc.c: Likewise, for open_safer.
32400         * modules/backupfile (Depends-on): Add dirent-safer.
32401         * modules/savedir (Depends-on): Likewise.
32402         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32403         * modules/chdir-long (Depends-on): Add openat-safer.
32404
32405         openat-safer: new module
32406         * modules/openat-safer: New file.
32407         * lib/openat-safer.c: Likewise.
32408         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32409         * lib/fcntl-safer.h (openat_safer): Declare.
32410         * lib/fcntl--.h (openat): Override.
32411         * MODULES.html.sh (File descriptor based I/O): Mention it.
32412         * lib/openat.h: Add double-inclusion guards.
32413         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32414         "fcntl--.h", so we can implement openat.
32415         * modules/openat-safer-tests: New test.
32416         * tests/test-openat-safer.c: New file.
32417
32418         dirent-safer: new module
32419         * modules/dirent-safer: New file.
32420         * lib/dirent--.h: Likewise.
32421         * lib/dirent-safer.h: Likewise.
32422         * lib/opendir-safer.c: Likewise.
32423         * m4/dirent-safer.m4: Likewise.
32424         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32425         * modules/dirent-safer-tests: New test.
32426         * tests/test-dirent-safer.c: New file.
32427         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32428
32429         fdopendir: optimize on mingw
32430         * lib/unistd.in.h (_gl_directory_name): New prototype.
32431         * lib/fchdir.c (_gl_directory_name): Implement it.
32432         (fchdir): Use it to simplify implementation.
32433         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32434         fchdir, when available, to avoid calling [f]chdir().
32435
32436         fdopendir: split into its own module
32437         * lib/openat.c (fdopendir): Move...
32438         * lib/fdopendir.c: ...into new file.
32439         * modules/fdopendir: New module.
32440         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32441         * modules/openat (Depends-on): Add fdopendir.
32442         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32443         fdopendir here.
32444         * modules/savedir (Depends-on): Only need fdopendir, not full
32445         openat.
32446         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32447         * lib/openat.h (fdopendir): Drop prototype.
32448         * lib/dirent.in.h (fdopendir): Provide prototype.
32449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32450         * modules/dirent (Makefile.am): Substitute them.
32451         * MODULES.html.sh (File system functions): Mention it.
32452         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32453         * modules/fdopendir-tests: New file.
32454         * tests/test-fdopendir.c: Likewise.
32455
32456         fchdir: use more consistent macro convention
32457         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32458         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32459         REPLACE_FCHDIR, rather than relying on config.h macros.
32460         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32461         inside a single make-time REPLACE_FCHDIR block, rather than using
32462         the config.h FCHDIR_REPLACEMENT.
32463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32464         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32465         Manage fstat replacement.
32466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32467         REPLACE_FCHDIR.
32468         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32469         (Makefile.am): Substitute REPLACE_FCHDIR.
32470         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32471         FCHDIR_REPLACEMENT.
32472         * lib/dup-safer.c (dup_safer): Likewise.
32473         * lib/dup2.c (rpl_dup2): Likewise.
32474         * lib/dup3.c (rpl_dup3): Likewise.
32475         * lib/open.c (rpl_open): Likewise.
32476
32477         fchdir: simplify error handling, and support dup3
32478         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32479         stdbool, malloc-posix, realloc-posix.
32480         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32481         (ensure_dirs_slot): Return false on allocation failure.
32482         (rpl_dup2): Delete.
32483         (_gl_register_dup): New function.
32484         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32485         (_gl_register_fd): Close fd on allocation failure.
32486         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32487         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32488         prototype.
32489         (rpl_dup2_fchdir): Delete prototype.
32490         * lib/open.c (open): Update caller.
32491         * lib/dup2.c (dup2): Track fchdir metadata.
32492         * lib/dup3.c (dup3): Likewise.
32493         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32495
32496 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32497
32498         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32499         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32500         don't pass arguments to AC_OUTPUT.
32501
32502 2009-09-02  Bruno Haible  <bruno@clisp.org>
32503
32504         * modules/mkdtemp (License): Relicense under LGPLv2+.
32505         Reported by Paolo Bonzini.
32506
32507 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32508
32509         Replace uses of obsolete autoconf macros in Jim's modules.
32510         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32511         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32512         can evoke a warning from autoconf when run with -Wobsolete
32513         enabled.  They were declared obsolete for good reasons (see
32514         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32515         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32516         should not continue using the deprecated macros.
32517         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32518         obsolete Autoconf macros with modern counterparts.
32519         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32520         * m4/dos.m4 (gl_AC_DOS): Likewise.
32521         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32522         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32523         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32524         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32525         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32528         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32529         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32530         Likewise.
32531         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32532         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32534         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32535         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32536         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32537
32538 2009-09-01  Eric Blake  <ebb9@byu.net>
32539
32540         fchdir: fix off-by-one bug in previous patch
32541         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32542         (_gl_unregister_fd): Delete useless if.
32543
32544 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32545
32546         maint.mk: sort the list of syntax-check rules
32547         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32548         easier to get a sense of progress when the rules are run sequentially
32549         and take a long time.
32550
32551 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32552
32553         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32554         * modules/netinet_in: Likewise.
32555         * modules/sys_file: Likewise.
32556         * modules/sys_ioctl: Likewise.
32557         * modules/sys_select: Likewise.
32558         * modules/sys_socket: Likewise.
32559         * modules/sys_stat: Likewise.
32560         * modules/sys_time: Likewise.
32561         * modules/sys_times: Likewise.
32562         * modules/sys_utsname: Likewise.
32563         * modules/sys_wait: Likewise.
32564
32565 2009-09-01  Jim Meyering  <meyering@redhat.com>
32566
32567         fts: help ensure that return values are not ignored
32568         * lib/fts_.h (__GNUC_PREREQ): Define.
32569         (__attribute_warn_unused_result__): Define.
32570         (fts_children, fts_close, fts_open, fts_read): Declare with
32571         __attribute_warn_unused_result__.
32572
32573         fts: fts_close now fails also when closing a dir file descriptor fails
32574         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32575         and propagate to caller, along with errno.
32576
32577         announce-gen: correct formatting in --help output
32578         * build-aux/announce-gen (usage): Move the one-line description in
32579         --help output "up", to where it belongs, just after Usage:.
32580
32581 2009-08-31  Eric Blake  <ebb9@byu.net>
32582
32583         fchdir: port to mingw
32584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32585         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32586         opened, then use a substitute.
32587         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32588         replacement.
32589         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32590         (_gl_register_fd): No need to check stat if open already filters
32591         all directories.
32592         (fchdir): Fix error condition to match POSIX.
32593         * modules/fchdir (Depends-on): Add sys_stat.
32594         * doc/posix-functions/open.texi (open): Document the limitation.
32595         * modules/fchdir-tests: New file.
32596         * tests/test-fchdir.c: Likewise.
32597
32598         canonicalize: allow cross-testing from cygwin to mingw
32599         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32600         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32601         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32602         Likewise.
32603         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32604         target does not support symlinks.
32605         * tests/test-canonicalize-lgpl.sh: Likewise.
32606
32607         chown: avoid compilation warning on mingw
32608         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32609         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32610         mingw.
32611         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32612         * modules/chown (Depends-on): Add errno.
32613
32614 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32615
32616         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32617         command.
32618
32619 2009-08-31  Jim Meyering  <meyering@redhat.com>
32620
32621         canonicalize: remove useless initialization
32622         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32623         initialization of local, "end".
32624
32625 2009-08-30  Bruno Haible  <bruno@clisp.org>
32626
32627         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32628         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32629         ENOSYS.
32630
32631 2009-08-30  Bruno Haible  <bruno@clisp.org>
32632
32633         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32634         /usr/xpg4/bin/tr when it exists.
32635         * tests/test-pipe-filter-gi1.sh: Likewise.
32636
32637 2009-08-30  Bruno Haible  <bruno@clisp.org>
32638
32639         Work around deficient /usr/bin/id program on Solaris.
32640         * tests/test-file-has-acl.sh (ID): New variable.
32641         * tests/test-set-mode-acl.sh (ID): Likewise.
32642         * tests/test-copy-acl.sh (ID): Likewise.
32643         * tests/test-copy-file.sh (ID): Likewise.
32644
32645 2009-08-30  Bruno Haible  <bruno@clisp.org>
32646
32647         New module 'xstriconveh'.
32648         * lib/xstriconveh.h: New file.
32649         * lib/xstriconveh.c: New file.
32650         * modules/xstriconveh: New file.
32651
32652 2009-08-30  Bruno Haible  <bruno@clisp.org>
32653
32654         Make it easier to use mem_cd_iconveh.
32655         * lib/striconveh.h (iconveh_t): New type.
32656         (iconveh_open, iconveh_close): New declarations.
32657         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32658         with a single 'const iconveh_t *' argument.
32659         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32660         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32661         with a single 'const iconveh_t *' argument.
32662         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32663         * tests/test-striconveh.c (main): Update.
32664         * NEWS: Mention the change.
32665
32666 2009-08-30  Bruno Haible  <bruno@clisp.org>
32667
32668         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32669         problem.
32670
32671 2009-08-30  Bruno Haible  <bruno@clisp.org>
32672
32673         Work around iconv_open problem on Solaris.
32674         * lib/iconv_open-solaris.gperf: New file.
32675         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32677         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32678         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32679         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32680         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32681
32682 2009-08-29  Jim Meyering  <meyering@redhat.com>
32683
32684         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32685         * top/maint.mk (cvs-check): Remove target; it was just an alias
32686         to the better-named vc-diff-check.
32687         (maintainer-distcheck): Remove rule.  It was used only from
32688         the (alpha/beta/major) target, and all of its commands but one
32689         were coreutils-specific.
32690         (vc-dist): Remove rule.
32691         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32692         Run vc-diff-check, not vc-dist.
32693         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32694
32695 2009-08-27  Bruno Haible  <bruno@clisp.org>
32696
32697         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32698         of 0.
32699
32700 2009-08-27  Bruno Haible  <bruno@clisp.org>
32701
32702         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32703         compilers.
32704         * doc/func.texi: Document the SunPRO C bug.
32705
32706 2009-08-27  Bruno Haible  <bruno@clisp.org>
32707
32708         Fix link error on Solaris.
32709         * tests/test-parse-duration.c (xstrdup): Remove function.
32710
32711 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32712
32713         ignore-value: handle pointer types, too
32714         * lib/ignore-value.h (__attribute__): Remove definition.
32715         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32716         of a more concise and more-often effective "(void) i" statement.
32717         (ignore_ptr): New function to suppress warnings from functions that
32718         return pointers, and to make it explicit that one function doesn't
32719         handle all cases.
32720
32721 2009-08-25  Bruno Haible  <bruno@clisp.org>
32722
32723         dup2: work around a Linux bug.
32724         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32725         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32726         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32727         Reported by Simon Josefsson.
32728
32729 2009-08-25  Jim Meyering  <meyering@redhat.com>
32730
32731         libguestfs uses gnulib
32732         * users.txt: Add libguestfs.
32733
32734 2009-08-24  Eric Blake  <ebb9@byu.net>
32735
32736         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32737         * lib/pipe2.c (includes): Add binary-io.h.
32738         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32739
32740 2009-08-24  Bruno Haible  <bruno@clisp.org>
32741
32742         Tolerate declared but missing accept4 syscall.
32743         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32744         available.
32745         * lib/sys_socket.in.h (accept4): If the function is already present,
32746         override it.
32747         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32748         * modules/accept4 (Makefile.am): Compile accept4.c always.
32749         Reported by Paolo Bonzini and Eric Blake.
32750
32751 2009-08-23  Bruno Haible  <bruno@clisp.org>
32752
32753         New module 'accept4'.
32754         * lib/sys_socket.in.h (accept4): New declaration.
32755         * lib/accept4.c: New file.
32756         * m4/accept4.m4: New file.
32757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32758         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32759         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32760         HAVE_ACCEPT4.
32761         * modules/accept4: New file.
32762         * doc/glibc-functions/accept4.texi: Mention the new module.
32763
32764 2009-08-24  Jim Meyering  <meyering@redhat.com>
32765
32766         progname: also set global program_invocation_name, when possible
32767         Before this change, a libtool-enabled program that calls glibc's
32768         error function would report the program name as
32769         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32770         * modules/progname (configure.ac): Check for a declaration of
32771         program_invocation_name.
32772         * lib/progname.c:  Include <errno.h>.
32773         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32774         Set program_invocation_name.
32775
32776 2009-08-23  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/dup3.c: Include <string.h>.
32779
32780 2009-08-23  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32783         * lib/pipe2.c (pipe2): Likewise.
32784         Suggested by Eric Blake.
32785
32786 2009-08-23  Bruno Haible  <bruno@clisp.org>
32787
32788         Tolerate declared but missing dup3 syscall.
32789         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32790         * lib/unistd.in.h (dup3): If the function is already present,
32791         override it.
32792         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32793         * modules/dup3 (Makefile.am): Compile dup3.c always.
32794         Reported by Paolo Bonzini.
32795
32796 2009-08-23  Bruno Haible  <bruno@clisp.org>
32797
32798         Tolerate declared but missing pipe2 syscall.
32799         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32800         available.
32801         * lib/unistd.in.h (pipe2): If the function is already present,
32802         override it.
32803         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32804         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32805         Reported by Paolo Bonzini.
32806
32807 2009-08-23  Bruno Haible  <bruno@clisp.org>
32808
32809         * lib/pipe2.c (pipe2): Move #ifs inside function.
32810
32811 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32812
32813         quotearg: document limitations of quote_these_too
32814         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32815         those limitations are created.
32816         * lib/quotearg.h (set_char_quoting): Document that digits and
32817         letters that are special after backslash are not permitted.
32818         (quotearg_char): Cross-reference set_char_quoting documentation.
32819
32820 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32821
32822         quotearg: implement custom_quoting_style
32823         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32824         right_quote fields.
32825         (set_custom_quoting): New public function.
32826         (quotearg_buffer_restyled): Add left_quote and right_quote
32827         arguments, handle them very much like locale quoting, and update
32828         all uses.
32829         (quotearg_n_custom): New public function.
32830         (quotearg_n_custom_mem): New public function.
32831         (quotearg_custom): New public function.
32832         (quotearg_custom_mem): New public function.
32833         * lib/quotearg.h: Prototype and document new public functions.
32834         (enum quoting_style): For escape_quoting_style and
32835         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32836         ignored even though they're otherwise like c_quoting_style.
32837         Add custom_quoting_style member and document with comparison to
32838         clocale_quoting_style.
32839         * tests/test-quotearg.c (custom_quotes): New array.
32840         (custom_results): New array.
32841         (main): Extend to test custom quoting.
32842
32843 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32844
32845         quotearg: fix right quote escaping when it's in quote_these_too
32846         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32847         quote, be sure to prepend only one backslash.
32848         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32849         (main): Test it.
32850
32851 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32852
32853         quotearg-tests: test escaping of embedded locale quotes
32854         * tests/test-quotearg.c (struct result_strings): Add member for
32855         new input.
32856         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32857         (inputs): Add new input.
32858         (results_g): Add expected results.
32859         (flag_results): Likewise.
32860         (locale_results): Likewise.
32861         (compare_strings): Check those.
32862
32863 2009-08-23  Bruno Haible  <bruno@clisp.org>
32864
32865         Tests for module 'dup3'.
32866         * modules/dup3-tests: New file.
32867         * tests/test-dup3.c: New file.
32868
32869         New module 'dup3'.
32870         * lib/unistd.in.h (dup3): New declaration.
32871         * lib/dup3.c: New file.
32872         * m4/dup3.m4: New file.
32873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32874         HAVE_DUP3.
32875         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32876         * modules/dup3: New file.
32877         * doc/glibc-functions/dup3.texi: Mention the new module.
32878
32879 2009-08-23  Bruno Haible  <bruno@clisp.org>
32880
32881         Tweak the dup2 test.
32882         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32883         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32884         the test file is still empty. Fix argument order of lseek.
32885
32886 2009-08-23  Bruno Haible  <bruno@clisp.org>
32887
32888         Avoid test link errors when the modules getopt-gnu, gettext are used.
32889         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32891
32892 2009-08-23  Bruno Haible  <bruno@clisp.org>
32893
32894         Fix getdtablesize() on mingw.
32895         * lib/getdtablesize.c (getdtablesize): Implement differently.
32896         * lib/unistd.in.h (getdtablesize): Improve comment.
32897
32898 2009-08-23  Bruno Haible  <bruno@clisp.org>
32899
32900         New module 'mkostemp'.
32901         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32902         * lib/stdlib.in.h (mksotemp): New declaration.
32903         * lib/mkostemp.c: New file, from glibc with modifications.
32904         * lib/tempname.h (GT_FILE): Remove outdated comment.
32905         (gen_tempname): Add flags argument.
32906         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32907         (__GT_FILE): Map to 1.
32908         (small_open, large_open): Remove macros.
32909         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32910         * lib/mkstemp.c (mkstemp): Update.
32911         * lib/mkdtemp.c (mkdtemp): Likewise.
32912         * m4/mkostemp.m4: New file.
32913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32914         HAVE_MKOSTEMP.
32915         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32916         HAVE_MKOSTEMP.
32917         * modules/mkostemp: New file, based on modules/mkstemp.
32918         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32919         * NEWS: Mention the change.
32920
32921 2009-08-23  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32924         Reported by Eric Blake.
32925
32926 2009-08-23  Bruno Haible  <bruno@clisp.org>
32927
32928         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32929         Reported by Eric Blake.
32930
32931 2009-08-23  Bruno Haible  <bruno@clisp.org>
32932
32933         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32934         * modules/pipe2 (Depends-on): Likewise.
32935
32936 2009-08-23  Eric Blake  <ebb9@byu.net>
32937
32938         fcntl-h: add O_TTY_INIT support
32939         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32940         * tests/test-fcntl-h.c (o): Test it.
32941         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32942
32943         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32944         * modules/fcntl: Move <fcntl.h> header replacement...
32945         * modules/fcntl-h: ...to new name, so as not to collide with
32946         like-named function.
32947         * tests/test-fcntl.c: Rename...
32948         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32949         * modules/fcntl-tests: Rename...
32950         * modules/fcntl-h-tests: ...to this.  Update test file name.
32951         * modules/chdir-long (Depends-on): Update clients.
32952         * modules/chdir-safer (Depends-on): Likewise.
32953         * modules/fcntl-safer (Depends-on): Likewise.
32954         * modules/fts (Depends-on): Likewise.
32955         * modules/mkancesdirs (Depends-on): Likewise.
32956         * modules/mkdir-p (Depends-on): Likewise.
32957         * modules/open (Depends-on): Likewise.
32958         * modules/savewd (Depends-on): Likewise.
32959         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32960         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32961
32962 2009-08-22  Bruno Haible  <bruno@clisp.org>
32963
32964         * modules/binary-io (License): Relicense under LGPL.
32965         * modules/pipe2 (License): Likewise.
32966
32967 2009-08-22  Bruno Haible  <bruno@clisp.org>
32968
32969         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32970         return value.
32971         * lib/pipe-filter-gi.c (filter_init): Likewise.
32972         Reported by Eric Blake.
32973
32974 2009-08-22  Bruno Haible  <bruno@clisp.org>
32975
32976         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32977         * modules/pipe (Depends-on): Add pipe2.
32978
32979 2009-08-22  Bruno Haible  <bruno@clisp.org>
32980
32981         Tests for module 'pipe2'.
32982         * modules/pipe2-tests: New file.
32983         * tests/test-pipe2.c: New file.
32984
32985         New module 'pipe2'.
32986         * lib/unistd.in.h (pipe2): New declaration.
32987         * lib/pipe2.c: New file.
32988         * m4/pipe2.m4: New file.
32989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32990         HAVE_PIPE2.
32991         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32992         * modules/pipe2: New file.
32993         * doc/glibc-functions/pipe2.texi: Mention the new module.
32994
32995 2009-08-22  Bruno Haible  <bruno@clisp.org>
32996
32997         Reference some new glibc functions.
32998         * doc/glibc-functions/accept4.texi: New file.
32999         * doc/glibc-functions/dup3.texi: New file.
33000         * doc/glibc-functions/mkostemp.texi: New file.
33001         * doc/glibc-functions/pipe2.texi: New file.
33002         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33003         (Glibc sys/socket.h): Refer to accept4.
33004         (Glibc unistd.h): Refer to dup3, pipe2.
33005         Reported by Eric Blake.
33006
33007 2009-08-22  Jim Meyering  <meyering@redhat.com>
33008             Bruno Haible  <bruno@clisp.org>
33009
33010         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33011         This makes it so packages using automake-1.11's silent-rules option
33012         can print e.g., a single "GEN    configmake.h" line, rather than
33013         the 30+ statements that perform the job.  If you want to see the
33014         actual commands, you can still run "make V=1".
33015         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33016         so that make output is abbreviated when those variables are defined
33017         appropriately.
33018         * modules/argz: Likewise.
33019         * modules/arpa_inet: Likewise.
33020         * modules/byteswap: Likewise.
33021         * modules/configmake: Likewise.
33022         * modules/dirent: Likewise.
33023         * modules/errno: Likewise.
33024         * modules/fcntl: Likewise.
33025         * modules/float: Likewise.
33026         * modules/fnmatch: Likewise.
33027         * modules/getopt-posix: Likewise.
33028         * modules/glob: Likewise.
33029         * modules/iconv_open: Likewise.
33030         * modules/inttypes: Likewise.
33031         * modules/localcharset: Likewise.
33032         * modules/locale: Likewise.
33033         * modules/math: Likewise.
33034         * modules/netdb: Likewise.
33035         * modules/netinet_in: Likewise.
33036         * modules/poll: Likewise.
33037         * modules/posix_spawnp-tests: Likewise.
33038         * modules/sched: Likewise.
33039         * modules/search: Likewise.
33040         * modules/selinux-h: Likewise.
33041         * modules/signal: Likewise.
33042         * modules/spawn: Likewise.
33043         * modules/stdarg: Likewise.
33044         * modules/stdbool: Likewise.
33045         * modules/stddef: Likewise.
33046         * modules/stdint: Likewise.
33047         * modules/stdio: Likewise.
33048         * modules/stdlib: Likewise.
33049         * modules/string: Likewise.
33050         * modules/strings: Likewise.
33051         * modules/sys_file: Likewise.
33052         * modules/sys_ioctl: Likewise.
33053         * modules/sys_select: Likewise.
33054         * modules/sys_socket: Likewise.
33055         * modules/sys_stat: Likewise.
33056         * modules/sys_time: Likewise.
33057         * modules/sys_times: Likewise.
33058         * modules/sys_utsname: Likewise.
33059         * modules/sys_wait: Likewise.
33060         * modules/sysexits: Likewise.
33061         * modules/time: Likewise.
33062         * modules/unistd: Likewise.
33063         * modules/wchar: Likewise.
33064         * modules/wctype: Likewise.
33065
33066 2009-08-22  Jim Meyering  <meyering@redhat.com>
33067
33068         announce-gen: detect write failure
33069         * build-aux/announce-gen: Add Coda at end.
33070         Remove equivalent-but-more-verbose block at top.
33071
33072 2009-08-19  Akim Demaille  <demaille@gostai.com>
33073
33074         bootstrap: --help to stdout.
33075         * bootstrap (usage): Don't send --help to stderr.
33076         Use a here doc instead of a long string.
33077
33078 2009-08-21  Eric Blake  <ebb9@byu.net>
33079
33080         test-popen-safer: split from test-popen
33081         * tests/test-popen.c (main): Move...
33082         * tests/test-popen.h: ...into new file.
33083         * tests/test-popen-safer2.c: New file.
33084         * modules/popen-tests (Files): Add test-popen.h.
33085         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33086         Suggested by Bruno Haible.
33087
33088         test-fcntl-safer: split from test-open
33089         * tests/test-open.c (main): Move...
33090         * tests/test-open.h: ...into new file.
33091         * tests/test-fcntl-safer.c: New file.
33092         * modules/open-tests (Files): Add test-open.h.
33093         * modules/fcntl-safer-tests: New file.
33094         Suggested by Bruno Haible.
33095
33096         test-fopen-safer: split from test-fopen
33097         * tests/test-fopen.c (main): Move...
33098         * tests/test-fopen.h: ...into new file.
33099         * tests/test-fopen-safer.c: New file.
33100         * modules/fopen-tests (Files): Add test-fopen.h.
33101         * modules/fopen-safer-tests: New file.
33102         Suggested by Bruno Haible.
33103
33104 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33105
33106         popen-safer: test O_CLOEXEC at run-time.
33107         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33108
33109 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33110
33111         fcntl: move more flags to the header
33112         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33113         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33114         * lib/fcntl.in.h: Do both things here.
33115
33116 2009-08-21  Jim Meyering  <meyering@redhat.com>
33117
33118         consistently remove $@-t before redirecting to it
33119         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33120         * modules/alloca-opt: Likewise.
33121         * modules/byteswap: Likewise.
33122         * modules/fnmatch: Likewise.
33123         * modules/getopt-posix: Likewise.
33124         * modules/glob: Likewise.
33125         * modules/poll: Likewise.
33126         * modules/posix_spawnp-tests: Likewise.
33127         * modules/sys_socket: Likewise.
33128         * modules/sysexits: Likewise.
33129
33130 2009-08-21  Eric Blake  <ebb9@byu.net>
33131
33132         popen: simplify access to original popen
33133         * lib/popen.c (rpl_popen): No need to worry about popen being a
33134         macro.
33135         Reported by Bruno Haible.
33136
33137 2009-08-20  Eric Blake  <ebb9@byu.net>
33138
33139         build: avoid some compiler warnings
33140         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33141         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33142         type.
33143         (new_exclude_segment, excluded_file_pattern_p)
33144         (excluded_file_name_p): Reduce scope.
33145         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33146         old-style declaration.
33147
33148 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33149
33150         * tests/test-exclude1.sh: Handle Windows EOL.
33151         * tests/test-exclude2.sh: Likewise.
33152         * tests/test-exclude3.sh: Likewise.
33153         * tests/test-exclude4.sh: Likewise.
33154         * tests/test-exclude5.sh: Likewise.
33155         * tests/test-exclude6.sh: Likewise.
33156         * tests/test-exclude7.sh: Likewise.
33157
33158 2009-08-19  Akim Demaille  <demaille@gostai.com>
33159
33160         bootstrap: find sha1sum when named gsha1sum.
33161         * bootstrap (find_tool): New.
33162         ($SHA1SUM): New.
33163         Use it.
33164
33165 2009-08-20  Jim Meyering  <meyering@redhat.com>
33166
33167         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33168         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33169         expression that converts "." in a file name to "\." in the resulting
33170         regexp.  Start with a dummy statement, so that prior shell variable
33171         definitions are expanded portably.  Reported by Simon Josefsson.
33172
33173 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33174
33175         Fix polling for writeability of a screen buffer.
33176         * lib/poll.c: Distinguish input and screen buffers for the
33177         Win32 implementation.
33178         * lib/select.c: Likewise.
33179
33180 2009-08-19  Eric Blake  <ebb9@byu.net>
33181
33182         popen-safer: prevent popen from clobbering std descriptors
33183         * modules/popen-safer: New file.
33184         * lib/popen-safer.c: Likewise.
33185         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33186         * lib/stdio--.h (popen): Provide override.
33187         * lib/stdio-safer.h (popen_safer): Provide declaration.
33188         * tests/test-popen.c (includes): Partially test this.
33189         * modules/popen-safer-tests: New file, for more tests.
33190         * tests/test-popen-safer.c: Likewise.
33191         * MODULES.html.sh (file stream based Input/Output): Mention it.
33192
33193         tests: test some of the *-safer modules
33194         * modules/fopen-safer (Depends-on): Add fopen.
33195         * modules/fcntl-safer (Depends-on): Add fcntl.
33196         * modules/stdlib-safer (Depends-on): Add stdlib.
33197         (configure.ac): Set indicator.
33198         * modules/unistd-safer (configure.ac): Likewise.
33199         * modules/tmpfile-safer (configure.ac): Likewise.
33200         (Depends-on): Add tmpfile.
33201         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33202         active.
33203         * tests/test-fopen.c (includes): Test safer versions when they are
33204         in use.
33205         * tests/test-open.c (includes): Likewise.
33206
33207         popen: fix cygwin 1.5 bug when stdin closed
33208         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33209         * modules/popen: New file.
33210         * modules/popen-tests: Likewise.
33211         * tests/test-popen.c: Likewise.
33212         * m4/popen.m4: Likewise.
33213         * lib/popen.c: Likewise.
33214         * lib/stdio.in.h (popen): New declaration.
33215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33216         * modules/stdio (Makefile.am): Likewise.
33217         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33218
33219 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33220
33221         maint.mk: give full control over update-copyright exclusions
33222         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33223         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33224         (update-copyright): Don't force inclusion of top-level
33225         ChangeLog.  Don't force exclusion of all COPYING files, but make
33226         them the default exclusion instead.
33227
33228 2009-08-16  Bruno Haible  <bruno@clisp.org>
33229
33230         Fix test failures on Solaris 10.
33231         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33232         tests when Solaris iconv() is used.
33233         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33234         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33235         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33236         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33237         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33238
33239 2009-08-16  Bruno Haible  <bruno@clisp.org>
33240
33241         Fix test failures on Solaris 10.
33242         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33243         'tr' program and pass it as first argument.
33244         * tests/test-pipe-filter-gi1.sh: Likewise.
33245         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33246         program as first argument.
33247         * tests/test-pipe-filter-gi1.c (main): Likewise.
33248
33249 2009-08-16  Eric Blake  <ebb9@byu.net>
33250
33251         fpurge: fix previous commits
33252         * modules/fpurge (Makefile.am): Make replacement conditional,
33253         partially reverting 2007-04-29 change; missed in previous
33254         attempt.
33255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33256         is missing.
33257
33258 2009-08-16  Bruno Haible  <bruno@clisp.org>
33259
33260         Clarify fpurge's effect on the file position.
33261         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33262         * tests/test-fpurge.c (main): Make a second pass for checking the file
33263         position.
33264
33265 2009-08-16  Bruno Haible  <bruno@clisp.org>
33266
33267         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33268         declaration of fpurge is missing.
33269         * tests/test-fpurge.c (main): Check that the file has not more contents
33270         than expected. Close the file before removing it.
33271
33272 2009-08-15  Eric Blake  <ebb9@byu.net>
33273
33274         fpurge: don't wrap working cygwin implementation
33275         * lib/fpurge.c (fpurge): Fix comment typo.
33276         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33277         1.7 to avoid replacement.
33278         * tests/test-fpurge.c (main): Enhance test.
33279
33280 2009-08-15  Eric Blake  <ebb9@byu.net>
33281         and Jim Meyering  <meyering@redhat.com>
33282
33283         test-update-copyright: skip if perl is insufficient
33284         * tests/test-update-copyright.sh: Failure to run maintainer tool
33285         should not cause testsuite failure on cygwin 1.5.
33286
33287 2009-08-14  Eric Blake  <ebb9@byu.net>
33288
33289         doc: mention more functions added in cygwin 1.7.0
33290         * doc/posix-headers/limits.texi (limits.h): Update for recent
33291         cygwin additions.
33292         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33293         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33294         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33295         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33296         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33297
33298 2009-08-14  Eric Blake  <ebb9@byu.net>
33299
33300         maint.mk: simplify update-copyright rule
33301         * top/maint.mk (update-copyright-local): Delete, and document how
33302         to do it in cfg.mk instead.
33303         (update-copyright-exclude-regexp): Delete, and document how to do
33304         it in .x-update-copyright instead.
33305         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33306         exclude ChangeLog.
33307
33308 2009-08-14  Bruno Haible  <bruno@clisp.org>
33309
33310         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33311
33312 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33313
33314         maint.mk: support update-copyright-env
33315         * top/maint.mk (update-copyright-env): Define place-holder.
33316         (update-copyright): Expand $(update-copyright-env) before
33317         invoking update-copyright.
33318
33319 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33320
33321         update-copyright: implement forced reformatting
33322         * build-aux/update-copyright: Implement and document
33323         UPDATE_COPYRIGHT_FORCE.
33324         * tests/test-update-copyright.sh: Test it.
33325
33326 2009-08-14  Eric Blake  <ebb9@byu.net>
33327         and Bruno Haible  <bruno@clisp.org>
33328
33329         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33330         * tests/test-locale.c: Revert previous patch related to NULL.
33331         * tests/test-stdio.c: Likewise.
33332         * tests/test-stdlib.c: Likewise.
33333         * tests/test-string.c: Likewise.
33334         * tests/test-unistd.c: Likewise.
33335         * modules/time-tests (Depends-on): Add verify.
33336         * modules/wchar-tests (Depends-on): Likewise.
33337         * tests/test-time.c: Test for NULL compliance.
33338         * tests/test-wchar.c: Likewise.
33339         * modules/locale (Depends-on): Add stddef.
33340         * modules/stdio (Depends-on): Likewise.
33341         * modules/stdlib (Depends-on): Likewise.
33342         * modules/string (Depends-on): Likewise.
33343         * modules/time (Depends-on): Likewise.
33344         * modules/unistd (Depends-on): Likewise.
33345         * modules/wchar (Depends-on): Likewise.
33346         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33347         * lib/stdlib.in.h (includes): Likewise.
33348         * lib/string.in.h (includes): Likewise.
33349         * lib/time.in.h (includes): Likewise.
33350         * lib/unistd.in.h (includes): Likewise.
33351         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33352         replaced.
33353         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33354         * m4/stddef_h.m4: New file.
33355         * modules/stddef: Likewise.
33356         * lib/stddef.in.h: Likewise.
33357         * modules/stddef-tests: Likewise.
33358         * tests/test-stddef.c: Likewise.
33359         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33360         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33361         * doc/posix-headers/locale.texi (locale.h): Likewise.
33362         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33363         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33364         * doc/posix-headers/string.texi (string.h): Likewise.
33365         * doc/posix-headers/time.texi (time.h): Likewise.
33366         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33367         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33368
33369 2009-08-14  Eric Blake  <ebb9@byu.net>
33370
33371         doc: improve git diff of texinfo files
33372         * .gitattributes: Add rule for *.texi files, with hint on how to
33373         use it.
33374         Copied from m4, and based on a report by Bruno Haible.
33375
33376 2009-08-14  Bruno Haible  <bruno@clisp.org>
33377
33378         Disable multithread support by default on Cygwin 1.5.x for real.
33379         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33380
33381 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33382
33383         update-copyright: much ado about intervals
33384         * build-aux/update-copyright: Implement and document
33385         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33386         of copyright year intervals.
33387         Also, document UPDATE_COPYRIGHT_YEAR.
33388         * tests/test-update-copyright.sh: Test it.
33389
33390         update-copyright: convert 2-digit to 4-digit years
33391         * build-aux/update-copyright: Implement and document.
33392         * tests/test-update-copyright.sh: Update.
33393
33394 2009-08-14  Jim Meyering  <meyering@redhat.com>
33395
33396         test-exclude: avoid coreutils "make check" failure
33397         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33398         just as in test-argmatch.c.
33399
33400 2009-08-13  Eric Blake  <ebb9@byu.net>
33401
33402         test-dup2: fix bad assumption
33403         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33404         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33405
33406         test-version-etc: fix CRLF portability issue
33407         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33408         recognize \r.
33409         * tests/test-argp-version-etc-1.sh: Likewise.
33410
33411         getopt: update client modules
33412         * modules/argp (Depends-on): Use getopt-gnu.
33413         * modules/git-merge-changelog (Depends-on): Likewise.
33414         * modules/long-options (Depends-on): Likewise.
33415         * modules/xstrtol (Depends-on): Likewise.
33416
33417 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33418
33419         * tests/test-version-etc.sh: Don't fail on different
33420         project/version.  Don't fail on CRLF differences.  Rewrite to use
33421         multiple -e instead of multiple sed forks, suggested by Eric Blake
33422         <ebb9@byu.net>.
33423         * tests/test-argp-version-etc-1.sh: Likewise.
33424
33425 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33426
33427         * tests/test-version-etc.sh: Don't fail on different
33428         project/version.
33429
33430 2009-08-12  Bruno Haible  <bruno@clisp.org>
33431
33432         Tests for modules 'getopt-posix', 'getopt-gnu'.
33433         * modules/getopt-posix-tests: New file.
33434         * tests/test-getopt.c: New file.
33435         * tests/test-getopt.h: New file.
33436         * tests/test-getopt_long.h: New file.
33437
33438         New modules 'getopt-posix', 'getopt-gnu'.
33439         * modules/getopt-gnu: New file, renamed from modules/getopt.
33440         * modules/getopt-posix: New file.
33441         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33442         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33443         (gl_GETOPT): Remove macro.
33444         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33445         Disable the test against BSD systems that declare optreset. Test
33446         against mingw bug. Test against lack of support of optional arguments
33447         on many platforms.
33448         * doc/glibc-headers/getopt.texi: Update module name and list of
33449         relevant platforms.
33450         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33451         'getopt-gnu' and more portability problems.
33452         * NEWS: Mention the changes.
33453
33454 2009-08-12  Bruno Haible  <bruno@clisp.org>
33455
33456         Ensure that optarg etc. get declared by <unistd.h>.
33457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33458         AC_USE_SYSTEM_EXTENSIONS.
33459         * modules/getopt (Depends-on): Add 'extensions'.
33460
33461 2009-08-12  Bruno Haible  <bruno@clisp.org>
33462
33463         Avoid test link errors.
33464         * modules/pipe-filter-ii-tests (Makefile.am): Define
33465         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33466         * modules/pipe-filter-gi-tests (Makefile.am): Define
33467         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33469
33470 2009-08-12  Bruno Haible  <bruno@clisp.org>
33471
33472         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33473         gl_GETOPT_SUBSTITUTE before.
33474         (gl_GETOPT): Use it.
33475         * m4/argp.m4 (gl_ARGP): Update.
33476         Reported by Sergey Poznyakoff.
33477
33478         * m4/getopt.m4: Reorder macros.
33479         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33480         (gl_GETOPT_SUBSTITUTE): Remove macro.
33481
33482 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33483
33484         Minor improvement in gitlog-to-changelog
33485
33486         * build-aux/gitlog-to-changelog: New option `--format' makes
33487         output format string configurable.
33488
33489 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33490
33491         Optimize exclude: use hash tables for non-wildcard patterns.
33492
33493         * lib/exclude.c: Include hash.h and mbuiter.h
33494         (struct exclude_pattern, exclude_segment): New data types.
33495         (struct exclude): Rewrite.
33496         (fnmatch_pattern_has_wildcards): New function.
33497         (new_exclude_segment, free_exclude_segment): New functions.
33498         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33499         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33500         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33501         * modules/exclude: Depend on hash and mbuiter.
33502
33503         * modules/exclude-tests: New file.
33504         * tests/test-exclude.c: New file.
33505         * tests/test-exclude1.sh: New file.
33506         * tests/test-exclude2.sh: New file.
33507         * tests/test-exclude3.sh: New file.
33508         * tests/test-exclude4.sh: New file.
33509         * tests/test-exclude5.sh: New file.
33510         * tests/test-exclude6.sh: New file.
33511         * tests/test-exclude7.sh: New file.
33512
33513 2009-08-12  Bruno Haible  <bruno@clisp.org>
33514
33515         Ensure that getopt() gets declared by <unistd.h>.
33516         * lib/unistd.in.h: Conditionally include getopt.h.
33517         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33518         Set GNULIB_UNISTD_H_GETOPT.
33519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33520         GNULIB_UNISTD_H_GETOPT.
33521         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33522
33523 2009-08-12  Bruno Haible  <bruno@clisp.org>
33524
33525         Clarify logic.
33526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33527         gl_replace_getopt instead of GETOPT_H.
33528
33529 2009-08-12  Bruno Haible  <bruno@clisp.org>
33530
33531         * m4/getopt.m4: Add comments.
33532
33533 2009-08-12  Bruno Haible  <bruno@clisp.org>
33534
33535         Disable multithread support by default on Cygwin 1.5.x.
33536         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33537         set gl_use_threads=no if not specified otherwise.
33538
33539 2009-08-11  Bruno Haible  <bruno@clisp.org>
33540
33541         Avoid compilation error on NetBSD 5.0.
33542         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33543         * tests/test-stdio.c: Likewise.
33544         * tests/test-stdlib.c: Likewise.
33545         * tests/test-string.c: Likewise.
33546         * tests/test-unistd.c: Likewise.
33547         Reported by Greg Troxel <gdt@ir.bbn.com>
33548         at <https://savannah.gnu.org/support/?106973>.
33549
33550 2009-08-11  Bruno Haible  <bruno@clisp.org>
33551
33552         * modules/dup2-tests (Depends-on): Remove close.
33553
33554         Undo 2009-07-19 commit.
33555         * modules/acl-tests (Depends-on): Remove close.
33556         * modules/binary-io-tests (Depends-on): Likewise.
33557         * modules/closein-tests (Depends-on): Likewise.
33558         * modules/flock-tests (Depends-on): Likewise.
33559         * modules/fsync-tests (Depends-on): Likewise.
33560         * modules/lseek-tests (Depends-on): Likewise.
33561         * modules/pipe-tests (Depends-on): Likewise.
33562         * modules/posix_spawn-tests (Depends-on): Likewise.
33563         * modules/posix_spawnp-tests (Depends-on): Likewise.
33564         * modules/stat-time-tests (Depends-on): Likewise.
33565         * modules/yesno-tests (Depends-on): Likewise.
33566
33567 2009-08-10  Bruno Haible  <bruno@clisp.org>
33568
33569         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33570
33571 2009-08-10  Bruno Haible  <bruno@clisp.org>
33572
33573         Fix a gcc warning.
33574         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33575
33576 2009-08-10  Bruno Haible  <bruno@clisp.org>
33577
33578         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33579         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33580         not only the first time.
33581         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33582         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33583         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33584         is 1, not only the the first time.
33585
33586 2009-08-10  Bruno Haible  <bruno@clisp.org>
33587
33588         Make it possible to use module 'gethostname' without module 'close'.
33589         * lib/unistd.in.h (close): Evoke a link error only if
33590         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33592         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33593         * modules/unistd (Makefile.am): Substitute
33594         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33595         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33596         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33598         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33599         * modules/sys_ioctl (Makefile.am): Substitute
33600         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33601         * modules/socket (configure.ac): On native Windows, set
33602         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33603         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33604         Reported by Sam Steingold <sds@gnu.org>.
33605
33606 2009-08-10  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33609         * modules/ioctl (configure.ac): Likewise.
33610
33611 2009-08-10  Bruno Haible  <bruno@clisp.org>
33612
33613         Avoid collision between gnulib wrapper and libintl wrapper.
33614         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33615         already defined in intl/printf.c.
33616         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33617         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33618
33619 2009-08-09  Bruno Haible  <bruno@clisp.org>
33620
33621         Make <sys/select.h> really self-contained, also on Solaris 10.
33622         * lib/sys_select.in.h: Include <string.h>.
33623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33624         Solaris 10 problem.
33625         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33626         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33627         Reported by Jim Meyering.
33628
33629 2009-08-09  Bruno Haible  <bruno@clisp.org>
33630
33631         Avoid warnings from 'aclocal' that are due to a use of macro name
33632         AM_XGETTEXT_OPTION that is not defined in automake.
33633         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33634         automake.
33635         * modules/error (configure.ac): Likewise.
33636         * modules/propername (configure.ac): Likewise.
33637         * modules/vasprintf (configure.ac): Likewise.
33638         * modules/verror (configure.ac): Likewise.
33639         * modules/xprintf (configure.ac): Likewise.
33640         * modules/xvasprintf (configure.ac): Likewise.
33641
33642 2009-08-08  Bruno Haible  <bruno@clisp.org>
33643
33644         Avoid compilation error in C++ mode.
33645         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33646         Reported by Sam Steingold <sds@gnu.org>.
33647
33648 2009-08-08  Bruno Haible  <bruno@clisp.org>
33649
33650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33651         for the various Unix platforms.
33652         * doc/posix-headers/limits.texi: Update platforms list regarding
33653         HOST_NAME_MAX.
33654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33655
33656 2009-08-07  Jim Meyering  <meyering@redhat.com>
33657
33658         selinux-at: fix typo in a comment
33659         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33660         Spotted by Paolo Bonzini.
33661
33662         selinux-at: remove redundant m4 code, add documentation
33663         * modules/selinux-at (configure.ac): Remove redundant code.
33664         LIB_SELINUX is already set via the dependent module, selinux-h.
33665         (Include): Add quotes around selinux-at.h.
33666         * lib/selinux-at.h: Add documentation.
33667         Reported by Bruno Haible in
33668         http://marc.info/?l=gnulib-bug&m=124958988300749
33669
33670 2009-08-07  Bruno Haible  <bruno@clisp.org>
33671
33672         Avoid link error on MacOS X 10.3 and 10.4.
33673         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33674         on non-ELF systems.
33675         * lib/argp-pv.c (argp_program_version): Likewise.
33676         Reported by Simon Josefsson.
33677
33678 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33679
33680         * tests/test-version-etc.sh: Use $EXEEXT.
33681
33682 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33683
33684         update-copyright: update documentation to point to maint.mk
33685         * build-aux/update-copyright: Here.
33686
33687 2009-08-06  Jim Meyering  <meyering@redhat.com>
33688
33689         maint.mk: support update-copyright-local
33690         * top/maint.mk (update-copyright-local): Define place-holder.
33691         (update-copyright): Depend on $(update-copyright-local).
33692
33693 2009-08-06  Jim Meyering  <meyering@redhat.com>
33694
33695         selinux-at: new module
33696         Initially written for coreutils, this module will soon be
33697         used by findutils, too.
33698         * MODULES.html.sh [Misc]: Add selinux-at.
33699         * lib/selinux-at.h: New file, from coreutils.
33700         * lib/selinux-at.c: Likewise.
33701         * modules/selinux-at: Likewise.
33702         (License): Change from LGPL to GPL, since it depends
33703         on the GPL'd openat module.
33704
33705         doc: update README
33706         * README: Remove references to cogito.
33707         Remove cvs-repo-updating instructions from 2007.
33708         Don't imply that CVS is better if you have limited disk space.
33709
33710 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33711
33712         update-copyright: support C-style comments
33713         * build-aux/update-copyright: Implement and document.
33714         * tests/test-update-copyright.sh: Test.
33715
33716 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33717
33718         update-copyright: support omitted "(C)"
33719         * build-aux/update-copyright: Implement and document.  Also,
33720         allow variable whitespace before "(C)".
33721         * tests/test-update-copyright.sh: Test.
33722
33723 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33724
33725         update-copyright: don't trip on non-FSF copyright statements
33726         * build-aux/update-copyright: Fix so that the first correctly
33727         formatted FSF copyright statement is recognized no matter what
33728         appears before it.  Update documentation.
33729         * tests/test-update-copyright.sh: Test that.
33730
33731 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33732
33733         update-copyright: clean up code a little
33734         * build-aux/update-copyright: Append "_re" to the name of any
33735         variable holding a regular expression.
33736         Replace "old" and "new" with "stmt" in variable names.
33737         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33738         handled correctly.
33739         Format code more consistently.
33740
33741 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33742
33743         update-copyright-tests: improve portability
33744         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33745         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33746
33747 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33748
33749         update-copyright: support @copyright{} and &copy;
33750         * build-aux/update-copyright: Implement and document.
33751         * tests/test-update-copyright.sh: Test.
33752
33753 2009-08-04  Jim Meyering  <meyering@redhat.com>
33754
33755         update-copyright-tests: correctly test EOL=\r\n handling
33756         * tests/test-update-copyright.sh: Put \r at the end of some lines
33757         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33758
33759         maint.mk: make update-copyright exclusion list more configurable
33760         * top/maint.mk (update-copyright): Default to excluding COPYING,
33761         but allow an override, in case someone does want to update that file.
33762
33763         maint.mk: don't update copyright date in COPYING
33764         * top/maint.mk (update-copyright): Exclude COPYING.
33765
33766         maint.mk: add a copyright-updating rule
33767         * top/maint.mk (update-copyright): New rule.
33768         Derived from coreutils/Makefile.am.
33769
33770         update-copyright: rename some variables
33771         * build-aux/update-copyright: Rename a few variables for clarity.
33772         Tweak syntax.  List Joel E. Denny as coauthor.
33773
33774 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33775
33776         update-copyright: fix bug for 2-digit last year and add tests
33777         * build-aux/update-copyright: Fix bug.
33778         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33779         specified.
33780         * modules/update-copyright-tests: New
33781         * tests/test-update-copyright.sh: New.
33782
33783 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33784
33785         update-copyright: handle leading tabs in line prefix
33786         * build-aux/update-copyright: Count leading tabs as 8 spaces
33787         when computing margin.  This helps with the formatting of
33788         ChangeLogs, for example.
33789         Fix documentation a little.
33790
33791 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33792
33793         update-copyright: support EOL=\r\n
33794         * build-aux/update-copyright: Implement that.
33795
33796 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33797
33798         update-copyright: automatically format copyright statements
33799         * build-aux/update-copyright: Implement that.
33800         Also, be a little more predictable and safer by always failing
33801         when the full copyright format is not perfectly recognized as an
33802         unbroken whole.  Discussed at
33803         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33804         Rewrite documentation.
33805
33806 2009-08-03  Bruno Haible  <bruno@clisp.org>
33807
33808         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33809
33810 2009-08-02  Bruno Haible  <bruno@clisp.org>
33811
33812         Tests for module 'uname'.
33813         * modules/uname-tests: New file.
33814         * tests/test-uname.c: New file.
33815
33816         New module 'uname'.
33817         * lib/uname.c: New file.
33818         * m4/uname.m4: New file.
33819         * modules/uname: New file.
33820         * doc/posix-functions/uname.texi: Mention the new module.
33821
33822 2009-08-02  Bruno Haible  <bruno@clisp.org>
33823
33824         Tests for module 'sys_utsname'.
33825         * modules/sys_utsname-tests: New file.
33826         * tests/test-sys_utsname.c: New file.
33827
33828         New module 'sys_utsname'.
33829         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33830         * m4/sys_utsname_h.m4: New file.
33831         * modules/sys_utsname: New file.
33832         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33833
33834 2009-08-02  Bruno Haible  <bruno@clisp.org>
33835
33836         Implicitly initialize the sockets library.
33837         * lib/gethostname.c: Include sockets.h.
33838         (rpl_gethostname): Invoke gl_sockets_startup.
33839         * lib/socket.c: Include sockets.h.
33840         (rpl_socket): Invoke gl_sockets_startup.
33841         * modules/gethostname (Depends-on): Add sockets.
33842         * modules/socket (Depends-on): Likewise.
33843         * tests/test-poll.c: Don't include sockets.h.
33844         (main): Don't invoke gl_sockets_startup.
33845         * tests/test-select.c: Don't include sockets.h.
33846         (main): Don't invoke gl_sockets_startup.
33847
33848 2009-08-02  Bruno Haible  <bruno@clisp.org>
33849
33850         Allow multiple calls to gl_sockets_startup.
33851         * lib/sockets.c (initialized_sockets_version): New variable.
33852         (gl_sockets_startup): Do nothing if already called for this or a higher
33853         version.
33854         (gl_sockets_cleanup): Reset initialized_sockets_version.
33855
33856 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33857
33858         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33859         different project/version.
33860
33861 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33862             Bruno Haible  <bruno@clisp.org>
33863
33864         Tests for module 'pipe-filter-gi'.
33865         * modules/pipe-filter-gi-tests: New file.
33866         * tests/test-pipe-filter-gi1.sh: New file.
33867         * tests/test-pipe-filter-gi1.c: New file.
33868         * tests/test-pipe-filter-gi2.sh: New file.
33869         * tests/test-pipe-filter-gi2-main.c: New file.
33870         * tests/test-pipe-filter-gi2-child.c: New file.
33871
33872         New module 'pipe-filter-gi'.
33873         * lib/pipe-filter-gi.c: New file.
33874         * modules/pipe-filter-gi: New file.
33875
33876 2009-08-02  Bruno Haible  <bruno@clisp.org>
33877             Paolo Bonzini  <bonzini@gnu.org>
33878
33879         Tests for module 'pipe-filter-ii'.
33880         * modules/pipe-filter-ii-tests: New file.
33881         * tests/test-pipe-filter-ii1.sh: New file.
33882         * tests/test-pipe-filter-ii1.c: New file.
33883         * tests/test-pipe-filter-ii2.sh: New file.
33884         * tests/test-pipe-filter-ii2-main.c: New file.
33885         * tests/test-pipe-filter-ii2-child.c: New file.
33886
33887         New module 'pipe-filter-ii'.
33888         * lib/pipe-filter.h: New file.
33889         * lib/pipe-filter-ii.c: New file.
33890         * lib/pipe-filter-aux.h: New file.
33891         * modules/pipe-filter-ii: New file.
33892
33893 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33894
33895         * lib/gc-libgcrypt.c: Change copyright to FSF.
33896         * lib/gc-gnulib.c: Likewise.
33897
33898 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33899
33900         * lib/gethostname.c: Include limits.h.
33901
33902 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33903             Bruno Haible  <bruno@clisp.org>
33904
33905         Ensure HOST_NAME_MAX as part of the gethostname module.
33906         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33907         define also HOST_NAME_MAX.
33908         * tests/test-gethostname.c: Include <limits.h>.
33909         (main): Check also HOST_NAME_MAX.
33910         * doc/posix-headers/limits.texi: Document the mingw problem.
33911
33912 2009-08-02  Bruno Haible  <bruno@clisp.org>
33913
33914         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33915         Add comments.
33916
33917 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33918
33919         * lib/gethostname.c: Add Windows wrapper.
33920         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33921         * modules/gethostname: Depend on sys_socket & errno, for also
33922         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33923         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33924
33925 2009-07-31  Jim Meyering  <meyering@redhat.com>
33926
33927         getloadavg: fix symbol name in comment
33928         * lib/getloadavg.c: Correct a typo I introduced when adding
33929         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33930         Matt Kraai spotted the problem.
33931
33932 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33933
33934         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33935         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33936         code also if ! defined N_NAME_POINTER.
33937         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33938         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33939         but the n_name member is a 12-byte array.
33940
33941 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33942
33943         update-copyright: generalize comment handling
33944         * build-aux/update-copyright: Handle copyright statements
33945         within more comment styles.
33946         Document usage.
33947         Report any file with an external copyright holder or parse failure.
33948
33949 2009-07-29  Jim Meyering  <meyering@redhat.com>
33950
33951         mktime: correct setting of REPLACE_MKTIME
33952         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33953
33954         update-copyright: new module
33955         * modules/update-copyright: New file.
33956         * build-aux/update-copyright: New file.
33957         * MODULES.html.sh (maint+release support): Add update-copyright.
33958
33959 2009-07-27  Bruno Haible  <bruno@clisp.org>
33960
33961         Fix compilation error when <ctime> is used and mktime is replaced.
33962         * lib/time.in.h (mktime): New declaration.
33963         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33964         REPLACE_MKTIME instead of defining mktime in config.h.
33965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33966         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33967         Reported by Ross McFarland <rwmcfa1@neces.com>.
33968
33969 2009-07-27  Bruno Haible  <bruno@clisp.org>
33970
33971         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33972         Reported by Matt Kraai <mkraai@beckman.com>.
33973
33974 2009-07-25  Jim Meyering  <meyering@redhat.com>
33975
33976         maint.mk: avoid warnings about missing files
33977         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33978         diagnostic when .prev-version does not exist.
33979         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33980         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33981         nonexistent cfg.mk.
33982         Suggestions from Simon Josefsson.
33983
33984 2009-07-25  Bruno Haible  <bruno@clisp.org>
33985
33986         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33987         defined as macros. Needed on QNX 6.4.1.
33988         Reported by Matt Kraai <mkraai@beckman.com>.
33989
33990 2009-07-23  Jim Meyering  <meyering@redhat.com>
33991
33992         maint.mk: invoke "make dist" with a working value of XZ_OPT
33993         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33994
33995 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33996
33997         Make fseeko.c compile on QNX.
33998         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33999
34000 2009-07-22  Peter Simons  <simons@cryp.to>
34001
34002         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34003         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34004         * lib/md4.h: Likewise.
34005         * lib/md5.h: Likewise.
34006         * lib/sha1.h: Likewise.
34007         * lib/sha256.h: Likewise.
34008         * lib/sha512.h: Likewise.
34009
34010         tests-sha1: don't assign literal string to 'char *' variable
34011         * tests/test-sha1.c (main): Declare locals with "const" to match
34012         attributes of the right hand side.
34013
34014 2009-07-21  Eric Blake  <ebb9@byu.net>
34015
34016         dup2: fix more mingw problems
34017         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34018         fd to itself.
34019         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34020         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34021         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34022         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34023         care of mingw bugs.
34024
34025 2009-07-21  Jim Meyering  <meyering@redhat.com>
34026
34027         vc-list-files: avoid failure when /bin/sh is dash
34028         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34029         On some Debian based systems, /bin/sh is a symlink to dash, and running
34030         this command would omit the "/" following each 'tests' prefix:
34031           dash -x build-aux/vc-list-files -C . tests
34032         That is because bash and dash work differently:
34033           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34034           bash ok
34035           dash odd
34036
34037 2009-07-21  Eric Blake  <ebb9@byu.net>
34038
34039         dup2-tests: test previous patch
34040         * modules/dup2-tests: New file.
34041         * tests/test-dup2.c: Likewise.
34042         * tests/test-open.c (main): Avoid unspecified behavior.
34043         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34044         test.
34045
34046         dup2: work around mingw and cygwin 1.5 bug
34047         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34049         * modules/unistd (Makefile.am): Substitute it.
34050         * lib/unistd.in.h (dup2): Declare the replacement.
34051         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34052         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34053         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34054         * modules/execute (Depends-on): Add dup2.
34055         * modules/fseterr (Depends-on): Likewise.
34056         * modules/pipe (Depends-on): Likewise.
34057         * modules/posix_spawn-internal (Depends-on): Likewise.
34058
34059 2009-07-21  Bruno Haible  <bruno@clisp.org>
34060
34061         * modules/.gitattributes: New file.
34062
34063 2009-07-20  Bruno Haible  <bruno@clisp.org>
34064
34065         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34066         (main): Use it.
34067
34068 2009-07-20  Eric Blake  <ebb9@byu.net>
34069
34070         test-pipe: make a bit more robust.
34071         * tests/test-pipe.c (myerr): Allow error messages regardless of
34072         what we do to stderr.
34073         (test_pipe): Rearrange to avoid deadlock.
34074         (child_main): Try a larger read, to ensure we avoided deadlock.
34075         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34076         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34077         if misused.
34078
34079 2009-07-19  Jim Meyering  <meyering@redhat.com>
34080
34081         fts: avoid false-positive cycle-detection
34082         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34083         for each new command line argument.
34084
34085 2009-07-19  Bruno Haible  <bruno@clisp.org>
34086
34087         Fix build error on mingw with the modules sys_select and unistd.
34088         * modules/acl-tests (Depends-on): Add close.
34089         * modules/binary-io-tests (Depends-on): Likewise.
34090         * modules/closein-tests (Depends-on): Likewise.
34091         * modules/flock-tests (Depends-on): Likewise.
34092         * modules/fsync-tests (Depends-on): Likewise.
34093         * modules/lseek-tests (Depends-on): Likewise.
34094         * modules/pipe-tests (Depends-on): Likewise.
34095         * modules/posix_spawn-tests (Depends-on): Likewise.
34096         * modules/posix_spawnp-tests (Depends-on): Likewise.
34097         * modules/stat-time-tests (Depends-on): Likewise.
34098         * modules/yesno-tests (Depends-on): Likewise.
34099
34100 2009-07-19  Bruno Haible  <bruno@clisp.org>
34101
34102         Unify conditionals.
34103         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34104         macros, not at the compiler macros.
34105         * lib/pipe.c: Likewise.
34106         * lib/execute.c: Likewise.
34107         * lib/spawni.c: Likewise.
34108
34109 2009-07-19  Bruno Haible  <bruno@clisp.org>
34110
34111         Fix handling of closed stdin/stdout/stderr on mingw.
34112         * lib/w32spawn.h: Include unistd.h.
34113         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34114         file descriptor with O_NOINHERIT flag.
34115         (fd_safer_noinherit): New function, based on fd-safer.c.
34116         (dup_safer_noinherit): New function, based on dup-safer.c.
34117         (undup_safer_noinherit): New function.
34118         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34119         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34120         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34121         instead of fd_safer.
34122         * tests/test-pipe.c: Include <windows.h>.
34123         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34124         result.
34125
34126         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34127         from main.
34128         (test_pipe): Pass an extra argument for disambiguation.
34129         (main): Invoke parent_main or child_main.
34130
34131         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34132         consistently.
34133
34134 2009-07-18  Eric Blake  <ebb9@byu.net>
34135
34136         test-pipe: fix mingw build
34137         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34138
34139 2009-07-18  Bruno Haible  <bruno@clisp.org>
34140
34141         * modules/pipe-tests (Makefile.am): Fix typo.
34142
34143 2009-07-18  Eric Blake  <ebb9@byu.net>
34144
34145         error: fix mingw build
34146         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34147         Reported by Bruno Haible.
34148
34149         error: avoid undefined use of stdout
34150         * lib/error.c (error, error_at_line): Check that fd 1 is open
34151         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34152         is handling faults and the close_stdout module wants to report the
34153         detection of closed stdout as an error.
34154
34155 2009-07-17  Eric Blake  <ebb9@byu.net>
34156
34157         pipe: be robust in face of closed fds
34158         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34159         should cause child to misbehave.
34160         * modules/pipe-tests: New module.
34161         * tests/test-pipe.c: New file.
34162         * tests/test-pipe.sh: New file.
34163         Reported by Akim Demaille.
34164
34165 2009-07-14  Bruno Haible  <bruno@clisp.org>
34166
34167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34168         Reported by anonymous kc.
34169
34170 2009-07-07  Jim Meyering  <meyering@redhat.com>
34171
34172         maint.mk: don't look for translatable strings in *.m4 or *.mk
34173         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34174         when searching for translatable strings.
34175
34176 2009-07-05  Jim Meyering  <meyering@redhat.com>
34177
34178         remove superfluous parentheses in STREQ definition
34179         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34180         * lib/getugroups.c (STREQ): Likewise.
34181         * lib/fnmatch.c (STREQ): Likewise.
34182         Spotted by Bruno Haible.
34183
34184 2009-07-04  Jim Meyering  <meyering@redhat.com>
34185
34186         argv-iter: new module
34187         * MODULES.html.sh: Add argv-iter.
34188         * lib/argv-iter.c, lib/argv-iter.h: New files.
34189         * modules/argv-iter: New file.
34190         * modules/argv-iter-tests: New file.
34191         * tests/test-argv-iter.c: Test it.
34192
34193 2009-07-04  Bruno Haible  <bruno@clisp.org>
34194
34195         Fix assertion.
34196         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34197         contains more exact copies of a given entry than file2, leave the extra
34198         copies unpaired rather than aborting.
34199         Reported by Eric Blake.
34200
34201 2009-07-02  Bruno Haible  <bruno@clisp.org>
34202
34203         Speedup git-merge-changelog for git cherry-pick.
34204         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34205         (entries_mapping_get): New function, extracted from compute_mapping.
34206         (entries_mapping_reverse_get): New function.
34207         (compute_mapping): Add a 'full' argument. Return the result in a
34208         'struct entries_mapping'.
34209         (main): Update. Access the mappings through entries_mapping_get.
34210         Reported by Eric Blake.
34211
34212 2009-07-02  Bruno Haible  <bruno@clisp.org>
34213
34214         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34215         best_i.
34216
34217 2009-07-02  Bruno Haible  <bruno@clisp.org>
34218
34219         Speed up approximate search for matching ChangeLog entries.
34220         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34221         argument. Call fstrcmp_bounded instead of fstrcmp.
34222         (compute_mapping, try_split_merged_entry, main): Update callers.
34223
34224 2009-07-02  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34227
34228 2009-06-30  Bruno Haible  <bruno@clisp.org>
34229
34230         Reduce the number of uc_is_cased calls.
34231         * lib/unicase.h (casing_suffix_context_t): Add
34232         'first_char_except_ignorable' field.
34233         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34234         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34235         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34236         Update initializer.
34237         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34238         case-ignorable characters.
34239         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34240         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34241         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34242         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34243         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34244
34245 2009-06-30  Bruno Haible  <bruno@clisp.org>
34246
34247         Tests for module 'unicase/ignorable'.
34248         * modules/unicase/ignorable-tests: New file.
34249         * tests/unicase/test-ignorable.c: New file, generated by
34250         gen-uni-tables.
34251
34252         Tests for module 'unicase/cased'.
34253         * modules/unicase/cased-tests: New file.
34254         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34255         * tests/unicase/test-predicate-part1.h: New file, derived from
34256         tests/unictype/test-predicate-part1.h.
34257         * tests/unicase/test-predicate-part2.h: New file, same as
34258         tests/unictype/test-predicate-part2.h.
34259
34260         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34261         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34262         (output_casing_properties): New function.
34263         (main): Call it.
34264         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34265         * lib/unicase/cased.c: Include unictype/bitmap.h.
34266         (uc_is_cased): Define through a bitmap lookup.
34267         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34268         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34269         (uc_is_case_ignorable): Define through a bitmap lookup.
34270         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34271         lib/unictype/bitmap.h.
34272         (Depends-on): Add inline. Clean up.
34273         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34274         lib/unictype/bitmap.h.
34275         (Depends-on): Add inline. Clean up.
34276         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34277         recognition.
34278         * tests/unicase/test-u16-tolower.c (main): Likewise.
34279         * tests/unicase/test-u32-tolower.c (main): Likewise.
34280
34281 2009-06-30  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34284         * lib/unicase/u16-casemap.c: Likewise.
34285         * lib/unicase/u32-casemap.c: Likewise.
34286
34287 2009-06-29  Bruno Haible  <bruno@clisp.org>
34288
34289         Define u32_casefold as a wrapper around u32_ct_casefold.
34290         * lib/unicase/u32-casefold.c: Update.
34291         * modules/unicase/u32-casefold (Depends-on): Add
34292         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34293         unicase/empty-suffix-context. Clean up.
34294
34295         Define u16_casefold as a wrapper around u16_ct_casefold.
34296         * lib/unicase/u16-casefold.c: Update.
34297         * modules/unicase/u16-casefold (Depends-on): Add
34298         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34299         unicase/empty-suffix-context. Clean up.
34300
34301         Define u8_casefold as a wrapper around u8_ct_casefold.
34302         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34303         * lib/unicase/u8-casefold.c: Update.
34304         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34305         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34306
34307         Define u32_totitle as a wrapper around u32_ct_totitle.
34308         * lib/unicase/u32-totitle.c: Update.
34309         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34310         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34311
34312         Define u16_totitle as a wrapper around u16_ct_totitle.
34313         * lib/unicase/u16-totitle.c: Update.
34314         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34315         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34316
34317         Define u8_totitle as a wrapper around u8_ct_totitle.
34318         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34319         functions.
34320         (FUNC): Delegate to U_CT_TOTITLE.
34321         * lib/unicase/u8-totitle.c: Update.
34322         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34323         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34324
34325         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34326         invocation.
34327         * modules/unicase/u32-tolower (Depends-on): Add
34328         unicase/empty-prefix-context, unicase/empty-suffix-context.
34329
34330         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34331         invocation.
34332         * modules/unicase/u16-tolower (Depends-on): Add
34333         unicase/empty-prefix-context, unicase/empty-suffix-context.
34334
34335         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34336         * modules/unicase/u8-tolower (Depends-on): Add
34337         unicase/empty-prefix-context, unicase/empty-suffix-context.
34338
34339         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34340         invocation.
34341         * modules/unicase/u32-toupper (Depends-on): Add
34342         unicase/empty-prefix-context, unicase/empty-suffix-context.
34343
34344         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34345         invocation.
34346         * modules/unicase/u16-toupper (Depends-on): Add
34347         unicase/empty-prefix-context, unicase/empty-suffix-context.
34348
34349         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34350         * modules/unicase/u8-toupper (Depends-on): Add
34351         unicase/empty-prefix-context, unicase/empty-suffix-context.
34352
34353         New module 'unicase/u32-ct-casefold'.
34354         * lib/unicase/u32-ct-casefold.c: New file.
34355         * modules/unicase/u32-ct-casefold: New file.
34356
34357         New module 'unicase/u16-ct-casefold'.
34358         * lib/unicase/u16-ct-casefold.c: New file.
34359         * modules/unicase/u16-ct-casefold: New file.
34360
34361         New module 'unicase/u8-ct-casefold'.
34362         * lib/unicase/u8-ct-casefold.c: New file.
34363         * lib/unicase/u-ct-casefold.h: New file, derived from
34364         lib/unicase/u-casefold.h.
34365         * modules/unicase/u8-ct-casefold: New file.
34366
34367         New module 'unicase/u32-ct-totitle'.
34368         * lib/unicase/u32-ct-totitle.c: New file.
34369         * modules/unicase/u32-ct-totitle: New file.
34370
34371         New module 'unicase/u16-ct-totitle'.
34372         * lib/unicase/u16-ct-totitle.c: New file.
34373         * modules/unicase/u16-ct-totitle: New file.
34374
34375         New module 'unicase/u8-ct-totitle'.
34376         * lib/unicase/u8-ct-totitle.c: New file.
34377         * lib/unicase/u-ct-totitle.h: New file, derived from
34378         lib/unicase/u-totitle.h.
34379         * modules/unicase/u8-ct-totitle: New file.
34380
34381         New module 'unicase/u32-ct-tolower'.
34382         * lib/unicase/u32-ct-tolower.c: New file.
34383         * modules/unicase/u32-ct-tolower: New file.
34384
34385         New module 'unicase/u16-ct-tolower'.
34386         * lib/unicase/u16-ct-tolower.c: New file.
34387         * modules/unicase/u16-ct-tolower: New file.
34388
34389         New module 'unicase/u8-ct-tolower'.
34390         * lib/unicase/u8-ct-tolower.c: New file.
34391         * modules/unicase/u8-ct-tolower: New file.
34392
34393         New module 'unicase/u32-ct-toupper'.
34394         * lib/unicase/u32-ct-toupper.c: New file.
34395         * modules/unicase/u32-ct-toupper: New file.
34396
34397         New module 'unicase/u16-ct-toupper'.
34398         * lib/unicase/u16-ct-toupper.c: New file.
34399         * modules/unicase/u16-ct-toupper: New file.
34400
34401         New module 'unicase/u8-ct-toupper'.
34402         * lib/unicase/u8-ct-toupper.c: New file.
34403         * modules/unicase/u8-ct-toupper: New file.
34404
34405         Add context arguments to u*_casemap functions.
34406         * lib/unicase/unicasemap.h: Include unicase.h.
34407         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34408         suffix_context arguments.
34409         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34410         functions.
34411         (FUNC): Add prefix_context and suffix_context arguments. Use
34412         uc_is_cased and uc_is_case_ignorable.
34413         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34414         * lib/unicase/u16-casemap.c: Likewise.
34415         * lib/unicase/u32-casemap.c: Likewise.
34416         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34417         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34418         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34419         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34420         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34421         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34422
34423         New module 'unicase/u32-suffix-context'.
34424         * lib/unicase/u32-suffix-context.c: New file.
34425         * modules/unicase/u32-suffix-context: New file.
34426
34427         New module 'unicase/u16-suffix-context'.
34428         * lib/unicase/u16-suffix-context.c: New file.
34429         * modules/unicase/u16-suffix-context: New file.
34430
34431         New module 'unicase/u8-suffix-context'.
34432         * lib/unicase/u8-suffix-context.c: New file.
34433         * lib/unicase/u-suffix-context.h: New file.
34434         * modules/unicase/u8-suffix-context: New file.
34435
34436         New module 'unicase/empty-suffix-context'.
34437         * lib/unicase/empty-suffix-context.c: New file.
34438         * modules/unicase/empty-suffix-context: New file.
34439
34440         New module 'unicase/u32-prefix-context'.
34441         * lib/unicase/u32-prefix-context.c: New file.
34442         * modules/unicase/u32-prefix-context: New file.
34443
34444         New module 'unicase/u16-prefix-context'.
34445         * lib/unicase/u16-prefix-context.c: New file.
34446         * modules/unicase/u16-prefix-context: New file.
34447
34448         New module 'unicase/u8-prefix-context'.
34449         * lib/unicase/u8-prefix-context.c: New file.
34450         * lib/unicase/u-prefix-context.h: New file.
34451         * lib/unicase/context.h: New file.
34452         * modules/unicase/u8-prefix-context: New file.
34453
34454         New module 'unicase/empty-prefix-context'.
34455         * lib/unicase/empty-prefix-context.c: New file.
34456         * modules/unicase/empty-prefix-context: New file.
34457
34458         New module 'unicase/ignorable'.
34459         * lib/unicase/ignorable.c: New file.
34460         * modules/unicase/ignorable: New file.
34461
34462         New module 'unicase/cased'.
34463         * lib/unicase/caseprop.h: New file.
34464         * lib/unicase/cased.c: New file.
34465         * modules/unicase/cased: New file.
34466
34467         New functions for case mapping of substrings.
34468         * lib/unicase.h (casing_prefix_context_t): New type.
34469         (unicase_empty_prefix_context): New variable.
34470         (u8_casing_prefix_context, u16_casing_prefix_context,
34471         u32_casing_prefix_context, u8_casing_prefixes_context,
34472         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34473         declarations.
34474         (casing_suffix_context_t): New type.
34475         (unicase_empty_suffix_context): New variable.
34476         (u8_casing_suffix_context, u16_casing_suffix_context,
34477         u32_casing_suffix_context, u8_casing_suffixes_context,
34478         u16_casing_suffixes_context, u32_casing_suffixes_context,
34479         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34480         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34481         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34482         declarations.
34483
34484 2009-06-28  Jim Meyering  <meyering@redhat.com>
34485
34486         boostrap: indent only with spaces
34487         * build-aux/bootstrap: Indent only with spaces, never TABs.
34488
34489         bootstrap: split long lines
34490         * build-aux/bootstrap: Keep line length < 80.
34491
34492         bootstrap: sync from coreutils
34493         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34494         just as autoreconf does.  Verify a list of prerequisite
34495         package-name,version-number pairs if defined in bootstrap.conf.
34496         Refer to README-prereq, if prerequisites are not satisfied.
34497
34498 2009-06-27  Eric Blake  <ebb9@byu.net>
34499
34500         tests: add test for bogus NULL definition
34501         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34502         * tests/test-stdlib.c: Likewise.
34503         * tests/test-string.c: Likewise.
34504         * tests/test-locale.c: Likewise.
34505         * tests/test-unistd.c: Likewise.
34506         * modules/stdio-tests (Depends-on): Add verify.
34507         * modules/stdlib-tests (Depends-on): Likewise.
34508         * modules/string-tests (Depends-on): Likewise.
34509         * modules/locale-tests (Depends-on): Likewise.
34510         * modules/unistd-tests (Depends-on): Likewise.
34511
34512 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34513
34514         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34515         self-explaining comment.
34516         * m4/selinux-selinux-h: Update serial.
34517         (gl_LIBSELINUX): New macro, adding a warning for missing development
34518         packages to code extracted from...
34519         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34520         Add warning for missing development packages here, too.
34521
34522 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34523
34524         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34525
34526 2009-06-25  Eric Blake  <ebb9@byu.net>
34527
34528         version-etc: fix regression
34529         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34530         gcc.
34531         (version_etc): Use it, to catch bugs with trailing NULL.
34532         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34533         (version_etc_va): Fix logic bug.
34534         * modules/version-etc-tests: Add test.
34535         * tests/test-version-etc.c: New file.
34536         * tests/test-version-etc.sh: Likewise.
34537
34538 2009-06-25  Sam Steingold  <sds@gnu.org>
34539
34540         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34541         mbtowc declaration.
34542
34543 2009-06-25  Eric Blake  <ebb9@byu.net>
34544
34545         fpurge: migrate into <stdio.h>
34546         * lib/fpurge.h: Delete...
34547         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34548         * lib/fpurge.c (fpurge): Change declaring header.
34549         * modules/fpurge (Files): Drop deleted file.
34550         (Depends-on): Add stdio.
34551         (configure.ac): Set witness.
34552         * modules/stdio (Makefile.am): Support fpurge macros.
34553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34555         * lib/fflush.c: Update client.
34556         * tests/test-fpurge.c: Likewise.
34557         * NEWS: Mention the change.
34558
34559 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34560
34561         * lib/argp-version-etc.c (program_authors): Add const
34562         qualifier.
34563         * lib/version-etc.c: Fix typos in the comments.
34564         * modules/argp-version-etc: Depends on version-etc.
34565
34566 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34567
34568         argp-version-etc: new module.
34569
34570         * lib/argp-version-etc.c: New file.
34571         * lib/argp-version-etc.h: New file.
34572         * modules/argp-version-etc: New file.
34573         * modules/argp-version-etc-tests: New file.
34574         * tests/test-argp-version-etc.c: New test.
34575         * tests/test-argp-version-etc-1.sh: New test.
34576
34577 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34578
34579         Provide additional interfaces and documentation for version-etc
34580         module.
34581
34582         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34583         interfaces.
34584         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34585         prototypes.
34586
34587 2009-06-24  Bruno Haible  <bruno@clisp.org>
34588
34589         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34590         HAVE_LIB${NAME} macro.
34591         Reported by Sam Steingold <sds@gnu.org>.
34592
34593 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34594
34595         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34596         needed.
34597
34598 2009-06-21  Bruno Haible  <bruno@clisp.org>
34599
34600         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34601         work.
34602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34603         together with LIB${NAME}, LTLIB${NAME}.
34604         Reported by Sam Steingold <sds@gnu.org>.
34605
34606 2009-06-20  Jim Meyering  <meyering@redhat.com>
34607
34608         tests: make sc_require_test_exit_idiom more generic
34609         * top/maint.mk (Exit_witness_file): New overridable variable.
34610         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34611         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34612
34613 2009-06-19  Jim Meyering  <meyering@redhat.com>
34614
34615         hash: reverse order of src/dst parameters in an internal interface
34616         * lib/hash.c (transfer_entries): Reverse order of parameters to
34617         put DST before SRC.  Adjust callers.
34618
34619         tests: test-hash: avoid wholesale duplication
34620         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34621         Instead, use a loop and add a single conditional.
34622
34623         tests: test-hash: allow seed selection via a command line argument
34624         * tests/test-hash.c (get_seed): New function.
34625         (main): Use it.
34626
34627 2009-06-19  Eric Blake  <ebb9@byu.net>
34628
34629         hash: avoid memory leak on allocation failure
34630         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34631         failure.  Factor repeated algorithm...
34632         (transfer_entries): ...into new helper routine.
34633         (hash_delete): React to hash_rehash return value.
34634
34635         hash: reduce memory pressure in hash_rehash no-op case
34636         * lib/hash.c (next_prime): Avoid overflow.
34637         (hash_initialize): Factor bucket size computation...
34638         (compute_bucket_size): ...into new helper function.
34639         (hash_rehash): Use new function and open coding to reduce memory
34640         pressure, and avoid a memory leak in USE_OBSTACK code.
34641         Reported by Jim Meyering.
34642
34643 2009-06-18  Eric Blake  <ebb9@byu.net>
34644
34645         hash: make rotation more obvious
34646         * modules/hash (Depends-on): Add bitrotate and stdint.
34647         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34648         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34649         (SIZE_MAX): Rely on headers for definition.
34650         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34651         (raw_hasher): Use rotr_sz.
34652         Suggested by Jim Meyering.
34653
34654         hash: fix memory leak in last patch
34655         * lib/hash.c (hash_rehash): Avoid memory leak.
34656
34657         hash: avoid no-op rehashing
34658         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34659
34660         hash: provide default callback functions
34661         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34662         (hash_initialize): Use them as defaults.
34663         * tests/test-hash.c (main): Test this.
34664
34665         hash: minor optimization
34666         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34667         when possible.
34668         (hash_initialize): Document this promise.
34669         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34670         * tests/test-hash.c (hash_compare_strings): Test this.
34671
34672 2009-06-18  Bruno Haible  <bruno@clisp.org>
34673
34674         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34675         going to be replaced anyway.
34676
34677 2009-06-18  Bruno Haible  <bruno@clisp.org>
34678
34679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34680         in one place.
34681         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34682         be replaced anyway.
34683
34684 2009-06-18  Eric Blake  <ebb9@byu.net>
34685
34686         hash: check for resize before insertion
34687         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34688         threshold before insertion, so that a pathological hash_rehash
34689         that fills every bucket can still trigger another rehash.
34690
34691 2009-06-18  Jim Meyering  <meyering@redhat.com>
34692
34693         hash-tests: add a loop around the small tests
34694         * tests/test-hash.c (main): Repeat small tests with selected
34695         small initial table sizes.
34696
34697 2009-06-17  Eric Blake  <ebb9@byu.net>
34698
34699         hash: minor cleanups
34700         * lib/hash.h (hash_entry): Make opaque, by moving...
34701         * lib/hash.c (hash_entry): ...here.
34702         (hash_insert): Clarify restrictions on what can be inserted.
34703         (hash_get_next): Clarify when it is safe to remove an element
34704         during traversal.
34705         (check_tuning): Skip verification when tuning is known safe.
34706         (hash_initialize): Clarify restrictions on tuning.
34707
34708 2009-06-17  Jim Meyering  <jim@meyering.net>
34709         and Eric Blake  <ebb9@byu.net>
34710
34711         hash-tests: new module
34712         * modules/hash-tests: New file.
34713         * tests/test-hash.c: New file.
34714
34715 2009-06-17  Eric Blake  <ebb9@byu.net>
34716
34717         strstr-simple: document new module
34718         * MODULES.html.sh: Document new module.
34719
34720         strstr, strcasestr: replace on platforms with broken memchr
34721         * modules/strstr: Split into...
34722         * modules/strstr-simple: ...new module that does not care about
34723         performance, but does care about glibc bug.
34724         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34725         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34726         if platform memchr is broken, per Debian bug 521737.
34727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34728         memchr.
34729         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34730         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34732         * modules/mountlist (Depends-on): Add strstr-simple.
34733         * modules/gen-uni-tables (Depends-on): Likewise.
34734         * modules/argz (Depends-on): Add strstr.
34735
34736 2009-06-17  Bruno Haible  <bruno@clisp.org>
34737
34738         * modules/posix_spawn-internal (Depends-on): Add errno.
34739
34740 2009-06-17  Bruno Haible  <bruno@clisp.org>
34741
34742         Define missing ESTALE on Interix 3.5.
34743         * lib/errno.in.h (ESTALE): Assign a value if missing.
34744         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34746         missing.
34747         * doc/posix-headers/errno.texi: Mention the Interix bug.
34748         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34749
34750 2009-06-15  Eric Blake  <ebb9@byu.net>
34751
34752         memchr, memchr2: add valgrind exception
34753         * lib/memchr.valgrind: New file.
34754         * lib/memchr2.valgrind: New file.
34755         * modules/memchr (Files): Distribute valgrind file.
34756         * modules/memchr2 (Files): Likewise.
34757
34758         docs: memchr is no longer obsolete
34759         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34760         * lib/string.in.h (memchr): Simplify logic.
34761
34762 2009-06-14  Jim Meyering  <meyering@redhat.com>
34763
34764         link-follow: fix the "checking..." message to not mention trailing slash
34765         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34766         never considered trailing slashes.
34767
34768 2009-06-14  Bruno Haible  <bruno@clisp.org>
34769
34770         * m4/memchr.m4: Mention also the bug on IA-64.
34771         * doc/posix-functions/memchr.texi: Likewise.
34772
34773 2009-06-12  Eric Blake  <ebb9@byu.net>
34774
34775         memchr: detect broken x86_64 and alpha implementations
34776         * modules/memchr-tests (Depends-on): Move mmap detection...
34777         * modules/memchr (Depends-on): ...here.
34778         (configure.ac): Set indicator.
34779         * lib/string.in.h (memchr): Declare replacement.
34780         * modules/string (Makefile.am): Trigger replacement.
34781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34783         bugs.
34784         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34785         * modules/getpagesize (License): Relax license.
34786
34787 2009-06-11  Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/idpriv.h: Add more references.
34790
34791 2009-06-08  Bruno Haible  <bruno@clisp.org>
34792
34793         Tests for module 'idpriv-droptemp'.
34794         * modules/idpriv-droptemp-tests: New file.
34795         * tests/test-idpriv-droptemp.sh: New file.
34796         * tests/test-idpriv-droptemp.su.sh: New file.
34797         * tests/test-idpriv-droptemp.c: New file.
34798
34799         New module 'idpriv-droptemp'.
34800         * lib/idpriv-droptemp.c: New file.
34801         * modules/idpriv-droptemp: New file.
34802
34803 2009-06-08  Bruno Haible  <bruno@clisp.org>
34804
34805         Tests for module 'idpriv-drop'.
34806         * modules/idpriv-drop-tests: New file.
34807         * tests/test-idpriv-drop.sh: New file.
34808         * tests/test-idpriv-drop.su.sh: New file.
34809         * tests/test-idpriv-drop.c: New file.
34810
34811         New module 'idpriv-drop'.
34812         * lib/idpriv.h: New file.
34813         * lib-idpriv-drop.c: New file.
34814         * m4/idpriv.m4: New file.
34815         * modules/idpriv-drop: New file.
34816
34817 2009-06-08  Bruno Haible  <bruno@clisp.org>
34818
34819         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34820         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34821         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34822         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34823         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34824         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34825         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34826
34827 2009-06-08  Eric Blake  <ebb9@byu.net>
34828
34829         test-strstr: use memory fence, when possible
34830         * tests/test-strstr.c (main): Use memory fence, in order to be
34831         more likely to trigger Debian bug 521737.
34832         * modules/strstr-tests (Files): Pull in additional files.
34833
34834         memchr: no longer obsolete, for wider field testing
34835         * modules/memchr (Status, Notice): Delete, this module is no
34836         longer obsolete.
34837         * modules/vasnprintf (Depends-on): Add memchr.
34838
34839 2009-06-07  Jim Meyering  <meyering@redhat.com>
34840
34841         hash: declare some functions with the warn_unused_result attribute
34842         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34843
34844 2009-06-07  Bruno Haible  <bruno@clisp.org>
34845
34846         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34847         Reported by Eric Blake.
34848
34849 2009-06-06  Eric Blake  <ebb9@byu.net>
34850
34851         test-alignof: fix typo with long double
34852         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34853         compiler error.
34854
34855 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34856
34857         Escape non-texinfo { and }s.
34858         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34859         markup error.
34860
34861 2009-06-04  Jim Meyering  <meyering@redhat.com>
34862
34863         gitlog-to-changelog: don't infloop on an empty commit log
34864         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34865         Reported by Boris Petersen <transacid@centerim.org>.
34866
34867 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34868
34869         version-etc: extend for packagers
34870         Add three new configure options, intended for packagers:
34871           --with-packager="packager name"
34872           --with-packager-version="packager-specific version"
34873           --with-packager-bug-reports="packager bug reporting"
34874         An example with coreutils:
34875           $ ./configure \
34876             --with-packager=Gentoo \
34877             --with-packager-bug-report=http://bugs.gentoo.org/ \
34878             --with-packager-version="patchset 1.6"
34879           $ ./src/ls --version | head -n2
34880           ls (GNU coreutils) 7.1-dirty
34881           Packaged by Gentoo (patchset 1.6)
34882         Note that the bug reporting info via --help doesn't show up because
34883         coreutils uses its own custom emit_bug_reporting_address() implementation
34884         in src/system.h.  If it didn't, it'd look like:
34885           $ ./src/ls --help | tail -n4
34886           Report bugs to <bug-coreutils@gnu.org>.
34887           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34888           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34889           General help using GNU software: <http://www.gnu.org/gethelp/>.
34890         * lib/version-etc.c: Print new information, if provided.
34891         * m4/version-etc.m4: New file.
34892         * modules/version-etc (Files): Add m4/version-etc.m4.
34893         (configure.ac): Add gl_VERSION_ETC.
34894
34895 2009-05-31  Bruno Haible  <bruno@clisp.org>
34896
34897         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34898         and 'int64_t'.
34899         * modules/alignof-tests (Dependencies): Add stdint.
34900         Reported by Eric Blake.
34901
34902 2009-05-31  Bruno Haible  <bruno@clisp.org>
34903
34904         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34905         restriction due to compiler bugs.
34906         Reported by Eric Blake.
34907
34908 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34909             Bruno Haible  <bruno@clisp.org>
34910
34911         Fix test-alignof failure.
34912         * lib/alignof.h (alignof_slot): New macro.
34913         (alignof_type): New macro, with the same semantics as the previous
34914         'alignof'.
34915         (alignof): Alias to alignof_slot.
34916         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34917         check that the results are usable as constant expressions.
34918
34919 2009-05-31  Bruno Haible  <bruno@clisp.org>
34920
34921         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34922         * tests/test-memchr.c (main): Check that memchr does not read past the
34923         first occurrence of the byte.
34924         * tests/test-strstr.c (main): Update comment.
34925         Suggested by Eric Blake.
34926
34927 2009-05-30  Bruno Haible  <bruno@clisp.org>
34928
34929         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34930         detail how to use dumpbin.
34931         Reported by David Byron <dbyron@dbyron.com>.
34932
34933 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34934
34935         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34936
34937 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34938
34939         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34940
34941 2009-05-28  Bruno Haible  <bruno@clisp.org>
34942
34943         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34944         build-aux/ files.
34945
34946 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34947
34948         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34949
34950 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34951
34952         * gnulib-tool (sed_transform_main_lib_file)
34953         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34954         regexps.
34955
34956 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34957
34958         * tests/test-strstr.c: Add another self-test.
34959         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34960         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34961
34962 2009-05-23  Bruno Haible  <bruno@clisp.org>
34963
34964         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34965         change.
34966
34967 2009-05-21  Bruno Haible  <bruno@clisp.org>
34968
34969         Simplify use of mode_t varargs.
34970         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34971         uses 'mode_t' or 'int'.
34972         * lib/openat.c (openat): Likewise.
34973         * lib/open-safer.c (open_safer): Likewise.
34974         * m4/mode_t.m4: New file.
34975         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34976         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34977         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34978         * modules/open (Files): Add m4/mode_t.m4.
34979         * modules/openat (Files): Likewise.
34980         * modules/fcntl-safer (Files): Likewise.
34981         Suggested by Eric Blake.
34982
34983 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34984
34985         * doc/glibc-functions/fallocate.texi: New file.
34986         * doc/gnulib.texi: Include it.
34987
34988 2009-05-21  Eric Blake  <ebb9@byu.net>
34989             Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34992         invocations.
34993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34994
34995 2009-05-21  Eric Blake  <ebb9@byu.net>
34996             Bruno Haible  <bruno@clisp.org>
34997
34998         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34999         include_next. Fix of 2008-11-20 commit.
35000         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35001         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35002         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35003         NEXT_MATH_H.
35004         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35005         instead of NEXT_MATH_H.
35006
35007 2009-05-21  Bruno Haible  <bruno@clisp.org>
35008
35009         Avoid redefinition warnings for SIZE_MAX.
35010         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35011         Reported by Simon Josefsson.
35012
35013 2009-05-21  Bruno Haible  <bruno@clisp.org>
35014
35015         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35016         AC_CACHE_VAL.
35017
35018 2009-05-20  Bruno Haible  <bruno@clisp.org>
35019
35020         Make zeroptr.h work on mingw.
35021         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35022         mprotect.
35023         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35024         * modules/memchr2-tests (configure.ac): Likewise.
35025         * modules/memcmp-tests (configure.ac): Likewise.
35026         * modules/memmem-tests (configure.ac): Likewise.
35027         * modules/memrchr-tests (configure.ac): Likewise.
35028         Reported by Simon Josefsson.
35029
35030 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35031
35032         * tests/test-glob.c: Include string.h for strcmp prototype.
35033
35034 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35035
35036         * modules/getdelim (Depends-on): Add explicit stdint, although it
35037         was implicitly already pulled in via realloc-posix.
35038         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35039
35040 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35041
35042         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35043         G. Christensen" <tgc@jupiterrise.com>.
35044         * m4/sys_socket_h.m4: Check for sa_family_t.
35045         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35046         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35047         * tests/test-sys_socket.c: Check that sa_family_t works.
35048
35049 2009-05-18  Eric Blake  <ebb9@byu.net>
35050
35051         maint.mk: allow gnulib_dir in VPATH build
35052         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35053
35054 2009-05-15  Jim Meyering  <meyering@redhat.com>
35055
35056         maint.mk: Give gnulib_dir a default definition.
35057         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35058         Thus, most packages no longer need to specify this variable in cfg.mk
35059
35060 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35061
35062         rename.m4: fix typos that would make non-mingw cross-configure fail
35063         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35064
35065 2009-05-13  Eric Blake  <ebb9@byu.net>
35066
35067         mmap-anon: avoid out-of-order autoconf expansion
35068         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35069         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35070         * modules/memchr-tests (Depends-on): Add extensions.
35071         * modules/memchr2-tests (Depends-on): Add extensions.
35072         * modules/memcmp-tests (Depends-on): Add extensions.
35073         * modules/memmem-tests (Depends-on): Add extensions.
35074         * modules/memrchr-tests (Depends-on): Add extensions.
35075
35076 2009-05-13  Bruno Haible  <bruno@clisp.org>
35077
35078         Make some tests ISO C 99 compliant.
35079         * tests/zerosize-ptr.h: New file.
35080         * tests/test-memchr.c: Include zerosize-ptr.h.
35081         (main): Use a zero-size object pointer instead of NULL.
35082         * tests/test-memchr2.c: Include zerosize-ptr.h.
35083         (main): Use a zero-size object pointer instead of NULL.
35084         * tests/test-memcmp.c: Include zerosize-ptr.h.
35085         (main): Use a zero-size object pointer instead of NULL.
35086         * tests/test-memmem.c: Include zerosize-ptr.h.
35087         (main): Use a zero-size object pointer instead of NULL.
35088         * tests/test-memrchr.c: Include zerosize-ptr.h.
35089         (main): Use a zero-size object pointer instead of NULL.
35090         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35091         m4/mmap-anon.m4.
35092         (Depends-on): Add getpagesize.
35093         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35094         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35095         m4/mmap-anon.m4.
35096         (Depends-on): Add getpagesize.
35097         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35098         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35099         m4/mmap-anon.m4.
35100         (Depends-on): Add getpagesize.
35101         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35102         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35103         m4/mmap-anon.m4.
35104         (Depends-on): Add getpagesize.
35105         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35106         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35107         m4/mmap-anon.m4.
35108         (Depends-on): Add getpagesize.
35109         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35110
35111 2009-05-12  Bruno Haible  <bruno@clisp.org>
35112
35113         Tests for module 'alignof'.
35114         * modules/alignof-tests: New file.
35115         * tests/test-alignof.c: New file.
35116
35117 2009-05-12  Bruno Haible  <bruno@clisp.org>
35118
35119         Fix alignof macro.
35120         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35121         vendor compilers that are always correct.
35122
35123 2009-05-12  Bruno Haible  <bruno@clisp.org>
35124
35125         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35126         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35127         not whether its fully works.
35128
35129 2009-05-12  Bruno Haible  <bruno@clisp.org>
35130
35131         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35132
35133 2009-05-12  Jim Meyering  <meyering@redhat.com>
35134
35135         * top/maint.mk: Adjust backslash alignment.
35136
35137 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35138
35139         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35140
35141 2009-05-11  Eric Blake  <ebb9@byu.net>
35142
35143         argp: avoid undefined behavior
35144         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35145         macros.
35146
35147 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35148
35149         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35150         user.name to prevent git commit from complaining.
35151
35152 2009-05-10  Bruno Haible  <bruno@clisp.org>
35153
35154         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35155         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35156         it rewrites every file name only once.
35157         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35158
35159 2009-05-08  Bruno Haible  <bruno@clisp.org>
35160
35161         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35162         instead of 'max'.
35163
35164 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35165
35166         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35167         sockaddr_storage test.
35168
35169 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35170
35171         * modules/sys_socket (Makefile.am): Substitute
35172         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35173         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35174         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35175         * tests/test-sys_socket.c: Check sockaddr_storage.
35176
35177 2009-05-08  Bruno Haible  <bruno@clisp.org>
35178
35179         New module 'alignof'.
35180         * lib/alignof.h: New file.
35181         * modules/alignof: New file.
35182
35183 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35184             Bruno Haible  <bruno@clisp.org>
35185
35186         Fix test-file-has-acl on FreeBSD.
35187         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35188         mask is implicitly added.
35189         * tests/test-file-has-acl.c: Include <signal.h>.
35190         (main): Terminate the test after 5 seconds.
35191         * modules/acl-tests (configure.ac): Check for alarm function.
35192
35193 2009-05-04  Bruno Haible  <bruno@clisp.org>
35194
35195         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35197         * modules/errno (configure.ac): Drop AC_REQUIRE.
35198         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35199         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35200
35201 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35202
35203         * modules/glob-tests: New module.
35204         * tests/test-glob.c: Add.
35205
35206 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35207
35208         * modules/fnmatch-tests: New module.
35209         * tests/test-fnmatch.c: Add.
35210
35211 2009-05-04  Eric Blake  <ebb9@byu.net>
35212
35213         maint: make the new no-submodule-changes rule VPATH-safe
35214         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35215
35216 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35217             Bruno Haible  <bruno@clisp.org>
35218
35219         acl: Fix infinite loop on FreeBSD.
35220         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35221         of return value from acl_get_entry.
35222         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35223         Likewise.
35224
35225 2009-05-03  Bruno Haible  <bruno@clisp.org>
35226
35227         * lib/acl-internal.h (acl_entries): Clarify return value.
35228         * lib/acl_entries.c (acl_entries): Likewise.
35229
35230 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35231
35232         Bug fix in acl module.
35233         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35234
35235 2009-05-03  Bruno Haible  <bruno@clisp.org>
35236
35237         Create gperf-generated file in the source dir, not in the build dir.
35238         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35239         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35240         * modules/unicase/locale-language (unicase/locale-languages.h):
35241         Likewise.
35242         * modules/unicase/special-casing (unicase/special-casing-table.h):
35243         Likewise.
35244         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35245         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35246         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35247         Reported by Ralf Wildenhues.
35248
35249 2009-05-03  Bruno Haible  <bruno@clisp.org>
35250
35251         * modules/fnmatch (Description, configure.ac): Taken from
35252         fnmatch-posix.
35253         * modules/fnmatch-posix: Turn into a symbolic reference to the
35254         'fnmatch' module, and deprecate.
35255         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35256
35257 2009-05-03  Bruno Haible  <bruno@clisp.org>
35258
35259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35260         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35261         Reported by Ralf Wildenhues.
35262
35263 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35264
35265         * m4/fnmatch.m4: Fix fnmatch re-define.
35266
35267 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35268
35269         priv-set: new module and tests; adapt write-any-file
35270         * lib/priv-set.c: New file.
35271         * lib/priv-set.h: New file.
35272         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35273         * lib/write-any-file.c: Simplify by using priv-set module.
35274         * m4/priv-set.m4: New file.
35275         * modules/priv-set: New file.
35276         * modules/unlinkdir: Add dependency on priv-set module.
35277         * modules/write-any-file: Likewise.
35278
35279         Tests for module 'priv-set'.
35280         * modules/priv-set-tests: New file.
35281         * tests/test-priv-set.c: New file.
35282
35283 2009-05-03  Jim Meyering  <meyering@redhat.com>
35284             Bruno Haible  <bruno@clisp.org>
35285
35286         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35287         use the converted UTF-8 variant of the name instead.
35288
35289 2009-05-03  Jim Meyering  <meyering@redhat.com>
35290
35291         tests: tighten some getdate tests
35292         * tests/test-getdate.c (main): Tighten tests: require equality,
35293         not just greater than.  Set TZ envvar to UTC0.
35294
35295 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35296
35297         getdate: correctly interpret "next monday" when run on a Monday
35298         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35299         that e.g., "next tues" (when run on a tuesday) results in a date
35300         that is one week in the future, and not today's date.
35301         I.e., add a week when the wday is the same as the current one.
35302         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35303         and earlier by Martin Bernreuther and Jan Minář.
35304         * tests/test-getdate.c (main): Check that "next DAY" is always in
35305         the future and that "last DAY" is always in the past.
35306
35307 2009-05-02  Jim Meyering  <meyering@redhat.com>
35308
35309         build: ensure that a release build fails when a submodule is unclean
35310         * top/maint.mk (no-submodule-changes): New rule.
35311         (alpha beta major): Depend on it.
35312
35313 2009-05-02  Bruno Haible  <bruno@clisp.org>
35314
35315         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35316         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35317         shell variable gl_fnmatch_required to detect which variant is
35318         requested.
35319         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35320         gl_FUNC_FNMATCH_POSIX.
35321         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35322         exclude fnmatch-posix.
35323
35324 2009-05-02  Bruno Haible  <bruno@clisp.org>
35325
35326         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35327         * modules/mbsrtowcs (License): Change to LGPLv2+.
35328         * modules/strnlen1 (License): Likewise.
35329         Reported by Simon Josefsson.
35330
35331 2009-05-02  Bruno Haible  <bruno@clisp.org>
35332
35333         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35334         "cross".
35335         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35336         gnulib-tool was called with option --source-base=lib.
35337
35338 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35339
35340         Use automake *-local hooks without commands, for extensibility.
35341         * modules/localcharset (Makefile.am): Rename install-exec-local
35342         rule to install-exec-localcharset, and make it a prerequisite of
35343         install-exec-local.  Likewise, rename the uninstall-local rule to
35344         uninstall-localcharset, and make it a prerequisite of the former.
35345
35346 2009-05-01  Bruno Haible  <bruno@clisp.org>
35347
35348         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35349         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35350         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35352         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35353         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35354         m4/locale-zh.m4, m4/codeset.m4.
35355
35356         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35357         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35358         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35359         m4/locale-zh.m4.
35360
35361         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35362         REPLACE_WCRTOMB if mbstate_t must be replaced.
35363         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35364         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35365
35366 2009-05-01  Bruno Haible  <bruno@clisp.org>
35367
35368         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35369         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35370         dngettext, dcngettext, textdomain, bindtextdomain,
35371         bind_textdomain_codeset): Undefine before redefining.
35372
35373 2009-04-30  Bruno Haible  <bruno@clisp.org>
35374
35375         Fix bug introduced on 2009-04-25.
35376         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35377         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35378         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35379         is defined.
35380         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35381         is defined.
35382         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35383         is defined.
35384         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35385
35386 2009-04-28  Bruno Haible  <bruno@clisp.org>
35387
35388         Comment tweaks.
35389         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35390         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35391         * lib/unicase.h (u*_casexfrm): Likewise.
35392         Reported by Paolo Bonzini.
35393
35394 2009-04-28  Bruno Haible  <bruno@clisp.org>
35395
35396         Fix a compilation error.
35397         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35398         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35399         Reported by Jim Meyering.
35400
35401 2009-04-27  Bruno Haible  <bruno@clisp.org>
35402
35403         New module 'libunistring'.
35404         * modules/libunistring: New file.
35405         * m4/libunistring.m4: New file.
35406         * MODULES.html.sh (Unicode string functions): Add it.
35407
35408 2009-04-27  Eric Blake  <ebb9@byu.net>
35409
35410         maint.mk: allow package-specific header to provide <config.h>
35411         * top/maint.mk (sc_require_config_h): New variable.
35412         (sc_require_config_h, sc_require_config_h_first): Use it.
35413
35414 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35415
35416         * top/maint.mk (sc_avoid_if_before_free): Except
35417         useless-if-before-free script.
35418
35419 2009-04-27  Eric Blake  <ebb9@byu.net>
35420
35421         maintainer-makefile: depend on all required helper scripts
35422         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35423         useless-if-before-free.
35424         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35425         version, rather than assuming gnulib checkout is available.
35426         Reported by Simen Josefsson.
35427
35428 2009-04-26  Bruno Haible  <bruno@clisp.org>
35429
35430         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35431         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35432         "../" or "..".
35433
35434 2009-04-26  Bruno Haible  <bruno@clisp.org>
35435
35436         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35437         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35438         AC_LIB_HAVE_LINKFLAGS.
35439
35440 2009-04-26  Bruno Haible  <bruno@clisp.org>
35441
35442         Simplify calling convention of u*_conv_from_encoding.
35443         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35444         u32_conv_from_encoding): Expect a resultbuf argument and return the
35445         result directly as a pointer.
35446         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35447         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35448         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35449         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35450         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35451         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35452         Update.
35453         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35454         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35455         * lib/vasnprintf.c (VASNPRINTF): Update.
35456         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35457         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35458         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35459         * NEWS: Mention the change.
35460
35461 2009-04-26  Bruno Haible  <bruno@clisp.org>
35462
35463         Simplify calling convention of u*_conv_to_encoding.
35464         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35465         u32_conv_to_encoding): Expect a resultbuf argument and return the
35466         result directly as a pointer.
35467         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35468         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35469         freeing scaled_offsets if mem_iconveha failed.
35470         * lib/unicase/u-casexfrm.h (FUNC): Update.
35471         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35472         * lib/vasnprintf.c (VASNPRINTF): Update.
35473         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35474         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35475         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35476         * NEWS: Mention the change.
35477
35478 2009-04-26  Bruno Haible  <bruno@clisp.org>
35479
35480         Avoid test failures on AIX and OSF/1.
35481         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35482         malloc(0).
35483         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35484         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35485         Likewise.
35486         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35487         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35488         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35489         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35490         * doc/posix-functions/malloc.texi: Document the portability problem
35491         related to malloc(0).
35492
35493 2009-04-26  Bruno Haible  <bruno@clisp.org>
35494
35495         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35496         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35497         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35498
35499 2009-04-25  Bruno Haible  <bruno@clisp.org>
35500
35501         Avoid link error when creating a namespace clean library.
35502         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35503         as macro with arguments if already defined as an alias.
35504         * lib/signbitf.c (gl_signbitf): Don't undefine.
35505         * lib/signbitd.c (gl_signbitd): Don't undefine.
35506         * lib/signbitl.c (gl_signbitl): Don't undefine.
35507
35508 2009-04-25  Jim Meyering  <meyering@redhat.com>
35509
35510         vc-list-files: fix another quoting bug
35511         * build-aux/vc-list-files: Avoid sed backslash expansion
35512         of pathological directory names.
35513
35514 2009-04-25  Eric Blake  <ebb9@byu.net>
35515
35516         vc-list-files: fix shell quoting error
35517         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35518         timestamp.
35519
35520 2009-04-25  Jim Meyering  <meyering@redhat.com>
35521
35522         vc-list-files: restore lost functionality with subdir argument
35523         * build-aux/vc-list-files: When given a non-"." sub-directory
35524         argument, substitute the $dir/ prefix back onto each resulting name.
35525         Otherwise, coreutils' root_tests check would fail.
35526
35527 2009-04-24  Eric Blake  <ebb9@byu.net>
35528
35529         vc-list-files: ignore git symlinks
35530         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35531         than ls-files, to ignore git symlinks.
35532
35533         maint.mk: import improvements from m4
35534         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35535         (move_if_change): Delete unused macro.
35536         (news-date-check, vc-diff-check): Support VPATH builds.
35537         (announcement): Likewise.  Split --bootstrap-tools list...
35538         (boostrap-tools): ...into separate list, which can be overridden
35539         in cfg.mk.
35540         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35541         requiring dependency on useless-if-before-free module.
35542         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35543         Support VPATH builds.
35544
35545 2009-04-24  Jim Meyering  <meyering@redhat.com>
35546
35547         maint.mk: remove coreutils-specific rules and variables
35548         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35549         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35550         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35551
35552         maint.mk: remove obsolete rule
35553         * top/maint.mk (rel-check): Remove rule.
35554         (WGET, WGETFLAGS): Remove now-unused variables.
35555
35556 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35557
35558         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35559         consistency.
35560
35561         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35562         '$(PATH_SEPARATOR)' instead of ':'.
35563
35564 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35565
35566         * lib/getopt1.c (main): Use 'const' for static array.
35567
35568 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35569
35570         * top/maint.mk: Sync with coreutils.
35571         * NEWS: Explain incompatibilities.
35572
35573 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35574             Bruno Haible  <bruno@clisp.org>
35575
35576         Fix cross-compilation results.
35577         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35578         statement, as third argument of AC_TRY_RUN.
35579         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35580         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35581         Likewise.
35582         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35583         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35584         Likewise.
35585         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35586         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35587         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35588
35589 2009-04-20  Bruno Haible  <bruno@clisp.org>
35590
35591         Avoid test failure on mingw.
35592         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35593
35594 2009-04-20  Bruno Haible  <bruno@clisp.org>
35595
35596         Avoid compilation error on mingw.
35597         * modules/localename-tests (Depends-on): Add locale.
35598
35599 2009-04-19  Bruno Haible  <bruno@clisp.org>
35600
35601         Support for building a shared library on Windows platforms.
35602         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35603         (main): Test the presence of UNINORM_NFC here.
35604         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35605         (main): Test the presence of UNINORM_NFD here.
35606         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35607         (main): Test the presence of UNINORM_NFKC here.
35608         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35609         (main): Test the presence of UNINORM_NFKD here.
35610
35611 2009-04-19  Bruno Haible  <bruno@clisp.org>
35612
35613         Avoid a compiler warning.
35614         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35615         Change type of variable 'sequence'.
35616
35617 2009-04-19  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/configmake (Makefile.am): When the contents of configmake.h
35620         does not change, arrange to preserve its modification time.
35621
35622 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35623
35624         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35625         gettext domain.
35626
35627 2009-04-16  Jim Meyering  <meyering@redhat.com>
35628
35629         useless-if-before-free: improve conversion code
35630         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35631         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35632
35633 2009-04-14  Bruno Haible  <bruno@clisp.org>
35634
35635         * modules/fcntl (Depends-on): Add extensions.
35636         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35637
35638 2009-04-12  Ben Pfaff  <blp@gnu.org>
35639
35640         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35641         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35642
35643 2009-03-20  Ben Pfaff  <blp@gnu.org>
35644
35645         Make rename replace existing destinations on Windows.
35646         * m4/rename.m4: Add test for Mingw.
35647         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35648         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35649         * doc/posix-functions/rename.texi: Document.
35650
35651 2009-04-10  Bruno Haible  <bruno@clisp.org>
35652
35653         New include file "iconveh.h".
35654         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35655         * lib/striconveh.h: Include it.
35656         (enum iconv_ilseq_handler): Remove definition.
35657         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35658         striconveh.h.
35659         * lib/striconveha.c: Include striconveh.h.
35660         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35661         * modules/striconveh (Files): Add lib/iconveh.h.
35662         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35663         lib/striconveh.h.
35664
35665 2009-04-10  Bruno Haible  <bruno@clisp.org>
35666
35667         * lib/uniconv.h: Update comment.
35668
35669 2009-04-10  Bruno Haible  <bruno@clisp.org>
35670
35671         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35672         always.
35673         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35674         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35675         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35676         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35677         "unistring-notinline.h", so that the function gets defined always.
35678         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35679         * lib/unistr/u8-uctomb.c: Likewise.
35680         * lib/unistr/u16-mbtouc.c: Likewise.
35681         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35682         * lib/unistr/u16-uctomb.c: Likewise.
35683         * lib/unistr/u32-mbtouc.c: Likewise.
35684         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35685         * lib/unistr/u32-uctomb.c: Likewise.
35686
35687 2009-04-10  Bruno Haible  <bruno@clisp.org>
35688
35689         Mark 'utime' obsolete.
35690         * modules/utime (Status, Notice): New sections.
35691         Suggested by Jim Meyering.
35692
35693         Fix cross-compile guess for utime test.
35694         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35695         autoconf.
35696         * doc/posix-functions/utime.texi: Give more precisions.
35697         Reported by Jan <ipif@ymail.com>.
35698
35699 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35700
35701         filevercmp: correct today's change
35702         * lib/filevercmp.c: Also handle coreutils' test inputs.
35703         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35704
35705         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35706         for reporting it.
35707         * lib/filevercmp.c: Special handle for "", "." and "..".
35708         * tests/test-filevercmp.c: Enlarge the set suite.
35709
35710 2009-04-07  Jim Meyering  <meyering@redhat.com>
35711
35712         useless-if-before-free: show how to remove braced useless free, too
35713         * build-aux/useless-if-before-free: still only in a comment, though.
35714
35715 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35716
35717         maint.mk: import changes to syntax-check macros from coreutils
35718         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35719         Use them in the relevant macros.
35720
35721 2009-04-06  Bruno Haible  <bruno@clisp.org>
35722
35723         Fix unportable use of bit-fields.
35724         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35725         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35726         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35727
35728 2009-04-06  Bruno Haible  <bruno@clisp.org>
35729
35730         Avoid test failures on AIX and OSF/1.
35731         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35732         that malloc(0) = NULL.
35733         * tests/unicase/test-u8-tolower.c (check): Likewise.
35734         * tests/unicase/test-u8-totitle.c (check): Likewise.
35735         * tests/unicase/test-u8-toupper.c (check): Likewise.
35736         * tests/unicase/test-u16-casefold.c (check): Likewise.
35737         * tests/unicase/test-u16-tolower.c (check): Likewise.
35738         * tests/unicase/test-u16-totitle.c (check): Likewise.
35739         * tests/unicase/test-u16-toupper.c (check): Likewise.
35740         * tests/unicase/test-u32-casefold.c (check): Likewise.
35741         * tests/unicase/test-u32-tolower.c (check): Likewise.
35742         * tests/unicase/test-u32-totitle.c (check): Likewise.
35743         * tests/unicase/test-u32-toupper.c (check): Likewise.
35744         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35745         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35746         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35747         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35748         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35749         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35750         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35751         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35752         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35753         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35754         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35755         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35756
35757 2009-04-05  Bruno Haible  <bruno@clisp.org>
35758
35759         Work around an autoconf limitation.
35760         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35761         comment line if it would be longer than 3 KB.
35762
35763 2009-04-05  Bruno Haible  <bruno@clisp.org>
35764
35765         Avoid test failure with libiconv-1.13.
35766         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35767         of the expected test results.
35768
35769 2009-04-05  Bruno Haible  <bruno@clisp.org>
35770
35771         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35772         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35773         that it should be installed.
35774
35775 2009-04-05  Bruno Haible  <bruno@clisp.org>
35776
35777         * gnulib-tool: New option --copy-file.
35778         (func_usage): Document it.
35779         (func_dest_tmpfilename): Moved out of func_import.
35780         (func_add_file, func_update_file): New functions, extracted from
35781         func_import.
35782         (func_import): Update.
35783
35784 2009-04-05  Karl Berry  <karl@gnu.org>
35785
35786         * README: prominently mention gnulib-tool.
35787         Rearrange sections so getting the code is near the top.
35788
35789 2009-04-05  Bruno Haible  <bruno@clisp.org>
35790
35791         * lib/unicase.h: Mention u*_cmp2.
35792         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35793         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35794         * lib/unicase/ulc-casecmp.c: Likewise.
35795         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35796         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35797         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35798         unistr/u8-cmp.
35799         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35800         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35801         unistr/u16-cmp.
35802         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35803         unistr/u32-cmp.
35804
35805         * lib/uninorm.h: Mention u*_cmp2.
35806         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35807         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35808         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35809         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35810         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35811         unistr/u8-cmp.
35812         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35813         unistr/u16-cmp.
35814         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35815         unistr/u32-cmp.
35816
35817         New module 'unistr/u32-cmp2'.
35818         * lib/unistr/u32-cmp2.c: New file.
35819         * modules/unistr/u32-cmp2: New file.
35820
35821         New module 'unistr/u16-cmp2'.
35822         * lib/unistr/u16-cmp2.c: New file.
35823         * modules/unistr/u16-cmp2: New file.
35824
35825         New module 'unistr/u8-cmp2'.
35826         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35827         * lib/unistr/u8-cmp2.c: New file.
35828         * lib/unistr/u-cmp2.h: New file.
35829         * modules/unistr/u8-cmp2: New file.
35830
35831 2009-04-05  Bruno Haible  <bruno@clisp.org>
35832
35833         * lib/unictype.h (uc_property_is_valid): New macro.
35834         * tests/unictype/test-pr_byname.c (main): Use it.
35835
35836         * lib/unistr.h: Doc fixes.
35837         * lib/uniconv.h: Doc fixes.
35838         * lib/unictype.h: Doc fixes.
35839
35840 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35841
35842         Port coreutils 7.2 to Solaris 8.
35843
35844         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35845         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35846         for Solaris 8.  This is a bit of a hack, as it means it's the
35847         caller's responsibility to add -lnsl if needed, but most likely it
35848         won't be needed since only getaddrinfo uses this and getaddrinfo
35849         isn't needed on Solaris 8.
35850
35851         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35852         problem to Solaris 8 encountered with coreutils 7.2, which
35853         resulted in a message "fnmatch.c:292: warning: passing argument 4
35854         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35855         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35856
35857 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35858
35859         * m4/ld-version-script.m4: Add FIXME comment.
35860
35861 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35862
35863         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35864         SOVERSION variable.
35865
35866 2009-04-02  Bruno Haible  <bruno@clisp.org>
35867
35868         * Makefile (info, html, dvi, pdf): Combine the rules.
35869         Suggested by Jim Meyering.
35870
35871 2009-04-01  Bruno Haible  <bruno@clisp.org>
35872
35873         * Makefile (info, html, dvi, pdf): New targets.
35874         Reported by Reuben Thomas <rrt@sc3d.org>.
35875
35876 2009-04-01  Bruno Haible  <bruno@clisp.org>
35877
35878         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35879         can be put into PATH.
35880         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35881
35882 2009-04-01  Bruno Haible  <bruno@clisp.org>
35883
35884         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35885
35886 2009-04-01  Bruno Haible  <bruno@clisp.org>
35887
35888         Rename module 'visibility'.
35889         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35890         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35891         * doc/gnulib.texi: Update.
35892         * MODULES.html.sh (Misc): Update.
35893         * NEWS: Mention the change.
35894
35895 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35896
35897         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35898         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35899         Eric Blake <ebb9@byu.net> for review.
35900         * MODULES.html.sh: Add lib-msvc-compat.
35901         * doc/gnulib.texi: Link to new section.
35902         * m4/ld-output-def.m4: New file.
35903         * doc/ld-output-def.texi: New file.
35904
35905 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35906
35907         Rename ld-version-script to lib-symbol-versions.  Suggested by
35908         Bruno Haible <bruno@clisp.org>.
35909         * modules/ld-version-script: Renamed to lib-symbol-versions.
35910         * doc/ld-version-script.texi: Fix module name.
35911         * MODULES.html.sh: Add lib-symbol-versions.
35912
35913 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35914
35915         * modules/u64-tests: New file.
35916         * tests/test-u64.c: New file.
35917
35918 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35919
35920         * MODULES.html.sh: Mention u64.
35921         * modules/u64: New module.
35922         * modules/crypto/sha512: Depend on u64 module instead of providing
35923         u64.h.
35924
35925 2009-03-27  Eric Blake  <ebb9@byu.net>
35926
35927         test-strerror: make debugging EAI_SYSTEM easier
35928         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35929         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35930         failure was EAI_SYSTEM.
35931
35932 2009-03-25  Bruno Haible  <bruno@clisp.org>
35933
35934         Fix a problem with --enable-relocatable on Solaris 7.
35935         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35936         since 2008-02-24.
35937
35938 2009-03-25  Eric Blake  <ebb9@byu.net>
35939
35940         test-sockets: avoid gcc warning
35941         * tests/test-sockets.c (main): Silence compiler warning.
35942
35943 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         New modules nproc, pthread, contributed by Glen Lenker.
35946
35947         * MODULES.html.sh: Add pthread, nproc.
35948         * lib/nproc.c: New file.
35949         * lib/nproc.h: New file.
35950         * lib/pthread.in.h: New file.
35951         * m4/pthread.m4: New file.
35952         * modules/nproc: New file.
35953         * modules/pthread: New file.
35954
35955 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35956
35957         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35958         New variable.
35959
35960 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35961
35962         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35963         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35964         * tests/test-filevercmp.c: Add tests for backup suffixes.
35965
35966 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35967
35968         * modules/stdlib (Depends-on): Add stdint, needed when defining
35969         struct random_data on, for example, HP-UX 10.20.  Reported by
35970         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35971
35972 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35973
35974         * lib/readline.c (readline): Call fflush on stdout after printing
35975         prompt.
35976
35977 2009-03-20  Bruno Haible  <bruno@clisp.org>
35978
35979         Remove dependency from 'close' module to -lws2_32 on native Windows.
35980         * lib/close-hook.h: New file.
35981         * lib/close-hook.c: New file.
35982         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35983         w32sock.h.
35984         (_gl_close_fd_maybe_socket): Remove function.
35985         (rpl_close): Invoke execute_all_close_hooks instead of
35986         _gl_close_fd_maybe_socket.
35987         * lib/sockets.c: Include close-hook.h, w32sock.h.
35988         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35989         (close_sockets_hook): New variable.
35990         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35991         (gl_sockets_cleanup): Unregister it.
35992         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35993         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35994         * modules/close-hook: New file.
35995         * modules/close (Files): Remove lib/w32sock.h.
35996         (Depends-on): Add close-hook.
35997         (Link): Remove section.
35998         * modules/sockets (Files): Add lib/w32sock.h.
35999         (Depends-on): Add close-hook.
36000         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36001         invocation.
36002         * NEWS: Mention that LIB_CLOSE is gone.
36003
36004 2009-03-23  Eric Blake  <ebb9@byu.net>
36005
36006         signal-tests: test previous patch
36007         * tests/test-signal.c: New file.
36008         * modules/signal-tests: Likewise.
36009
36010         signal.h: always support 'volatile sig_atomic_t'
36011         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36012         (gl_SIGNAL_H_DEFAULTS): Add a default.
36013         * modules/signal (Makefile.am): Substitute if needed.
36014         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36015         users can blindly add volatile.
36016         * doc/posix-headers/signal.texi (signal.h): Document it.
36017         Reported by Matthew Woehlke.
36018
36019 2009-03-23  Jim Meyering  <meyering@redhat.com>
36020
36021         pathmax: PATH_MAX: use pathconf only when available
36022         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36023         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36024         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36025         This avoids a link failure in a PSP cross-compilation environment
36026         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36027
36028         * lib/vasnprintf.c (divide): Fix typo in comment.
36029
36030 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36031
36032         * gnulib-tool (func_filter_filelist): Fix comment.
36033
36034 2009-03-20  Bruno Haible  <bruno@clisp.org>
36035
36036         Make sockets.h self-contained.
36037         * lib/sockets.c: Include sockets.h first.
36038         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36039
36040 2009-03-19  Eric Blake  <ebb9@byu.net>
36041
36042         doc: mention more functions added in cygwin 1.7.0
36043         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36044         addition.
36045         * doc/posix-functions/log2f.texi: Likewise.
36046
36047 2009-03-19  Jim Meyering  <meyering@redhat.com>
36048
36049         fsusage: avoid syntax error due to statement-before-declaration
36050         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36051         after all declarations.  Reported by Matthew Woehlke in
36052         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36053
36054 2009-03-18  Eric Blake  <ebb9@byu.net>
36055
36056         build-aux/compile: sync from automake
36057         * build-aux/compile: New file, from automake.
36058         * config/srclist.txt: Mention build-aux/compile.
36059
36060 2009-03-17  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/git-merge-changelog.c: Fix typo in comment.
36063         Reported by Reuben Thomas <rrt@sc3d.org>.
36064
36065 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36066
36067         * m4/regex.m4: update and improve help for
36068         --without-included-regex.
36069
36070 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36071
36072         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36073         failure on missing include files.
36074
36075 2009-03-17  Eric Blake  <ebb9@byu.net>
36076
36077         doc: mention more functions added in cygwin 1.7.0
36078         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36079         addition.
36080         * doc/posix-functions/fwscanf.texi: Likewise.
36081         * doc/posix-functions/swprintf.texi: Likewise.
36082         * doc/posix-functions/swscanf.texi: Likewise.
36083         * doc/posix-functions/vfwprintf.texi: Likewise.
36084         * doc/posix-functions/vfwscanf.texi: Likewise.
36085         * doc/posix-functions/vswprintf.texi: Likewise.
36086         * doc/posix-functions/vswscanf.texi: Likewise.
36087         * doc/posix-functions/vwprintf.texi: Likewise.
36088         * doc/posix-functions/vwscanf.texi: Likewise.
36089         * doc/posix-functions/wcscasecmp.texi: Likewise.
36090         * doc/posix-functions/wcsdup.texi: Likewise.
36091         * doc/posix-functions/wcsftime.texi: Likewise.
36092         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36093         * doc/posix-functions/wprintf.texi: Likewise.
36094         * doc/posix-functions/wscanf.texi: Likewise.
36095         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36096
36097 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36098
36099         maint.mk: really add $(AM_MAKEFLAGS)
36100         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36101         was inadvertently omitted in the last commit.
36102         Spotted by Bruno Haible.
36103
36104         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36105         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36106         $(AM_MAKEFLAGS)' rather than plain `make'.
36107
36108         gnulib-tool: execute $MAKE not make
36109         * gnulib-tool: Default $MAKE to 'make'.
36110         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36111         than make.  Initialize $MAKE in the do-autobuild script.
36112
36113         gnulib-tool: use $MAKE not make in generated files
36114         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36115         make, in generated files.  Initialize $MAKE in the do-autobuild
36116         script.
36117
36118         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36119
36120         GNUmakefile: disable parallelism only for multiple, recursive targets
36121         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36122         additions in the Makefile.
36123         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36124         by Automake.
36125         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36126         are listed on the command line and at least one of them is
36127         listed in $(ALL_RECURSIVE_TARGETS).
36128
36129 2009-03-14  Bruno Haible  <bruno@clisp.org>
36130
36131         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36132         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36133         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36134         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36135         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36136         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36137         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36138         unistr/u8-uctomb.
36139         * modules/unistr/u8-strchr (Depends-on): Likewise.
36140         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36141         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36142         unistr/u16-uctomb.
36143         * modules/unistr/u16-strchr (Depends-on): Likewise.
36144         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36145
36146 2009-03-12  Bruno Haible  <bruno@clisp.org>
36147
36148         Work around select() bug on Interix 3.5.
36149         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36150         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36151         * m4/select.m4: New file.
36152         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36153         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36154         * modules/select (Files): Add m4/select.m4.
36155         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36156         * modules/nanosleep (Depends-on): Add select.
36157         * modules/poll (Depends-on): Likewise.
36158         * doc/posix-functions/select.texi: Mention the Interix bug.
36159         Reported by Markus Duft <mduft@gentoo.org>.
36160
36161         * lib/select.c: Renamed from lib/winsock-select.c.
36162         * modules/select (Files): Add lib/select.c, remove
36163         lib/winsock-select.c.
36164         (configure.ac): Update.
36165
36166 2009-03-12  Jim Meyering  <meyering@redhat.com>
36167
36168         avoid gcc warnings about unused macro definitions
36169         * lib/readtokens.c (STREQ): Remove unused definition.
36170         * lib/xmalloc.c (SIZE_MAX): Likewise.
36171         * lib/openat-die.c (N_): Likewise.
36172         * lib/mountlist.c (SIZE_MAX): Remove definition.
36173         Instead, include <stdint.h>.
36174         * lib/readutmp.c: Likewise.
36175         * modules/readutmp (Depends-on): Add stdint.
36176         * modules/mountlist (Depends-on): Add stdint.
36177         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36178
36179 2009-03-10  Bruno Haible  <bruno@clisp.org>
36180
36181         Tests for module 'mbmemcasecoll'.
36182         * modules/mbmemcasecoll-tests: New file.
36183         * tests/test-mbmemcasecoll1.sh: New file.
36184         * tests/test-mbmemcasecoll2.sh: New file.
36185         * tests/test-mbmemcasecoll3.sh: New file.
36186         * tests/test-mbmemcasecoll.c: New file.
36187
36188         New module 'mbmemcasecoll'.
36189         * lib/mbmemcasecoll.h: New file.
36190         * lib/mbmemcasecoll.c: New file.
36191         * modules/mbmemcasecoll: New file.
36192
36193         * tests/test-mbmemcasecmp.h: New file, extracted from
36194         tests/test-mbmemcasecmp.c.
36195         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36196         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36197         (main): Update.
36198         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36199
36200 2009-03-09  Bruno Haible  <bruno@clisp.org>
36201
36202         Tests for module 'mbmemcasecmp'.
36203         * modules/mbmemcasecmp-tests: New file.
36204         * tests/test-mbmemcasecmp1.sh: New file.
36205         * tests/test-mbmemcasecmp2.sh: New file.
36206         * tests/test-mbmemcasecmp3.sh: New file.
36207         * tests/test-mbmemcasecmp.c: New file.
36208
36209         New module 'mbmemcasecmp'.
36210         * lib/mbmemcasecmp.h: New file.
36211         * lib/mbmemcasecmp.c: New file.
36212         * modules/mbmemcasecmp: New file.
36213
36214 2009-03-09  Bruno Haible  <bruno@clisp.org>
36215
36216         Tests for module 'unicase/ulc-casecoll'.
36217         * modules/unicase/ulc-casecoll-tests: New file.
36218         * tests/unicase/test-ulc-casecoll1.sh: New file.
36219         * tests/unicase/test-ulc-casecoll2.sh: New file.
36220         * tests/unicase/test-ulc-casecoll.c: New file.
36221
36222         New module 'unicase/ulc-casecoll'.
36223         * lib/unicase.h (ulc_casecoll): New declaration.
36224         * lib/unicase/ulc-casecoll.c: New file.
36225         * modules/unicase/ulc-casecoll: New file.
36226
36227         New module 'unicase/ulc-casexfrm'.
36228         * lib/unicase.h (ulc_casexfrm): New declaration.
36229         * lib/unicase/ulc-casexfrm.c: New file.
36230         * modules/unicase/ulc-casexfrm: New file.
36231
36232 2009-03-09  Bruno Haible  <bruno@clisp.org>
36233
36234         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36235         invocations.
36236
36237         * m4/mbscasecmp.m4: Remove file.
36238         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36239         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36240
36241         * m4/mbscasestr.m4: Remove file.
36242         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36243         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36244
36245         * m4/mbschr.m4: Remove file.
36246         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36247         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36248
36249         * m4/mbscspn.m4: Remove file.
36250         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36251         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36252
36253         * m4/mbslen.m4: Remove file.
36254         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36255         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36256
36257         * m4/mbsncasecmp.m4: Remove file.
36258         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36259         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36260
36261         * m4/mbsnlen.m4: Remove file.
36262         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36263         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36264
36265         * m4/mbspbrk.m4: Remove file.
36266         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36267         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36268
36269         * m4/mbspcasecmp.m4: Remove file.
36270         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36271         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36272
36273         * m4/mbsrchr.m4: Remove file.
36274         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36275         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36276
36277         * m4/mbssep.m4: Remove file.
36278         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36279         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36280
36281         * m4/mbsspn.m4: Remove file.
36282         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36283         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36284
36285         * m4/mbsstr.m4: Remove file.
36286         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36287         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36288
36289         * m4/mbstok_r.m4: Remove file.
36290         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36291         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36292
36293         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36294
36295         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36296         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36297
36298         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36299
36300 2009-03-08  Bruno Haible  <bruno@clisp.org>
36301
36302         Tests for module 'unicase/ulc-casecmp'.
36303         * modules/unicase/ulc-casecmp-tests: New file.
36304         * tests/unicase/test-ulc-casecmp1.sh: New file.
36305         * tests/unicase/test-ulc-casecmp2.sh: New file.
36306         * tests/unicase/test-ulc-casecmp.c: New file.
36307
36308         New module 'unicase/ulc-casecmp'.
36309         * lib/unicase.h (ulc_casecmp): New declaration.
36310         * lib/unicase/ulc-casecmp.c: New file.
36311         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36312         'const SRC_UNIT *'.
36313         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36314         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36315         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36316         * modules/unicase/ulc-casecmp: New file.
36317
36318         Tests for module 'unicase/u32-is-cased'.
36319         * modules/unicase/u32-is-cased-tests: New file.
36320         * tests/unicase/test-u32-is-cased.c: New file.
36321
36322         Tests for module 'unicase/u16-is-cased'.
36323         * modules/unicase/u16-is-cased-tests: New file.
36324         * tests/unicase/test-u16-is-cased.c: New file.
36325
36326         Tests for module 'unicase/u8-is-cased'.
36327         * modules/unicase/u8-is-cased-tests: New file.
36328         * tests/unicase/test-u8-is-cased.c: New file.
36329         * tests/unicase/test-is-cased.h: New file.
36330
36331         New module 'unicase/u32-is-cased'.
36332         * lib/unicase/u32-is-cased.c: New file.
36333         * modules/unicase/u32-is-cased: New file.
36334
36335         New module 'unicase/u16-is-cased'.
36336         * lib/unicase/u16-is-cased.c: New file.
36337         * modules/unicase/u16-is-cased: New file.
36338
36339         New module 'unicase/u8-is-cased'.
36340         * lib/unicase/u8-is-cased.c: New file.
36341         * lib/unicase/u-is-cased.h: New file.
36342         * modules/unicase/u8-is-cased: New file.
36343
36344         Tests for module 'unicase/u32-is-casefolded'.
36345         * modules/unicase/u32-is-casefolded-tests: New file.
36346         * tests/unicase/test-u32-is-casefolded.c: New file.
36347
36348         Tests for module 'unicase/u16-is-casefolded'.
36349         * modules/unicase/u16-is-casefolded-tests: New file.
36350         * tests/unicase/test-u16-is-casefolded.c: New file.
36351
36352         Tests for module 'unicase/u8-is-casefolded'.
36353         * modules/unicase/u8-is-casefolded-tests: New file.
36354         * tests/unicase/test-u8-is-casefolded.c: New file.
36355         * tests/unicase/test-is-casefolded.h: New file.
36356
36357         New module 'unicase/u32-is-casefolded'.
36358         * lib/unicase/u32-is-casefolded.c: New file.
36359         * modules/unicase/u32-is-casefolded: New file.
36360
36361         New module 'unicase/u16-is-casefolded'.
36362         * lib/unicase/u16-is-casefolded.c: New file.
36363         * modules/unicase/u16-is-casefolded: New file.
36364
36365         New module 'unicase/u8-is-casefolded'.
36366         * lib/unicase/u8-is-casefolded.c: New file.
36367         * modules/unicase/u8-is-casefolded: New file.
36368
36369         Tests for module 'unicase/u32-is-titlecase'.
36370         * modules/unicase/u32-is-titlecase-tests: New file.
36371         * tests/unicase/test-u32-is-titlecase.c: New file.
36372
36373         Tests for module 'unicase/u16-is-titlecase'.
36374         * modules/unicase/u16-is-titlecase-tests: New file.
36375         * tests/unicase/test-u16-is-titlecase.c: New file.
36376
36377         Tests for module 'unicase/u8-is-titlecase'.
36378         * modules/unicase/u8-is-titlecase-tests: New file.
36379         * tests/unicase/test-u8-is-titlecase.c: New file.
36380         * tests/unicase/test-is-titlecase.h: New file.
36381
36382         New module 'unicase/u32-is-titlecase'.
36383         * lib/unicase/u32-is-titlecase.c: New file.
36384         * modules/unicase/u32-is-titlecase: New file.
36385
36386         New module 'unicase/u16-is-titlecase'.
36387         * lib/unicase/u16-is-titlecase.c: New file.
36388         * modules/unicase/u16-is-titlecase: New file.
36389
36390         New module 'unicase/u8-is-titlecase'.
36391         * lib/unicase/u8-is-titlecase.c: New file.
36392         * modules/unicase/u8-is-titlecase: New file.
36393
36394         Tests for module 'unicase/u32-is-lowercase'.
36395         * modules/unicase/u32-is-lowercase-tests: New file.
36396         * tests/unicase/test-u32-is-lowercase.c: New file.
36397
36398         Tests for module 'unicase/u16-is-lowercase'.
36399         * modules/unicase/u16-is-lowercase-tests: New file.
36400         * tests/unicase/test-u16-is-lowercase.c: New file.
36401
36402         Tests for module 'unicase/u8-is-lowercase'.
36403         * modules/unicase/u8-is-lowercase-tests: New file.
36404         * tests/unicase/test-u8-is-lowercase.c: New file.
36405         * tests/unicase/test-is-lowercase.h: New file.
36406
36407         New module 'unicase/u32-is-lowercase'.
36408         * lib/unicase/u32-is-lowercase.c: New file.
36409         * modules/unicase/u32-is-lowercase: New file.
36410
36411         New module 'unicase/u16-is-lowercase'.
36412         * lib/unicase/u16-is-lowercase.c: New file.
36413         * modules/unicase/u16-is-lowercase: New file.
36414
36415         New module 'unicase/u8-is-lowercase'.
36416         * lib/unicase/u8-is-lowercase.c: New file.
36417         * modules/unicase/u8-is-lowercase: New file.
36418
36419         Tests for module 'unicase/u32-is-uppercase'.
36420         * modules/unicase/u32-is-uppercase-tests: New file.
36421         * tests/unicase/test-u32-is-uppercase.c: New file.
36422
36423         Tests for module 'unicase/u16-is-uppercase'.
36424         * modules/unicase/u16-is-uppercase-tests: New file.
36425         * tests/unicase/test-u16-is-uppercase.c: New file.
36426
36427         Tests for module 'unicase/u8-is-uppercase'.
36428         * modules/unicase/u8-is-uppercase-tests: New file.
36429         * tests/unicase/test-u8-is-uppercase.c: New file.
36430         * tests/unicase/test-is-uppercase.h: New file.
36431
36432         New module 'unicase/u32-is-uppercase'.
36433         * lib/unicase/u32-is-uppercase.c: New file.
36434         * modules/unicase/u32-is-uppercase: New file.
36435
36436         New module 'unicase/u16-is-uppercase'.
36437         * lib/unicase/u16-is-uppercase.c: New file.
36438         * modules/unicase/u16-is-uppercase: New file.
36439
36440         New module 'unicase/u8-is-uppercase'.
36441         * lib/unicase/u8-is-uppercase.c: New file.
36442         * modules/unicase/u8-is-uppercase: New file.
36443
36444         New module 'unicase/u32-is-invariant'.
36445         * lib/unicase/u32-is-invariant.c: New file.
36446         * modules/unicase/u32-is-invariant: New file.
36447
36448         New module 'unicase/u16-is-invariant'.
36449         * lib/unicase/u16-is-invariant.c: New file.
36450         * modules/unicase/u16-is-invariant: New file.
36451
36452         New module 'unicase/u8-is-invariant'.
36453         * lib/unicase/u8-is-invariant.c: New file.
36454         * lib/unicase/invariant.h: New file.
36455         * lib/unicase/u-is-invariant.h: New file.
36456         * modules/unicase/u8-is-invariant: New file.
36457
36458         Tests for module 'unicase/u32-casecoll'.
36459         * modules/unicase/u32-casecoll-tests: New file.
36460         * tests/unicase/test-u32-casecoll.c: New file.
36461
36462         Tests for module 'unicase/u16-casecoll'.
36463         * modules/unicase/u16-casecoll-tests: New file.
36464         * tests/unicase/test-u16-casecoll.c: New file.
36465
36466         Tests for module 'unicase/u8-casecoll'.
36467         * modules/unicase/u8-casecoll-tests: New file.
36468         * tests/unicase/test-u8-casecoll.c: New file.
36469
36470         New module 'unicase/u32-casecoll'.
36471         * lib/unicase/u32-casecoll.c: New file.
36472         * modules/unicase/u32-casecoll: New file.
36473
36474         New module 'unicase/u16-casecoll'.
36475         * lib/unicase/u16-casecoll.c: New file.
36476         * modules/unicase/u16-casecoll: New file.
36477
36478         New module 'unicase/u8-casecoll'.
36479         * lib/unicase/u8-casecoll.c: New file.
36480         * lib/unicase/u-casecoll.h: New file.
36481         * modules/unicase/u8-casecoll: New file.
36482
36483         New module 'unicase/u32-casexfrm'.
36484         * lib/unicase/u32-casexfrm.c: New file.
36485         * modules/unicase/u32-casexfrm: New file.
36486
36487         New module 'unicase/u16-casexfrm'.
36488         * lib/unicase/u16-casexfrm.c: New file.
36489         * modules/unicase/u16-casexfrm: New file.
36490
36491         New module 'unicase/u8-casexfrm'.
36492         * lib/unicase/u8-casexfrm.c: New file.
36493         * lib/unicase/u-casexfrm.h: New file.
36494         * modules/unicase/u8-casexfrm: New file.
36495
36496         Tests for module 'unicase/u32-casecmp'.
36497         * modules/unicase/u32-casecmp-tests: New file.
36498         * tests/unicase/test-u32-casecmp.c: New file.
36499
36500         Tests for module 'unicase/u16-casecmp'.
36501         * modules/unicase/u16-casecmp-tests: New file.
36502         * tests/unicase/test-u16-casecmp.c: New file.
36503
36504         Tests for module 'unicase/u8-casecmp'.
36505         * modules/unicase/u8-casecmp-tests: New file.
36506         * tests/unicase/test-u8-casecmp.c: New file.
36507         * tests/unicase/test-casecmp.h: New file.
36508
36509         New module 'unicase/u32-casecmp'.
36510         * lib/unicase/u32-casecmp.c: New file.
36511         * modules/unicase/u32-casecmp: New file.
36512
36513         New module 'unicase/u16-casecmp'.
36514         * lib/unicase/u16-casecmp.c: New file.
36515         * modules/unicase/u16-casecmp: New file.
36516
36517         New module 'unicase/u8-casecmp'.
36518         * lib/unicase/u8-casecmp.c: New file.
36519         * lib/unicase/u-casecmp.h: New file.
36520         * modules/unicase/u8-casecmp: New file.
36521
36522         Tests for module 'unicase/u32-casefold'.
36523         * modules/unicase/u32-casefold-tests: New file.
36524         * tests/unicase/test-u32-casefold.c: New file.
36525
36526         Tests for module 'unicase/u16-casefold'.
36527         * modules/unicase/u16-casefold-tests: New file.
36528         * tests/unicase/test-u16-casefold.c: New file.
36529
36530         Tests for module 'unicase/u8-casefold'.
36531         * modules/unicase/u8-casefold-tests: New file.
36532         * tests/unicase/test-u8-casefold.c: New file.
36533
36534         New module 'unicase/u32-casefold'.
36535         * lib/unicase/u32-casefold.c: New file.
36536         * modules/unicase/u32-casefold: New file.
36537
36538         New module 'unicase/u16-casefold'.
36539         * lib/unicase/u16-casefold.c: New file.
36540         * modules/unicase/u16-casefold: New file.
36541
36542         New module 'unicase/u8-casefold'.
36543         * lib/unicase/u8-casefold.c: New file.
36544         * lib/unicase/u-casefold.h: New file.
36545         * modules/unicase/u8-casefold: New file.
36546
36547         New module 'unicase/tocasefold'.
36548         * lib/unicase/casefold.h: New file.
36549         * lib/unicase/tocasefold.c: New file.
36550         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36551         * modules/unicase/tocasefold: New file.
36552
36553         Tests for module 'unicase/u32-totitle'.
36554         * modules/unicase/u32-totitle-tests: New file.
36555         * tests/unicase/test-u32-totitle.c: New file.
36556
36557         Tests for module 'unicase/u16-totitle'.
36558         * modules/unicase/u16-totitle-tests: New file.
36559         * tests/unicase/test-u16-totitle.c: New file.
36560
36561         Tests for module 'unicase/u8-totitle'.
36562         * modules/unicase/u8-totitle-tests: New file.
36563         * tests/unicase/test-u8-totitle.c: New file.
36564
36565         New module 'unicase/u32-totitle'.
36566         * lib/unicase/u32-totitle.c: New file.
36567         * modules/unicase/u32-totitle: New file.
36568
36569         New module 'unicase/u16-totitle'.
36570         * lib/unicase/u16-totitle.c: New file.
36571         * modules/unicase/u16-totitle: New file.
36572
36573         New module 'unicase/u8-totitle'.
36574         * lib/unicase/u8-totitle.c: New file.
36575         * lib/unicase/u-totitle.h: New file.
36576         * modules/unicase/u8-totitle: New file.
36577
36578         Tests for module 'unicase/u32-tolower'.
36579         * modules/unicase/u32-tolower-tests: New file.
36580         * tests/unicase/test-u32-tolower.c: New file.
36581
36582         Tests for module 'unicase/u16-tolower'.
36583         * modules/unicase/u16-tolower-tests: New file.
36584         * tests/unicase/test-u16-tolower.c: New file.
36585
36586         Tests for module 'unicase/u8-tolower'.
36587         * modules/unicase/u8-tolower-tests: New file.
36588         * tests/unicase/test-u8-tolower.c: New file.
36589
36590         New module 'unicase/u32-tolower'.
36591         * lib/unicase/u32-tolower.c: New file.
36592         * modules/unicase/u32-tolower: New file.
36593
36594         New module 'unicase/u16-tolower'.
36595         * lib/unicase/u16-tolower.c: New file.
36596         * modules/unicase/u16-tolower: New file.
36597
36598         New module 'unicase/u8-tolower'.
36599         * lib/unicase/u8-tolower.c: New file.
36600         * modules/unicase/u8-tolower: New file.
36601
36602         Tests for module 'unicase/u32-toupper'.
36603         * modules/unicase/u32-toupper-tests: New file.
36604         * tests/unicase/test-u32-toupper.c: New file.
36605
36606         Tests for module 'unicase/u16-toupper'.
36607         * modules/unicase/u16-toupper-tests: New file.
36608         * tests/unicase/test-u16-toupper.c: New file.
36609
36610         Tests for module 'unicase/u8-toupper'.
36611         * modules/unicase/u8-toupper-tests: New file.
36612         * tests/unicase/test-u8-toupper.c: New file.
36613
36614         New module 'unicase/u32-toupper'.
36615         * lib/unicase/u32-toupper.c: New file.
36616         * modules/unicase/u32-toupper: New file.
36617
36618         New module 'unicase/u16-toupper'.
36619         * lib/unicase/u16-toupper.c: New file.
36620         * modules/unicase/u16-toupper: New file.
36621
36622         New module 'unicase/u8-toupper'.
36623         * lib/unicase/u8-toupper.c: New file.
36624         * modules/unicase/u8-toupper: New file.
36625
36626         New module 'unicase/u32-casemap'.
36627         * lib/unicase/u32-casemap.c: New file.
36628         * modules/unicase/u32-casemap: New file.
36629
36630         New module 'unicase/u16-casemap'.
36631         * lib/unicase/u16-casemap.c: New file.
36632         * modules/unicase/u16-casemap: New file.
36633
36634         New module 'unicase/u8-casemap'.
36635         * lib/unicase/unicasemap.h: New file.
36636         * lib/unicase/u8-casemap.c: New file.
36637         * lib/unicase/u-casemap.h: New file.
36638         * modules/unicase/u8-casemap: New file.
36639
36640         New module 'unicase/special-casing'.
36641         * lib/unicase/special-casing.h: New file.
36642         * lib/unicase/special-casing.c: New file.
36643         * lib/unicase/special-casing-table.gperf: New file, generated by
36644         gen-uni-tables.c.
36645         * modules/unicase/special-casing: New file.
36646
36647         Tests for module 'unicase/locale-language'.
36648         * modules/unicase/locale-language-tests: New file.
36649         * tests/unicase/test-locale-language.sh: New file.
36650         * tests/unicase/test-locale-language.c: New file.
36651
36652         New module 'unicase/locale-language'.
36653         * lib/unicase/locale-language.c: New file.
36654         * lib/unicase/locale-languages.gperf: New file.
36655         * modules/unicase/locale-language: New file.
36656
36657         Generate more tables for case conversion and case folding.
36658         * lib/gen-uni-tables.c (SCC_*): New enum items.
36659         (struct special_casing_rule): New type.
36660         (casing_rules, num_casing_rules, allocated_casing_rules): New
36661         variables.
36662         (add_casing_rule, fill_casing_rules): New functions.
36663         (struct casefold_rule): New type.
36664         (casefolding_rules, num_casefolding_rules,
36665         allocated_casefolding_rules): New variables.
36666         (fill_casefolding_rules): New function.
36667         (unicode_casefold): New variable.
36668         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36669         sort_casing_rules, output_casing_rules): New functions.
36670         (main): Accept to more arguments: SpecialCasing.txt and
36671         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36672         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36673         Output mapping for casefolding.
36674
36675         * lib/unicase.h: Include stdbool.h, uninorm.h.
36676         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36677         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36678         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36679         arguments.
36680         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36681         resultp arguments.
36682         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36683         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36684         resultp arguments.
36685         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36686         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36687         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36688         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36689         declarations.
36690         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36691
36692 2009-03-08  Bruno Haible  <bruno@clisp.org>
36693
36694         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36695         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36696         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36697         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36698
36699 2009-03-07  Bruno Haible  <bruno@clisp.org>
36700
36701         Adjust u*_normcmp, u*_normcoll API.
36702         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36703         u16_normcoll, u32_normcoll): Change failure conventions.
36704         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36705         errno and return -1.
36706         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36707
36708 2009-03-07  Bruno Haible  <bruno@clisp.org>
36709
36710         Tests for module 'uninorm/u32-normcoll'.
36711         * modules/uninorm/u32-normcoll-tests: New file.
36712         * tests/uninorm/test-u32-normcoll.c: New file.
36713
36714         Tests for module 'uninorm/u16-normcoll'.
36715         * modules/uninorm/u16-normcoll-tests: New file.
36716         * tests/uninorm/test-u16-normcoll.c: New file.
36717
36718         Tests for module 'uninorm/u8-normcoll'.
36719         * modules/uninorm/u8-normcoll-tests: New file.
36720         * tests/uninorm/test-u8-normcoll.c: New file.
36721
36722 2009-03-07  Bruno Haible  <bruno@clisp.org>
36723
36724         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36725         tests/uninorm/test-u32-normcmp.c.
36726         * tests/uninorm/test-u32-normcmp.c: Include it.
36727         (test_nonascii): New function, extracted from main. Add some more
36728         tests.
36729         (main): Invoke test_ascii and test_nonascii.
36730         * modules/uninorm/u32-normcmp-tests (Files): Add
36731         tests/uninorm/test-u32-normcmp.h.
36732         (Depends-on): Remove uninorm/u32-normcmp.
36733
36734         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36735         tests/uninorm/test-u16-normcmp.c.
36736         * tests/uninorm/test-u16-normcmp.c: Include it.
36737         (test_nonascii): New function, extracted from main. Add some more
36738         tests.
36739         (main): Invoke test_ascii and test_nonascii.
36740         * modules/uninorm/u16-normcmp-tests (Files): Add
36741         tests/uninorm/test-u16-normcmp.h.
36742         (Depends-on): Remove uninorm/u16-normcmp.
36743
36744         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36745         tests/uninorm/test-u8-normcmp.c.
36746         * tests/uninorm/test-u8-normcmp.c: Include it.
36747         (test_nonascii): New function, extracted from main. Add some more
36748         tests.
36749         (main): Invoke test_ascii and test_nonascii.
36750         * modules/uninorm/u8-normcmp-tests (Files): Add
36751         tests/uninorm/test-u8-normcmp.h.
36752         (Depends-on): Remove uninorm/u8-normcmp.
36753
36754 2009-03-07  Bruno Haible  <bruno@clisp.org>
36755
36756         New module 'uninorm/u32-normcoll'.
36757         * lib/uninorm/u32-normcoll.c: New file.
36758         * modules/uninorm/u32-normcoll: New file.
36759
36760         New module 'uninorm/u16-normcoll'.
36761         * lib/uninorm/u16-normcoll.c: New file.
36762         * modules/uninorm/u16-normcoll: New file.
36763
36764         New module 'uninorm/u8-normcoll'.
36765         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36766         declarations.
36767         * lib/uninorm/u8-normcoll.c: New file.
36768         * lib/uninorm/u-normcoll.h: New file.
36769         * modules/uninorm/u8-normcoll: New file.
36770
36771         New module 'uninorm/u32-normxfrm'.
36772         * lib/uninorm/u32-normxfrm.c: New file.
36773         * modules/uninorm/u32-normxfrm: New file.
36774
36775         New module 'uninorm/u16-normxfrm'.
36776         * lib/uninorm/u16-normxfrm.c: New file.
36777         * modules/uninorm/u16-normxfrm: New file.
36778
36779         New module 'uninorm/u8-normxfrm'.
36780         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36781         declarations.
36782         * lib/uninorm/u8-normxfrm.c: New file.
36783         * lib/uninorm/u-normxfrm.h: New file.
36784         * modules/uninorm/u8-normxfrm: New file.
36785
36786 2009-03-07  Bruno Haible  <bruno@clisp.org>
36787
36788         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36789         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36790         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36791
36792 2009-03-07  Bruno Haible  <bruno@clisp.org>
36793
36794         New module 'memxfrm'.
36795         * lib/memxfrm.h: New file.
36796         * lib/memxfrm.c: New file.
36797         * modules/memxfrm: New file.
36798
36799 2009-03-07  Bruno Haible  <bruno@clisp.org>
36800
36801         New module 'memcmp2'.
36802         * lib/memcmp2.h: New file.
36803         * lib/memcmp2.c: New file.
36804         * modules/memcmp2: New file.
36805
36806 2009-03-07  Bruno Haible  <bruno@clisp.org>
36807
36808         Tests for module 'uninorm/decomposing-form'.
36809         * modules/uninorm/decomposing-form-tests: New file.
36810         * tests/uninorm/test-decomposing-form.c: New file.
36811
36812         New module 'uninorm/decomposing-form'.
36813         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36814         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36815         Add 'decomposing_variant' field.
36816         * lib/uninorm/decomposing-form.c: New file.
36817         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36818         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36819         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36820         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36821         * modules/uninorm/decomposing-form: New file.
36822         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36823         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36824
36825 2009-03-07  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36828         strings.
36829
36830 2009-03-06  Bruno Haible  <bruno@clisp.org>
36831
36832         Tests for module 'uninorm/u32-normcmp'.
36833         * tests/uninorm/test-u32-normcmp.c: New file.
36834         * modules/uninorm/u32-normcmp-tests: New file.
36835
36836         Tests for module 'uninorm/u16-normcmp'.
36837         * tests/uninorm/test-u16-normcmp.c: New file.
36838         * modules/uninorm/u16-normcmp-tests: New file.
36839
36840         Tests for module 'uninorm/u8-normcmp'.
36841         * tests/uninorm/test-u8-normcmp.c: New file.
36842         * modules/uninorm/u8-normcmp-tests: New file.
36843
36844         New module 'uninorm/u32-normcmp'.
36845         * lib/uninorm/u32-normcmp.c: New file.
36846         * modules/uninorm/u32-normcmp: New file.
36847
36848         New module 'uninorm/u16-normcmp'.
36849         * lib/uninorm/u16-normcmp.c: New file.
36850         * modules/uninorm/u16-normcmp: New file.
36851
36852         New module 'uninorm/u8-normcmp'.
36853         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36854         declarations.
36855         * lib/uninorm/u8-normcmp.c: New file.
36856         * lib/uninorm/u-normcmp.h: New file.
36857         * modules/uninorm/u8-normcmp: New file.
36858
36859 2009-03-06  Bruno Haible  <bruno@clisp.org>
36860
36861         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36862         Reported by Eric Blake.
36863
36864 2009-03-06  Eric Blake  <ebb9@byu.net>
36865             Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36868         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36869         condition.
36870         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36871         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36872         condition.
36873         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36874
36875 2009-03-06  Eric Blake  <ebb9@byu.net>
36876
36877         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36878         to avoid compiler warnings.
36879         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36880
36881 2009-03-05  Bruno Haible  <bruno@clisp.org>
36882
36883         * tests/test-ftell.c (main): Disable test beyond end of file on
36884         FreeMiNT.
36885         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36886
36887 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36888
36889         * lib/filevercmp.c: Move hidden files up in ordering.
36890         * tests/test-filevercmp.c: Add tests for hidden files.
36891
36892 2009-03-04  Bruno Haible  <bruno@clisp.org>
36893
36894         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36895         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36896         AM_CFLAGS.
36897         Reported by Simon Josefsson.
36898
36899 2009-03-03  Bruno Haible  <bruno@clisp.org>
36900
36901         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36902         Reported by Simon Josefsson.
36903
36904         * doc/ld-version-script.texi: Update node reference.
36905
36906 2009-03-03  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/visibility (License): Change to 'unlimited'.
36909         Suggested by Simon Josefsson.
36910
36911 2009-03-03  Jim Meyering  <meyering@redhat.com>
36912
36913         unlinkdir: cannot_unlink_dir may modify process state
36914         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36915         it's neither thread-safe nor appropriate for use in a library.
36916
36917 2009-03-03  Eric Blake  <ebb9@byu.net>
36918
36919         test-closein: silence test under Darwin
36920         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36921         care if it dies from EPIPE or EBADF.
36922
36923 2009-03-03  Bruno Haible  <bruno@clisp.org>
36924
36925         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36926         earlier.
36927         * doc/visibility.texi: Fix @node and @section.
36928
36929 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36930
36931         * doc/gnulib.texi: Link to sections for ld version script and
36932         visibility.
36933         * doc/visibility.texi: Add @node and @section.
36934         * modules/ld-version-script: New module.
36935         * m4/ld-version-script.m4: New file.
36936         * doc/ld-version-script.texi: New file.
36937
36938 2009-03-02  David Lutterkort  <lutter@redhat.com>
36939
36940         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36942
36943 2009-03-02  Bruno Haible  <bruno@clisp.org>
36944
36945         * doc/visibility.texi: Mention libtool's -export-symbols option.
36946
36947 2009-03-02  Jim Meyering  <meyering@redhat.com>
36948
36949         announce-gen: new option: --no-print-checksums
36950         * build-aux/announce-gen (usage): Describe it.
36951         (print_checksums): Print a newline here, not in the [*] footnote.
36952         (main): Honor it.
36953
36954 2009-03-01  Bruno Haible  <bruno@clisp.org>
36955
36956         Use socklen_t in the native Windows replacements prototypes.
36957         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36958         instead of 'int'.
36959         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36960         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36961         * modules/getsockopt (Depends-on): Add socklen.
36962         * modules/setsockopt (Depends-on): Add socklen.
36963
36964 2009-03-01  Bruno Haible  <bruno@clisp.org>
36965
36966         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36967         least 4.2.
36968
36969 2009-03-01  Eric Blake  <ebb9@byu.net>
36970             Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36973         error messages.
36974         * lib/wait-process.c (wait_subprocess): Omit error message about
36975         deadly signal sent to the child of termsigp != NULL.
36976
36977 2009-03-01  Eric Blake  <ebb9@byu.net>
36978
36979         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36980
36981 2009-03-01  Bruno Haible  <bruno@clisp.org>
36982
36983         Avoid a gcc warning.
36984         * tests/test-sched.c (b): Make global.
36985         Reported by Eric Blake.
36986
36987 2009-01-19  Martin Lambers  <marlam@marlam.de>
36988
36989         Provide POSIX semantics for socket timeout options on W32.
36990         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36991         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36992         * modules/setsockopt: Depend on sys_time module for struct timeval.
36993         * modules/getsockopt: Depend on sys_time module for struct timeval.
36994
36995 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36996
36997         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36998         __USE_GNU, for consistency with netdb.in.h.
36999         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37000
37001 2009-03-01  Bruno Haible  <bruno@clisp.org>
37002
37003         More support for FreeMiNT.
37004         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37005         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37006
37007 2009-03-01  Bruno Haible  <bruno@clisp.org>
37008
37009         More support for FreeMiNT.
37010         * lib/fpurge.c (fpurge): Correct last commit.
37011         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37012
37013 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37014
37015         Fix unportable awk script in vc-list-files.
37016         * build-aux/vc-list-files: In the replacement awk script, use
37017         substr with a second argument of 1, not zero.
37018         Report by Simon Josefsson.
37019
37020 2009-02-28  Bruno Haible  <bruno@clisp.org>
37021
37022         More support for FreeMiNT.
37023         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37024         to FreeMiNT today.
37025         * lib/fwriting.c (fwriting): Likewise.
37026         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37027
37028 2009-02-28  Bruno Haible  <bruno@clisp.org>
37029
37030         * tests/test-freadseek.c (main): Disable test beyond end of file on
37031         FreeMiNT.
37032         * tests/test-ftello.c (main): Likewise.
37033         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37034
37035 2009-02-28  Bruno Haible  <bruno@clisp.org>
37036
37037         Add tentative support for FreeMiNT.
37038         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37039         * lib/fpurge.c (fpurge): Likewise.
37040         * lib/freadable.c (freadable): Likewise.
37041         * lib/freading.c (freading): Likewise.
37042         * lib/freadptr.c (freadptr): Likewise.
37043         * lib/freadseek.c (freadptrinc): Likewise.
37044         * lib/fseeko.c (rpl_fseeko): Likewise.
37045         * lib/fseterr.c (fseterr): Likewise.
37046         * lib/fwritable.c (fwritable): Likewise.
37047         * lib/fwriting.c (fwriting): Likewise.
37048         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37049         Hourihane.
37050         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37051
37052 2009-02-28  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37055         SIGCHLD.
37056         Reported by Jim Meyering.
37057
37058 2009-02-28  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37061         Mention the results of these tests on various platforms.
37062         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37063         order.
37064         * doc/posix-functions/printf.texi: Likewise.
37065         * doc/posix-functions/snprintf.texi: Likewise.
37066         * doc/posix-functions/sprintf.texi: Likewise.
37067         * doc/posix-functions/vfprintf.texi: Likewise.
37068         * doc/posix-functions/vprintf.texi: Likewise.
37069         * doc/posix-functions/vsnprintf.texi: Likewise.
37070         * doc/posix-functions/vsprintf.texi: Likewise.
37071         * doc/glibc-functions/obstack_printf.texi: Likewise.
37072         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37073
37074 2009-02-28  Bruno Haible  <bruno@clisp.org>
37075
37076         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37077         Reported by Loïc Minier <lool@dooz.org>.
37078
37079 2009-02-27  Bruno Haible  <bruno@clisp.org>
37080
37081         * gnulib-tool (func_import): Make the sed expression used to create the
37082         sed script for updating the .gitignore file POSIX compliant.
37083         Reported by Eric Blake.
37084
37085 2009-02-27  Bruno Haible  <bruno@clisp.org>
37086
37087         * gnulib-tool (sed): Don't alias as "sed --posix".
37088         Reported by Eric Blake.
37089
37090 2009-02-27  Bruno Haible  <bruno@clisp.org>
37091
37092         Avoid test link errors.
37093         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37094         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37095         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37096         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37098
37099 2009-02-27  Bruno Haible  <bruno@clisp.org>
37100
37101         Avoid spurious "(cached)" in configure output.
37102         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37103         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37104         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37105         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37106         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37108         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37109         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37110         Reported by Eric Blake.
37111
37112 2009-02-27  Eric Blake  <ebb9@byu.net>
37113
37114         printf: fix regression in previous patch
37115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37116
37117 2009-02-27  Bruno Haible  <bruno@clisp.org>
37118
37119         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37120         value.
37121         * lib/stdint.in.h: Likewise.
37122         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37123
37124 2009-02-27  Eric Blake  <ebb9@byu.net>
37125
37126         doc: mention more functions added in cygwin 1.7.0
37127         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37128         addition.
37129         * doc/posix-functions/open_wmemstream.texi: Likewise.
37130         * doc/posix-functions/wcsnlen.texi: Likewise.
37131         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37132         * doc/posix-functions/wcstod.texi: Likewise.
37133         * doc/posix-functions/wcstof.texi: Likewise.
37134         * doc/posix-functions/wcstoimax.texi: Likewise.
37135         * doc/posix-functions/wcstok.texi: Likewise.
37136         * doc/posix-functions/wcstoumax.texi: Likewise.
37137
37138         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37140         * doc/posix-functions/fprintf.texi: Update.
37141         * doc/posix-functions/printf.texi: Update.
37142         * doc/posix-functions/snprintf.texi: Update.
37143         * doc/posix-functions/sprintf.texi: Update.
37144         * doc/posix-functions/vfprintf.texi: Update.
37145         * doc/posix-functions/vprintf.texi: Update.
37146         * doc/posix-functions/vsnprintf.texi: Update.
37147         * doc/posix-functions/vsprintf.texi: Update.
37148         * doc/glibc-functions/obstack_printf.texi: Update.
37149         * doc/glibc-functions/obstack_vprintf.texi: Update.
37150
37151 2009-02-26  Eric Blake  <ebb9@byu.net>
37152
37153         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37154         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37155         compilation bug by using runtime conversion.
37156         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37157         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37158         * modules/ceill-tests (Files): Use nan.h.
37159         * modules/floorl-tests (Files): Likewise.
37160         * modules/frexpl-tests (Files): Likewise.
37161         * modules/isnanl-tests (Files): Likewise.
37162         * modules/ldexpl-tests (Files): Likewise.
37163         * modules/roundl-tests (Files): Likewise.
37164         * modules/truncl-tests (Files): Likewise.
37165         * tests/test-ceill.c (main): Use a working NaN.
37166         * tests/test-floorl.c (main): Likewise.
37167         * tests/test-frexpl.c (main): Likewise.
37168         * tests/test-isnan.c (test_long_double): Likewise.
37169         * tests/test-isnanl.h (main): Likewise.
37170         * tests/test-ldexpl.h (main): Likewise.
37171         * tests/test-roundl.h (main): Likewise.
37172         * tests/test-truncl.h (main): Likewise.
37173         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37174
37175 2009-02-26  Eric Blake  <ebb9@byu.net>
37176             Bruno Haible  <bruno@clisp.org>
37177
37178         Work around a *printf bug with %ls on Solaris.
37179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37180         precision is specified, sprintf stops converting the wide string
37181         argument when the number of bytes that have been produced by this
37182         conversion equals or exceeds the precision.
37183         * doc/posix-functions/fprintf.texi: Update.
37184         * doc/posix-functions/printf.texi: Update.
37185         * doc/posix-functions/snprintf.texi: Update.
37186         * doc/posix-functions/sprintf.texi: Update.
37187         * doc/posix-functions/vfprintf.texi: Update.
37188         * doc/posix-functions/vprintf.texi: Update.
37189         * doc/posix-functions/vsnprintf.texi: Update.
37190         * doc/posix-functions/vsprintf.texi: Update.
37191         * doc/glibc-functions/obstack_printf.texi: Update.
37192         * doc/glibc-functions/obstack_vprintf.texi: Update.
37193
37194 2009-02-26  Eric Blake  <ebb9@byu.net>
37195
37196         stdlib: favor compiler check of random.h
37197         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37198         to avoid an ObjC random.h installed by Swarm.
37199
37200 2009-02-26  Bruno Haible  <bruno@clisp.org>
37201
37202         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37203         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37204         Reported by Gary V. Vaughan <gary@gnu.org>.
37205
37206 2009-02-26  Bruno Haible  <bruno@clisp.org>
37207
37208         Fix *printf behaviour regarding the %ls directive.
37209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37210         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37211         NEED_PRINTF_DIRECTIVE_LS.
37212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37215         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37216         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37217         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37218         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37223         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37227         * doc/posix-functions/fprintf.texi: Update.
37228         * doc/posix-functions/printf.texi: Update.
37229         * doc/posix-functions/snprintf.texi: Update.
37230         * doc/posix-functions/sprintf.texi: Update.
37231         * doc/posix-functions/vfprintf.texi: Update.
37232         * doc/posix-functions/vprintf.texi: Update.
37233         * doc/posix-functions/vsnprintf.texi: Update.
37234         * doc/posix-functions/vsprintf.texi: Update.
37235         * doc/glibc-functions/obstack_printf.texi: Update.
37236         * doc/glibc-functions/obstack_vprintf.texi: Update.
37237         Reported by Eric Blake.
37238
37239 2009-02-25  Bruno Haible  <bruno@clisp.org>
37240
37241         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37242         with known value.
37243         Reported by Gary V. Vaughan <gary@gnu.org>.
37244
37245 2009-02-25  Bruno Haible  <bruno@clisp.org>
37246
37247         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37248         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37249         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37250         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37251         Reported by Gary V. Vaughan <gary@gnu.org>.
37252
37253 2009-02-25  Bruno Haible  <bruno@clisp.org>
37254
37255         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37256         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37257         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37258         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37259         Reported by Gary V. Vaughan <gary@gnu.org>.
37260
37261 2009-02-25  Eric Blake  <ebb9@byu.net>
37262
37263         tests: skip fseek/ftell tests if ungetc is broken
37264         * m4/ungetc.m4: New file.
37265         * modules/fseek-tests: Split test, so ungetc dependency is
37266         separate from rest of test.
37267         * modules/fseeko-tests: Likewise.
37268         * modules/ftell-tests: Likewise.
37269         * modules/ftello-tests: Likewise.
37270         * tests/test-fseek.c (main): Isolate ungetc dependency.
37271         * tests/test-fseeko.c (main): Likewise.
37272         * tests/test-ftell.c (main): Likewise.
37273         * tests/test-ftello.c (main): Likewise.
37274         * tests/test-fseek2.sh: New file.
37275         * tests/test-fseeko2.sh: Likewise.
37276         * tests/test-ftell2.sh: Likewise.
37277         * tests/test-ftello2.sh: Likewise.
37278
37279 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37280
37281         test-getaddrinfo: fix usage of skip return code 77
37282         * tests/test-gettaddrinfo.c: Return skip code 77 only
37283         for first occurance of skip (4x77 is not 77)
37284
37285 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37286
37287         strtod: avoid C99 decl-after-statement
37288         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37289
37290 2009-02-24  Eric Blake  <ebb9@byu.net>
37291
37292         strtod: detect HP-UX 11.31 bug
37293         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37294         Reported by Gary V. Vaughan.
37295
37296 2009-02-23  Bruno Haible  <bruno@clisp.org>
37297
37298         Fix invalid read past end of memory block.
37299         * lib/vasnprintf.c (DCHAR_SET): Define.
37300         (local_wcslen): Define only when needed.
37301         (local_strnlen, local_wcsnlen): New functions.
37302         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37303         directives that involve a conversion ourselves.
37304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37305         wcsnlen, mbrtowc, wcrtomb.
37306         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37307         * tests/test-vasprintf-posix.c (test_function): Likewise.
37308         * tests/test-snprintf-posix.h (test_function): Likewise.
37309         * tests/test-sprintf-posix.h (test_function): Likewise.
37310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37311
37312 2009-02-22  Bruno Haible  <bruno@clisp.org>
37313
37314         Implement new clarified decomposition of Hangul syllables.
37315         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37316         of type LTV, return only a pairwise decomposition.
37317         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37318         Likewise.
37319         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37320         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37321         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37322
37323 2009-02-22  Bruno Haible  <bruno@clisp.org>
37324
37325         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37326         zero-length results and shrink excess allocated memory.
37327         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37328         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37329         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37330         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37331         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37332         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37333         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37334         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37335         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37336         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37337         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37338         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37339
37340 2009-02-21  Bruno Haible  <bruno@clisp.org>
37341
37342         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37343         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37344         spaces after a period. Put a space between a macro name and its
37345         argument list. Trivial rewordings.
37346         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37347         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37348         (main): Return 0 explicitly.
37349
37350 2009-02-21  Bruno Haible  <bruno@clisp.org>
37351
37352         Tests for module 'uninorm/filter'.
37353         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37354         * modules/uninorm/filter-tests: New file.
37355
37356         New module 'uninorm/filter'.
37357         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37358         uninorm_filter_flush, uninorm_filter_free): New declarations.
37359         * lib/uninorm/uninorm-filter.c: New file.
37360         * modules/uninorm/filter: New file.
37361
37362 2009-02-21  Bruno Haible  <bruno@clisp.org>
37363
37364         Tests for module 'uninorm/nfkc'.
37365         * tests/uninorm/test-nfkc.c: New file.
37366         * tests/uninorm/test-u8-nfkc.c: New file.
37367         * tests/uninorm/test-u16-nfkc.c: New file.
37368         * tests/uninorm/test-u32-nfkc.c: New file.
37369         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37370         * tests/uninorm/test-u32-nfkc-big.c: New file.
37371         * modules/uninorm/nfkc-tests: New file.
37372
37373         New module 'uninorm/nfkc'.
37374         * lib/uninorm/nfkc.c: New file.
37375         * modules/uninorm/nfkc: New file.
37376
37377         Tests for module 'uninorm/nfkd'.
37378         * tests/uninorm/test-nfkd.c: New file.
37379         * tests/uninorm/test-u8-nfkd.c: New file.
37380         * tests/uninorm/test-u16-nfkd.c: New file.
37381         * tests/uninorm/test-u32-nfkd.c: New file.
37382         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37383         * tests/uninorm/test-u32-nfkd-big.c: New file.
37384         * modules/uninorm/nfkd-tests: New file.
37385
37386         New module 'uninorm/nfkd'.
37387         * lib/uninorm/nfkd.c: New file.
37388         * modules/uninorm/nfkd: New file.
37389
37390         Tests for module 'uninorm/nfc'.
37391         * tests/uninorm/test-nfc.c: New file.
37392         * tests/uninorm/test-u8-nfc.c: New file.
37393         * tests/uninorm/test-u16-nfc.c: New file.
37394         * tests/uninorm/test-u32-nfc.c: New file.
37395         * tests/uninorm/test-u32-nfc-big.sh: New file.
37396         * tests/uninorm/test-u32-nfc-big.c: New file.
37397         * modules/uninorm/nfc-tests: New file.
37398
37399         New module 'uninorm/nfc'.
37400         * lib/uninorm/nfc.c: New file.
37401         * modules/uninorm/nfc: New file.
37402
37403         Tests for module 'uninorm/nfd'.
37404         * tests/uninorm/test-nfd.c: New file.
37405         * tests/uninorm/test-u8-nfd.c: New file.
37406         * tests/uninorm/test-u16-nfd.c: New file.
37407         * tests/uninorm/test-u32-nfd.c: New file.
37408         * tests/uninorm/test-u32-nfd-big.sh: New file.
37409         * tests/uninorm/test-u32-nfd-big.c: New file.
37410         * tests/uninorm/test-u32-normalize-big.h: New file.
37411         * tests/uninorm/test-u32-normalize-big.c: New file.
37412         * tests/uninorm/NormalizationTest.txt: New file, created from
37413         Unicode 5.1.0 NormalizationTest.txt.
37414         * modules/uninorm/nfd-tests: New file.
37415
37416         New module 'uninorm/nfd'.
37417         * lib/uninorm/nfd.c: New file.
37418         * modules/uninorm/nfd: New file.
37419
37420         New module 'uninorm/u32-normalize'.
37421         * lib/uninorm/u32-normalize.c: New file.
37422         * modules/uninorm/u32-normalize: New file.
37423
37424         New module 'uninorm/u16-normalize'.
37425         * lib/uninorm/u16-normalize.c: New file.
37426         * modules/uninorm/u16-normalize: New file.
37427
37428         New module 'uninorm/u8-normalize'.
37429         * lib/uninorm/u8-normalize.c: New file.
37430         * lib/uninorm/normalize-internal.h: New file.
37431         * lib/uninorm/u-normalize-internal.h: New file.
37432         * modules/uninorm/u8-normalize: New file.
37433
37434         New module 'uninorm/decompose-internal'.
37435         * lib/uninorm/decompose-internal.c: New file.
37436         * modules/uninorm/decompose-internal: New file.
37437
37438         Tests for module 'uninorm/composition'.
37439         * tests/uninorm/test-composition.c: New file.
37440         * modules/uninorm/composition-tests: New file.
37441
37442         New module 'uninorm/composition'.
37443         * lib/uninorm/composition.c: New file.
37444         * lib/uninorm/composition-table.gperf: New file, generated by
37445         gen-uni-tables.
37446         * modules/uninorm/composition: New file.
37447
37448         Tests for module 'uninorm/compat-decomposition'.
37449         * tests/uninorm/test-compat-decomposition.c: New file.
37450         * modules/uninorm/compat-decomposition-tests: New file.
37451
37452         New module 'uninorm/compat-decomposition'.
37453         * lib/uninorm/decompose-internal.h: New file.
37454         * lib/uninorm/compat-decomposition.c: New file.
37455         * modules/uninorm/compat-decomposition: New file.
37456
37457         Tests for module 'uninorm/canonical-decomposition'.
37458         * tests/uninorm/test-canonical-decomposition.c: New file.
37459         * modules/uninorm/canonical-decomposition-tests: New file.
37460
37461         New module 'uninorm/canonical-decomposition'.
37462         * lib/uninorm/canonical-decomposition.c: New file.
37463         * modules/uninorm/canonical-decomposition: New file.
37464
37465         Tests for module 'uninorm/decomposition'.
37466         * tests/uninorm/test-decomposition.c: New file.
37467         * modules/uninorm/decomposition-tests: New file.
37468
37469         New module 'uninorm/decomposition'.
37470         * lib/uninorm/decomposition.c: New file.
37471         * modules/uninorm/decomposition: New file.
37472
37473         New module 'uninorm/decomposition-table'.
37474         * lib/uninorm/decomposition-table.h: New file.
37475         * lib/uninorm/decomposition-table.c: New file.
37476         * lib/uninorm/decomposition-table1.h: New file, generated by
37477         gen-uni-tables.
37478         * lib/uninorm/decomposition-table2.h: New file, generated by
37479         gen-uni-tables.
37480         * modules/uninorm/decomposition-table: New file.
37481
37482         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37483         (UC_DECOMP_*): New enumeration items.
37484         (get_decomposition): New function.
37485         (struct decomp_table): New type.
37486         (output_decomposition, output_decomposition_tables): New functions.
37487         (unicode_composition_exclusions): New variable.
37488         (fill_composition_exclusions, debug_output_composition_tables): New
37489         functions.
37490         (main): Accept one more argument. Invoke fill_composition_exclusions.
37491         Output decomposition and composition tables.
37492
37493         New module 'uninorm/base'.
37494         * lib/uninorm.h: New file.
37495         * lib/unictype.h: Update comment.
37496         * modules/uninorm/base: New file.
37497
37498 2009-02-21  David Lutterkort  <lutter@redhat.com>
37499
37500         Tests for module 'safe-alloc'.
37501         * tests/test-safe-alloc.c: New file.
37502         * modules/safe-alloc-tests: New file.
37503
37504         New module 'safe-alloc'.
37505         * lib/safe-alloc.h: New file.
37506         * lib/safe-alloc.c: New file.
37507         * m4/safe-alloc.m4: New file.
37508         * modules/safe-alloc: New file.
37509         * doc/safe-alloc.texi: New file.
37510         * doc/gnulib.texi: Include it.
37511         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37512         safe-alloc.
37513
37514 2009-02-18  Bruno Haible  <bruno@clisp.org>
37515
37516         Fix link error on non-glibc systems.
37517         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37518         variable.
37519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37520
37521 2009-02-18  Jim Meyering  <meyering@redhat.com>
37522
37523         fts: avoid used-uninitialized error due to recent change
37524         * lib/fts.c (fts_read): Guard uses of the new member,
37525         parent->fts_n_dirs_remaining, since it's not relevant for
37526         the parent of a directory specified on the command-line.
37527
37528 2009-02-17  James Youngman  <jay@gnu.org>
37529             Bruno Haible  <bruno@clisp.org>
37530
37531         * m4/include_next.m4: Reformulate comment.
37532
37533 2009-02-16  Jim Meyering  <meyering@redhat.com>
37534
37535         fts: add #if guards so that the fts_lgpl module still builds
37536         * lib/fts.c: Guard just-added hash-table-using parts with
37537         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37538         Reported by Simon Josefsson.
37539
37540 2009-02-15  Bruno Haible  <bruno@clisp.org>
37541
37542         * modules/array-mergesort-tests: New file.
37543         * tests/test-array-mergesort.c: New file.
37544
37545         New module 'array-mergesort'.
37546         * modules/array-mergesort: New file.
37547         * lib/array-mergesort.h: New file.
37548
37549 2009-02-15  Bruno Haible  <bruno@clisp.org>
37550
37551         Fix 2009-02-07 commit.
37552         * lib/gen-uni-tables.c (output_predicate, output_category,
37553         output_combclass, output_bidi_category, output_decimal_digit,
37554         output_digit, output_numeric, output_mirror, output_scripts,
37555         output_ident_category, output_simple_mapping): Fix format directives.
37556         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37557
37558 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37559
37560         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37561         fixes are available from IBM.
37562
37563 2009-02-13  Jim Meyering  <meyering@redhat.com>
37564
37565         fts: arrange not to stat non-directories in more cases
37566         This makes GNU find (when it doesn't need to stat each file)
37567         *much* more efficient at traversing reiserfs file systems.
37568         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37569         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37570         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37571         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37572         (leaf_optimization_applies): New function.
37573         (LCO_hash, LCO_compare): New helper functions.
37574         (link_count_optimize_ok): New function.
37575         (fts_stat): Initialize new member (if dir).
37576         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37577         we've just stat'ed a directory.  Skip the stat call when possible.
37578         ---
37579         Note this AFS-related exchange:
37580         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37581         and note find's pioctl call in find/fstype.c.
37582         But that is necessary only if you want to enable the
37583         optimization for AFS, and for now, I don't.
37584
37585         fts: move a function definition "up" (no semantic change)
37586         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37587         "up" to precede upcoming use of a related function.
37588
37589 2009-02-11  Jim Meyering  <meyering@redhat.com>
37590
37591         fts: correct internal computation of nlinks (optimization-related)
37592         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37593         whether the current entry is a directory, so don't test it.
37594
37595 2009-02-10  Bruno Haible  <bruno@clisp.org>
37596
37597         Tests for module 'uniwbrk/ulc-wordbreaks'.
37598         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37599         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37600         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37601
37602         Tests for module 'uniwbrk/u32-wordbreaks'.
37603         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37604         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37605
37606         Tests for module 'uniwbrk/u16-wordbreaks'.
37607         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37608         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37609
37610         Tests for module 'uniwbrk/u8-wordbreaks'.
37611         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37612         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37613
37614 2009-02-10  Bruno Haible  <bruno@clisp.org>
37615
37616         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37617         property.
37618         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37619         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37620         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37621
37622 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37623
37624         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37625         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37626
37627 2009-02-10  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37630         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37631         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37632         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37633         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37634         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37635
37636 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37637
37638         * lib/sockets.h (gl_fd_to_handle): New function.
37639
37640         * tests/test-sockets.c: Call gl_fd_to_handle.
37641
37642 2009-02-09  Bruno Haible  <bruno@clisp.org>
37643
37644         * doc/havelib.texi: Document the conventions on bi-arch systems.
37645
37646 2009-02-08  Bruno Haible  <bruno@clisp.org>
37647
37648         Document the AC_LIB_LINKFLAGS macro.
37649         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37650         * doc/gnulib.texi: Include it.
37651
37652 2009-02-08  Bruno Haible  <bruno@clisp.org>
37653
37654         Fix wrong order of sections, compared to TOC.
37655         * doc/gnulib.texi: Include relocatable-maint.texi after the
37656         "Regular expressions" node, not before.
37657
37658 2009-02-08  Bruno Haible  <bruno@clisp.org>
37659
37660         Tests for module 'unicase/totitle'.
37661         * modules/unicase/totitle-tests: New file.
37662
37663         Tests for module 'unicase/tolower'.
37664         * modules/unicase/tolower-tests: New file.
37665
37666         Tests for module 'unicase/toupper'.
37667         * modules/unicase/toupper-tests: New file.
37668         * tests/unicase/test-mapping-part1.h: New file.
37669         * tests/unicase/test-mapping-part2.h: New file.
37670
37671         New module 'unicase/totitle'.
37672         * modules/unicase/totitle: New file.
37673         * lib/unicase/totitle.c: New file.
37674
37675         New module 'unicase/tolower'.
37676         * modules/unicase/tolower: New file.
37677         * lib/unicase/tolower.c: New file.
37678
37679         New module 'unicase/toupper'.
37680         * modules/unicase/toupper: New file.
37681         * lib/unicase/toupper.c: New file.
37682         * lib/unicase/simple-mapping.h: New file.
37683
37684         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37685         (mapping_table): New structure.
37686         (output_simple_mapping): New function.
37687         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37688         * modules/gen-uni-tables (Description): Update.
37689         * lib/unicase/toupper.h: New file, automatically generated by
37690         gen-uni-tables.
37691         * lib/unicase/tolower.h: New file, automatically generated by
37692         gen-uni-tables.
37693         * lib/unicase/totitle.h: New file, automatically generated by
37694         gen-uni-tables.
37695         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37696         gen-uni-tables.
37697         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37698         gen-uni-tables.
37699         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37700         gen-uni-tables.
37701
37702         New module 'unicase/base'.
37703         * modules/unicase/base: New file.
37704         * lib/unicase.h: New file.
37705
37706 2009-02-08  Bruno Haible  <bruno@clisp.org>
37707
37708         New module 'uniwbrk/ulc-wordbreaks'.
37709         * modules/uniwbrk/ulc-wordbreaks: New file.
37710         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37711
37712         New module 'uniwbrk/u32-wordbreaks'.
37713         * modules/uniwbrk/u32-wordbreaks: New file.
37714         * lib/uniwbrk/u32-wordbreaks.c: New file.
37715
37716         New module 'uniwbrk/u16-wordbreaks'.
37717         * modules/uniwbrk/u16-wordbreaks: New file.
37718         * lib/uniwbrk/u16-wordbreaks.c: New file.
37719
37720         New module 'uniwbrk/u8-wordbreaks'.
37721         * modules/uniwbrk/u8-wordbreaks: New file.
37722         * lib/uniwbrk/u8-wordbreaks.c: New file.
37723         * lib/uniwbrk/u-wordbreaks.h: New file.
37724
37725         New module 'uniwbrk/table'.
37726         * modules/uniwbrk/table: New file.
37727         * lib/uniwbrk/wbrktable.h: New file.
37728         * lib/uniwbrk/wbrktable.c: New file.
37729
37730         New module 'uniwbrk/wordbreak-property'.
37731         * modules/uniwbrk/wordbreak-property: New file.
37732         * lib/uniwbrk/wordbreak-property.c: New file.
37733
37734         * lib/gen-uni-tables.c (WBP_*): New enum items.
37735         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37736         (unicode_org_wbp): New variable.
37737         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37738         New functions.
37739         (wbp_table): New structure.
37740         (output_wbp, output_wbrk_tables): New functions.
37741         (main): Accept additional argument. Invoke fill_org_wbp,
37742         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37743         output_wbrk_tables.
37744         * modules/gen-uni-tables (Description): Update.
37745         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37746         gen-uni-tables.
37747
37748         New module 'uniwbrk/base'.
37749         * modules/uniwbrk/base: New file.
37750         * lib/uniwbrk.h: New file.
37751
37752 2009-02-08  Bruno Haible  <bruno@clisp.org>
37753
37754         Update to Unicode 5.1.0.
37755         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37756         U+2185..U+2188.
37757         (is_property_default_ignorable_code_point): Don't include characters
37758         of category Cc or Cs and not-a-characters.
37759         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37760         U+0D79, U+109E, U+109F, U+A60C.
37761         * lib/unictype/bidi_of.h: Regenerated.
37762         * lib/unictype/blocks.h: Regenerated.
37763         * lib/unictype/categ_C.h: Regenerated.
37764         * lib/unictype/categ_Cf.h: Regenerated.
37765         * lib/unictype/categ_Cn.h: Regenerated.
37766         * lib/unictype/categ_L.h: Regenerated.
37767         * lib/unictype/categ_Ll.h: Regenerated.
37768         * lib/unictype/categ_Lm.h: Regenerated.
37769         * lib/unictype/categ_Lo.h: Regenerated.
37770         * lib/unictype/categ_Lu.h: Regenerated.
37771         * lib/unictype/categ_M.h: Regenerated.
37772         * lib/unictype/categ_Mc.h: Regenerated.
37773         * lib/unictype/categ_Me.h: Regenerated.
37774         * lib/unictype/categ_Mn.h: Regenerated.
37775         * lib/unictype/categ_N.h: Regenerated.
37776         * lib/unictype/categ_Nd.h: Regenerated.
37777         * lib/unictype/categ_Nl.h: Regenerated.
37778         * lib/unictype/categ_No.h: Regenerated.
37779         * lib/unictype/categ_P.h: Regenerated.
37780         * lib/unictype/categ_Pd.h: Regenerated.
37781         * lib/unictype/categ_Pe.h: Regenerated.
37782         * lib/unictype/categ_Pf.h: Regenerated.
37783         * lib/unictype/categ_Pi.h: Regenerated.
37784         * lib/unictype/categ_Po.h: Regenerated.
37785         * lib/unictype/categ_Ps.h: Regenerated.
37786         * lib/unictype/categ_S.h: Regenerated.
37787         * lib/unictype/categ_Sk.h: Regenerated.
37788         * lib/unictype/categ_Sm.h: Regenerated.
37789         * lib/unictype/categ_So.h: Regenerated.
37790         * lib/unictype/categ_of.h: Regenerated.
37791         * lib/unictype/combining.h: Regenerated.
37792         * lib/unictype/ctype_alnum.h: Regenerated.
37793         * lib/unictype/ctype_alpha.h: Regenerated.
37794         * lib/unictype/ctype_graph.h: Regenerated.
37795         * lib/unictype/ctype_lower.h: Regenerated.
37796         * lib/unictype/ctype_print.h: Regenerated.
37797         * lib/unictype/ctype_punct.h: Regenerated.
37798         * lib/unictype/ctype_upper.h: Regenerated.
37799         * lib/unictype/decdigit.h: Regenerated.
37800         * lib/unictype/digit.h: Regenerated.
37801         * lib/unictype/mirror.h: Regenerated.
37802         * lib/unictype/numeric.h: Regenerated.
37803         * lib/unictype/pr_alphabetic.h: Regenerated.
37804         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37805         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37806         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37807         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37808         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37809         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37810         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37811         * lib/unictype/pr_combining.h: Regenerated.
37812         * lib/unictype/pr_dash.h: Regenerated.
37813         * lib/unictype/pr_decimal_digit.h: Regenerated.
37814         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37815         * lib/unictype/pr_deprecated.h: Regenerated.
37816         * lib/unictype/pr_diacritic.h: Regenerated.
37817         * lib/unictype/pr_extender.h: Regenerated.
37818         * lib/unictype/pr_format_control.h: Regenerated.
37819         * lib/unictype/pr_grapheme_base.h: Regenerated.
37820         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37821         * lib/unictype/pr_grapheme_link.h: Regenerated.
37822         * lib/unictype/pr_id_continue.h: Regenerated.
37823         * lib/unictype/pr_id_start.h: Regenerated.
37824         * lib/unictype/pr_ideographic.h: Regenerated.
37825         * lib/unictype/pr_ignorable_control.h: Regenerated.
37826         * lib/unictype/pr_lowercase.h: Regenerated.
37827         * lib/unictype/pr_math.h: Regenerated.
37828         * lib/unictype/pr_numeric.h: Regenerated.
37829         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37830         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37831         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37832         * lib/unictype/pr_other_id_continue.h: Regenerated.
37833         * lib/unictype/pr_other_lowercase.h: Regenerated.
37834         * lib/unictype/pr_other_math.h: Regenerated.
37835         * lib/unictype/pr_punctuation.h: Regenerated.
37836         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37837         * lib/unictype/pr_soft_dotted.h: Regenerated.
37838         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37839         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37840         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37841         * lib/unictype/pr_uppercase.h: Regenerated.
37842         * lib/unictype/pr_xid_continue.h: Regenerated.
37843         * lib/unictype/pr_xid_start.h: Regenerated.
37844         * lib/unictype/pr_zero_width.h: Regenerated.
37845         * lib/unictype/scripts.h: Regenerated.
37846         * lib/unictype/scripts_byname.gperf: Regenerated.
37847         * lib/unictype/sy_java_ident.h: Regenerated.
37848         * lib/unilbrk/lbrkprop1.h: Regenerated.
37849         * lib/unilbrk/lbrkprop2.h: Regenerated.
37850         * tests/unictype/test-categ_C.c: Regenerated.
37851         * tests/unictype/test-categ_Cf.c: Regenerated.
37852         * tests/unictype/test-categ_Cn.c: Regenerated.
37853         * tests/unictype/test-categ_L.c: Regenerated.
37854         * tests/unictype/test-categ_Ll.c: Regenerated.
37855         * tests/unictype/test-categ_Lm.c: Regenerated.
37856         * tests/unictype/test-categ_Lo.c: Regenerated.
37857         * tests/unictype/test-categ_Lu.c: Regenerated.
37858         * tests/unictype/test-categ_M.c: Regenerated.
37859         * tests/unictype/test-categ_Mc.c: Regenerated.
37860         * tests/unictype/test-categ_Me.c: Regenerated.
37861         * tests/unictype/test-categ_Mn.c: Regenerated.
37862         * tests/unictype/test-categ_N.c: Regenerated.
37863         * tests/unictype/test-categ_Nd.c: Regenerated.
37864         * tests/unictype/test-categ_Nl.c: Regenerated.
37865         * tests/unictype/test-categ_No.c: Regenerated.
37866         * tests/unictype/test-categ_P.c: Regenerated.
37867         * tests/unictype/test-categ_Pd.c: Regenerated.
37868         * tests/unictype/test-categ_Pe.c: Regenerated.
37869         * tests/unictype/test-categ_Pf.c: Regenerated.
37870         * tests/unictype/test-categ_Pi.c: Regenerated.
37871         * tests/unictype/test-categ_Po.c: Regenerated.
37872         * tests/unictype/test-categ_Ps.c: Regenerated.
37873         * tests/unictype/test-categ_S.c: Regenerated.
37874         * tests/unictype/test-categ_Sk.c: Regenerated.
37875         * tests/unictype/test-categ_Sm.c: Regenerated.
37876         * tests/unictype/test-categ_So.c: Regenerated.
37877         * tests/unictype/test-ctype_alnum.c: Regenerated.
37878         * tests/unictype/test-ctype_alpha.c: Regenerated.
37879         * tests/unictype/test-ctype_graph.c: Regenerated.
37880         * tests/unictype/test-ctype_lower.c: Regenerated.
37881         * tests/unictype/test-ctype_print.c: Regenerated.
37882         * tests/unictype/test-ctype_punct.c: Regenerated.
37883         * tests/unictype/test-ctype_upper.c: Regenerated.
37884         * tests/unictype/test-decdigit.h: Regenerated.
37885         * tests/unictype/test-digit.h: Regenerated.
37886         * tests/unictype/test-numeric.h: Regenerated.
37887         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37888         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37889         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37890         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37891         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37892         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37893         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37894         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37895         * tests/unictype/test-pr_combining.c: Regenerated.
37896         * tests/unictype/test-pr_dash.c: Regenerated.
37897         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37898         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37899         * tests/unictype/test-pr_deprecated.c: Regenerated.
37900         * tests/unictype/test-pr_diacritic.c: Regenerated.
37901         * tests/unictype/test-pr_extender.c: Regenerated.
37902         * tests/unictype/test-pr_format_control.c: Regenerated.
37903         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37904         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37905         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37906         * tests/unictype/test-pr_id_continue.c: Regenerated.
37907         * tests/unictype/test-pr_id_start.c: Regenerated.
37908         * tests/unictype/test-pr_ideographic.c: Regenerated.
37909         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37910         * tests/unictype/test-pr_lowercase.c: Regenerated.
37911         * tests/unictype/test-pr_math.c: Regenerated.
37912         * tests/unictype/test-pr_numeric.c: Regenerated.
37913         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37914         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37915         Regenerated.
37916         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37917         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37918         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37919         * tests/unictype/test-pr_other_math.c: Regenerated.
37920         * tests/unictype/test-pr_punctuation.c: Regenerated.
37921         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37922         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37923         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37924         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37925         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37926         * tests/unictype/test-pr_uppercase.c: Regenerated.
37927         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37928         * tests/unictype/test-pr_xid_start.c: Regenerated.
37929         * tests/unictype/test-pr_zero_width.c: Regenerated.
37930
37931         Update to Unicode 5.1.0.
37932         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37933         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37934         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37935         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37936         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37937         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37938         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37939         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37940         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37941         (nonspacing_table_ind): Update.
37942         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37943
37944         Update to Unicode 5.1.0.
37945         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37946         code transform.
37947         * lib/uniname/uniname.c (unicode_character_name,
37948         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37949         * lib/uniname/uninames.h: Regenerated.
37950         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37951
37952 2009-02-07  Bruno Haible  <bruno@clisp.org>
37953
37954         Merge gen-ctype and gen-lbrk into a single program.
37955         * lib/gen-uni-tables.c: New file, incorporating
37956         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37957         Add directory prefixes to the names of the generated files.
37958         * lib/unictype/gen-ctype.c: Remove file.
37959         * lib/unilbrk/gen-lbrk.c: Remove file.
37960         * modules/gen-uni-tables: New file.
37961         * modules/unictype/gen-ctype: Remove file.
37962         * modules/unilbrk/gen-lbrk: Remove file.
37963
37964 2009-02-07  Bruno Haible  <bruno@clisp.org>
37965
37966         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37967
37968         New module 'unistr/u32-strcoll'.
37969         * modules/unistr/u32-strcoll: New file.
37970         * lib/unistr/u32-strcoll.c: New file.
37971
37972         New module 'unistr/u16-strcoll'.
37973         * modules/unistr/u16-strcoll: New file.
37974         * lib/unistr/u16-strcoll.c: New file.
37975
37976         New module 'unistr/u8-strcoll'.
37977         * modules/unistr/u8-strcoll: New file.
37978         * lib/unistr/u8-strcoll.c: New file.
37979         * lib/unistr/u-strcoll.h: New file.
37980
37981 2009-02-07  Bruno Haible  <bruno@clisp.org>
37982
37983         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37984         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37985         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37986         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37987         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37988         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37989
37990 2009-02-07  Bruno Haible  <bruno@clisp.org>
37991
37992         Make 64-bit clean.
37993         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37994         output_combclass, output_bidi_category, output_decimal_digit,
37995         output_digit, output_numeric, output_mirror, output_scripts,
37996         output_ident_category): Use proper width specifier in format strings.
37997
37998 2009-02-07  Bruno Haible  <bruno@clisp.org>
37999
38000         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38001         failure behaviour.
38002
38003 2009-02-07  Jim Meyering  <meyering@redhat.com>
38004
38005         regex: avoid compilation failure with upcoming gcc-4.4
38006         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38007         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38008         "... error: integer overflow in preprocessor expression".
38009
38010 2009-02-05  Ben Pfaff  <blp@gnu.org>
38011
38012         Fix link errors on Windows when close module is used.
38013         * modules/close: Add $(LIB_CLOSE) to Link section.
38014         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38015         $(LIB_CLOSE) on Windows.
38016
38017 2009-02-05  Jim Meyering  <meyering@redhat.com>
38018
38019         still avoid unused-parameter warnings, but do it cleanly
38020         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38021         (get_fs_usage): Cast to void instead.
38022         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38023         (dev_from_mount_options, read_file_system_list): Cast to void.
38024         Prompted by Bruno Haible.
38025
38026 2009-02-04  Jim Meyering  <meyering@redhat.com>
38027
38028         fsusage.c: correct copyright year
38029         * lib/fsusage.c: Reflect year in which the change is pushed into
38030
38031         avoid misc. warnings
38032         * lib/fsusage.c (UNUSED_PARAM): Define.
38033         (get_fs_usage): Mark parameter "disk" as unused.
38034         * lib/getugroups.c (getgrent): Use "void" in prototype.
38035         * lib/mountlist.c: Mark unused parameters.
38036         (read_file_system_list): Declare a local with "const".
38037         * lib/nanosleep.c (getnow): Declare static.
38038         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38039
38040         dirfd: set errno upon failure
38041         * lib/dirfd.c: Include <errno.h>.
38042         Set errno to ENOTSUP when returning -1.
38043         * modules/dirfd (Depends-on): Add errno.
38044         Suggested by John Kodis <kodis@comcast.net>.
38045
38046 2009-02-01  Bruno Haible  <bruno@clisp.org>
38047
38048         Don't assume sizeof (long) >= sizeof (void *).
38049         * lib/memcmp.c: Include stdint.h.
38050         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38051         srcp2 to 'const byte *'.
38052         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38053         types to uintptr_t.
38054         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38055         * modules/memcmp (Depends-on): Add stdint.
38056         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38057
38058 2009-01-30  Eric Blake  <ebb9@byu.net>
38059
38060         fix more require-before-expand issues
38061         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38062         expand, AC_PROG_AWK.
38063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38064
38065 2009-01-28  Eric Blake  <ebb9@byu.net>
38066
38067         version-etc: use consistent URL formatting
38068         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38069         Improve formatting.  Use fputs for string without %.
38070
38071 2009-01-28  Jim Meyering  <meyering@redhat.com>
38072
38073         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38074         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38075         "underquoted definition of NAME" from autoconf-2.59.
38076
38077 2009-01-28  Bruno Haible  <bruno@clisp.org>
38078
38079         * doc/gnulib.texi: Add "Obsolete modules" to index.
38080
38081 2009-01-28  Jim Meyering  <meyering@redhat.com>
38082
38083         useless-if-before-free: recognize more variants
38084         * build-aux/useless-if-before-free: Also recognize e.g.,
38085         if (NULL != p) free (p);
38086
38087 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38088
38089         test-getaddrinfo: skip (don't fail) this test when there's no network
38090         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38091         on the presumption that it means you lack network access.
38092
38093 2009-01-26  Jim Meyering  <meyering@redhat.com>
38094
38095         fflush: avoid warnings on modern systems
38096         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38097         pos and result, into scopes where they're used.
38098
38099 2009-01-26  Eric Blake  <ebb9@byu.net>
38100
38101         Silence warning reintroduced by recent extensions patch.
38102         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38103         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38104         autoconf.
38105
38106         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38107         * m4/00gnulib.m4: New file.
38108         * gnulib-tool (func_get_filelist): Always use it.
38109         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38110         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38111
38112 2009-01-25  Bruno Haible  <bruno@clisp.org>
38113
38114         Make test-quotearg work on MacOS X and AIX.
38115         * tests/test-quotearg.sh: New file.
38116         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38117         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38118         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38119         include <libintl.h>.
38120         (fake_locale): Remove variable.
38121         (gettext, dgettext, dcgettext): Remove functions.
38122         (main): Instead of setting a fake locale, set a real locale. Call
38123         textdomain and bindtextdomain.
38124         * modules/quotearg-tests (Files): Add the new files.
38125         (Depends-on): Add gettext, setenv, unsetenv.
38126         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38127         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38128         Augment TESTS_ENVIRONMENT.
38129
38130 2009-01-25  Bruno Haible  <bruno@clisp.org>
38131
38132         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38133         fr_FR.ISO8859-1 locale on MacOS X.
38134         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38135         ja_JP.eucJP locale on MacOS X.
38136         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38137         zh_CN.GB18030 locale on MacOS X.
38138
38139 2009-01-25  Bruno Haible  <bruno@clisp.org>
38140
38141         Avoid link errors on MacOS X 10.3.
38142         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38143         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38144
38145 2009-01-25  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38148         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38149         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38150         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38151         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38152         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38153         posix_spawnattr_init, posix_spawnattr_setsigmask,
38154         posix_spawnattr_setflags, posix_spawnattr_destroy.
38155
38156         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38157         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38158         * modules/execute (Files): Remove m4/posix_spawn.m4.
38159         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38160         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38161         posix_spawnattr_init, posix_spawnattr_setsigmask,
38162         posix_spawnattr_setflags, posix_spawnattr_destroy.
38163
38164 2009-01-25  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/glthread/threadlib.c: Include <stdlib.h>.
38167
38168 2009-01-25  Bruno Haible  <bruno@clisp.org>
38169
38170         * lib/glthread/threadlib.c (dummy): New declaration.
38171
38172 2009-01-25  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38175         multibyte characters also for the GB18030 encoding. Don't crash when
38176         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38177
38178 2009-01-25  Bruno Haible  <bruno@clisp.org>
38179
38180         Avoid redefining 'struct random_data' on OSF/1 5.1.
38181         * lib/stdlib.in.h: Include <random.h> if it exists.
38182         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38183         HAVE_RANDOM_H. Include <random.h> when testing whether
38184         'struct random_data' exists.
38185         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38186
38187 2009-01-25  Bruno Haible  <bruno@clisp.org>
38188
38189         Don't install charset.alias on MacOS X >= 10.3.
38190         * lib/localcharset.c (DARWIN7): New macro.
38191         (get_charset_aliases): Hardcode the result for Darwin7.
38192         * modules/localcharset (install-exec-local): Don't install
38193         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38194
38195 2009-01-25  Bruno Haible  <bruno@clisp.org>
38196
38197         Don't install charset.alias on mingw and Cygwin.
38198         * modules/localcharset (install-exec-local): Don't install
38199         charset.alias on mingw and Cygwin, if the file does not yet exist.
38200         The result for these platforms is hardcoded in localcharset.c.
38201
38202 2009-01-25  Bruno Haible  <bruno@clisp.org>
38203
38204         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38206         before requiring AC_USE_SYSTEM_EXTENSIONS.
38207
38208 2009-01-25  Jim Meyering  <meyering@redhat.com>
38209
38210         c-strtod: avoid warnings
38211         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38212         "assignment discards qualifiers from pointer target type" warnings.
38213
38214 2009-01-24  Bruno Haible  <bruno@clisp.org>
38215
38216         Add support for non-UTF-8 locales on MacOS X.
38217         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38218         canonical encodings. For Darwin 7 and newer, don't map traditional
38219         encodings to UTF-8.
38220         Reported by Vincent Lefevre <vincent@vinc17.org>
38221         at <http://savannah.gnu.org/bugs/?25235>.
38222
38223 2009-01-24  Bruno Haible  <bruno@clisp.org>
38224
38225         * doc/gnulib.texi (Obsolete modules): New section.
38226         Reported by Mike Frysinger <vapier@gentoo.org>.
38227
38228 2009-01-24  Bruno Haible  <bruno@clisp.org>
38229
38230         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38231         (%.dvi): New rule.
38232
38233 2009-01-24  Bruno Haible  <bruno@clisp.org>
38234
38235         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38236         Reported by Eric Blake.
38237
38238 2009-01-24  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38241         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38242         Reported by Gary V. Vaughan <gary@gnu.org>.
38243
38244 2009-01-24  Bruno Haible  <bruno@clisp.org>
38245
38246         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38247
38248 2009-01-23  Bruno Haible  <bruno@clisp.org>
38249
38250         Make c-strtod, c-strtold usable in libraries.
38251         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38252         (C_STRTOD): Call strdup instead of xstrdup.
38253         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38254         * modules/c-strtold (Depends-on): Likewise.
38255         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38256         * NEWS: Mention the change.
38257         Reported by Michael Gold <mgold@ncf.ca>.
38258
38259 2009-01-23  Jim Meyering  <meyering@redhat.com>
38260
38261         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38262         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38263         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38264
38265 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38266
38267         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38268         GNU CoreUtils.
38269         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38270         * modules/version-etc (Description): Update.
38271
38272 2009-01-22  Bruno Haible  <bruno@clisp.org>
38273
38274         Cache the C locale object.
38275         * lib/c-strtod.c (c_locale_cache): New variable.
38276         (c_locale): New function.
38277         (C_STRTOD): Use it, and don't call freelocale.
38278         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38279         Suggested by Paolo Bonzini.
38280
38281 2009-01-21  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38284         conditions other than overflow.
38285
38286 2009-01-21  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/c-strtod.c: Include errno.h.
38289         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38290         value from STRTOD_L and STRTOD.
38291
38292 2009-01-21  Bruno Haible  <bruno@clisp.org>
38293         and Jim Meyering  <meyering@redhat.com>
38294
38295         nanosleep: skip configure test (fail it) for apple universal builds
38296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38297         universal builds, assume that nanosleep does not work.
38298         * modules/nanosleep (Depends-on): Add multiarch.
38299
38300         mktime: skip configure test (fail it) for apple universal builds
38301         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38302         universal builds, assume that mktime does not work.
38303         * modules/mktime (Depends-on): Add multiarch.
38304
38305 2009-01-21  Eric Blake  <ebb9@byu.net>
38306
38307         multiarch: avoid expand-before-require warning
38308         * modules/multiarch (configure.ac): Require, rather than expand,
38309         gl_MULTIARCH.
38310         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38311         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38312         enforce that all clients require it.  Partial reversion of
38313         2008-12-29 patch.
38314
38315         error: avoid expand-before-require warning
38316         * modules/errno (configure.ac): Require, rather than expand,
38317         gl_HEADER_ERRNO_H.
38318         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38319         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38320         enforce that all clients require it.
38321
38322         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38323         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38324         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38325         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38326
38327 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38328
38329         Revert:
38330         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38331
38332         regex: do not depend on obsolete modules.
38333         * modules/regex: Remove memcmp and memmove.
38334
38335 2009-01-20  Bruno Haible  <bruno@clisp.org>
38336
38337         Make the 'link' module link on Windows NT 4.
38338         * lib/link.c (_WIN32_WINNT): Don't define.
38339         (CreateHardLinkFuncType): New type.
38340         (CreateHardLinkFunc, initialized): New variables.
38341         (initialize): New function.
38342         (link): Invoke CreateHardLink indirectly through the function pointer.
38343
38344 2009-01-20  Bruno Haible  <bruno@clisp.org>
38345
38346         Fix compilation failure on mingw.
38347         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38348
38349 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38350
38351         * doc/c-strtod.texi: Mention a couple of restrictions.
38352
38353 2009-01-20  Jim Meyering  <meyering@redhat.com>
38354
38355         gettimeofday: move more declarations out of functions
38356         * lib/gettimeofday.c: Move extern declarations of tzset and
38357         gmtime out of containing functions.  Prompted by Bruno Haible.
38358
38359 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38360
38361         regex: do not depend on obsolete modules.
38362         * modules/regex: Remove memcmp and memmove.
38363
38364 2009-01-19  Bruno Haible  <bruno@clisp.org>
38365
38366         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38367         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38368         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38369         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38370         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38371
38372 2009-01-19  Bruno Haible  <bruno@clisp.org>
38373
38374         * tests/test-link.c: Include <errno.h>.
38375         (main): Exit with code 77 when a hard link cannot be created due to
38376         the file system.
38377         * tests/test-link.sh: Skip test when a hard link cannot be created due
38378         to the file system.
38379         Suggested by Eric Blake.
38380
38381 2009-01-19  Martin Lambers  <marlam@marlam.de>
38382
38383         * modules/link-tests: New file.
38384         * tests/test-link.sh: New file.
38385         * tests/test-link.c: New file.
38386
38387 2009-01-19  Eric Blake  <ebb9@byu.net>
38388
38389         doc: mention another function added in cygwin 1.7.0
38390         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38391         Another new function in cygwin 1.7.
38392
38393 2009-01-19  Bruno Haible  <bruno@clisp.org>
38394
38395         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38396         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38397         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38398         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38399         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38400         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38401         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38402         * m4/md4.m4 (gl_MD4): Likewise.
38403         * m4/md5.m4 (gl_MD5): Likewise.
38404         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38405         * m4/sha1.m4 (gl_SHA1): Likewise.
38406         * m4/sha256.m4 (gl_SHA256): Likewise.
38407         * m4/sha512.m4 (gl_SHA512): Likewise.
38408
38409 2009-01-19  Bruno Haible  <bruno@clisp.org>
38410
38411         * modules/uniname/uniname-tests (Depends-on): Add progname.
38412         * tests/uniname/test-uninames.c: Include progname.h.
38413         (main): Call set_program_name.
38414
38415         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38416         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38417         (main): Call set_program_name.
38418
38419         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38420         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38421         (main): Call set_program_name.
38422
38423         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38424         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38425         (main): Call set_program_name.
38426
38427         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38428         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38429         (main): Call set_program_name.
38430
38431         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38432         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38433         (main): Call set_program_name.
38434
38435         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38436         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38437         (main): Call set_program_name.
38438
38439         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38440         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38441         (main): Call set_program_name.
38442
38443         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38444         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38445         (main): Call set_program_name.
38446
38447 2009-01-19  Eric Blake  <ebb9@byu.net>
38448
38449         test-unistd: test previous patch
38450         * tests/test-unistd.c: Test *_FILENO macros.
38451
38452         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38453         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38454         Guarantee a definition.
38455         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38456         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38457         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38458         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38459         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38460         Likewise.
38461         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38462         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38463         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38464         Likewise.
38465         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38466         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38467         (STDERR_FILENO): Likewise.
38468         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38469         (STDERR_FILENO): Likewise.
38470         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38471         (STDERR_FILENO): Likewise.
38472         Reported by Elbert Pol.
38473
38474 2009-01-19  Eric Blake  <ebb9@byu.net>
38475
38476         doc: mention more functions added in cygwin 1.7.0
38477         * doc/posix-functions/abort.texi (abort): Update wording related
38478         to cygwin.
38479         * doc/posix-functions/daylight.texi (daylight): Likewise.
38480         * doc/posix-functions/optarg.texi (optarg): Likewise.
38481         * doc/posix-functions/optarg.texi (opterr): Likewise.
38482         * doc/posix-functions/optarg.texi (optind): Likewise.
38483         * doc/posix-functions/optarg.texi (optopt): Likewise.
38484         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38485         worked in 1.5.x, and was withdrawn in 1.7.
38486         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38487         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38488         cygwin versions.
38489         * doc/posix-functions/perror.texi (perror): Likewise.
38490         * doc/posix-functions/printf.texi (printf): Likewise.
38491         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38492         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38494         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38495         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38496         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38497         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38498         Likewise.
38499         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38500         Likewise.
38501         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38502         this function.
38503         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38504         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38505         Likewise.
38506         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38507         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38508         * doc/posix-functions/confstr.texi (confstr): Likewise.
38509         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38510         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38511         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38512         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38513         * doc/posix-functions/fputws.texi (fputws): Likewise.
38514         * doc/posix-functions/fwide.texi (fwide): Likewise.
38515         * doc/posix-functions/getwc.texi (getwc): Likewise.
38516         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38517         * doc/posix-functions/putwc.texi (putwc): Likewise.
38518         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38519         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38520         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38521         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38522         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38523         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38524         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38525         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38526         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38527         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38528         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38529
38530 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38531
38532         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38533         * lib/ioctl.c: Include <sys/ioctl.h>.
38534
38535 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38536
38537         * modules/getdate-tests (Depends-on): Add progname.
38538         * tests/test-getdate.c: Use progname module, to avoid link errors
38539         on non-glibc systems.
38540
38541 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38542
38543         * modules/filenamecat-tests (Depends-on): Add progname.
38544         * modules/fstrcmp-tests (Depends-on): Likewise.
38545
38546         * tests/test-filenamecat.c: Use progname module, to avoid link
38547         errors on non-glibc systems.
38548         * tests/test-fstrcmp.c: Likewise.
38549
38550 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38551
38552         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38553         * lib/gettimeofday.c: Move extern declaration out of function.
38554
38555 2009-01-18  Bruno Haible  <bruno@clisp.org>
38556
38557         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38558         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38559         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38560
38561 2009-01-18  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/strftime.c (MEMPCPY): Remove unused macro.
38564         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38565
38566 2009-01-18  Martin Lambers  <marlam@marlam.de>
38567
38568         New module 'link'.
38569         * lib/unistd.in.h (link): New declaration.
38570         * lib/link.c: New file.
38571         * m4/link.m4: New file.
38572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38573         HAVE_LINK.
38574         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38575         * modules/link: New file.
38576         * doc/posix-functions/link.texi: Mention the new module.
38577
38578 2009-01-18  Bruno Haible  <bruno@clisp.org>
38579
38580         * tests/test-avltree_list.c (main): Call set_program_name.
38581         * tests/test-avltree_oset.c (main): Likewise.
38582         * tests/test-obstack-printf.c: Include progname.h.
38583         (main): Call set_program_name.
38584         * tests/test-quotearg.c: Include progname.h.
38585         (main): Call set_program_name.
38586         * tests/test-xmemdup0.c: Include progname.h.
38587         (main): Call set_program_name.
38588
38589 2009-01-18  Bruno Haible  <bruno@clisp.org>
38590
38591         New module 'alphasort'.
38592         * lib/dirent.in.h (alphasort): New declaration.
38593         * lib/alphasort.c: New file, from glibc with modifications.
38594         * m4/alphasort.m4: New file.
38595         * modules/alphasort: New file.
38596         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38597         HAVE_ALPHASORT.
38598         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38599         HAVE_ALPHASORT.
38600         * doc/posix-functions/alphasort.texi: Mention the new module and the
38601         portability problems.
38602
38603 2009-01-18  Bruno Haible  <bruno@clisp.org>
38604
38605         New module 'scandir'.
38606         * lib/dirent.in.h (scandir): New declaration.
38607         * lib/scandir.c: New file, from glibc with modifications.
38608         * m4/scandir.m4: New file.
38609         * modules/scandir: New file.
38610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38611         HAVE_SCANDIR.
38612         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38613         HAVE_SCANDIR.
38614         * doc/posix-functions/scandir.texi: Mention the new module and the
38615         portability problems.
38616
38617 2009-01-17  Bruno Haible  <bruno@clisp.org>
38618
38619         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38620         Update documentation.
38621         (func_remove_suffix): Escape all dots in the suffix. Update
38622         documentation.
38623         (func_filter_filelist): Update documentation.
38624         Reported by Ralf Wildenhues.
38625
38626 2009-01-17  Bruno Haible  <bruno@clisp.org>
38627
38628         * modules/dprintf-posix-tests: New file.
38629         * tests/test-dprintf-posix.sh: New file.
38630         * tests/test-dprintf-posix.c: New file.
38631
38632         New modules 'dprintf', 'dprintf-posix'.
38633         * lib/stdio.in.h (dprintf): New declaration.
38634         * lib/dprintf.c: New file.
38635         * m4/dprintf.m4: New file.
38636         * m4/dprintf-posix.m4: New file.
38637         * modules/dprintf: New file.
38638         * modules/dprintf-posix: New file.
38639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38640         HAVE_DPRINTF, REPLACE_DPRINTF.
38641         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38642         HAVE_DPRINTF, REPLACE_DPRINTF.
38643         * doc/posix-functions/dprintf.texi: Mention the new modules.
38644
38645 2009-01-17  Bruno Haible  <bruno@clisp.org>
38646
38647         * modules/vdprintf-posix-tests: New file.
38648         * tests/test-vdprintf-posix.sh: New file.
38649         * tests/test-vdprintf-posix.c: New file.
38650
38651         New modules 'vdprintf', 'vdprintf-posix'.
38652         * lib/stdio.in.h (vdprintf): New declaration.
38653         * lib/vdprintf.c: New file.
38654         * m4/vdprintf.m4: New file.
38655         * m4/vdprintf-posix.m4: New file.
38656         * modules/vdprintf: New file.
38657         * modules/vdprintf-posix: New file.
38658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38659         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38660         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38661         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38662         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38663
38664 2009-01-17  Bruno Haible  <bruno@clisp.org>
38665
38666         Fix replacement of fopen on mingw.
38667         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38668         mingw.
38669
38670 2009-01-17  Bruno Haible  <bruno@clisp.org>
38671
38672         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38673         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38674
38675 2009-01-17  Bruno Haible  <bruno@clisp.org>
38676
38677         Avoid test-fflush2.sh failure on mingw.
38678         * tests/test-fflush2.c: Include binary-io.h.
38679         (main): Put standard input into binary mode.
38680         * modules/fflush-tests (Depends-on): Add binary-io.
38681
38682 2009-01-17  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/wchar.in.h: In another particular situation, include only the
38685         system's <wchar.h> file.
38686         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38687         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38688         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38689
38690 2009-01-17  Bruno Haible  <bruno@clisp.org>
38691
38692         Support for stripping executables in --enable-relocatable.
38693         * build-aux/install-reloc: Expect one more argument, or an environment
38694         variable RELOC_STRIP_PROG. If set, strip the destination program and
38695         its wrapper.
38696         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38697         RELOC_STRIP_PROG.
38698         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38699         to set RELOCATABLE_STRIP.
38700         * NEWS: Mention the new Makefile requirement.
38701
38702 2009-01-17  Bruno Haible  <bruno@clisp.org>
38703
38704         * build-aux/install-reloc: Remove debugging information left over by
38705         C compiler on MacOS X.
38706
38707 2009-01-17  Bruno Haible  <bruno@clisp.org>
38708
38709         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38710         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38711         _NSGetExecutablePath.
38712
38713 2009-01-16  Jim Meyering  <meyering@redhat.com>
38714
38715         strerror: avoid warnings about discarding "const"
38716         * lib/strerror.c (rpl_strerror): Instead of returning a const
38717         string from each and every "case", use a variable, and add a single
38718         cast after the switch.
38719
38720 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38721
38722         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38723
38724 2009-01-16  Bruno Haible  <bruno@clisp.org>
38725
38726         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38727         array initializer syntax that also works in C++ mode.
38728         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38729
38730 2009-01-16  Jim Meyering  <meyering@redhat.com>
38731
38732         poll: suppress a warning
38733         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38734         to ignore "...unsigned expression < 0 is always false" warnings.
38735
38736 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38737
38738         poll: remove declarations of unused variables
38739         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38740         sockbuf and optlen.
38741
38742 2009-01-15  Bruno Haible  <bruno@clisp.org>
38743
38744         Make fflush-after-ungetc POSIX compliant on BSD systems.
38745         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38746         (clear_ungetc_buffer): Implement also for other systems.
38747         (rpl_fflush): On glibc systems, invoke
38748         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38749         clear_ungetc_buffer after fetching the stream's position, not before.
38750
38751 2009-01-15  Bruno Haible  <bruno@clisp.org>
38752
38753         Make fflush-after-ungetc POSIX compliant on glibc systems.
38754         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38755         after ungetc.
38756         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38757         (rpl_fflush): On glibc systems, simply call the system's fflush
38758         function after clearing the ungetc buffer.
38759         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38760         Instead, lseek only to the end of file, then use the system's fseeko
38761         for the rest. On glibc systems, reset the EOF indicator bit.
38762
38763 2009-01-15  Jim Meyering  <meyering@redhat.com>
38764
38765         openmp.m4: revert quote-adding change, for portability to older autoconf
38766         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38767         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38768         Simon Josefsson noticed the problem when using autoconf-2.61.
38769
38770 2009-01-15  Bruno Haible  <bruno@clisp.org>
38771
38772         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38773         * tests/test-fflush2.c (ASSERT): Always fail.
38774         (main): Add two tests for fflush() after ungetc(), taking into account
38775         the Austin Group's clarification.
38776         Suggested by Eric Blake.
38777
38778 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38779
38780         mktime.m4: remove K&R-style function prototypes
38781         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38782         for the Sun C++ compiler.
38783
38784 2009-01-14  Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38787         while including <wchar.h>.
38788         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38789         the system's <wchar.h> file.
38790         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38791
38792 2009-01-14  Bruno Haible  <bruno@clisp.org>
38793
38794         * m4/csharp.m4: Don't mention gettext on the serial number line.
38795         * m4/csharpexec.m4: Likewise.
38796         * m4/eaccess.m4: Likewise.
38797         * m4/javaexec.m4: Likewise.
38798         * m4/sig_atomic_t.m4: Likewise.
38799         * m4/tmpdir.m4: Likewise.
38800         * m4/intldir.m4: Bump gettext version.
38801         * m4/lib-ld.m4: Likewise.
38802
38803 2009-01-14  Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/progname.c (set_program_name): Add more comments.
38806         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38807
38808 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38809
38810         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38811         were sys/stat.h does not define it.
38812
38813 2009-01-14  Jim Meyering  <meyering@redhat.com>
38814
38815         many *.m4 files: improve m4 quoting
38816         99% of this change was performed by running the following commands:
38817         git ls-files | grep '\.m4$' | xargs perl -pi \
38818           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38819           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38820           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38821           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38822         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38823         The remainder were to add Copyright dates, increment serial numbers,
38824         undo some changes in comments, exclude m4/intl.m4, and add quotes
38825         around the "1" in ",1" where the unusual spacing prohibited the
38826         above regexps from doing the job.  For more details, see
38827         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38828         * m4/acl.m4: Modified.
38829         * m4/afs.m4: Likewise.
38830         * m4/alloca.m4: Likewise.
38831         * m4/argp.m4: Likewise.
38832         * m4/argz.m4: Likewise.
38833         * m4/atexit.m4: Likewise.
38834         * m4/bison-i18n.m4: Likewise.
38835         * m4/bison.m4: Likewise.
38836         * m4/byteswap.m4: Likewise.
38837         * m4/c-stack.m4: Likewise.
38838         * m4/c-strtod.m4: Likewise.
38839         * m4/calloc.m4: Likewise.
38840         * m4/canonicalize-lgpl.m4: Likewise.
38841         * m4/chown.m4: Likewise.
38842         * m4/clock_time.m4: Likewise.
38843         * m4/codeset.m4: Likewise.
38844         * m4/copy-file.m4: Likewise.
38845         * m4/csharp.m4: Likewise.
38846         * m4/csharpcomp.m4: Likewise.
38847         * m4/csharpexec.m4: Likewise.
38848         * m4/d-ino.m4: Likewise.
38849         * m4/d-type.m4: Likewise.
38850         * m4/dirfd.m4: Likewise.
38851         * m4/double-slash-root.m4: Likewise.
38852         * m4/eaccess.m4: Likewise.
38853         * m4/eealloc.m4: Likewise.
38854         * m4/environ.m4: Likewise.
38855         * m4/errno_h.m4: Likewise.
38856         * m4/euidaccess.m4: Likewise.
38857         * m4/execute.m4: Likewise.
38858         * m4/fatal-signal.m4: Likewise.
38859         * m4/fchdir.m4: Likewise.
38860         * m4/fcntl_h.m4: Likewise.
38861         * m4/fileblocks.m4: Likewise.
38862         * m4/filenamecat.m4: Likewise.
38863         * m4/findprog.m4: Likewise.
38864         * m4/flexmember.m4: Likewise.
38865         * m4/fnmatch.m4: Likewise.
38866         * m4/fopen.m4: Likewise.
38867         * m4/fpending.m4: Likewise.
38868         * m4/fprintf-posix.m4: Likewise.
38869         * m4/free.m4: Likewise.
38870         * m4/frexp.m4: Likewise.
38871         * m4/frexpl.m4: Likewise.
38872         * m4/fsusage.m4: Likewise.
38873         * m4/ftruncate.m4: Likewise.
38874         * m4/gc-camellia.m4: Likewise.
38875         * m4/gc-random.m4: Likewise.
38876         * m4/gc.m4: Likewise.
38877         * m4/getaddrinfo.m4: Likewise.
38878         * m4/getcwd-abort-bug.m4: Likewise.
38879         * m4/getcwd-path-max.m4: Likewise.
38880         * m4/getdate.m4: Likewise.
38881         * m4/getdomainname.m4: Likewise.
38882         * m4/getgroups.m4: Likewise.
38883         * m4/gethostname.m4: Likewise.
38884         * m4/gethrxtime.m4: Likewise.
38885         * m4/getline.m4: Likewise.
38886         * m4/getloadavg.m4: Likewise.
38887         * m4/getndelim2.m4: Likewise.
38888         * m4/getpass.m4: Likewise.
38889         * m4/gettext.m4: Likewise.
38890         * m4/gettime.m4: Likewise.
38891         * m4/gettimeofday.m4: Likewise.
38892         * m4/gnulib-common.m4: Likewise.
38893         * m4/group-member.m4: Likewise.
38894         * m4/host-os.m4: Likewise.
38895         * m4/iconv.m4: Likewise.
38896         * m4/iconv_open.m4: Likewise.
38897         * m4/inet_ntop.m4: Likewise.
38898         * m4/inet_pton.m4: Likewise.
38899         * m4/inline.m4: Likewise.
38900         * m4/intldir.m4: Likewise.
38901         * m4/intlmacosx.m4: Likewise.
38902         * m4/intmax.m4: Likewise.
38903         * m4/intmax_t.m4: Likewise.
38904         * m4/inttypes.m4: Likewise.
38905         * m4/inttypes_h.m4: Likewise.
38906         * m4/inttypes-pri.m4: Likewise.
38907         * m4/isapipe.m4: Likewise.
38908         * m4/isnand.m4: Likewise.
38909         * m4/isnanf.m4: Likewise.
38910         * m4/isnanl.m4: Likewise.
38911         * m4/javacomp.m4: Likewise.
38912         * m4/javaexec.m4: Likewise.
38913         * m4/jm-winsz1.m4: Likewise.
38914         * m4/jm-winsz2.m4: Likewise.
38915         * m4/lchown.m4: Likewise.
38916         * m4/lcmessage.m4: Likewise.
38917         * m4/ldexpl.m4: Likewise.
38918         * m4/lib-ld.m4: Likewise.
38919         * m4/lib-link.m4: Likewise.
38920         * m4/libsigsegv.m4: Likewise.
38921         * m4/link-follow.m4: Likewise.
38922         * m4/localcharset.m4: Likewise.
38923         * m4/locale-fr.m4: Likewise.
38924         * m4/locale-ja.m4: Likewise.
38925         * m4/locale-tr.m4: Likewise.
38926         * m4/locale-zh.m4: Likewise.
38927         * m4/lock.m4: Likewise.
38928         * m4/longlong.m4: Likewise.
38929         * m4/ls-mntd-fs.m4: Likewise.
38930         * m4/lstat.m4: Likewise.
38931         * m4/malloc.m4: Likewise.
38932         * m4/mathl.m4: Likewise.
38933         * m4/mbrtowc.m4: Likewise.
38934         * m4/mbstate_t.m4: Likewise.
38935         * m4/mbswidth.m4: Likewise.
38936         * m4/memchr.m4: Likewise.
38937         * m4/memcmp.m4: Likewise.
38938         * m4/memcpy.m4: Likewise.
38939         * m4/memmem.m4: Likewise.
38940         * m4/memmove.m4: Likewise.
38941         * m4/mempcpy.m4: Likewise.
38942         * m4/memrchr.m4: Likewise.
38943         * m4/memset.m4: Likewise.
38944         * m4/minmax.m4: Likewise.
38945         * m4/mkdir-slash.m4: Likewise.
38946         * m4/mkdtemp.m4: Likewise.
38947         * m4/mktime.m4: Likewise.
38948         * m4/mmap-anon.m4: Likewise.
38949         * m4/mountlist.m4: Likewise.
38950         * m4/nanosleep.m4: Likewise.
38951         * m4/nls.m4: Likewise.
38952         * m4/nocrash.m4: Likewise.
38953         * m4/open.m4: Likewise.
38954         * m4/openat.m4: Likewise.
38955         * m4/openmp.m4: Likewise.
38956         * m4/pathmax.m4: Likewise.
38957         * m4/perl.m4: Likewise.
38958         * m4/physmem.m4: Likewise.
38959         * m4/pipe.m4: Likewise.
38960         * m4/po.m4: Likewise.
38961         * m4/poll.m4: Likewise.
38962         * m4/posixtm.m4: Likewise.
38963         * m4/posixver.m4: Likewise.
38964         * m4/printf-frexp.m4: Likewise.
38965         * m4/printf-frexpl.m4: Likewise.
38966         * m4/printf-posix.m4: Likewise.
38967         * m4/printf-posix-rpl.m4: Likewise.
38968         * m4/printf.m4: Likewise.
38969         * m4/progtest.m4: Likewise.
38970         * m4/putenv.m4: Likewise.
38971         * m4/readline.m4: Likewise.
38972         * m4/readlink.m4: Likewise.
38973         * m4/readutmp.m4: Likewise.
38974         * m4/realloc.m4: Likewise.
38975         * m4/regex.m4: Likewise.
38976         * m4/relocatable.m4: Likewise.
38977         * m4/relocatable-lib.m4: Likewise.
38978         * m4/rename-dest-slash.m4: Likewise.
38979         * m4/rename.m4: Likewise.
38980         * m4/rmdir-errno.m4: Likewise.
38981         * m4/rmdir.m4: Likewise.
38982         * m4/roundf.m4: Likewise.
38983         * m4/roundl.m4: Likewise.
38984         * m4/rpmatch.m4: Likewise.
38985         * m4/save-cwd.m4: Likewise.
38986         * m4/selinux-selinux-h.m4: Likewise.
38987         * m4/setenv.m4: Likewise.
38988         * m4/settime.m4: Likewise.
38989         * m4/sig2str.m4: Likewise.
38990         * m4/sig_atomic_t.m4: Likewise.
38991         * m4/signalblocking.m4: Likewise.
38992         * m4/signbit.m4: Likewise.
38993         * m4/sigpipe.m4: Likewise.
38994         * m4/sockets.m4: Likewise.
38995         * m4/sockpfaf.m4: Likewise.
38996         * m4/st_dm_mode.m4: Likewise.
38997         * m4/stat-time.m4: Likewise.
38998         * m4/stdbool.m4: Likewise.
38999         * m4/stdint.m4: Likewise.
39000         * m4/stdint_h.m4: Likewise.
39001         * m4/stpcpy.m4: Likewise.
39002         * m4/stpncpy.m4: Likewise.
39003         * m4/strcase.m4: Likewise.
39004         * m4/strchrnul.m4: Likewise.
39005         * m4/strcspn.m4: Likewise.
39006         * m4/strdup.m4: Likewise.
39007         * m4/strftime.m4: Likewise.
39008         * m4/strndup.m4: Likewise.
39009         * m4/strnlen.m4: Likewise.
39010         * m4/strpbrk.m4: Likewise.
39011         * m4/strptime.m4: Likewise.
39012         * m4/strsep.m4: Likewise.
39013         * m4/strtod.m4: Likewise.
39014         * m4/strtoimax.m4: Likewise.
39015         * m4/strtok_r.m4: Likewise.
39016         * m4/strtol.m4: Likewise.
39017         * m4/strtoll.m4: Likewise.
39018         * m4/strtoul.m4: Likewise.
39019         * m4/strtoull.m4: Likewise.
39020         * m4/strtoumax.m4: Likewise.
39021         * m4/strverscmp.m4: Likewise.
39022         * m4/threadlib.m4: Likewise.
39023         * m4/timegm.m4: Likewise.
39024         * m4/tm_gmtoff.m4: Likewise.
39025         * m4/tmpdir.m4: Likewise.
39026         * m4/tmpfile.m4: Likewise.
39027         * m4/tzset.m4: Likewise.
39028         * m4/uintmax_t.m4: Likewise.
39029         * m4/unlinkdir.m4: Likewise.
39030         * m4/unlocked-io.m4: Likewise.
39031         * m4/uptime.m4: Likewise.
39032         * m4/userspec.m4: Likewise.
39033         * m4/utimbuf.m4: Likewise.
39034         * m4/utime.m4: Likewise.
39035         * m4/utimes-null.m4: Likewise.
39036         * m4/utimes.m4: Likewise.
39037         * m4/vararrays.m4: Likewise.
39038         * m4/vasnprintf.m4: Likewise.
39039         * m4/vfprintf-posix.m4: Likewise.
39040         * m4/vprintf-posix.m4: Likewise.
39041         * m4/wait-process.m4: Likewise.
39042         * m4/wchar_t.m4: Likewise.
39043         * m4/wint_t.m4: Likewise.
39044         * m4/write-any-file.m4: Likewise.
39045         * m4/yield.m4: Likewise.
39046
39047 2009-01-13  Bruno Haible  <bruno@clisp.org>
39048
39049         Avoid test-copy-file.sh failures when ACL support insufficient.
39050         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39051         TESTS_ENVIRONMENT.
39052         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39053         Reported by Jim Meyering.
39054
39055 2009-01-13  Bruno Haible  <bruno@clisp.org>
39056
39057         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39058         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39059         * modules/unistdio/u8-printf-parse (Files): Likewise.
39060         * modules/unistdio/u32-printf-parse (Files): Likewise.
39061         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39062
39063 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39064
39065         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39066         and m4/inttypes_h.m4 too.
39067
39068 2009-01-12  Eric Blake  <ebb9@byu.net>
39069
39070         tests: IRIX 6.2 cc can't compile -0.0 into .data
39071         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39072         rather than at compile-time.
39073         * tests/test-floorl.c (minus_zero): Likewise.
39074         * tests/test-frexpl.c (minus_zero): Likewise.
39075         * tests/test-isnan.c (minus_zerol): Likewise.
39076         * tests/test-isnanl.h (minus_zero): Likewise.
39077         * tests/test-ldexpl.c (minus_zero): Likewise.
39078         * tests/test-roundl.c (minus_zero): Likewise.
39079         * tests/test-signbit.c (minus_zerol): Likewise.
39080         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39081         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39082         * tests/test-truncl.c (minus_zero): Likewise.
39083         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39084         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39085         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39086
39087 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39088
39089         regex: fix glibc bug 9697
39090         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39091         handling.
39092
39093 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39094
39095         regex: fix glibc bug 697
39096         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39097         being NULL also if there are no backreferences.
39098
39099 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39100
39101         regex: merge glibc changes
39102         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39103         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39104         re_string_skip_chars, re_string_reconstruct): Likewise.
39105         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39106
39107 2009-01-07  Jim Meyering  <meyering@redhat.com>
39108
39109         poll: filter through cppi
39110         * lib/poll.c: Indent cpp directives to reflect nesting.
39111
39112 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39113
39114         poll: don't return uninitialized
39115         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39116
39117 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39118
39119         avoid compile failure on AIX 6.1
39120         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39121         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39122
39123 2009-01-04  Jim Meyering  <meyering@redhat.com>
39124
39125         remove duplicate inclusion of <stdio.h>
39126         * tests/test-fprintf-posix.c: Likewise.
39127         * tests/test-printf-posix.c: Likewise.
39128         * tests/test-snprintf-posix.c: Likewise.
39129         * tests/test-sprintf-posix.c: Likewise.
39130         * tests/test-vasprintf-posix.c: Likewise.
39131         * tests/test-vfprintf-posix.c: Likewise.
39132         * tests/test-vprintf-posix.c: Likewise.
39133         * tests/test-vsnprintf-posix.c: Likewise.
39134         * tests/test-vsprintf-posix.c: Likewise.
39135
39136 2009-01-03  Jim Meyering  <meyering@redhat.com>
39137
39138         gnulib-tool: fix sed-based filtering
39139         * gnulib-tool (func_filter_filelist): Remove extra backslash
39140         in sed_fff_filter definition.
39141
39142 2009-01-02  Jim Meyering  <meyering@redhat.com>
39143
39144         strftime: avoid compilation failure on Solaris 2.6
39145         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39146         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39147         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39148         be available.  Reported by Tom G. Christensen.  Details in
39149         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39150
39151 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39152             Bruno Haible  <bruno@clisp.org>
39153
39154         Speed up gnulib-tool by doing more string processing through shell
39155         built-ins.
39156         * gnulib-tool (fast_func_append): New variable.
39157         (func_remove_prefix, func_remove_suffix): New functions.
39158         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39159         (func_filter_filelist): New function.
39160         (func_get_dependencies): Use func_remove_suffix instead of sed.
39161         (func_get_automake_snippet): Use func_filter_filelist instead of a
39162         subshell and sed invocation.
39163
39164 2009-01-01  Bruno Haible  <bruno@clisp.org>
39165
39166         Fix a security bug.
39167         * gnulib-tool (func_import, import, update): Don't allow the characters
39168         '"', '$', '`', '\' in macro arguments that become part of commands that
39169         are evaluated.
39170
39171 2009-01-01  Bruno Haible  <bruno@clisp.org>
39172
39173         * gnulib-tool (func_reset_sigpipe): Add more comments.
39174
39175 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39176
39177         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39178         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39179         already know the answer.
39180
39181 2009-01-01  Jim Meyering  <meyering@redhat.com>
39182
39183         * lib/version-etc.c (version_etc_va): Update copyright year.
39184
39185 2008-12-30  Bruno Haible  <bruno@clisp.org>
39186
39187         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39188         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39189         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39190
39191 2008-12-29  Eric Blake  <ebb9@byu.net>
39192
39193         multiarch: avoid autoconf AC_REQUIRE bug
39194         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39195         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39196         2.63 and older.
39197         Reported by Bruno Haible, and analyzed in
39198         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39199
39200 2008-12-29  Bruno Haible  <bruno@clisp.org>
39201
39202         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39203         files in subdirectories correctly.
39204         Reported by Ralf Wildenhues.
39205
39206 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39207
39208         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39209         rather than 'join FILE -', for Solaris join.
39210
39211 2008-12-29  Bruno Haible  <bruno@clisp.org>
39212
39213         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39214         quoting.
39215         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39216         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39217         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39218         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39219         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39220         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39221         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39222         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39223         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39224         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39225         * m4/nls.m4 (AM_NLS): Likewise.
39226         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39227         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39228         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39229         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39230         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39232         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39233         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39234         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39235         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39236         * m4/xsize.m4 (gl_XSIZE): Likewise.
39237         Suggested by Jim Meyering.
39238
39239 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39240
39241         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39242         * lib/parse-duration.c: use a switch instead of cascading if's.
39243
39244 2008-12-29  Eric Blake  <ebb9@byu.net>
39245
39246         wchar.h: supply WEOF on Irix 5.3
39247         * lib/wchar.in.h (wint_t): Also supply WEOF.
39248         * lib/wctype.in.h (wint_t): Likewise.
39249         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39250         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39251         Reported by Tom G. Christensen.
39252
39253 2008-12-26  Bruno Haible  <bruno@clisp.org>
39254
39255         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39256         i486, i586, i686.
39257
39258 2008-12-26  Bruno Haible  <bruno@clisp.org>
39259
39260         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39261
39262 2008-12-26  Bruno Haible  <bruno@clisp.org>
39263
39264         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39265         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39266         not __STDC_CONSTANT_MACROS.
39267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39268
39269 2008-12-25  Bruno Haible  <bruno@clisp.org>
39270
39271         Add support for universal builds to vasnprintf.
39272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39273         universal builds, guess no.
39274         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39275         * modules/vasprintf-posix (Depends-on): Likewise.
39276         * modules/fprintf-posix (Depends-on): Likewise.
39277         * modules/vfprintf-posix (Depends-on): Likewise.
39278         * modules/snprintf-posix (Depends-on): Likewise.
39279         * modules/vsnprintf-posix (Depends-on): Likewise.
39280         * modules/sprintf-posix (Depends-on): Likewise.
39281         * modules/vsprintf-posix (Depends-on): Likewise.
39282         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39285         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39286         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39289
39290         Add support for universal builds to <inttypes.h>.
39291         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39292         _SCNu64_PREFIX): In Apple
39293         universal builds, define directly, using _LP64.
39294         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39295         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39296         * modules/inttypes (Depends-on): Add multiarch.
39297         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39298
39299         Add support for universal builds to <stdint.h>.
39300         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39301         universal builds, define directly, using _LP64.
39302         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39303         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39304         and size_t.
39305         * modules/stdint (Depends-on): Add multiarch.
39306         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39307
39308         New module 'multiarch'.
39309         * modules/multiarch: New file.
39310         * m4/multiarch.m4: New file.
39311
39312 2008-12-25  Bruno Haible  <bruno@clisp.org>
39313
39314         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39315
39316 2008-12-25  Bruno Haible  <bruno@clisp.org>
39317
39318         * modules/btowc (License): Relicense under LGPLv2+.
39319         * modules/mbsinit (License): Likewise.
39320         * modules/mbrtowc (License): Likewise.
39321         * modules/wcrtomb (License): Likewise.
39322         * modules/streq (License): Likewise.
39323         Reported by David Lutterkort <lutter@redhat.com>.
39324
39325 2008-12-23  Bruno Haible  <bruno@clisp.org>
39326
39327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39328
39329 2008-12-23  Bruno Haible  <bruno@clisp.org>
39330
39331         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39333         GETADDRINFO_LIB, not in LIBS.
39334         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39335         * modules/canon-host (Link): Likewise.
39336         * NEWS: Mention the change.
39337         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39338         GETADDRINFO_LIB.
39339
39340 2008-12-22  Bruno Haible  <bruno@clisp.org>
39341
39342         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39343         * doc/posix-functions/iswalpha_l.texi: Likewise.
39344         * doc/posix-functions/iswblank_l.texi: Likewise.
39345         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39346         * doc/posix-functions/iswctype_l.texi: Likewise.
39347         * doc/posix-functions/iswdigit_l.texi: Likewise.
39348         * doc/posix-functions/iswgraph_l.texi: Likewise.
39349         * doc/posix-functions/iswlower_l.texi: Likewise.
39350         * doc/posix-functions/iswprint_l.texi: Likewise.
39351         * doc/posix-functions/iswpunct_l.texi: Likewise.
39352         * doc/posix-functions/iswspace_l.texi: Likewise.
39353         * doc/posix-functions/iswupper_l.texi: Likewise.
39354         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39355         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39356         * doc/posix-functions/open_wmemstream.texi: Likewise.
39357         * doc/posix-functions/swscanf.texi: Likewise.
39358         * doc/posix-functions/towctrans_l.texi: Likewise.
39359         * doc/posix-functions/towlower.texi: Likewise.
39360         * doc/posix-functions/towlower_l.texi: Likewise.
39361         * doc/posix-functions/towupper.texi: Likewise.
39362         * doc/posix-functions/towupper_l.texi: Likewise.
39363         * doc/posix-functions/vfwprintf.texi: Likewise.
39364         * doc/posix-functions/vfwscanf.texi: Likewise.
39365         * doc/posix-functions/vswscanf.texi: Likewise.
39366         * doc/posix-functions/vwprintf.texi: Likewise.
39367         * doc/posix-functions/vwscanf.texi: Likewise.
39368         * doc/posix-functions/wcpcpy.texi: Likewise.
39369         * doc/posix-functions/wcpncpy.texi: Likewise.
39370         * doc/posix-functions/wcscasecmp.texi: Likewise.
39371         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39372         * doc/posix-functions/wcscoll_l.texi: Likewise.
39373         * doc/posix-functions/wcsdup.texi: Likewise.
39374         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39375         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39376         * doc/posix-functions/wcsnlen.texi: Likewise.
39377         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39378         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39379         * doc/posix-functions/wctrans_l.texi: Likewise.
39380         * doc/posix-functions/wctype_l.texi: Likewise.
39381         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39382         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39383         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39384         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39385         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39386         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39387         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39388         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39389         * doc/glibc-functions/wcschrnul.texi: Likewise.
39390         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39391         * doc/glibc-functions/wcstod_l.texi: Likewise.
39392         * doc/glibc-functions/wcstof_l.texi: Likewise.
39393         * doc/glibc-functions/wcstol_l.texi: Likewise.
39394         * doc/glibc-functions/wcstold_l.texi: Likewise.
39395         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39396         * doc/glibc-functions/wcstoq.texi: Likewise.
39397         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39398         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39399         * doc/glibc-functions/wcstouq.texi: Likewise.
39400         * doc/glibc-functions/wmempcpy.texi: Likewise.
39401
39402 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39403             Eric Blake  <ebb9@byu.net>
39404             Paolo Bonzini  <bonzini@gnu.org>
39405             Bruno Haible  <bruno@clisp.org>
39406
39407         Make c-stack work on Haiku.
39408         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39409         (c_stack_action): Use SA_ONSTACK flag.
39410
39411 2008-12-22  Bruno Haible  <bruno@clisp.org>
39412
39413         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39414
39415 2008-12-22  Bruno Haible  <bruno@clisp.org>
39416
39417         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39418         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39419         being overridden.
39420         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39421         New macros.
39422         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39424         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39425         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39426
39427 2008-12-22  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39430         from test code.
39431
39432 2008-12-22  Eric Blake  <ebb9@byu.net>
39433
39434         Avoid gcc warnings on cygwin.
39435         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39436         Avoid unused variable.
39437         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39438         Likewise.
39439
39440 2008-12-22  Bruno Haible  <bruno@clisp.org>
39441
39442         Remove HAVE_MBRTOWC conditionals.
39443         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39444         (mbscasecmp): Assume mbrtowc function.
39445         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39446         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39447         * lib/mbschr.c: Include mbuiter.h unconditionally.
39448         (mbschr): Assume mbrtowc function.
39449         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39450         (mbscspn): Assume mbrtowc function.
39451         * lib/mbslen.c: Include mbuiter.h unconditionally.
39452         (mbslen): Assume mbrtowc function.
39453         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39454         (mbsncasecmp): Assume mbrtowc function.
39455         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39456         (mbsnlen): Assume mbrtowc function.
39457         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39458         (mbspbrk): Assume mbrtowc function.
39459         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39460         (mbspcasecmp): Assume mbrtowc function.
39461         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39462         (mbsrchr): Assume mbrtowc function.
39463         * lib/mbssep.c: Include mbuiter.h unconditionally.
39464         (mbssep): Assume mbrtowc function.
39465         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39466         (mbsspn): Assume mbrtowc function.
39467         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39468         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39469         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39470         (mbstok_r): Assume mbrtowc function.
39471         * lib/propername.c: Include mbuiter.h unconditionally.
39472         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39473         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39474         (trim2): Assume mbrtowc function.
39475         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39476         (mbsnwidth): Assume mbrtowc function.
39477         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39478         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39479         fallback definitions.
39480         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39481
39482 2008-12-22  Bruno Haible  <bruno@clisp.org>
39483
39484         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39485
39486 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39487
39488         * modules/regex: Request emulations for the mb*/wc* functions we need.
39489         * m4/regex.m4: Don't look for those functions here.
39490         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39491
39492 2008-12-22  Bruno Haible  <bruno@clisp.org>
39493
39494         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39495
39496 2008-12-21  Bruno Haible  <bruno@clisp.org>
39497
39498         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39499         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39500         (Include): Remove conditionalization.
39501         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39502         (Include): Remove conditionalization.
39503         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39504         (Include): Remove conditionalization.
39505         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39506         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39507         * NEWS: Mention the change.
39508         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39509         via Sergey Poznyakoff <gray@gnu.org.ua>.
39510
39511 2008-12-21  Bruno Haible  <bruno@clisp.org>
39512
39513         * MODULES.html.sh (Extended multibyte and wide character utilities
39514         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39515         wcrtomb, wcsrtombs.
39516         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39517         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39518         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39519         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39520
39521 2008-12-21  Bruno Haible  <bruno@clisp.org>
39522
39523         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39524
39525 2008-12-21  Bruno Haible  <bruno@clisp.org>
39526
39527         * modules/wcsnrtombs-tests: New file.
39528         * tests/test-wcsnrtombs1.sh: New file.
39529         * tests/test-wcsnrtombs2.sh: New file.
39530         * tests/test-wcsnrtombs3.sh: New file.
39531         * tests/test-wcsnrtombs4.sh: New file.
39532         * tests/test-wcsnrtombs.c: New file.
39533
39534         New module 'wcsnrtombs'.
39535         * lib/wchar.in.h (wcsnrtombs): New declaration.
39536         * lib/wcsnrtombs.c: New file.
39537         * lib/wcsrtombs-state.c: New file.
39538         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39539         (internal_state): Remove variable.
39540         * m4/wcsnrtombs.m4: New file.
39541         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39542         compilation units.
39543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39544         HAVE_WCSNRTOMBS.
39545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39546         HAVE_WCSNRTOMBS.
39547         * modules/wcsnrtombs: New file.
39548         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39549         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39550
39551 2008-12-21  Bruno Haible  <bruno@clisp.org>
39552
39553         * modules/wcsrtombs-tests: New file.
39554         * tests/test-wcsrtombs1.sh: New file.
39555         * tests/test-wcsrtombs2.sh: New file.
39556         * tests/test-wcsrtombs3.sh: New file.
39557         * tests/test-wcsrtombs4.sh: New file.
39558         * tests/test-wcsrtombs.c: New file.
39559
39560         New module 'wcsrtombs'.
39561         * lib/wchar.in.h (wcsrtombs): New declaration.
39562         * lib/wcsrtombs.c: New file.
39563         * m4/wcsrtombs.m4: New file.
39564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39565         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39567         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39568         * modules/wcsrtombs: New file.
39569         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39570         bugs.
39571
39572 2008-12-21  Bruno Haible  <bruno@clisp.org>
39573
39574         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39575         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39576         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39577         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39578         if not correct.
39579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39580         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39581         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39582         m4/locale-zh.m4, m4/codeset.m4.
39583         * doc/posix-functions/wcrtomb.texi: Document the bug.
39584
39585 2008-12-21  Bruno Haible  <bruno@clisp.org>
39586
39587         Work around a btowc() bug on IRIX 6.5.
39588         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39589         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39590         REPLACE_WTOBC if not.
39591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39592         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39593         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39594
39595 2008-12-21  Bruno Haible  <bruno@clisp.org>
39596
39597         * modules/wcrtomb-tests: New file.
39598         * tests/test-wcrtomb.sh: New file.
39599         * tests/test-wcrtomb.c: New file.
39600
39601         New module 'wcrtomb'.
39602         * lib/wchar.in.h (wcrtomb): New declaration.
39603         * lib/wcrtomb.c: New file.
39604         * m4/wcrtomb.m4: New file.
39605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39606         HAVE_WCRTOMB.
39607         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39608         HAVE_WCRTOMB.
39609         * modules/wcrtomb: New file.
39610         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39611
39612 2008-12-21  Bruno Haible  <bruno@clisp.org>
39613
39614         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39615         * modules/mbsrtowcs (Files): Likewise.
39616         * modules/wctob (Files): Likewise.
39617         * modules/c-strcase-tests (Files): Likewise.
39618         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39619         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39620         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39621         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39622         * modules/vasnprintf-posix-tests (Files): Likewise.
39623
39624 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39625
39626         gitlog-to-changelog: pass all command-line arguments to git-log
39627         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39628         it is sometimes convenient to filter the commits in various ways.
39629         gitlog-to-changelog only allows --since to specify a start date,
39630         but git-log itself supports many other filtering mechanisms.
39631         At the moment, I want to filter by branch name.  Rather than
39632         adding a --branch option to gitlog-to-changelog, it seems more
39633         flexible to simply pass all options directly to git-log and let
39634         git do the work.  Notice that this effectively makes --since a
39635         redundant option for gitlog-to-changelog, but removing it would
39636         require current usage to change since calls would then require
39637         an additional '--'.
39638
39639 2008-12-21  Bruno Haible  <bruno@clisp.org>
39640
39641         * modules/mbsnrtowcs-tests: New file.
39642         * tests/test-mbsnrtowcs1.sh: New file.
39643         * tests/test-mbsnrtowcs2.sh: New file.
39644         * tests/test-mbsnrtowcs3.sh: New file.
39645         * tests/test-mbsnrtowcs4.sh: New file.
39646         * tests/test-mbsnrtowcs.c: New file.
39647
39648         New module 'mbsnrtowcs'.
39649         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39650         * lib/mbsnrtowcs.c: New file.
39651         * lib/mbsrtowcs-state.c: New file.
39652         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39653         (internal_state): Remove variable.
39654         * m4/mbsnrtowcs.m4: New file.
39655         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39656         compilation units.
39657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39658         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39659         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39660         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39661         * modules/mbsnrtowcs: New file.
39662         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39663         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39664         portability problem.
39665
39666 2008-12-21  Bruno Haible  <bruno@clisp.org>
39667
39668         Work around mbsrtowcs bug.
39669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39670         (gl_FUNC_MBSRTOWCS): Invoke it.
39671         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39672         m4/locale-zh.m4.
39673         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39674
39675 2008-12-21  Bruno Haible  <bruno@clisp.org>
39676
39677         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39678
39679 2008-12-21  Bruno Haible  <bruno@clisp.org>
39680
39681         Update doc for AIX.
39682         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39683         16-bit wchar_t type.
39684         * doc/posix-functions/btowc.texi: Likewise.
39685         * doc/posix-functions/fgetwc.texi: Likewise.
39686         * doc/posix-functions/fgetws.texi: Likewise.
39687         * doc/posix-functions/fputwc.texi: Likewise.
39688         * doc/posix-functions/fputws.texi: Likewise.
39689         * doc/posix-functions/fwide.texi: Likewise.
39690         * doc/posix-functions/fwprintf.texi: Likewise.
39691         * doc/posix-functions/fwscanf.texi: Likewise.
39692         * doc/posix-functions/getwchar.texi: Likewise.
39693         * doc/posix-functions/getwc.texi: Likewise.
39694         * doc/posix-functions/iswalnum.texi: Likewise.
39695         * doc/posix-functions/iswalpha.texi: Likewise.
39696         * doc/posix-functions/iswblank.texi: Likewise.
39697         * doc/posix-functions/iswcntrl.texi: Likewise.
39698         * doc/posix-functions/iswctype.texi: Likewise.
39699         * doc/posix-functions/iswdigit.texi: Likewise.
39700         * doc/posix-functions/iswgraph.texi: Likewise.
39701         * doc/posix-functions/iswlower.texi: Likewise.
39702         * doc/posix-functions/iswprint.texi: Likewise.
39703         * doc/posix-functions/iswpunct.texi: Likewise.
39704         * doc/posix-functions/iswspace.texi: Likewise.
39705         * doc/posix-functions/iswupper.texi: Likewise.
39706         * doc/posix-functions/iswxdigit.texi: Likewise.
39707         * doc/posix-functions/mbrtowc.texi: Likewise.
39708         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39709         * doc/posix-functions/mbstowcs.texi: Likewise.
39710         * doc/posix-functions/mbtowc.texi: Likewise.
39711         * doc/posix-functions/putwchar.texi: Likewise.
39712         * doc/posix-functions/putwc.texi: Likewise.
39713         * doc/posix-functions/swprintf.texi: Likewise.
39714         * doc/posix-functions/tolower.texi: Likewise.
39715         * doc/posix-functions/toupper.texi: Likewise.
39716         * doc/posix-functions/towctrans.texi: Likewise.
39717         * doc/posix-functions/ungetwc.texi: Likewise.
39718         * doc/posix-functions/vswprintf.texi: Likewise.
39719         * doc/posix-functions/wcrtomb.texi: Likewise.
39720         * doc/posix-functions/wcscat.texi: Likewise.
39721         * doc/posix-functions/wcschr.texi: Likewise.
39722         * doc/posix-functions/wcscmp.texi: Likewise.
39723         * doc/posix-functions/wcscoll.texi: Likewise.
39724         * doc/posix-functions/wcscpy.texi: Likewise.
39725         * doc/posix-functions/wcscspn.texi: Likewise.
39726         * doc/posix-functions/wcsftime.texi: Likewise.
39727         * doc/posix-functions/wcslen.texi: Likewise.
39728         * doc/posix-functions/wcsncat.texi: Likewise.
39729         * doc/posix-functions/wcsncmp.texi: Likewise.
39730         * doc/posix-functions/wcsncpy.texi: Likewise.
39731         * doc/posix-functions/wcspbrk.texi: Likewise.
39732         * doc/posix-functions/wcsrchr.texi: Likewise.
39733         * doc/posix-functions/wcsrtombs.texi: Likewise.
39734         * doc/posix-functions/wcsspn.texi: Likewise.
39735         * doc/posix-functions/wcsstr.texi: Likewise.
39736         * doc/posix-functions/wcstod.texi: Likewise.
39737         * doc/posix-functions/wcstof.texi: Likewise.
39738         * doc/posix-functions/wcstoimax.texi: Likewise.
39739         * doc/posix-functions/wcstok.texi: Likewise.
39740         * doc/posix-functions/wcstold.texi: Likewise.
39741         * doc/posix-functions/wcstoll.texi: Likewise.
39742         * doc/posix-functions/wcstol.texi: Likewise.
39743         * doc/posix-functions/wcstombs.texi: Likewise.
39744         * doc/posix-functions/wcstoull.texi: Likewise.
39745         * doc/posix-functions/wcstoul.texi: Likewise.
39746         * doc/posix-functions/wcstoumax.texi: Likewise.
39747         * doc/posix-functions/wcswidth.texi: Likewise.
39748         * doc/posix-functions/wcsxfrm.texi: Likewise.
39749         * doc/posix-functions/wctob.texi: Likewise.
39750         * doc/posix-functions/wctomb.texi: Likewise.
39751         * doc/posix-functions/wctrans.texi: Likewise.
39752         * doc/posix-functions/wctype.texi: Likewise.
39753         * doc/posix-functions/wcwidth.texi: Likewise.
39754         * doc/posix-functions/wmemchr.texi: Likewise.
39755         * doc/posix-functions/wmemcmp.texi: Likewise.
39756         * doc/posix-functions/wmemcpy.texi: Likewise.
39757         * doc/posix-functions/wmemmove.texi: Likewise.
39758         * doc/posix-functions/wmemset.texi: Likewise.
39759         * doc/posix-functions/wprintf.texi: Likewise.
39760         * doc/posix-functions/wscanf.texi: Likewise.
39761
39762 2008-12-21  Bruno Haible  <bruno@clisp.org>
39763
39764         Update doc for HP-UX 11.11.
39765         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39766         in HP-UX version 11.00, not in all versions of HP-UX 11.
39767         * doc/posix-functions/fwide.texi: Likewise.
39768         * doc/posix-functions/fwprintf.texi: Likewise.
39769         * doc/posix-functions/fwscanf.texi: Likewise.
39770         * doc/posix-functions/inet_ntop.texi: Likewise.
39771         * doc/posix-functions/inet_pton.texi: Likewise.
39772         * doc/posix-functions/mbrlen.texi: Likewise.
39773         * doc/posix-functions/mbrtowc.texi: Likewise.
39774         * doc/posix-functions/mbsinit.texi: Likewise.
39775         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39776         * doc/posix-functions/swprintf.texi: Likewise.
39777         * doc/posix-functions/swscanf.texi: Likewise.
39778         * doc/posix-functions/towctrans.texi: Likewise.
39779         * doc/posix-functions/vfwprintf.texi: Likewise.
39780         * doc/posix-functions/vswprintf.texi: Likewise.
39781         * doc/posix-functions/vwprintf.texi: Likewise.
39782         * doc/posix-functions/wcrtomb.texi: Likewise.
39783         * doc/posix-functions/wcsrtombs.texi: Likewise.
39784         * doc/posix-functions/wcsstr.texi: Likewise.
39785         * doc/posix-functions/wctob.texi: Likewise.
39786         * doc/posix-functions/wctrans.texi: Likewise.
39787         * doc/posix-functions/wmemchr.texi: Likewise.
39788         * doc/posix-functions/wmemcmp.texi: Likewise.
39789         * doc/posix-functions/wmemcpy.texi: Likewise.
39790         * doc/posix-functions/wmemmove.texi: Likewise.
39791         * doc/posix-functions/wmemset.texi: Likewise.
39792         * doc/posix-functions/wprintf.texi: Likewise.
39793         * doc/posix-functions/wscanf.texi: Likewise.
39794
39795 2008-12-21  Bruno Haible  <bruno@clisp.org>
39796
39797         Work around a portability problem.
39798         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39799         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39800
39801 2008-12-20  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39804         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39805         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39807         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39808
39809         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39810         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39811         set.
39812         (GNULIB_defined_mbstate_t): New macro.
39813         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39814         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39815         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39816         reuses the system's mbrtowc function but works around the bugs.
39817         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39818         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39819         macros.
39820         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39821         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39822         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39823         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39824         REPLACE_MBSINIT if mbsinit needs to be overridden.
39825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39826         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39827         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39828         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39829         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39830         m4/locale-zh.m4.
39831         (Depends): Add mbsinit.
39832         * modules/mbsinit (Depends): Add mbrtowc.
39833         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39834
39835 2008-12-20  Bruno Haible  <bruno@clisp.org>
39836
39837         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39838         so that there are no conversion errors on AIX.
39839         * tests/test-mbsrtowcs.c (main): LIkewise.
39840
39841 2008-12-20  Bruno Haible  <bruno@clisp.org>
39842
39843         Work around wctob bug on Solaris <= 9.
39844         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39845         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39847         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39848         * modules/wctob (Files): Add m4/locale-fr.m4.
39849         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39850
39851 2008-12-20  Bruno Haible  <bruno@clisp.org>
39852
39853         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39854         /dev/null.
39855         * tests/test-select-in.sh: Likewise.
39856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39857
39858 2008-12-20  Bruno Haible  <bruno@clisp.org>
39859
39860         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39861         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39862         Cygwin 1.5.x.
39863
39864 2008-12-20  Bruno Haible  <bruno@clisp.org>
39865
39866         Ensure mbstate_t is defined on HP-UX 11.11.
39867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39868         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39869         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39870         AC_USE_SYSTEM_EXTENSIONS.
39871         * modules/fnmatch (Depends-on): Add extensions.
39872         * modules/mbrlen (Depends-on): Likewise.
39873         * modules/mbrtowc (Depends-on): Likewise.
39874         * modules/mbsinit (Depends-on): Likewise.
39875         * modules/mbsrtowcs (Depends-on): Likewise.
39876         * modules/mbswidth (Depends-on): Likewise.
39877         * modules/quotearg (Depends-on): Likewise.
39878         * modules/strftime (Depends-on): Likewise.
39879
39880 2008-12-20  Bruno Haible  <bruno@clisp.org>
39881
39882         Ensure wctob is declared on IRIX 6.5.
39883         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39884         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39885         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39887         of HAVE_WCTOB.
39888         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39889         HAVE_WCTOB.
39890         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39891
39892 2008-12-19  Bruno Haible  <bruno@clisp.org>
39893
39894         * modules/mbsrtowcs-tests: New file.
39895         * tests/test-mbsrtowcs1.sh: New file.
39896         * tests/test-mbsrtowcs2.sh: New file.
39897         * tests/test-mbsrtowcs3.sh: New file.
39898         * tests/test-mbsrtowcs4.sh: New file.
39899         * tests/test-mbsrtowcs.c: New file.
39900
39901         New module 'mbsrtowcs'.
39902         * lib/wchar.in.h (mbsrtowcs): New declaration.
39903         * lib/mbsrtowcs.c: New file.
39904         * m4/mbsrtowcs.m4: New file.
39905         * modules/mbsrtowcs: New file.
39906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39907         HAVE_MBSRTOWCS.
39908         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39909         HAVE_MBSRTOWCS.
39910         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39911
39912 2008-12-19  Bruno Haible  <bruno@clisp.org>
39913
39914         New module 'mbrlen'.
39915         * lib/wchar.in.h (mbrlen): New declaration.
39916         * lib/mbrlen.c: New file.
39917         * m4/mbrlen.m4: New file.
39918         * modules/mbrlen: New file.
39919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39920         HAVE_MBRLEN.
39921         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39922         HAVE_MBRLEN.
39923         * doc/posix-functions/mbrlen.texi: Document the new module.
39924
39925 2008-12-19  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39928         * modules/mbrtowc (Depends-on): Add verify.
39929         Suggested by Paul Eggert.
39930
39931 2008-12-18  Bruno Haible  <bruno@clisp.org>
39932
39933         * modules/mbsinit-tests: New file.
39934         * tests/test-mbsinit.sh: New file.
39935         * tests/test-mbsinit.c: New file.
39936
39937 2008-12-18  Bruno Haible  <bruno@clisp.org>
39938
39939         * modules/mbrtowc-tests: New file.
39940         * tests/test-mbrtowc1.sh: New file.
39941         * tests/test-mbrtowc2.sh: New file.
39942         * tests/test-mbrtowc3.sh: New file.
39943         * tests/test-mbrtowc4.sh: New file.
39944         * tests/test-mbrtowc.c: New file.
39945
39946         New module 'mbrtowc'.
39947         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39948         mbsinit and mbrtowc.
39949         (mbrtowc): New declaration.
39950         * lib/mbrtowc.c: New file.
39951         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39952         * modules/mbrtowc: New file.
39953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39954         HAVE_MBRTOWC.
39955         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39956         HAVE_MBRTOWC.
39957         * doc/posix-functions/mbrtowc.texi: Document the new module.
39958
39959 2008-12-18  Bruno Haible  <bruno@clisp.org>
39960
39961         New module 'wctob'.
39962         * lib/wchar.in.h (wctob): New declaration.
39963         * lib/wctob.c: New file.
39964         * m4/wctob.m4: New file.
39965         * modules/wctob: New file.
39966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39967         HAVE_WCTOB.
39968         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39969         * doc/posix-functions/wctob.texi: Document the new module.
39970
39971 2008-12-18  Bruno Haible  <bruno@clisp.org>
39972
39973         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39974         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39975
39976 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39977
39978         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39979         G. Christensen" <tgc@jupiterrise.com>.
39980
39981         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39982         G. Christensen" <tgc@jupiterrise.com>.
39983
39984         * lib/flock.c: Need to include string.h.  Reported by "Tom
39985         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39986         <ebb9@byu.net>.
39987
39988 2008-12-18  Bruno Haible  <bruno@clisp.org>
39989
39990         * m4/locale-ja.m4: New file, from GNU gettext.
39991
39992 2008-12-17  Bruno Haible  <bruno@clisp.org>
39993
39994         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39995         Suggested by Eric Blake.
39996
39997 2008-12-17  Bruno Haible  <bruno@clisp.org>
39998
39999         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40000
40001 2008-12-17  Bruno Haible  <bruno@clisp.org>
40002
40003         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40004         * modules/mbsinit (Depends-on): Add verify.
40005         Suggested by Paul Eggert.
40006
40007 2008-12-17  Bruno Haible  <bruno@clisp.org>
40008
40009         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40010         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40011         gl_FUNC_MBRTOWC.
40012         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40013         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40014         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40015         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40016         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40017         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40018         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40019         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40020         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40021         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40022         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40023         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40024         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40025         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40026         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40027         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40028         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40029         * modules/trim (configure.ac): Likewise.
40030
40031 2008-12-17  Bruno Haible  <bruno@clisp.org>
40032
40033         * modules/btowc-tests: New file.
40034         * tests/test-btowc1.sh: New file.
40035         * tests/test-btowc2.sh: New file.
40036         * tests/test-btowc.c: New file.
40037
40038         New module 'btowc'.
40039         * lib/wchar.in.h (btowc): New declaration.
40040         * lib/btowc.c: New file.
40041         * m4/btowc.m4: New file.
40042         * modules/btowc: New file.
40043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40044         HAVE_BTOWC.
40045         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40046         * doc/posix-functions/btowc.texi: Document the new module.
40047
40048 2008-12-17  Bruno Haible  <bruno@clisp.org>
40049
40050         New module 'mbsinit'.
40051         * lib/wchar.in.h (mbsinit): New declaration.
40052         * lib/mbsinit.c: New file.
40053         * m4/mbsinit.m4: New file.
40054         * modules/mbsinit: New file.
40055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40056         HAVE_MBSINIT.
40057         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40058         HAVE_MBSINIT.
40059         * doc/posix-functions/mbsinit.texi: Document the new module.
40060
40061 2008-12-16  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/unistd.in.h: Add comment.
40064         * tests/test-environ.c: Don't include <stdlib.h>.
40065
40066 2008-12-16  Bruno Haible  <bruno@clisp.org>
40067
40068         * lib/parse-duration.h (parse_duration): Document return value
40069         convention.
40070         * lib/parse-duration.c: Include specification header first. Add
40071         comments.
40072         (_): Remove macro.
40073         (parse_year_month_day, parse_hour_minute_second): Move side effects
40074         outside of strchr call.
40075         (parse_non_iso8601): Move side effects outside of isspace call.
40076         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40077         call.
40078
40079 2008-12-16  Bruno Haible  <bruno@clisp.org>
40080
40081         * tests/test-parse-duration.sh: Produce no output when the test
40082         succeeds.
40083
40084 2008-12-16  Bruno Haible  <bruno@clisp.org>
40085
40086         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40087         expressions.
40088
40089 2008-12-15  Bruno Haible  <bruno@clisp.org>
40090
40091         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40092         * doc/glibc-functions/flistxattr.texi: Likewise.
40093         * doc/glibc-functions/fopencookie.texi: Likewise.
40094         * doc/glibc-functions/fremovexattr.texi: Likewise.
40095         * doc/glibc-functions/fsetxattr.texi: Likewise.
40096         * doc/glibc-functions/getxattr.texi: Likewise.
40097         * doc/glibc-functions/lgetxattr.texi: Likewise.
40098         * doc/glibc-functions/listxattr.texi: Likewise.
40099         * doc/glibc-functions/llistxattr.texi: Likewise.
40100         * doc/glibc-functions/lremovexattr.texi: Likewise.
40101         * doc/glibc-functions/lsetxattr.texi: Likewise.
40102         * doc/glibc-functions/removexattr.texi: Likewise.
40103         * doc/glibc-functions/setxattr.texi: Likewise.
40104         * doc/posix-functions/open_memstream.texi: Likewise.
40105
40106 2008-12-15  Eric Blake  <ebb9@byu.net>
40107
40108         Update doc for cygwin 1.7.
40109         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40110         functions.
40111         * doc/posix-functions/fchmodat.texi: Likewise.
40112         * doc/posix-functions/fchownat.texi: Likewise.
40113         * doc/posix-functions/fdopendir.texi: Likewise.
40114         * doc/posix-functions/fmemopen.texi: Likewise.
40115         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40116         * doc/posix-functions/fstatat.texi: Likewise.
40117         * doc/posix-functions/futimens.texi: Likewise.
40118         * doc/posix-functions/gai_strerror.texi: Likewise.
40119         * doc/posix-functions/getaddrinfo.texi: Likewise.
40120         * doc/posix-functions/getnameinfo.texi: Likewise.
40121         * doc/posix-functions/if_freenameindex.texi: Likewise.
40122         * doc/posix-functions/if_indextoname.texi: Likewise.
40123         * doc/posix-functions/if_nameindex.texi: Likewise.
40124         * doc/posix-functions/if_nametoindex.texi: Likewise.
40125         * doc/posix-functions/insque.texi: Likewise.
40126         * doc/posix-functions/linkat.texi: Likewise.
40127         * doc/posix-functions/llrint.texi: Likewise.
40128         * doc/posix-functions/llrintf.texi: Likewise.
40129         * doc/posix-functions/llrintl.texi: Likewise.
40130         * doc/posix-functions/lockf.texi: Likewise.
40131         * doc/posix-functions/lrintl.texi: Likewise.
40132         * doc/posix-functions/mkdirat.texi: Likewise.
40133         * doc/posix-functions/mkfifoat.texi: Likewise.
40134         * doc/posix-functions/mknodat.texi: Likewise.
40135         * doc/posix-functions/mq_close.texi: Likewise.
40136         * doc/posix-functions/mq_getattr.texi: Likewise.
40137         * doc/posix-functions/mq_notify.texi: Likewise.
40138         * doc/posix-functions/mq_open.texi: Likewise.
40139         * doc/posix-functions/mq_receive.texi: Likewise.
40140         * doc/posix-functions/mq_send.texi: Likewise.
40141         * doc/posix-functions/mq_setattr.texi: Likewise.
40142         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40143         * doc/posix-functions/mq_timedsend.texi: Likewise.
40144         * doc/posix-functions/mq_unlink.texi: Likewise.
40145         * doc/posix-functions/open_memstream.texi: Likewise.
40146         * doc/posix-functions/openat.texi: Likewise.
40147         * doc/posix-functions/posix_fadvise.texi: Likewise.
40148         * doc/posix-functions/posix_fallocate.texi: Likewise.
40149         * doc/posix-functions/posix_madvise.texi: Likewise.
40150         * doc/posix-functions/posix_memalign.texi: Likewise.
40151         * doc/posix-functions/posix_openpt.texi: Likewise.
40152         * doc/posix-functions/readlinkat.texi: Likewise.
40153         * doc/posix-functions/remque.texi: Likewise.
40154         * doc/posix-functions/renameat.texi: Likewise.
40155         * doc/posix-functions/rintl.texi: Likewise.
40156         * doc/posix-functions/sem_unlink.texi: Likewise.
40157         * doc/posix-functions/shm_open.texi: Likewise.
40158         * doc/posix-functions/shm_unlink.texi: Likewise.
40159         * doc/posix-functions/signgam.texi: Likewise.
40160         * doc/posix-functions/sigset.texi: Likewise.
40161         * doc/posix-functions/stpcpy.texi: Likewise.
40162         * doc/posix-functions/stpncpy.texi: Likewise.
40163         * doc/posix-functions/strerror.texi: Likewise.
40164         * doc/posix-functions/strtod.texi: Likewise.
40165         * doc/posix-functions/symlinkat.texi: Likewise.
40166         * doc/posix-functions/unlinkat.texi: Likewise.
40167         * doc/posix-functions/utimensat.texi: Likewise.
40168         * doc/glibc-functions/bindresvport.texi: Likewise.
40169         * doc/glibc-functions/dn_expand.texi: Likewise.
40170         * doc/glibc-functions/exp10.texi: Likewise.
40171         * doc/glibc-functions/exp10f.texi: Likewise.
40172         * doc/glibc-functions/fgetxattr.texi: Likewise.
40173         * doc/glibc-functions/flistxattr.texi: Likewise.
40174         * doc/glibc-functions/fopencookie.texi: Likewise.
40175         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40176         * doc/glibc-functions/fremovexattr.texi: Likewise.
40177         * doc/glibc-functions/fsetxattr.texi: Likewise.
40178         * doc/glibc-functions/getifaddrs.texi: Likewise.
40179         * doc/glibc-functions/getxattr.texi: Likewise.
40180         * doc/glibc-functions/lgetxattr.texi: Likewise.
40181         * doc/glibc-functions/listxattr.texi: Likewise.
40182         * doc/glibc-functions/llistxattr.texi: Likewise.
40183         * doc/glibc-functions/lremovexattr.texi: Likewise.
40184         * doc/glibc-functions/lsetxattr.texi: Likewise.
40185         * doc/glibc-functions/pow10.texi: Likewise.
40186         * doc/glibc-functions/pow10f.texi: Likewise.
40187         * doc/glibc-functions/rcmd_af.texi: Likewise.
40188         * doc/glibc-functions/removexattr.texi: Likewise.
40189         * doc/glibc-functions/res_init.texi: Likewise.
40190         * doc/glibc-functions/res_mkquery.texi: Likewise.
40191         * doc/glibc-functions/res_query.texi: Likewise.
40192         * doc/glibc-functions/res_querydomain.texi: Likewise.
40193         * doc/glibc-functions/res_send.texi: Likewise.
40194         * doc/glibc-functions/rresvport_af.texi: Likewise.
40195         * doc/glibc-functions/setxattr.texi: Likewise.
40196         * doc/glibc-functions/strcasestr.texi: Likewise.
40197
40198 2008-12-15  Bruno Haible  <bruno@clisp.org>
40199
40200         Fix compilation error on OSF/1 4.0.
40201         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40202         <sys/time.h>, simply delegate to the system header.
40203         Reported by Daniel Richard G. <oss@teragram.com>.
40204
40205 2008-12-15  Bruno Haible  <bruno@clisp.org>
40206
40207         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40208         * doc/posix-functions/fchmodat.texi: Likewise.
40209         * doc/posix-functions/fchownat.texi: Likewise.
40210         * doc/posix-functions/fdopendir.texi: Likewise.
40211         * doc/posix-functions/fstatat.texi: Likewise.
40212         * doc/posix-functions/mkdirat.texi: Likewise.
40213         * doc/posix-functions/unlinkat.texi: Likewise.
40214
40215 2008-12-14  Bruno Haible  <bruno@clisp.org>
40216
40217         Update doc for POSIX:2008.
40218         * doc/posix-functions/faccessat.texi: New file.
40219         * doc/posix-functions/fchmodat.texi: New file.
40220         * doc/posix-functions/fchownat.texi: New file.
40221         * doc/posix-functions/fdopendir.texi: New file.
40222         * doc/posix-functions/fstatat.texi: New file.
40223         * doc/posix-functions/futimens.texi: New file.
40224         * doc/posix-functions/linkat.texi: New file.
40225         * doc/posix-functions/mkdirat.texi: New file.
40226         * doc/posix-functions/mkfifoat.texi: New file.
40227         * doc/posix-functions/mknodat.texi: New file.
40228         * doc/posix-functions/open_wmemstream.texi: New file.
40229         * doc/posix-functions/openat.texi: New file.
40230         * doc/posix-functions/psiginfo.texi: New file.
40231         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40232         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40233         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40234         * doc/posix-functions/readlinkat.texi: New file.
40235         * doc/posix-functions/renameat.texi: New file.
40236         * doc/posix-functions/strerror_l.texi: New file.
40237         * doc/posix-functions/symlinkat.texi: New file.
40238         * doc/posix-functions/unlinkat.texi: New file.
40239         * doc/posix-functions/utimensat.texi: New file.
40240         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40241
40242 2008-12-14  Bruno Haible  <bruno@clisp.org>
40243
40244         Update doc for POSIX:2008.
40245         * doc/posix-functions/alphasort.texi: Renamed from
40246         doc/glibc-functions/alphasort.texi.
40247         * doc/posix-functions/dirfd.texi: Renamed from
40248         doc/glibc-functions/dirfd.texi.
40249         * doc/posix-functions/dprintf.texi: Renamed from
40250         doc/glibc-functions/dprintf.texi.
40251         * doc/posix-functions/duplocale.texi: Renamed from
40252         doc/glibc-functions/duplocale.texi.
40253         * doc/posix-functions/fexecve.texi: Renamed from
40254         doc/glibc-functions/fexecve.texi.
40255         * doc/posix-functions/fmemopen.texi: Renamed from
40256         doc/glibc-functions/fmemopen.texi.
40257         * doc/posix-functions/freelocale.texi: Renamed from
40258         doc/glibc-functions/freelocale.texi.
40259         * doc/posix-functions/getdate_err.texi: Renamed from
40260         doc/glibc-functions/getdate_err.texi.
40261         * doc/posix-functions/isalnum_l.texi: Renamed from
40262         doc/glibc-functions/isalnum_l.texi.
40263         * doc/posix-functions/isalpha_l.texi: Renamed from
40264         doc/glibc-functions/isalpha_l.texi.
40265         * doc/posix-functions/isblank_l.texi: Renamed from
40266         doc/glibc-functions/isblank_l.texi.
40267         * doc/posix-functions/iscntrl_l.texi: Renamed from
40268         doc/glibc-functions/iscntrl_l.texi.
40269         * doc/posix-functions/isdigit_l.texi: Renamed from
40270         doc/glibc-functions/isdigit_l.texi.
40271         * doc/posix-functions/isgraph_l.texi: Renamed from
40272         doc/glibc-functions/isgraph_l.texi.
40273         * doc/posix-functions/islower_l.texi: Renamed from
40274         doc/glibc-functions/islower_l.texi.
40275         * doc/posix-functions/isprint_l.texi: Renamed from
40276         doc/glibc-functions/isprint_l.texi.
40277         * doc/posix-functions/ispunct_l.texi: Renamed from
40278         doc/glibc-functions/ispunct_l.texi.
40279         * doc/posix-functions/isspace_l.texi: Renamed from
40280         doc/glibc-functions/isspace_l.texi.
40281         * doc/posix-functions/isupper_l.texi: Renamed from
40282         doc/glibc-functions/isupper_l.texi.
40283         * doc/posix-functions/iswalnum_l.texi: Renamed from
40284         doc/glibc-functions/iswalnum_l.texi.
40285         * doc/posix-functions/iswalpha_l.texi: Renamed from
40286         doc/glibc-functions/iswalpha_l.texi.
40287         * doc/posix-functions/iswblank_l.texi: Renamed from
40288         doc/glibc-functions/iswblank_l.texi.
40289         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40290         doc/glibc-functions/iswcntrl_l.texi.
40291         * doc/posix-functions/iswctype_l.texi: Renamed from
40292         doc/glibc-functions/iswctype_l.texi.
40293         * doc/posix-functions/iswdigit_l.texi: Renamed from
40294         doc/glibc-functions/iswdigit_l.texi.
40295         * doc/posix-functions/iswgraph_l.texi: Renamed from
40296         doc/glibc-functions/iswgraph_l.texi.
40297         * doc/posix-functions/iswlower_l.texi: Renamed from
40298         doc/glibc-functions/iswlower_l.texi.
40299         * doc/posix-functions/iswprint_l.texi: Renamed from
40300         doc/glibc-functions/iswprint_l.texi.
40301         * doc/posix-functions/iswpunct_l.texi: Renamed from
40302         doc/glibc-functions/iswpunct_l.texi.
40303         * doc/posix-functions/iswspace_l.texi: Renamed from
40304         doc/glibc-functions/iswspace_l.texi.
40305         * doc/posix-functions/iswupper_l.texi: Renamed from
40306         doc/glibc-functions/iswupper_l.texi.
40307         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40308         doc/glibc-functions/iswxdigit_l.texi.
40309         * doc/posix-functions/isxdigit_l.texi: Renamed from
40310         doc/glibc-functions/isxdigit_l.texi.
40311         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40312         doc/glibc-functions/mbsnrtowcs.texi.
40313         * doc/posix-functions/mkdtemp.texi: Renamed from
40314         doc/glibc-functions/mkdtemp.texi.
40315         * doc/posix-functions/newlocale.texi: Renamed from
40316         doc/glibc-functions/newlocale.texi.
40317         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40318         doc/glibc-functions/nl_langinfo_l.texi.
40319         * doc/posix-functions/open_memstream.texi: Renamed from
40320         doc/glibc-functions/open_memstream.texi.
40321         * doc/posix-functions/opterr.texi: Renamed from
40322         doc/glibc-functions/opterr.texi.
40323         * doc/posix-functions/optind.texi: Renamed from
40324         doc/glibc-functions/optind.texi.
40325         * doc/posix-functions/optopt.texi: Renamed from
40326         doc/glibc-functions/optopt.texi.
40327         * doc/posix-functions/psignal.texi: Renamed from
40328         doc/glibc-functions/psignal.texi.
40329         * doc/posix-functions/scandir.texi: Renamed from
40330         doc/glibc-functions/scandir.texi.
40331         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40332         doc/glibc-functions/sched_get_priority_min.texi.
40333         * doc/posix-functions/signgam.texi: Renamed from
40334         doc/glibc-functions/signgam.texi.
40335         * doc/posix-functions/stpcpy.texi: Renamed from
40336         doc/glibc-functions/stpcpy.texi.
40337         * doc/posix-functions/stpncpy.texi: Renamed from
40338         doc/glibc-functions/stpncpy.texi.
40339         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40340         doc/glibc-functions/strcasecmp_l.texi.
40341         * doc/posix-functions/strcoll_l.texi: Renamed from
40342         doc/glibc-functions/strcoll_l.texi.
40343         * doc/posix-functions/strfmon_l.texi: Renamed from
40344         doc/glibc-functions/strfmon_l.texi.
40345         * doc/posix-functions/strftime_l.texi: Renamed from
40346         doc/glibc-functions/strftime_l.texi.
40347         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40348         doc/glibc-functions/strncasecmp_l.texi.
40349         * doc/posix-functions/strndup.texi: Renamed from
40350         doc/glibc-functions/strndup.texi.
40351         * doc/posix-functions/strnlen.texi: Renamed from
40352         doc/glibc-functions/strnlen.texi.
40353         * doc/posix-functions/strsignal.texi: Renamed from
40354         doc/glibc-functions/strsignal.texi.
40355         * doc/posix-functions/strxfrm_l.texi: Renamed from
40356         doc/glibc-functions/strxfrm_l.texi.
40357         * doc/posix-functions/timer_gettime.texi: Renamed from
40358         doc/glibc-functions/timer_gettime.texi.
40359         * doc/posix-functions/tolower_l.texi: Renamed from
40360         doc/glibc-functions/tolower_l.texi.
40361         * doc/posix-functions/toupper_l.texi: Renamed from
40362         doc/glibc-functions/toupper_l.texi.
40363         * doc/posix-functions/towctrans_l.texi: Renamed from
40364         doc/glibc-functions/towctrans_l.texi.
40365         * doc/posix-functions/towlower_l.texi: Renamed from
40366         doc/glibc-functions/towlower_l.texi.
40367         * doc/posix-functions/towupper_l.texi: Renamed from
40368         doc/glibc-functions/towupper_l.texi.
40369         * doc/posix-functions/uselocale.texi: Renamed from
40370         doc/glibc-functions/uselocale.texi.
40371         * doc/posix-functions/vdprintf.texi: Renamed from
40372         doc/glibc-functions/vdprintf.texi.
40373         * doc/posix-functions/wcpcpy.texi:
40374         Renamed from doc/glibc-functions/wcpcpy.texi.
40375         * doc/posix-functions/wcpncpy.texi: Renamed from
40376         doc/glibc-functions/wcpncpy.texi.
40377         * doc/posix-functions/wcscasecmp.texi: Renamed from
40378         doc/glibc-functions/wcscasecmp.texi.
40379         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40380         doc/glibc-functions/wcscasecmp_l.texi.
40381         * doc/posix-functions/wcscoll_l.texi: Renamed from
40382         doc/glibc-functions/wcscoll_l.texi.
40383         * doc/posix-functions/wcsdup.texi: Renamed from
40384         doc/glibc-functions/wcsdup.texi.
40385         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40386         doc/glibc-functions/wcsncasecmp.texi.
40387         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40388         doc/glibc-functions/wcsncasecmp_l.texi.
40389         * doc/posix-functions/wcsnlen.texi: Renamed from
40390         doc/glibc-functions/wcsnlen.texi.
40391         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40392         doc/glibc-functions/wcsnrtombs.texi.
40393         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40394         doc/glibc-functions/wcsxfrm_l.texi.
40395         * doc/posix-functions/wctrans_l.texi: Renamed from
40396         doc/glibc-functions/wctrans_l.texi.
40397         * doc/posix-functions/wctype_l.texi: Renamed from
40398         doc/glibc-functions/wctype_l.texi.
40399         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40400         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40401         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40402         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40403         these subsections.
40404         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40405         Remove sections.
40406
40407 2008-12-14  Bruno Haible  <bruno@clisp.org>
40408
40409         Update doc for POSIX:2008.
40410         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40411
40412 2008-12-14  Bruno Haible  <bruno@clisp.org>
40413
40414         Update doc for POSIX:2008.
40415         * doc/pastposix-functions/bcmp.texi: Renamed from
40416         doc/posix-functions/bcmp.texi.
40417         * doc/pastposix-functions/bcopy.texi: Renamed from
40418         doc/posix-functions/bcopy.texi.
40419         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40420         doc/posix-functions/bsd_signal.texi.
40421         * doc/pastposix-functions/bzero.texi: Renamed from
40422         doc/posix-functions/bzero.texi.
40423         * doc/pastposix-functions/ecvt.texi: Renamed from
40424         doc/posix-functions/ecvt.texi.
40425         * doc/pastposix-functions/fcvt.texi: Renamed from
40426         doc/posix-functions/fcvt.texi.
40427         * doc/pastposix-functions/ftime.texi: Renamed from
40428         doc/posix-functions/ftime.texi.
40429         * doc/pastposix-functions/gcvt.texi: Renamed from
40430         doc/posix-functions/gcvt.texi.
40431         * doc/pastposix-functions/getcontext.texi: Renamed from
40432         doc/posix-functions/getcontext.texi.
40433         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40434         doc/posix-functions/gethostbyaddr.texi.
40435         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40436         doc/posix-functions/gethostbyname.texi.
40437         * doc/pastposix-functions/getwd.texi: Renamed from
40438         doc/posix-functions/getwd.texi.
40439         * doc/pastposix-functions/h_errno.texi: Renamed from
40440         doc/posix-functions/h_errno.texi.
40441         * doc/pastposix-functions/index.texi: Renamed from
40442         doc/posix-functions/index.texi.
40443         * doc/pastposix-functions/makecontext.texi: Renamed from
40444         doc/posix-functions/makecontext.texi.
40445         * doc/pastposix-functions/mktemp.texi: Renamed from
40446         doc/posix-functions/mktemp.texi.
40447         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40448         doc/posix-functions/pthread_attr_getstackaddr.texi.
40449         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40450         doc/posix-functions/pthread_attr_setstackaddr.texi.
40451         * doc/pastposix-functions/rindex.texi: Renamed from
40452         doc/posix-functions/rindex.texi.
40453         * doc/pastposix-functions/scalb.texi: Renamed from
40454         doc/posix-functions/scalb.texi.
40455         * doc/pastposix-functions/setcontext.texi: Renamed from
40456         doc/posix-functions/setcontext.texi.
40457         * doc/pastposix-functions/swapcontext.texi: Renamed from
40458         doc/posix-functions/swapcontext.texi.
40459         * doc/pastposix-functions/ualarm.texi: Renamed from
40460         doc/posix-functions/ualarm.texi.
40461         * doc/pastposix-functions/usleep.texi: Renamed from
40462         doc/posix-functions/usleep.texi.
40463         * doc/pastposix-functions/vfork.texi: Renamed from
40464         doc/posix-functions/vfork.texi.
40465         * doc/pastposix-functions/wcswcs.texi: Renamed from
40466         doc/posix-functions/wcswcs.texi.
40467         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40468         (Function Substitutes): Update.
40469
40470 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40471
40472         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40473         m4/strerror.m4.
40474
40475 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40476             Bruno Haible  <bruno@clisp.org>
40477
40478         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40479
40480 2008-12-13  Bruno Haible  <bruno@clisp.org>
40481
40482         * modules/strtoull (Depends-on): Remove unistd.
40483
40484 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40485
40486         * modules/strtoull (Depends-on): Add stdlib.
40487
40488 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40489
40490         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40491
40492 2008-12-10  Jim Meyering  <meyering@redhat.com>
40493
40494         gl_ASSERT: don't say assertions are disabled when they're not
40495         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40496         "checking whether to enable assertions... no", when they are in
40497         fact enabled.  This is solely a bug in the output of configure.
40498         In spite of saying "no", NDEBUG was not defined in that case.
40499         Also, as noted by Eric Blake, leave assertions enabled upon
40500         --enable-assert=INVALID.
40501
40502 2008-12-10  Bruno Haible  <bruno@clisp.org>
40503
40504         Change MODULES.html to refer to POSIX:2008 where possible.
40505         * MODULES.html.sh (POSIX2008_URL): New variable.
40506         (posix_headers): Remove sys/timeb, ucontext.
40507         (posix2001_headers): New variable.
40508         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40509         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40510         index, makecontext, mktemp, pthread_attr_getstackaddr,
40511         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40512         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40513         (posix2001_functions): New variable.
40514         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40515         otherwise.
40516
40517 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40518
40519         add missing include to parse-duration.c
40520         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40521         * modules/parse-duration (Depends-on): Add xalloc.
40522
40523         fix sed script reading maint.mk
40524         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40525         (syntax-check-rules): Use it.
40526
40527 2008-12-09  Bruno Haible  <bruno@clisp.org>
40528
40529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40530         MacOS X 10.4/PowerPC.
40531         Reported by Simon Josefsson.
40532
40533 2008-12-08  Jim Meyering  <meyering@redhat.com>
40534
40535         work around mingw's lack of some S_IF definitions
40536         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40537         Reported by Simon Josefsson.
40538
40539 2008-12-08  Bruno Haible  <bruno@clisp.org>
40540
40541         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40542         applied to variables. Needed on MacOS X 10.4/PowerPC.
40543         Reported by Simon Josefsson.
40544
40545 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40546         and Eric Blake  <ebb9@byu.net>
40547
40548         assert: honor --enable-assert
40549         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40550         order to honor --enable-assert, rather than treating it as a
40551         synonym for --disable-assert.
40552
40553 2008-12-08  Jim Meyering  <meyering@redhat.com>
40554
40555         * lib/posixtm.c: Remove now-useless declaration of mktime.
40556
40557         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40558
40559 2008-12-07  Bruno Haible  <bruno@clisp.org>
40560
40561         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40562         test_once): Mark functions as static.
40563         * tests/test-tls.c (test_tls): Likewise.
40564
40565 2008-12-07  Bruno Haible  <bruno@clisp.org>
40566
40567         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40568         iconv_register_autodetect.
40569
40570 2008-12-07  Jim Meyering  <meyering@redhat.com>
40571
40572         posixtm.c: avoid a warning
40573         * lib/posixtm.c (posixtime): Don't initialize tm0.
40574         It's no longer needed to placate gcc4's -Wuninitialized,
40575         and the attempt to placate would elicit a new warning.
40576
40577         unicodeio.c: mark unused parameters
40578         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40579         (fallback_failure_callback): Likewise.
40580
40581 2008-12-07  Bruno Haible  <bruno@clisp.org>
40582
40583         * gnulib-tool (func_create_testdir): When building the tests
40584         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40585         Reported by Simon Josefsson.
40586
40587 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40588
40589         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40590
40591 2008-12-06  Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40594         Suggested by Eric Blake.
40595
40596 2008-12-06  Bruno Haible  <bruno@clisp.org>
40597
40598         Fix a c-stack test failure on MacOS X.
40599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40600         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40601         handler for SIGBUS as well.
40602         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40603         install a signal handler for SIGBUS as well.
40604         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40605
40606 2008-12-06  Bruno Haible  <bruno@clisp.org>
40607
40608         Advocacy documentation.
40609         * doc/gnulib-intro.texi (Benefits): New section.
40610         * doc/gnulib.texi: Update.
40611
40612 2008-12-06  Bruno Haible  <bruno@clisp.org>
40613
40614         Document the 'manywarnings' module.
40615         * doc/manywarnings.texi: New file.
40616         * doc/gnulib.texi: Include it.
40617
40618 2008-12-05  Eric Blake  <ebb9@byu.net>
40619
40620         tests: silence some gcc warnings
40621         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40622         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40623         type mismatches.
40624
40625 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40626             Bruno Haible  <bruno@clisp.org>
40627
40628         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40629
40630 2008-11-29  Jim Meyering  <meyering@redhat.com>
40631
40632         unicodeio.c: mark unused parameters
40633         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40634         (fallback_failure_callback): Likewise.
40635
40636         fts: fix a thinko
40637         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40638         (set_stat_type): Return S_IF*-valued "type" directly.
40639         Prompted by James Youngman's spotting a related bug.
40640         Confirmed by further testing through find.
40641
40642         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40643         * lib/fts.c (D_TYPE): Define.
40644         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40645         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40646         (s_ifmt_shift_bits): New function.
40647         (set_stat_type): New function.
40648         (fts_build): When not calling fts_stat, call set_stat_type
40649         to propagate dirent.d_type info to fts_read caller.
40650         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40651         fts_statp->st_mode type information may be valid.
40652
40653 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40654
40655         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40656         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40657         <sds@gnu.org>.
40658
40659 2008-11-20  Bruno Haible  <bruno@clisp.org>
40660
40661         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40662         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40663         INCLUDE_NEXT.
40664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40665         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40666         * modules/math (Makefile.am): Substitute
40667         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40669
40670 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40671             Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/stdint.in.h: Define all type macros so that their expansion is
40674         a single typedef'ed token. Fixes a compilation failure in Boost which
40675         does "using ::int8_t;".
40676
40677 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40678
40679         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40680         gl_MANYWARN_ALL_GCC.
40681         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40682         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40683         * modules/manywarnings: New file.
40684         * MODULES.html.sh: Mention manywarnings module.
40685
40686 2008-11-18  Bruno Haible  <bruno@clisp.org>
40687
40688         * doc/gnulib-tool.texi (Unit tests): New section.
40689
40690 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40691
40692         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40693         paths like 'lib/po/foo.po'.
40694
40695 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40696
40697         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40698         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40699
40700 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40701
40702         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40703         parameter works.
40704
40705 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40706
40707         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40708
40709 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40710
40711         * modules/parse-duration-tests: New file.
40712         * tests/test-parse-duration.sh: New file.
40713         * tests/test-parse-duration.c: New file.
40714
40715         New module 'parse-duration'.
40716         * lib/parse-duration.h: New file.
40717         * lib/parse-duration.c: New file.
40718         * modules/parse-duration: New file.
40719
40720 2008-11-17  Bruno Haible  <bruno@clisp.org>
40721
40722         * tests/test-select-out.sh: Comment out the first pipe test.
40723         Reported by Simon Josefsson.
40724
40725 2008-11-17  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40728         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40729         gl_HOSTENT.
40730
40731 2008-11-17  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40734         -lnetwork and -lnet. Needed for Haiku and BeOS.
40735
40736 2008-11-16  Bruno Haible  <bruno@clisp.org>
40737
40738         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40739
40740 2008-11-16  Bruno Haible  <bruno@clisp.org>
40741
40742         Avoid test failure on Haiku.
40743         * tests/test-fsync.c: Include <errno.h>.
40744         (main): Don't require that fsync (0) fails.
40745
40746 2008-11-15  Bruno Haible  <bruno@clisp.org>
40747
40748         New module 'hostent'.
40749         * modules/hostent: New file.
40750         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40751
40752 2008-11-15  Bruno Haible  <bruno@clisp.org>
40753
40754         New module 'servent'.
40755         * modules/servent: New file.
40756         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40757
40758 2008-11-15  Bruno Haible  <bruno@clisp.org>
40759
40760         Avoid generating same test program with two different rules.
40761         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40762         test-frexp to test-frexp-nolibm.
40763         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40764         test-frexpl to test-frexpl-nolibm.
40765
40766 2008-11-15  Bruno Haible  <bruno@clisp.org>
40767
40768         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40769         $(FREXPL_LIBM).
40770
40771 2008-11-15  Bruno Haible  <bruno@clisp.org>
40772
40773         * lib/netdb.in.h: Activate the definitions also when the system's
40774         <netdb.h> has 'struct addrinfo'.
40775         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40776         EAI_OVERFLOW or AI_NUMERICSERV.
40777         * doc/posix-headers/netdb.texi: Document the problem.
40778
40779 2008-11-15  Bruno Haible  <bruno@clisp.org>
40780
40781         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40782
40783         Make the 'sched' module work on platforms where <sched.h> exists but
40784         is incomplete (such as Haiku).
40785         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40786         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40787         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40788         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40789         HAVE_STRUCT_SCHED_PARAM.
40790         * modules/sched (Depends-on): Add include_next.
40791         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40792         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40793         * doc/posix-headers/sched.texi: Document the issue.
40794
40795 2008-11-13  Jim Meyering  <meyering@redhat.com>
40796
40797         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40798         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40799         test would fail due to the difference in the Report bugs to ...
40800         line.  The expected address is empty, "<>", while the actual
40801         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40802
40803 2008-11-12  Bruno Haible  <bruno@clisp.org>
40804
40805         lstat: don't compile lstat.c on systems lacking lstat
40806         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40807         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40808         Reported by Daniel P. Berrange via Jim Meyering.
40809
40810 2008-11-12  Jim Meyering  <meyering@redhat.com>
40811
40812         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40813
40814 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40815
40816         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40817         instead.
40818
40819 2008-11-12  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/unicodeio.c: Include unistr.h.
40822         (utf8_wctomb): Remove function.
40823         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40824
40825 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40826
40827         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40828         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40829         <bruno@clisp.org>.
40830         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40831
40832 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40833
40834         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40835         * doc/gnulib.texi: Add section for warnings.
40836
40837 2008-11-11  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/sockets.h: Add a comment.
40840
40841 2008-11-11  Karl Berry  <karl@gnu.org>
40842
40843         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40844
40845 2008-11-11  Eric Blake  <ebb9@byu.net>
40846
40847         fdl.texi: avoid git symlinks
40848         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40849
40850 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40851
40852         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40853
40854 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40855
40856         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40857         (gl_WARN_ADD): Substitute $2 if literal.
40858
40859 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40860
40861         * m4/warning.m4: Remove.
40862
40863 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40864
40865         * m4/warnings.m4: Almost complete rewrite. :-)
40866
40867 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40868
40869         * modules/warnings: New module.
40870         * m4/warnings.m4: New file.
40871         * MODULES.html.sh: Mention warnings module.
40872         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40873         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40874
40875 2008-11-10  Eric Blake  <ebb9@byu.net>
40876
40877         fdl.texi: make a symlink to the latest version
40878         * doc/standards.texi: Revert today's earlier change.
40879         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40880         * doc/fdl.texi: ...and replace this with a symlink to the newer
40881         fdl-1.3.texi.
40882
40883 2008-11-10  Bruno Haible  <bruno@clisp.org>
40884
40885         * tests/test-select-fd.c (main): Accept the result file name as fourth
40886         argument.
40887         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40888         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40889
40890 2008-11-10  Bruno Haible  <bruno@clisp.org>
40891
40892         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40893         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40894         as autoconf-substituted macros.
40895         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40897         gl_NETDB_H_DEFAULTS. Set these variables.
40898         * modules/netdb (Makefile.am): Substitute these variables.
40899
40900 2008-11-10  Eric Blake  <ebb9@byu.net>
40901
40902         standards.texi: include correct file for FDL 1.3
40903         * doc/standards.texi (GNU Free Documentation License): Change
40904         include file to pull in FDL 1.3, not 1.2.
40905
40906         fdl.texi: revert accidental change to license
40907         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40908
40909 2008-11-10  Bruno Haible  <bruno@clisp.org>
40910
40911         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40912         cross-compiling guesses also when the native compile gives no result.
40913
40914 2008-11-10  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/spawni.c (__spawni): Force variable into the stack.
40917
40918 2008-11-10  Bruno Haible  <bruno@clisp.org>
40919
40920         Add support for Haiku.
40921         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40922         glibc and BeOS, but also on Haiku.
40923         * lib/fpurge.c (fpurge): Likewise.
40924         * lib/freadable.c (freadable): Likewise.
40925         * lib/freadahead.c (freadahead): Likewise.
40926         * lib/freading.c (freading): Likewise.
40927         * lib/freadptr.c (freadptr): Likewise.
40928         * lib/freadseek.c (freadptrinc): Likewise.
40929         * lib/fseeko.c (rpl_fseeko): Likewise.
40930         * lib/fseterr.c (fseterr): Likewise.
40931         * lib/fwritable.c (fwritable): Likewise.
40932         * lib/fwriting.c (fwriting): Likewise.
40933         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40934
40935 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40936
40937         * lib/config.charset: Treat Haiku like BeOS.
40938
40939 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40940
40941         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40942         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40943
40944 2008-11-08  Bruno Haible  <bruno@clisp.org>
40945
40946         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40947         AC_CACHE_CHECK.
40948
40949 2008-11-08  Bruno Haible  <bruno@clisp.org>
40950
40951         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40952
40953 2008-11-08  Bruno Haible  <bruno@clisp.org>
40954
40955         * tests/test-select-fd.c: New file.
40956         * tests/test-select-in.sh: New file.
40957         * tests/test-select-out.sh: New file.
40958         * tests/test-select-stdin.c: New file.
40959         * modules/select-tests (Files): Add the new files.
40960         (Depends-on): Add gettimeofday.
40961         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40962         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40963         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40964
40965 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40966             Bruno Haible  <bruno@clisp.org>
40967
40968         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40969
40970 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40971
40972         * build-aux/pmccabe2html: Added support for C++ source files.
40973
40974 2008-11-05  Ben Pfaff  <blp@gnu.org>
40975
40976         Fix lib/close.c build on Windows.
40977         * modules/close (Files): Add lib/w32sock.h.
40978
40979 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40980
40981         Accept Bison's NEWS format.
40982         * build-aux/announce-gen (print_news_deltas): Tweak
40983         $re_prefix.
40984
40985 2008-11-04  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/random_r (Maintainer): Add glibc.
40988
40989 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40990
40991         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40992         by karl@freefriends.org (Karl Berry).
40993         * doc/alloca.texi: Likewise.
40994         * doc/c-ctype.texi: Likewise.
40995         * doc/c-strcase.texi: Likewise.
40996         * doc/c-strcaseeq.texi: Likewise.
40997         * doc/c-strcasestr.texi: Likewise.
40998         * doc/c-strstr.texi: Likewise.
40999         * doc/c-strtod.texi: Likewise.
41000         * doc/c-strtold.texi: Likewise.
41001         * doc/ctime.texi: Likewise.
41002         * doc/error.texi: Likewise.
41003         * doc/fdl.texi: Likewise.
41004         * doc/gcd.texi: Likewise.
41005         * doc/getdate.texi: Likewise.
41006         * doc/gnulib-intro.texi: Likewise.
41007         * doc/gnulib-tool.texi: Likewise.
41008         * doc/gnulib.texi: Likewise.
41009         * doc/inet_ntoa.texi: Likewise.
41010         * doc/maintain.texi: Likewise.
41011         * doc/make-stds.texi: Likewise.
41012         * doc/quote.texi: Likewise.
41013         * doc/regexprops-generic.texi: Likewise.
41014         * doc/standards.texi: Likewise.
41015         * doc/verify.texi: Likewise.
41016         * doc/visibility.texi: Likewise.
41017         * doc/gnulib.texi (GNU Free Documentation License): Include
41018         fdl-1.3.texi instead of fdl.texi.
41019
41020 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41021
41022         * doc/fdl-1.3.texi: New file, from
41023         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41024         * modules/fdl-1.3: Add.
41025         * MODULES.html.sh: Add fdl-1.3.
41026
41027 2008-11-03  Bruno Haible  <bruno@clisp.org>
41028
41029         Make determination of absolute name of header file work with AIX xlc.
41030         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41031         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41032         preprocessing.
41033         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41034         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41035
41036 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41037
41038         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41039         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41040         <ludo@gnu.org>.
41041
41042 2008-11-02  Bruno Haible  <bruno@clisp.org>
41043
41044         Mark 'strpbrk' obsolete.
41045         * modules/strpbrk (Status, Notice): New sections.
41046         * modules/strtok_r (Depends-on): Add strpbrk.
41047
41048 2008-11-02  Bruno Haible  <bruno@clisp.org>
41049
41050         Mark 'strdup' obsolete.
41051         * modules/strdup (Status, Notice): New sections.
41052         * modules/findprog (Depends-on): Add strdup.
41053         * modules/getaddrinfo (Depends-on): Likewise.
41054         * modules/localename (Depends-on): Likewise.
41055         * modules/relocatable-lib (Depends-on): Likewise.
41056         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41057         * modules/relocatable-prog (Depends-on): Likewise.
41058         * modules/trim (Depends-on): Likewise.
41059         * modules/unictype/gen-ctype (Depends-on): Likewise.
41060         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41061
41062 2008-11-02  Bruno Haible  <bruno@clisp.org>
41063
41064         Mark 'strcspn' obsolete.
41065         * modules/strcspn (Status, Notice): New sections.
41066
41067 2008-11-02  Bruno Haible  <bruno@clisp.org>
41068
41069         Mark 'rmdir' obsolete.
41070         * modules/rmdir (Status, Notice): New sections.
41071         * modules/clean-temp (Depends-on): Add rmdir.
41072         * modules/openat (Depends-on): Likewise.
41073
41074 2008-11-02  Bruno Haible  <bruno@clisp.org>
41075
41076         Mark 'raise' obsolete.
41077         * modules/raise (Status, Notice): New sections.
41078         (Include): Specify <signal.h>.
41079         * modules/stdio (Depends-on): Add raise.
41080         * modules/write (Depends-on): Likewise.
41081
41082 2008-11-02  Bruno Haible  <bruno@clisp.org>
41083
41084         Mark 'memset' obsolete.
41085         * modules/memset (Status, Notice): New sections.
41086
41087 2008-11-02  Bruno Haible  <bruno@clisp.org>
41088
41089         Mark 'memmove' obsolete.
41090         * modules/memmove (Status, Notice): New sections.
41091         * modules/argp (Depends-on): Add memmove.
41092         * modules/argz (Depends-on): Likewise.
41093         * modules/canonicalize (Depends-on): Likewise.
41094         * modules/canonicalize-lgpl (Depends-on): Likewise.
41095         * modules/fts (Depends-on): Likewise.
41096         * modules/getcwd (Depends-on): Likewise.
41097         * modules/human (Depends-on): Likewise.
41098         * modules/regex (Depends-on): Likewise.
41099         * modules/striconveh (Depends-on): Likewise.
41100         * modules/trim (Depends-on): Likewise.
41101         * modules/unistr/u8-move (Depends-on): Likewise.
41102         * modules/unistr/u16-move (Depends-on): Likewise.
41103         * modules/unistr/u32-move (Depends-on): Likewise.
41104
41105 2008-11-02  Bruno Haible  <bruno@clisp.org>
41106
41107         Mark 'memcpy' obsolete.
41108         * modules/memcpy (Status, Notice): New sections.
41109
41110 2008-11-02  Bruno Haible  <bruno@clisp.org>
41111
41112         Mark 'memcmp' obsolete.
41113         * modules/memcmp (Status, Notice): New sections.
41114         * modules/argmatch (Depends-on): Add memchr.
41115         * modules/backupfile (Depends-on): Likewise.
41116         * modules/c-strcasestr (Depends-on): Likewise.
41117         * modules/crypto/des (Depends-on): Likewise.
41118         * modules/csharpcomp (Depends-on): Likewise.
41119         * modules/fnmatch (Depends-on): Likewise.
41120         * modules/git-merge-changelog (Depends-on): Likewise.
41121         * modules/isnand (Depends-on): Likewise.
41122         * modules/isnand-nolibm (Depends-on): Likewise.
41123         * modules/isnanf (Depends-on): Likewise.
41124         * modules/isnanf-nolibm (Depends-on): Likewise.
41125         * modules/isnanl (Depends-on): Likewise.
41126         * modules/isnanl-nolibm (Depends-on): Likewise.
41127         * modules/mbchar (Depends-on): Likewise.
41128         * modules/memcoll (Depends-on): Likewise.
41129         * modules/quotearg (Depends-on): Likewise.
41130         * modules/regex (Depends-on): Likewise.
41131         * modules/relocatable-prog (Depends-on): Likewise.
41132         * modules/same (Depends-on): Likewise.
41133         * modules/signbit (Depends-on): Likewise.
41134         * modules/strcasestr-simple (Depends-on): Likewise.
41135         * modules/unictype/gen-ctype (Depends-on): Likewise.
41136         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41137         * modules/uniname/uniname (Depends-on): Likewise.
41138         * modules/unistr/u8-cmp (Depends-on): Likewise.
41139
41140 2008-11-02  Bruno Haible  <bruno@clisp.org>
41141
41142         Mark 'memchr' obsolete.
41143         * modules/memchr (Status, Notice): New sections.
41144         * modules/argp (Depends-on): Add memchr.
41145         * modules/base64 (Depends-on): Likewise.
41146         * modules/c-strcasestr (Depends-on): Likewise.
41147         * modules/chdir-long (Depends-on): Likewise.
41148         * modules/fnmatch (Depends-on): Likewise.
41149         * modules/getsubopt (Depends-on): Likewise.
41150         * modules/git-merge-changelog (Depends-on): Likewise.
41151         * modules/glob (Depends-on): Likewise.
41152         * modules/strcasestr-simple (Depends-on): Likewise.
41153         * modules/strnlen (Depends-on): Likewise.
41154
41155 2008-11-02  Bruno Haible  <bruno@clisp.org>
41156
41157         Mark 'atexit' obsolete.
41158         * modules/atexit (Status, Notice): New sections.
41159         * modules/chdir-long (Depends-on): Add atexit.
41160         * modules/wait-process (Depends-on): Likewise.
41161
41162 2008-11-02  Bruno Haible  <bruno@clisp.org>
41163
41164         * gnulib-tool: New option --with-obsolete.
41165         (func_usage): Document it.
41166         (func_modules_transitive_closure): Drop obsolete dependencies if
41167         incobsolete is not true.
41168         (func_import): Read and save the incobsolete variable to the cache.
41169
41170 2008-11-02  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41173         * gnulib-tool: New option --extract-status.
41174         (func_usage): Document it.
41175         (sed_extract_prog): Recognize it.
41176         (func_get_status): New function.
41177
41178 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41179
41180         * modules/sockets (License): Change from LGPL to LGPLv2+.
41181
41182 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41183
41184         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41185
41186 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41187
41188         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41189         Mention times and sys_times.
41190         * modules/sys_times, modules/sys_times-tests: New modules.
41191         * modules/times, modules/times-tests: Likewise
41192         * m4/sys_times_h.m4: New file.
41193         * lib/sys_times.in.h: Likewise
41194         * lib/times.c: Likewise.
41195         * tests/test-sys_times.c: Likewise.
41196         * tests/test-times.c: Likewise.
41197         * doc/posix-headers/sys_times.texi: Update.
41198         * doc/posix-functions/times.texi: Update.
41199
41200 2008-10-28  Jim Meyering  <meyering@redhat.com>
41201
41202         * modules/tempname (Depends-on): Add lstat.
41203
41204         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41205
41206 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41207
41208         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41209         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41210         using idiom used elsewhere in gnulib.
41211
41212 2008-10-27  Jim Meyering  <meyering@redhat.com>
41213
41214         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41215
41216 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41217
41218         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41219         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41220         programs.
41221         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41222
41223 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41224
41225         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41226
41227 2008-10-27  Bruno Haible  <bruno@clisp.org>
41228
41229         * tests/test-lstat.c: Include <stdio.h>.
41230
41231 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41232
41233         * modules/lstat-tests: New module.
41234         * tests/test-lstat.c: New file.
41235
41236 2008-10-26  Jim Meyering  <meyering@redhat.com>
41237
41238         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41239
41240 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41241             Bruno Haible  <bruno@clisp.org>
41242
41243         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41244         * modules/configmake (Include): Add a note that the include must come
41245         after all system headers.
41246         * lib/javaversion.c: Include configmake.h after all other includes.
41247
41248 2008-10-26  Bruno Haible  <bruno@clisp.org>
41249
41250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41251         HAVE_STRUCT_RANDOM_DATA to 1.
41252         (gl_STDLIB_H): Simplify.
41253
41254 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41255
41256         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41257         substitute HAVE_STRUCT_RANDOM_DATA.
41258         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41259         random_data.
41260         * modules/stdlib (Makefile.am): Substitute
41261         HAVE_STRUCT_RANDOM_DATA.
41262
41263 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41264
41265         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41266         * doc/gnulib-intro.texi (Copyright): Likewise.
41267
41268 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41269
41270         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41271         findings.
41272
41273 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41274             Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/unistd.in.h: Include <winsock2.h>.
41277         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41278         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41279         Provide dummy declarations.
41280         (gethostname): Override.
41281         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41282         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41283         gl_PREREQ_SYS_H_WINSOCK2.
41284         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41285         * doc/posix-functions/gethostname.texi: More details.
41286
41287 2008-10-25  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41290         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41291         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41292
41293         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41294         here ...
41295         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41297         gl_UNISTD_H_DEFAULTS.
41298
41299 2008-10-25  Eric Blake  <ebb9@byu.net>
41300
41301         signbit: avoid spurious compiler failure
41302         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41303         declarations inside function.
41304
41305 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41306             Bruno Haible  <bruno@clisp.org>
41307
41308         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41309         * modules/random_r (Depends-on): Add stdint.
41310
41311 2008-10-24  Bruno Haible  <bruno@clisp.org>
41312
41313         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41314         Eggert.
41315         * modules/strerror (License): Likewise.
41316
41317 2008-10-24  Jim Meyering  <meyering@redhat.com>
41318
41319         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41320         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41321
41322 2008-10-24  Eric Blake  <ebb9@byu.net>
41323
41324         getgroups: fix compilation when getgroups is available
41325         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41326         but with <config.h> override of getgroups disabled.
41327
41328 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41329
41330         * doc/gnulib.texi (Header files): Add note about C++ problems.
41331         Explained by Bruno Haible <bruno@clisp.org>.
41332
41333 2008-10-23  Bruno Haible  <bruno@clisp.org>
41334
41335         Define a dummy SA_NODEFER macro on Interix.
41336         * lib/signal.in.h (SA_NODEFER): Define fallback.
41337         Reported by Aleksey Cheusov <cheusov@tut.by> via
41338         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41339
41340 2008-10-23  Bruno Haible  <bruno@clisp.org>
41341
41342         * modules/freadahead (License): Change to LGPLv2+.
41343         Suggested by Simon Josefsson.
41344
41345 2008-10-23  Jim Meyering  <meyering@redhat.com>
41346
41347         random_r: new module
41348         * modules/random_r: New file.
41349         * m4/random_r.m4: New file.
41350         * lib/random_r.c: New file, from glibc.
41351         * modules/random_r-tests: New file.
41352         * tests/test-random_r.c: New file.
41353         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41354          Declare.
41355         (RAND_MAX): Define.
41356         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41357         * modules/stdlib: Substitute them, too.
41358         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41359         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41360         * doc/glibc-functions/random_r.texi: Likewise.
41361         * doc/glibc-functions/setstate_r.texi: Likewise.
41362         * doc/glibc-functions/srandom_r.texi: Likewise.
41363         * config/srclist.txt: Mention it.
41364
41365 2008-10-23  David Lutterkort  <lutter@redhat.com>
41366
41367         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41368         link requirement
41369
41370 2008-10-23  Jim Meyering  <meyering@redhat.com>
41371
41372         selinux-h: mark parameters of stub functions as intentionally unused
41373         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41374         * lib/se-context.in.h: Likewise.
41375
41376 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41377
41378         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41379
41380 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41381
41382         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41383
41384 2008-10-22  Eric Blake  <ebb9@byu.net>
41385
41386         glthread/thread: avoid compiler warning
41387         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41388         Add unreachable abort to silence compiler.
41389
41390 2008-10-22  Eric Blake  <ebb9@byu.net>
41391
41392         netdb: also supply struct addrinfo for cygwin 1.5.x
41393         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41394         older cygwin.
41395         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41396         cygwin.
41397         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41398
41399 2008-10-22  Bruno Haible  <bruno@clisp.org>
41400
41401         * users.txt: Update entry about pspp.
41402
41403 2008-10-21  Bruno Haible  <bruno@clisp.org>
41404
41405         Simplification.
41406         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41407         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41408
41409         Simplification.
41410         * lib/ioctl.c (ioctl): Don't undefine.
41411         * lib/socket.c (socket): Don't undefine.
41412
41413         Remove unused module indicator macros.
41414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41415         GNULIB_$1 as a C macro.
41416
41417         * doc/posix-functions/close.texi: Undo last change.
41418         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41419         Windows platforms.
41420
41421 2008-10-21  Bruno Haible  <bruno@clisp.org>
41422
41423         Add gethostname() declaration to <unistd.h>.
41424         * lib/unistd.in.h (gethostname): New declaration.
41425         * lib/gethostname.c: Include <unistd.h>.
41426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41427         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41429         and HAVE_GETHOSTNAME.
41430         * modules/gethostname (Depends-on): Add unistd.
41431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41432         (Include): Specify <unistd.h>.
41433         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41434         HAVE_GETHOSTNAME.
41435         * tests/test-gethostname.c: Include <unistd.h> first.
41436
41437 2008-10-21  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41440         * modules/select-tests (Depends-on): Likewise.
41441         Reported by Simon Josefsson.
41442
41443 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41444
41445         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41446         * lib/accept.c: New file, based on winsock.c.
41447         * lib/bind.c: New file, based on winsock.c.
41448         * lib/connect.c: New file, based on winsock.c.
41449         * lib/getpeername.c: New file, based on winsock.c.
41450         * lib/getsockname.c: New file, based on winsock.c.
41451         * lib/getsockopt.c: New file, based on winsock.c.
41452         * lib/ioctl.c: New file, based on winsock.c.
41453         * lib/listen.c: New file, based on winsock.c.
41454         * lib/recv.c: New file, based on winsock.c.
41455         * lib/recvfrom.c: New file, based on winsock.c.
41456         * lib/send.c: New file, based on winsock.c.
41457         * lib/sendto.c: New file, based on winsock.c.
41458         * lib/setsockopt.c: New file, based on winsock.c.
41459         * lib/shutdown.c: New file, based on winsock.c.
41460         * lib/socket.c: New file, based on winsock.c.
41461         * lib/w32sock.h: New file, based on winsock.c.
41462         * lib/winsock.c: Remove file.
41463         * modules/accept: Likewise.
41464         * modules/bind: Likewise.
41465         * modules/connect: Likewise.
41466         * modules/getpeername: Likewise.
41467         * modules/getsockname: Likewise.
41468         * modules/getsockopt: Likewise.
41469         * modules/ioctl: Likewise.
41470         * modules/listen: Likewise.
41471         * modules/recv: Likewise.
41472         * modules/recvfrom: Likewise.
41473         * modules/send: Likewise.
41474         * modules/sendto: Likewise.
41475         * modules/setsockopt: Likewise.
41476         * modules/shutdown: Likewise.
41477         * modules/socket: Use socket.c instead of winsock.c.
41478         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41479         * doc/posix-functions/accept.texi: Doc fix.
41480         * doc/posix-functions/bind.texi: Doc fix.
41481         * doc/posix-functions/close.texi: Doc fix.
41482         * doc/posix-functions/connect.texi: Doc fix.
41483         * doc/posix-functions/getpeername.texi: Doc fix.
41484         * doc/posix-functions/getsockname.texi: Doc fix.
41485         * doc/posix-functions/getsockopt.texi: Doc fix.
41486         * doc/posix-functions/ioctl.texi: Doc fix.
41487         * doc/posix-functions/listen.texi: Doc fix.
41488         * doc/posix-functions/recv.texi: Doc fix.
41489         * doc/posix-functions/recvfrom.texi: Doc fix.
41490         * doc/posix-functions/send.texi: Doc fix.
41491         * doc/posix-functions/sendto.texi: Doc fix.
41492         * doc/posix-functions/setsockopt.texi: Doc fix.
41493         * doc/posix-functions/shutdown.texi: Doc fix.
41494         * doc/posix-functions/socket.texi: Doc fix.
41495
41496 2008-10-20  Bruno Haible  <bruno@clisp.org>
41497
41498         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41499         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41500         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41501         as an alias for SIGABRT.
41502         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41503         (sigaction): Map it to SIGABRT.
41504         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41505
41506 2008-10-20  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/fts.c: Don't include lstat.h.
41509         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41510
41511         Move the lstat() declaration to <sys/stat.h>.
41512         * lib/lstat.h: Remove file.
41513         * lib/sys_stat.in.h: Add special invocation convention.
41514         (lstat): New declaration.
41515         * lib/lstat.c (orig_lstat): New function.
41516         (rpl_lstat): Use orig_lstat instead of lstat.
41517         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41518         AC_C_INLINE. Set REPLACE_LSTAT.
41519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41520         and REPLACE_LSTAT.
41521         * modules/lstat (Files): Remove lib/lstat.h.
41522         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41523         (Include): Specify <sys/stat.h> instead of lstat.h.
41524         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41525         REPLACE_LSTAT.
41526         * NEWS: Mention the change.
41527
41528 2008-10-20  Bruno Haible  <bruno@clisp.org>
41529
41530         * modules/posix_spawn-tests: New file.
41531         * tests/test-posix_spawn3.c: New file.
41532
41533 2008-10-20  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41536         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41537         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41538         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41539         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41540
41541 2008-10-20  Bruno Haible  <bruno@clisp.org>
41542
41543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41544         of posix_spawn on AIX 5.3.
41545
41546 2008-10-20  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41549
41550 2008-10-20  Bruno Haible  <bruno@clisp.org>
41551
41552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41553         of AC_LANG_PROGRAM.
41554
41555 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41556
41557         * lib/netdb.in.h: Don't define GNU specific constants until they
41558         are supported or needed.  Reported by Bruno Haible
41559         <bruno@clisp.org>.
41560
41561 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41562
41563         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41564
41565 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41566
41567         * lib/getaddrinfo.h: Remove file.
41568         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41569         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41570         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41571         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41572         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41573         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41574         * tests/test-getaddrinfo.c: Likewise.
41575         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41576         * NEWS: Mention change.
41577
41578 2008-10-19  Bruno Haible  <bruno@clisp.org>
41579
41580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41581
41582 2008-10-19  Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/wait-process.c: Include simply <sys/wait.h>.
41585         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41586         WIFSTOPPED): Remove fallback definitions.
41587         * modules/wait-process (Depends-on): Add sys_wait.
41588
41589         New module 'sys_wait'.
41590         * modules/sys_wait: New file.
41591         * lib/sys_wait.in.h: New file, partially copied from
41592         lib/wait-process.c.
41593         * m4/sys_wait_h.m4: New file.
41594         * doc/posix-headers/sys_wait.texi: Mention the new module.
41595
41596 2008-10-19  Bruno Haible  <bruno@clisp.org>
41597
41598         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41599
41600 2008-10-19  Bruno Haible  <bruno@clisp.org>
41601
41602         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41603         * lib/wait-process.c (WAIT_T): Remove type.
41604         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41605         (wait_subprocess): Update.
41606
41607 2008-10-19  Bruno Haible  <bruno@clisp.org>
41608
41609         New module 'atoll'.
41610         * modules/atoll: New file.
41611         * lib/stdlib.in.h (atoll): New declaration.
41612         * lib/atoll.c: New file, from glibc with modifications.
41613         * m4/atoll.m4: New file.
41614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41615         HAVE_ATOLL.
41616         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41617         * doc/posix-functions/atoll.texi: Mention the new module.
41618
41619 2008-10-19  Bruno Haible  <bruno@clisp.org>
41620
41621         Add strtoull() declaration to <stdlib.h>.
41622         * lib/stdlib.in.h (strtoull): New declaration.
41623         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41624         Set HAVE_STRTOULL.
41625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41626         HAVE_STRTOULL.
41627         * modules/strtoull (Depends-on): Add stdlib.
41628         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41629         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41630         HAVE_STRTOULL.
41631
41632 2008-10-19  Bruno Haible  <bruno@clisp.org>
41633
41634         Add strtoll() declaration to <stdlib.h>.
41635         * lib/stdlib.in.h (strtoll): New declaration.
41636         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41637         Set HAVE_STRTOLL.
41638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41639         HAVE_STRTOLL.
41640         * modules/strtoll (Depends-on): Add stdlib.
41641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41642         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41643
41644 2008-10-19  Bruno Haible  <bruno@clisp.org>
41645
41646         * modules/bcopy (Depends-on): Add strings.
41647         (Include): Specify <strings.h>.
41648
41649 2008-10-19  Bruno Haible  <bruno@clisp.org>
41650
41651         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41652
41653 2008-10-19  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41656         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41657         mingw.
41658
41659 2008-10-19  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/atanl.c: Don't include isnanl.h.
41662         * lib/cosl.c: Likewise.
41663         * lib/ldexpl.c: Likewise.
41664         * lib/logl.c: Likewise.
41665         * lib/sinl.c: Likewise.
41666         * lib/sqrtl.c: Likewise.
41667         * lib/tanl.c: Likewise.
41668
41669         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41670         * lib/isnanf.h: Remove file.
41671         * lib/isnand.h: Remove file.
41672         * lib/isnanl.h: Remove file.
41673         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41674         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41675         macros.
41676         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41677         HAVE_ISNANF, don't define it as a C macro.
41678         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41679         HAVE_ISNAND, don't define it as a C macro.
41680         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41681         HAVE_ISNANL, don't define it as a C macro.
41682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41683         HAVE_ISNAN[FDL].
41684         * modules/isnanf (Files): Remove lib/isnanf.h.
41685         (Depends-on): Add math.
41686         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41687         (Include): Specify <math.h> instead of isnanf.h.
41688         * modules/isnand (Files): Remove lib/isnand.h.
41689         (Depends-on): Add math.
41690         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41691         (Include): Specify <math.h> instead of isnand.h.
41692         * modules/isnanl (Files): Remove lib/isnanl.h.
41693         (Depends-on): Add math.
41694         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41695         (Include): Specify <math.h> instead of isnanl.h.
41696         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41697         HAVE_ISNAN[FDL].
41698         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41699         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41700         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41701         * NEWS: Mention the change.
41702
41703 2008-10-18  Bruno Haible  <bruno@clisp.org>
41704
41705         Add getusershell(), setusershell(), endusershell() declarations to
41706         <unistd.h>.
41707         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41708         declarations.
41709         * lib/getusershell.c: Include unistd.h.
41710         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41711         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41712         HAVE_GETUSERSHELL.
41713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41714         and HAVE_GETUSERSHELL.
41715         * modules/getusershell (Depends-on): Add unistd, extensions.
41716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41717         (Include): Specify <unistd.h>.
41718         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41719         HAVE_GETUSERSHELL.
41720
41721 2008-10-18  Bruno Haible  <bruno@clisp.org>
41722
41723         Add a getloadavg() declaration to <stdlib.h>.
41724         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41725         getloadavg declaration.
41726         (getloadavg): New declaration.
41727         * lib/getloadavg.c: Include <stdlib.h> first.
41728         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41729         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41730         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41732         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41733         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41735         (Include): Specify <stdlib.h>.
41736         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41737         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41738
41739 2008-10-18  Bruno Haible  <bruno@clisp.org>
41740
41741         * lib/dirchownmod.c: Don't include lchmod.h.
41742
41743         Move the lchmod() declaration to <sys/stat.h>.
41744         * lib/lchmod.h: Remove file.
41745         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41746         (lchmod): New declaration, moved here from lib/lchown.h.
41747         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41748         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41749         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41750         and HAVE_LCHMOD.
41751         * modules/lchmod (Files): Remove lib/lchmod.h.
41752         (Depends-on): Add sys_stat, extensions.
41753         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41754         (Include): Specify <sys/stat.h> instead of lchmod.h.
41755         * modules/sys_stat (Depends-on): Add link-warning.
41756         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41757         definition of GL_LINK_WARNING.
41758         * NEWS: Mention the change.
41759
41760 2008-10-18  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/fchdir.c: Don't include dirfd.h.
41763         * lib/fts.c: Likewise.
41764         * lib/getcwd.c: Likewise.
41765         * lib/glob.c: Likewise.
41766
41767         Move the dirfd() declaration to <dirent.h>.
41768         * lib/dirfd.h: Remove file.
41769         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41770         (dirfd): New declaration.
41771         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41773         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41774         HAVE_DECL_DIRFD.
41775         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41776         HAVE_DECL_DIRFD.
41777         * modules/dirfd (Files): Remove lib/dirfd.h.
41778         (Depends-on): Add dirent, extensions.
41779         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41780         (Include): Specify <dirent.h> instead of dirfd.h.
41781         * modules/dirent (Depends-on): Add link-warning.
41782         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41783         definition of GL_LINK_WARNING.
41784         * NEWS: Mention the change.
41785
41786 2008-10-18  Bruno Haible  <bruno@clisp.org>
41787
41788         Move the euidaccess() declaration to <unistd.h>.
41789         * lib/euidaccess.h: Remove file.
41790         * lib/unistd.in.h (euidaccess): New declaration.
41791         * lib/euidaccess.c: Don't include euidaccess.h.
41792         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41793         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41795         and HAVE_EUIDACCESS.
41796         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41797         (Depends-on): Add unistd.
41798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41799         (Include): Specify <unistd.h> instead of euidaccess.h.
41800         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41801         HAVE_EUIDACCESS.
41802         * NEWS: Mention the change.
41803
41804 2008-10-18  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41807
41808         Move the getdomainname() declaration to <unistd.h>.
41809         * lib/getdomainname.h: Remove file.
41810         * lib/unistd.in.h (getdomainname): New declaration.
41811         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41812         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41813         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41814         HAVE_GETDOMAINNAME.
41815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41816         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41817         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41818         (Depends-on): Add unistd, extensions.
41819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41820         (Includes): Specify <unistd.h> instead of getdomainname.h.
41821         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41822         HAVE_GETDOMAINNAME.
41823         * NEWS: Mention the change.
41824
41825 2008-10-18  Bruno Haible  <bruno@clisp.org>
41826
41827         * modules/dirent: New file.
41828         * m4/dirent_h.m4: New file.
41829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41830         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41831         * modules/fchdir (Files): Remove lib/dirent.in.h.
41832         (Depends-on): Add dirent.
41833         (Makefile.am): Move rules to modules/dirent.
41834         * doc/posix-headers/dirent.texi: Mention the new module.
41835
41836 2008-10-18  Bruno Haible  <bruno@clisp.org>
41837
41838         Avoid -Wunused-parameter warnings in public gnulib header files.
41839         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41840         macro.
41841         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41842
41843 2008-10-18  Bruno Haible  <bruno@clisp.org>
41844
41845         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41846         * doc/glibc-functions/error.texi: Mention the module 'error'.
41847         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41848         * doc/glibc-functions/getdomainname.texi: Mention the module
41849         'getdomainname'.
41850         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41851         * doc/glibc-functions/getpagesize.texi: Mention the module
41852         'getpagesize'.
41853         * doc/glibc-functions/getusershell.texi: Mention the module
41854         'getusershell'.
41855         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41856         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41857         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41858         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41859         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41860         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41861         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41862         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41863         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41864         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41865         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41866         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41867         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41868         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41869
41870 2008-10-17  Bruno Haible  <bruno@clisp.org>
41871
41872         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41873         HP-UX and IRIX, use -0.0L.
41874         * tests/test-ceill.c (minus_zero): Likewise.
41875         * tests/test-floorl.c (minus_zero): Likewise.
41876         * tests/test-frexpl.c (minus_zero): Likewise.
41877         * tests/test-isnan.c (minus_zerol): Likewise.
41878         * tests/test-isnanl.h (minus_zero): Likewise.
41879         * tests/test-ldexpl.c (minus_zero): Likewise.
41880         * tests/test-roundl.c (minus_zero): Likewise.
41881         * tests/test-signbit.c (minus_zerol): Likewise.
41882         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41883         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41884         * tests/test-truncl.c (minus_zero): Likewise.
41885         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41886         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41887         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41888         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41889
41890 2008-10-17  Bruno Haible  <bruno@clisp.org>
41891
41892         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41893         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41894         that it gets activated only for gcc >= 3.0.
41895         * lib/dirent.in.h: Likewise.
41896         * lib/errno.in.h: Likewise.
41897         * lib/fcntl.in.h: Likewise.
41898         * lib/float.in.h: Likewise.
41899         * lib/iconv.in.h: Likewise.
41900         * lib/inttypes.in.h: Likewise.
41901         * lib/locale.in.h: Likewise.
41902         * lib/math.in.h: Likewise.
41903         * lib/netdb.in.h: Likewise.
41904         * lib/netinet_in.in.h: Likewise.
41905         * lib/search.in.h: Likewise.
41906         * lib/signal.in.h: Likewise.
41907         * lib/spawn.in.h: Likewise.
41908         * lib/stdarg.in.h: Likewise.
41909         * lib/stdint.in.h: Likewise.
41910         * lib/stdio.in.h: Likewise.
41911         * lib/stdlib.in.h: Likewise.
41912         * lib/string.in.h: Likewise.
41913         * lib/strings.in.h: Likewise.
41914         * lib/sys_file.in.h: Likewise.
41915         * lib/sys_ioctl.in.h: Likewise.
41916         * lib/sys_select.in.h: Likewise.
41917         * lib/sys_socket.in.h: Likewise.
41918         * lib/sys_stat.in.h: Likewise.
41919         * lib/sys_time.in.h: Likewise.
41920         * lib/sysexits.in.h: Likewise.
41921         * lib/time.in.h: Likewise.
41922         * lib/unistd.in.h: Likewise.
41923         * lib/wchar.in.h: Likewise.
41924         * lib/wctype.in.h: Likewise.
41925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41926
41927 2008-10-17  Jim Meyering  <meyering@redhat.com>
41928
41929         ignore-value: don't depend on inline module
41930         * modules/ignore-value (Depends-on): Remove 'inline'.
41931         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41932         Suggestion from Bruno Haible.
41933
41934 2008-10-17  Bruno Haible  <bruno@clisp.org>
41935
41936         New implementation of condition variables for Win32.
41937         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41938         (gl_linked_waitqueue_t): New type.
41939         (gl_cond_t): Use it.
41940         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41941         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41942         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41943         (glthread_cond_init_func, glthread_cond_wait_func,
41944         glthread_cond_timedwait_func, glthread_cond_signal_func,
41945         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41946         Reimplemented on the basis of gl_linked_waitqueue_t.
41947         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41948         gl_waitqueue_t.
41949         (gl_rwlock_t): Update.
41950         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41951
41952 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41953
41954         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41955         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41956
41957 2008-10-17  Jim Meyering  <meyering@redhat.com>
41958
41959         ignore-value: new module
41960         * modules/ignore-value: New file.
41961         * lib/ignore-value.h: New file.
41962         * MODULES.html.sh (Compiler warning management): New section,
41963         just for this module.  More to come.
41964
41965 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41966
41967         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41968         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41969         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41970
41971 2008-10-16  Jim Meyering  <meyering@redhat.com>
41972
41973         openat-die.c: avoid 'no previous prototype' warning
41974         * lib/openat-die.c: Include "openat.h".
41975         Reported by Reuben Thomas <rrt@sc3d.org>.
41976
41977 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41978
41979         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41980         * lib/netdb.in.h: Fix typo.
41981         Reported by Bruno Haible  <bruno@clisp.org>
41982
41983         * lib/netdb.in.h: Include sys/socket.h for platforms without
41984         netdb.h, to get structures like hostent on MinGW.
41985         * modules/netdb (Depends-on): Add sys_socket.
41986
41987 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41988
41989         * modules/netdb, modules/netdb-tests: New file.
41990         * m4/netdb_h.m4: New file.
41991         * lib/netdb.in.h: Add, currently just an empty file pending
41992         definitions.
41993         * tests/test-netdb.c: New file.
41994         * doc/posix-headers/netdb.texi: Mention that we replace it if
41995         needed.
41996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41997         netdb.
41998
41999 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42000
42001         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42002         with code.
42003
42004 2008-10-13  Bruno Haible  <bruno@clisp.org>
42005
42006         * lib/glthread/cond.c (glthread_cond_wait_func,
42007         glthread_cond_timedwait_func): Add a comment.
42008
42009 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42010
42011         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42012         * tests/test-select.c: Likewise,
42013
42014 2008-10-13  Bruno Haible  <bruno@clisp.org>
42015
42016         * lib/glthread/cond.c (glthread_cond_wait_func,
42017         glthread_cond_timedwait_func): Fix variable name.
42018         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42019
42020 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42021
42022         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42024         struct sockaddr.sa_len.
42025         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42026
42027 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42028
42029         * build-aux/pmccabe2html: Add css and css_url parameters.
42030
42031 2008-10-12  Bruno Haible  <bruno@clisp.org>
42032
42033         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42034         calling aclx_get.
42035         Reported by Rainer Tammer <tammer@tammer.net>.
42036
42037 2008-10-12  Bruno Haible  <bruno@clisp.org>
42038
42039         Use msvcrt aware primitives for creation/termination of Win32 threads.
42040         * lib/glthread/thread.c: Include <process.h>.
42041         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42042         (wrapper_func): Update signature.
42043         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42044
42045 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42046             Bruno Haible  <bruno@clisp.org>
42047
42048         Provide a Win32 implementation of the 'cond' module.
42049         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42050         * lib/glthread/cond.c (glthread_cond_init_func,
42051         glthread_cond_wait_func, glthread_cond_timedwait_func,
42052         glthread_cond_signal_func, glthread_cond_broadcast_func,
42053         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42054         * modules/cond (Dependencies): Add gettimeofday.
42055
42056 2008-10-11  Bruno Haible  <bruno@clisp.org>
42057
42058         Make sleep work on older versions of mingw.
42059         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42060         only whether it exists.
42061         * doc/posix-functions/sleep.texi: Mention the problem with older
42062         versions of mingw.
42063
42064 2008-10-11  Bruno Haible  <bruno@clisp.org>
42065
42066         New module 'shutdown'.
42067         * modules/shutdown: New file.
42068         * lib/sys_socket.in.h (shutdown): New declaration.
42069         * lib/winsock.c (shutdown): New function.
42070         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42071         GNULIB_SHUTDOWN.
42072         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42073         * doc/posix-functions/shutdown.texi: Document the new module.
42074
42075 2008-10-11  Jim Meyering  <meyering@redhat.com>
42076
42077         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42078
42079 2008-10-11  Bruno Haible  <bruno@clisp.org>
42080
42081         New module 'fclose'.
42082         * modules/fclose: New file.
42083         * lib/stdio.in.h (fclose): New declaration.
42084         * lib/fclose.c: New file.
42085         * m4/fclose.m4: New file.
42086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42087         REPLACE_FCLOSE.
42088         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42089         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42090         REPLACE_FCLOSE.
42091         * modules/close (Depends-on): fclose.
42092         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42093
42094 2008-10-11  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42097         set errno and don't call _close.
42098
42099 2008-10-10  Bruno Haible  <bruno@clisp.org>
42100
42101         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42102         ACL, not afterwards. Fixes test failure on Cygwin.
42103
42104 2008-10-09  Ben Pfaff  <blp@gnu.org>
42105
42106         * build-aux/announce-gen: Fix gnulib version related part of usage
42107         message.  Die with a useful error message if no tarballs are
42108         found.
42109
42110 2008-10-10  Jim Meyering  <meyering@redhat.com>
42111
42112         bootstrap: use git's --depth=N option only if it's supported
42113         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42114         recognize the --depth option.  Reported by Pádraig Brady.
42115
42116 2008-10-09  Bruno Haible  <bruno@clisp.org>
42117
42118         New module 'ioctl'.
42119         * modules/ioctl: New file.
42120         * lib/sys_socket.in.h (ioctl): Remove declaration.
42121         * lib/winsock.c: Include <sys/ioctl.h>.
42122         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42123         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42124         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42125         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42126         * doc/posix-functions/ioctl.texi: Mention the new module.
42127
42128 2008-10-09  Bruno Haible  <bruno@clisp.org>
42129
42130         New module 'sys_ioctl'.
42131         * lib/sys_ioctl.in.h: New file.
42132         * m4/sys_ioctl_h.m4: New file.
42133         * modules/sys_ioctl: New file.
42134         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42135
42136 2008-10-09  Bruno Haible  <bruno@clisp.org>
42137
42138         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42139         * lib/winsock.c: Include <stdarg.h>.
42140         (rpl_ioctl): Change to second argument 'int' and then varargs.
42141
42142 2008-10-09  Bruno Haible  <bruno@clisp.org>
42143
42144         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42145         when the sys_socket module is present and the system has <winsock2.h>.
42146
42147 2008-10-09  Bruno Haible  <bruno@clisp.org>
42148
42149         * doc/posix-functions/close.texi: Mention module 'close' instead of
42150         module 'sys_socket'.
42151
42152 2008-10-09  Bruno Haible  <bruno@clisp.org>
42153
42154         * doc/glibc-headers/sys_ioctl.texi: New file.
42155         * doc/gnulib.texi: Include it.
42156
42157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42158             Bruno Haible  <bruno@clisp.org>
42159
42160         Combine the two replacements of 'close'.
42161         * lib/sys_socket.in.h (close): Define to a reminder to include
42162         <unistd.h>.
42163         (_gl_close_fd_maybe_socket): New declaration.
42164         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42165         * lib/winsock.c (close): Remove undefinition.
42166         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42167         needed for the gnulib module 'close'.
42168         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42169         define to an error symbol or to a warning, if suitable.
42170         * lib/close.c: Include <sys/socket.h>.
42171         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42172         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42173         UNISTD_H_HAVE_WINSOCK2_H.
42174         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42176         UNISTD_H_HAVE_WINSOCK2_H.
42177         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42178         (configure.ac): Set a module indicator.
42179         (Makefile.am): Substitute GNULIB_CLOSE.
42180         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42181         * modules/poll-tests (Depends-on): Add close.
42182         * modules/select-tests (Depends-on): Likewise.
42183
42184 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42185             Bruno Haible  <bruno@clisp.org>
42186
42187         New module 'close'.
42188         * modules/close: New file.
42189         * lib/unistd.in.h (close): Move declaration out of the
42190         FCHDIR_REPLACEMENT scope.
42191         (_gl_unregister_fd): New declaration.
42192         * lib/close.c: New file.
42193         * lib/fchdir.c (rpl_close): Remove function.
42194         * m4/close.m4: New file.
42195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42196         close.
42197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42198         REPLACE_CLOSE.
42199         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42200         REPLACE_CLOSE.
42201         * modules/fchdir (Depends-on): Add close.
42202
42203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42204             Bruno Haible  <bruno@clisp.org>
42205
42206         * lib/fcntl.in.h (open): Simplify conditionals.
42207         (_gl_register_fd): New declaration.
42208         * lib/fchdir.c (rpl_open): Remove function.
42209         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42210         also.
42211         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42213         open.
42214
42215 2008-10-09  Jim Meyering  <meyering@redhat.com>
42216
42217         GNUmakefile: use the more name-space-friendly "_version"
42218         * top/GNUmakefile (_dummy): Update.
42219         (_version): Rename from "version".
42220
42221 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42222             Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42225         rpl_close.
42226         (_gl_register_fd): New function, extracted from rpl_open.
42227         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42228         (rpl_open, rpl_opendir): Use _gl_register_fd.
42229
42230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42231
42232         Fix organization of 'open' replacement.
42233         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42234         (gl_FUNC_OPEN): Use it.
42235         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42236
42237 2008-10-08  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42240
42241 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42242
42243         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42244         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42245         listen).
42246
42247 2008-10-08  Eric Blake  <ebb9@byu.net>
42248
42249         GNUmakefile: add 'make version' target
42250         * top/GNUmakefile (_curr-ver): Split version update rules...
42251         (version): ...into a target.
42252
42253 2008-10-07  Bruno Haible  <bruno@clisp.org>
42254
42255         Use a more portable replacement expression for -0.0L.
42256         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42257         instead of -0.0L. Fix m4 quotation.
42258
42259         * tests/test-signbit.c: Include <float.h>.
42260         (minus_zero): New variable.
42261         (test_signbitl): Use minus_zero instead of -zero.
42262         * modules/signbit-tests (Depends-on): Add float.
42263
42264         * tests/test-ceill.c: Include <float.h>.
42265         (zero): Remove variable.
42266         (minus_zero): New variable.
42267         (main): Use minus_zero instead of -zero.
42268         * modules/ceill-tests (Depends-on): Add float.
42269
42270         * tests/test-floorl.c: Include <float.h>.
42271         (zero): Remove variable.
42272         (minus_zero): New variable.
42273         (main): Use minus_zero instead of -zero.
42274         * modules/floorl-tests (Depends-on): Add float.
42275
42276         * tests/test-roundl.c: Include <float.h>.
42277         (zero): Remove variable.
42278         (minus_zero): New variable.
42279         (main): Use minus_zero instead of -zero.
42280         * modules/roundl-tests (Depends-on): Add float.
42281
42282         * tests/test-truncl.c: Include <float.h>.
42283         (zero): Remove variable.
42284         (minus_zero): New variable.
42285         (main): Use minus_zero instead of -zero.
42286         * modules/truncl-tests (Depends-on): Add float.
42287
42288         * tests/test-frexpl.c (zero): Remove variable.
42289         (minus_zero): New variable.
42290         (main): Use minus_zero instead of -zero.
42291         * modules/frexpl-tests (Depends-on): Add float.
42292
42293         * tests/test-isnan.c (zerol): Remove variable.
42294         (minus_zerol): New variable.
42295         (test_long_double): Use minus_zerol instead of -zerol.
42296         * modules/isnan-tests (Depends-on): Add float.
42297
42298         * tests/test-isnanl.h (zero): Remove variable.
42299         (minus_zero): New variable.
42300         (main): Use minus_zero instead of -zero.
42301         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42302         * modules/isnanl-tests (Depends-on): Add float.
42303
42304         * tests/test-ldexpl.c (zero): Remove variable.
42305         (minus_zero): New variable.
42306         (main): Use minus_zero instead of -zero.
42307         * modules/ldexpl-tests (Depends-on): Add float.
42308
42309         * tests/test-snprintf-posix.h (zerol): Remove variable.
42310         (minus_zerol): New variable.
42311         (test_function): Use minus_zerol instead of -zerol.
42312         * modules/snprintf-posix-tests (Depends-on): Add float.
42313         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42314
42315         * tests/test-sprintf-posix.h (zerol): Remove variable.
42316         (minus_zerol): New variable.
42317         (test_function): Use minus_zerol instead of -zerol.
42318         * modules/sprintf-posix-tests (Depends-on): Add float.
42319         * modules/vsprintf-posix-tests (Depends-on): Add float.
42320
42321         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42322         (minus_zerol): New variable.
42323         (test_function): Use minus_zerol instead of -zerol.
42324         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42325
42326         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42327         (minus_zerol): New variable.
42328         (test_function): Use minus_zerol instead of -zerol.
42329         * modules/vasprintf-posix-tests (Depends-on): Add float.
42330
42331 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42332
42333         * MODULES.html.sh (Support for building documentation): Mention
42334         pmccabe2html.  Sort entries.
42335
42336         Add pmccabe2html module, from gnupdf.
42337         * build-aux/pmccabe.css: New file.
42338         * build-aux/pmccabe2html: New file.
42339         * m4/pmccabe2html.m4: New file.
42340         * modules/pmccabe2html: New file.
42341
42342 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42343
42344         flock: new module
42345         * MODULES.html.sh: Add to list of modules.
42346         * lib/flock.c: flock implementation for Windows and Unix systems
42347         which have fcntl.
42348         * doc/glibc-functions/flock.texi: Update documentation.
42349         * lib/sys_file.in.h: <sys/file.h> header file.
42350         * m4/flock.m4: M4 macros.
42351         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42352         * modules/flock: flock module.
42353         * modules/flock-tests: flock tests module.
42354         * modules/sys_file: sys/file.h module.
42355         * tests/test-flock.c: test suite for flock.
42356
42357 2008-10-06  Jim Meyering  <meyering@redhat.com>
42358
42359         bootstrap: check for LT_INIT more portably still ;-)
42360         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42361         Spotted by Bruno Haible.
42362
42363 2008-10-06  Eric Blake  <ebb9@byu.net>
42364
42365         test-signbit: avoid tripping Irix cc bug on -0.0L
42366         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42367         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42368         entire testsuite consistent and avoids an Irix 6.2 bug.
42369
42370 2008-10-05  Bruno Haible  <bruno@clisp.org>
42371             Jim Meyering  <jim@meyering.net>
42372
42373         Add an option for ignoring EPIPE during close_stdout.
42374         * lib/closeout.h: Include <stdbool.h>.
42375         (close_stdout_set_ignore_EPIPE): New declaration.
42376         * lib/closeout.c: Include <stdbool.h>.
42377         (ignore_EPIPE): New variable.
42378         (close_stdout_set_ignore_EPIPE): New function.
42379         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42380         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42381         failure.
42382         * modules/closeout (Depends-on): Add stdbool.
42383
42384 2008-10-05  Bruno Haible  <bruno@clisp.org>
42385
42386         * modules/accept: New file.
42387         * modules/bind: New file.
42388         * modules/connect: New file.
42389         * modules/getpeername: New file.
42390         * modules/getsockname: New file.
42391         * modules/getsockopt: New file.
42392         * modules/listen: New file.
42393         * modules/recv: New file.
42394         * modules/recvfrom: New file.
42395         * modules/send: New file.
42396         * modules/sendto: New file.
42397         * modules/setsockopt: New file.
42398         * modules/socket: New file.
42399         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42400         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42401         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42402         the particular module is requested. Add a link warning when the
42403         particular module is not requested.
42404         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42405         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42406         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42407         the particular module is requested.
42408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42409         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42410         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42411         * modules/sys_socket (Depends-on): Add link-warning.
42412         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42413         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42414         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42415         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42416         GL_LINK_WARNING.
42417         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42418         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42419         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42420         * doc/posix-functions/getpeername.texi: Mention the new module
42421         'getpeername'.
42422         * doc/posix-functions/getsockname.texi: Mention the new module
42423         'getsockname'.
42424         * doc/posix-functions/getsockopt.texi: Mention the new module
42425         'getsockopt'.
42426         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42427         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42428         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42429         * doc/posix-functions/send.texi: Mention the new module 'send'.
42430         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42431         * doc/posix-functions/setsockopt.texi: Mention the new module
42432         'setsockopt'.
42433         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42434         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42435         listen, connect, accept.
42436         * modules/select-tests (Depends-on): Likewise.
42437
42438 2008-10-05  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/winsock.c (strerror): Remove unused #undef.
42441         (rpl_close): Remove unused local variable.
42442
42443         * modules/sys_socket (Depends-on); Add errno.
42444
42445 2008-10-05  Bruno Haible  <bruno@clisp.org>
42446
42447         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42448         (select): Add a link warning when the 'select' module is not used.
42449         * modules/sys_select (Depends-on): Add link-warning.
42450         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42451         Suggested by Paolo Bonzini.
42452
42453 2008-10-05  Jim Meyering  <meyering@redhat.com>
42454
42455         bootstrap: check for LT_INIT more portably
42456         * build-aux/bootstrap: Avoid using grep -E, since it's not
42457         portable enough.  Suggestion from Bruno Haible.
42458
42459 2008-10-05  Bruno Haible  <bruno@clisp.org>
42460
42461         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42462         as being fixed by gnulib.
42463
42464 2008-10-05  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/select-tests: New file, mostly copied from
42467         modules/sys_select-tests.
42468         * tests/test-select.c: New file, mostly copied from
42469         tests/test-sys_select.c.
42470         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42471         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42472         (Makefile.am): Remove test_sys_select_LDADD.
42473
42474         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42475         to an undefined symbol, for an error message.
42476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42477         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42478         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42479         winsock-select.c here.
42480         * modules/sys_select (Files): Remove lib/winsock-select.c.
42481         (Depends-on): Remove alloca.
42482         (Makefile.am): Substitute GNULIB_SELECT.
42483         * modules/select: New file.
42484         * doc/posix-functions/select.texi: Update.
42485
42486 2008-10-05  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42489         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42490         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42491         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42492         getdtablesize.
42493         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42494         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42495
42496 2008-10-05  Bruno Haible  <bruno@clisp.org>
42497
42498         * modules/getdtablesize-tests: New file.
42499         * tests/test-getdtablesize.c: New file.
42500
42501         New module 'getdtablesize'.
42502         * lib/unistd.in.h (getdtablesize): New declaration.
42503         * lib/getdtablesize.c: New file.
42504         * m4/getdtablesize.m4: New file.
42505         * modules/getdtablesize: New file.
42506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42507         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42508         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42509         HAVE_GETDTABLESIZE.
42510         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42511
42512 2008-10-05  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/sched (Makefile.am): Fix typo.
42515         Reported by Simon Josefsson.
42516
42517 2008-10-05  Jim Meyering  <meyering@redhat.com>
42518
42519         bootstrap: check for LT_INIT, too
42520         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42521         are deprecated.  Suggestion from Ralf Wildenhues.
42522
42523 2008-10-05  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42526         overriding them by ours.
42527         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42528
42529 2008-10-05  Jim Meyering  <meyering@redhat.com>
42530
42531         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42532         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42533         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42534
42535 2008-10-04  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/dup2 (License): Change to LGPLv2+.
42538         * modules/sleep (License): Likewise.
42539         * modules/perror (License): Likewise.
42540         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42541         Blake.
42542         * modules/signal (License): Likewise.
42543         * modules/sigprocmask (License): Likewise.
42544         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42545         Meyering.
42546
42547 2008-10-04  Bruno Haible  <bruno@clisp.org>
42548
42549         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42550         Reported by Rainer Tammer <tammer@tammer.net>.
42551
42552 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42553             Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42556         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42557         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42558
42559 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42560
42561         filevercmp: new module
42562         * lib/filevercmp.h: New function filevercmp comparing version strings.
42563         * lib/filevercmp.c: Implementation of filevercmp function.
42564         * modules/filevercmp: Module metadata.
42565         * tests/test-filevercmp.c: Unit test for new module.
42566         * modules/filevercmp-tests: Unit test metadata.
42567         * MODULES.html.sh: Add filevercmp module.
42568
42569 2008-10-03  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/c-ctype.h: Add comment.
42572         Reported by Jim Meyering.
42573
42574 2008-10-02  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42577
42578 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42579
42580         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42581         name of bootstrap.conf accordingly.
42582
42583 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42584
42585         * build-aux/bootstrap: Install git-merge-changelog configuration
42586         items into .gitconfig if needed.
42587
42588 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42589
42590         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42591         git repository, and initialize/update it accordingly.
42592
42593 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42594
42595         * modules/fsync-tests: New file.
42596         * tests/test-fsync.c: New file.
42597
42598         New module 'fsync'.
42599         * lib/fsync.c: New file.
42600         * m4/fsync.m4: New file.
42601         * modules/fsync: New file.
42602         * lib/unistd.in.h (fsync): New declaration.
42603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42604         GNULIB_FSYNC and HAVE_FSYNC.
42605         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42606         * MODULES.html.sh (posix_functions): Add fsync.
42607         * doc/posix-functions/fsync.texi: Mention the new module.
42608
42609 2008-10-02  Jim Meyering  <meyering@redhat.com>
42610
42611         fts.c: sync with similar code from coreutils' remove.c
42612         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42613         Guard also with "#if defined __linux__", since for now at least,
42614         this code is Linux-kernel-specific.
42615
42616 2008-10-02  Jim Meyering  <meyering@redhat.com>
42617
42618         fts: bug fixes
42619         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42620         Include <sys/vfs.h>, not <sys/statfs.h>.
42621
42622         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42623         Include <sys/vfs.h>, not <sys/statfs.h>.
42624
42625 2008-10-01  Bruno Haible  <bruno@clisp.org>
42626
42627         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42629         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42630         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42631         * doc/posix-functions/posix_spawnp.texi: Likewise.
42632         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42633         whether posix_spawn actually works.
42634         * m4/pipe.m4 (gl_PIPE): Likewise.
42635         * modules/execute (Files): Add m4/posix_spawn.m4.
42636         * modules/pipe (Files): Add m4/posix_spawn.m4.
42637         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42638
42639 2008-10-01  Jim Meyering  <meyering@redhat.com>
42640
42641         remove trailing spaces
42642         * NEWS: Likewise.
42643         * lib/poll.c (poll): Likewise.
42644         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42645         * lib/winsock.c (rpl_close): Likewise.
42646         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42647         * modules/yield: Likewise.
42648         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42649         * tests/test-sys_select.c (connect_to_socket): Likewise.
42650
42651         fts.c: adjust a new interface to be more generally useful
42652         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42653         (fts_build): Adjust caller.
42654
42655 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42656
42657         * modules/cond-tests: New file.
42658         * tests/test-cond.c: New file.
42659
42660 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42661             Bruno Haible  <bruno@clisp.org>
42662
42663         * modules/cond (Dependencies): Add errno, time.
42664         * lib/glthread/cond.h: Include <time.h>.
42665         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42666         across platforms.
42667
42668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42669             Bruno Haible  <bruno@clisp.org>
42670
42671         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42672
42673 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42674             Bruno Haible  <bruno@clisp.org>
42675
42676         * modules/tls-tests (Depends-on): Add thread, yield.
42677         (configure.ac): Remove all checks.
42678         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42679         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42680         gl_thread_self): Remove definitions. Include glthread/thread.h and
42681         glthread/yield.h instead.
42682         (test_tls): Pass an additional NULL argument to gl_thread_join.
42683
42684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42685             Bruno Haible  <bruno@clisp.org>
42686
42687         * modules/lock-tests (Depends-on): Add thread, yield.
42688         (configure.ac): Remove all checks.
42689         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42690         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42691         gl_thread_self): Remove definitions. Include glthread/thread.h and
42692         glthread/yield.h instead.
42693         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42694         additional NULL argument to gl_thread_join.
42695
42696 2008-09-30  Bruno Haible  <bruno@clisp.org>
42697
42698         Fix the Win32 implementation of the 'thread' module.
42699         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42700         pointer type.
42701         (gl_thread_self): Invoke gl_thread_self_func.
42702         (gl_thread_self_func): New declaration.
42703         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42704         (do_init_self_key, init_self_key): New functions.
42705         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42706         Remove some fields.
42707         (running_threads, running_lock): Remove variables.
42708         (get_current_thread_handle): New function.
42709         (gl_thread_self_func, wrapper_func, glthread_create_func,
42710         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42711         simplified.
42712
42713 2008-09-30  Bruno Haible  <bruno@clisp.org>
42714
42715         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42716         files.
42717
42718 2008-09-30  Jim Meyering  <meyering@redhat.com>
42719
42720         fts.m4: correct the test for statfs.f_type
42721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42722         when checking for statfs.f_type.
42723
42724 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42725
42726         tests: avoid some compiler warnings
42727         * tests/test-memchr.c (main): Pass NULL indirectly.
42728         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42729
42730 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42731
42732         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42733         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42734         exactly specified dayshifts.
42735         (dayshift): New rule.
42736         (rel): Add dayshift.
42737         (relative_time_table) [tomorrow, yesterday, today, now]:
42738         Use tDAY_SHIFT in place of tDAY_UNIT.
42739         * tests/test-getdate.c: Add tests for now-disallowed countable
42740         dayshifts, e.g., "4 yesterday ago".
42741
42742 2008-09-29  Bruno Haible  <bruno@clisp.org>
42743
42744         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42745         * tests/test-posix_spawn1.in.sh: Renamed from
42746         tests/test-posix_spawn.in.sh.
42747         * tests/test-posix_spawn2.c: New file.
42748         * tests/test-posix_spawn2.in.sh: New file.
42749         * modules/posix_spawnp-tests (Files): Update.
42750         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42751
42752 2008-09-29  Bruno Haible  <bruno@clisp.org>
42753
42754         Propagate effects of putenv/setenv/unsetenv to child processes.
42755         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42756         * lib/pipe.c (create_pipe): Likewise.
42757
42758 2008-09-29  Bruno Haible  <bruno@clisp.org>
42759
42760         Enable use of shell scripts as executables in mingw.
42761         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42762         run the program as a shell script.
42763         * lib/pipe.c (create_pipe): Likewise.
42764         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42765         resulting array.
42766
42767 2008-09-29  Eric Blake  <ebb9@byu.net>
42768
42769         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42770
42771 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42772
42773         * doc/posix-functions/accept.texi: Update mingw problems.
42774         * doc/posix-functions/bind.texi: Update mingw problems.
42775         * doc/posix-functions/close.texi: Update mingw problems.
42776         * doc/posix-functions/connect.texi: Update mingw problems.
42777         * doc/posix-functions/getpeername.texi: Update mingw problems.
42778         * doc/posix-functions/getsockname.texi: Update mingw problems.
42779         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42780         * doc/posix-functions/ioctl.texi: Update mingw problems.
42781         * doc/posix-functions/listen.texi: Update mingw problems.
42782         * doc/posix-functions/recv.texi: Update mingw problems.
42783         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42784         * doc/posix-functions/select.texi: Update mingw problems.
42785         * doc/posix-functions/send.texi: Update mingw problems.
42786         * doc/posix-functions/sendto.texi: Update mingw problems.
42787         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42788         * doc/posix-functions/socket.texi: Update mingw problems.
42789
42790 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42791             Bruno Haible  <bruno@clisp.org>
42792
42793         * lib/sys_select.in.h: Include sys/time.h.
42794         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42795         * modules/sys_select: Depend on sys_time.
42796         * tests/test-sys_select.c: Test that sys/select.h defines struct
42797         timeval fully.
42798
42799 2008-09-29  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42802         * lib/sys_select.in.h: Likewise.
42803
42804 2008-09-29  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42807
42808 2008-09-29  Bruno Haible  <bruno@clisp.org>
42809
42810         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42811         Set LIBSOCKET instead of augmenting LIBS.
42812         * modules/sockets (Link): New section.
42813         * modules/sockets-tests (test_sockets_LDADD): New variable.
42814         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42815         * modules/poll-tests (test_poll_LDADD): New variable.
42816         * NEWS: Document the change.
42817
42818 2008-09-29  Bruno Haible  <bruno@clisp.org>
42819
42820         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42821         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42822         ARPA_INET_H directly.
42823         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42824
42825 2008-09-28  Bruno Haible  <bruno@clisp.org>
42826
42827         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42828         from gl_HEADER_SYS_SOCKET.
42829         (gl_HEADER_SYS_SOCKET): Invoke it.
42830         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42831
42832 2008-09-28  Bruno Haible  <bruno@clisp.org>
42833
42834         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42835         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42836         Needed on OSF/1 4.0.
42837
42838 2008-09-28  Bruno Haible  <bruno@clisp.org>
42839
42840         Override open more carefully.
42841         * lib/open.c (orig_open): New function.
42842         (rpl_open): Use orig_open instead of open.
42843         * lib/fcntl.in.h: Add special invocation convention.
42844         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42845         (gl_FUNC_OPEN): Invoke it.
42846
42847         Override freopen more carefully.
42848         * lib/freopen.c (orig_freopen): New function.
42849         (rpl_freopen): Use orig_freopen instead of freopen.
42850         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42851         (gl_FUNC_FREOPEN): Invoke it.
42852
42853         Override fopen more carefully.
42854         * lib/fopen.c (orig_fopen): New function.
42855         (rpl_fopen): Use orig_fopen instead of fopen.
42856         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42857         (gl_FUNC_FOPEN): Invoke it.
42858         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42859
42860 2008-09-28  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42863         SIGPIPE.
42864
42865 2008-09-28  Bruno Haible  <bruno@clisp.org>
42866
42867         * tests/test-sigaction.c (handler, main): Disable the check whether
42868         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42869         glibc systems with LinuxThreads.
42870
42871 2008-09-28  Bruno Haible  <bruno@clisp.org>
42872
42873         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42874
42875         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42876         with AIX xlc.
42877         * lib/fcntl.in.h (open): Likewise.
42878         Reported by Rainer Tammer <tammer@tammer.net>.
42879
42880 2008-09-28  Bruno Haible  <bruno@clisp.org>
42881
42882         * modules/posix_spawnp-tests: New file.
42883         * tests/test-posix_spawn.c: New file.
42884         * tests/test-posix_spawn.in.sh: New file.
42885
42886         New module 'posix_spawnp'.
42887         * modules/posix_spawnp: New file.
42888         * lib/spawnp.c: New file, from GNU libc with modifications.
42889         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42890
42891         New module 'posix_spawn'.
42892         * modules/posix_spawn: New file.
42893         * lib/spawn.c: New file, from GNU libc with modifications.
42894         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42895
42896         New module 'posix_spawnattr_destroy'.
42897         * modules/posix_spawnattr_destroy: New file.
42898         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42899         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42900         module.
42901
42902         New module 'posix_spawnattr_setsigmask'.
42903         * modules/posix_spawnattr_setsigmask: New file.
42904         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42905         modifications.
42906         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42907         new module.
42908
42909         New module 'posix_spawnattr_getsigmask'.
42910         * modules/posix_spawnattr_getsigmask: New file.
42911         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42912         modifications.
42913         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42914         new module.
42915
42916         New module 'posix_spawnattr_setsigdefault'.
42917         * modules/posix_spawnattr_setsigdefault: New file.
42918         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42919         modifications.
42920         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42921         new module.
42922
42923         New module 'posix_spawnattr_getsigdefault'.
42924         * modules/posix_spawnattr_getsigdefault: New file.
42925         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42926         modifications.
42927         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42928         new module.
42929
42930         New module 'posix_spawnattr_setschedpolicy'.
42931         * modules/posix_spawnattr_setschedpolicy: New file.
42932         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42933         modifications.
42934         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42935         new module.
42936
42937         New module 'posix_spawnattr_getschedpolicy'.
42938         * modules/posix_spawnattr_getschedpolicy: New file.
42939         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42940         modifications.
42941         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42942         new module.
42943
42944         New module 'posix_spawnattr_setschedparam'.
42945         * modules/posix_spawnattr_setschedparam: New file.
42946         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42947         modifications.
42948         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42949         new module.
42950
42951         New module 'posix_spawnattr_getschedparam'.
42952         * modules/posix_spawnattr_getschedparam: New file.
42953         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42954         modifications.
42955         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42956         new module.
42957
42958         New module 'posix_spawnattr_setpgroup'.
42959         * modules/posix_spawnattr_setpgroup: New file.
42960         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42961         modifications.
42962         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42963         module.
42964
42965         New module 'posix_spawnattr_getpgroup'.
42966         * modules/posix_spawnattr_getpgroup: New file.
42967         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42968         modifications.
42969         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42970         module.
42971
42972         New module 'posix_spawnattr_setflags'.
42973         * modules/posix_spawnattr_setflags: New file.
42974         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42975         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42976         module.
42977
42978         New module 'posix_spawnattr_getflags'.
42979         * modules/posix_spawnattr_getflags: New file.
42980         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42981         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42982         module.
42983
42984         New module 'posix_spawnattr_init'.
42985         * modules/posix_spawnattr_init: New file.
42986         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42987         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42988         module.
42989
42990         New module 'posix_spawn_file_actions_destroy'.
42991         * modules/posix_spawn_file_actions_destroy: New file.
42992         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42993         modifications.
42994         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42995         the new module.
42996
42997         New module 'posix_spawn_file_actions_addopen'.
42998         * modules/posix_spawn_file_actions_addopen: New file.
42999         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43000         modifications.
43001         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43002         the new module.
43003
43004         New module 'posix_spawn_file_actions_adddup2'.
43005         * modules/posix_spawn_file_actions_adddup2: New file.
43006         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43007         modifications.
43008         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43009         the new module.
43010
43011         New module 'posix_spawn_file_actions_addclose'.
43012         * modules/posix_spawn_file_actions_addclose: New file.
43013         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43014         modifications.
43015         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43016         the new module.
43017
43018         New module 'posix_spawn_file_actions_init'.
43019         * modules/posix_spawn_file_actions_init: New file.
43020         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43021         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43022         new module.
43023
43024         New module 'posix_spawn-internal'.
43025         * modules/posix_spawn-internal: New file.
43026         * lib/spawn_int.h: New file, from GNU libc with modifications.
43027         * lib/spawni.c: New file, from GNU libc with modifications.
43028         * m4/posix_spawn.m4: New file.
43029
43030         New module 'spawn'.
43031         * modules/spawn: New file.
43032         * lib/spawn.in.h: New file, from GNU libc with modifications.
43033         * m4/spawn_h.m4: New file.
43034         * doc/posix-headers/spawn.texi: Mention the new module.
43035
43036 2008-09-28  Bruno Haible  <bruno@clisp.org>
43037
43038         * modules/sched-tests: New file.
43039         * tests/test-sched.c: New file.
43040
43041         New module 'sched'.
43042         * modules/sched: New file.
43043         * lib/sched.in.h: New file.
43044         * m4/sched_h.m4: New file.
43045         * doc/posix-headers/sched.texi: Mention the new module.
43046
43047 2008-09-27  Eric Blake  <ebb9@byu.net>
43048
43049         Fix previous patch, and tweak references to $0.
43050         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43051         (func_version, func_gnulib_dir): Don't call this program
43052         gnulib-tool.
43053         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43054         with using $0 in function.
43055         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43056         (func_fatal_error): Reuse the name the user invoked us with.
43057
43058 2008-09-27  Bruno Haible  <bruno@clisp.org>
43059
43060         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43061         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43062         (gl_ICONV_H): Not here.
43063         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43064         instead of assigning ICONV_H directly.
43065
43066         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43068         WCHAR_H directly.
43069
43070 2008-09-27  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43073         * modules/arpa_inet (Depends-on): Add link-warning.
43074         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43075         * modules/unistd (Makefile.am): Likewise.
43076
43077 2008-09-26  Bruno Haible  <bruno@clisp.org>
43078
43079         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43080         variables.
43081         (func_version): Essentially copied from gnulib-tool.
43082         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43083         func_readlink): Copied from gnulib-tool.
43084
43085 2008-09-26  Bruno Haible  <bruno@clisp.org>
43086
43087         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43088         invoking git-version-gen.
43089
43090 2008-09-26  Bruno Haible  <bruno@clisp.org>
43091
43092         * posix-modules: Update to directory names changed on 2008-01-19.
43093         Remove commas in output before splitting into words. No more need to
43094         avoid 'ftruncate' since 2007-02-19.
43095
43096 2008-09-26  Bruno Haible  <bruno@clisp.org>
43097
43098         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43099
43100 2008-09-26  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43103         * modules/fwriteerror (Depends-on): Add errno.
43104
43105 2008-09-26  Bruno Haible  <bruno@clisp.org>
43106
43107         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43108         * tests/test-vc-list-files-cvs.sh: Likewise.
43109
43110 2008-09-26  Bruno Haible  <bruno@clisp.org>
43111
43112         * doc/posix-headers/sys_resource.texi: Reorder items.
43113
43114 2008-09-26  Jim Meyering  <meyering@redhat.com>
43115
43116         fts: tweak inode comparison function
43117         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43118         inode numbers, as documented.
43119
43120         fts: sort dirent entries on inode number before traversing
43121         This avoids a quadratic, seek-related performance penalty when
43122         operating on a directory containing many entries (measurable at 10k;
43123         3.5 hours at 2 million entries with a cold cache) on certain types
43124         of file systems, including ext3 and ext4, but not tmpfs.
43125         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43126         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43127         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43128         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43129         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43130         (fts_build): Set the stat.st_ino member from D_INO.
43131         If it is likely to be useful, sort dirent entries on inode number.
43132
43133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43134         and the struct statfs.f_type member.
43135         * modules/fts (Depends-on): Add d-ino.
43136
43137 2008-09-26  Bruno Haible  <bruno@clisp.org>
43138
43139         * modules/sigpipe-die (Depends-on): Add sigpipe.
43140
43141         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43142         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43143         and GNULIB_STDIO_H_SIGPIPE are set.
43144         * lib/stdio-write.c: New file.
43145         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43146         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43147         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43148         REPLACE_STDIO_WRITE_FUNCS.
43149         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43150         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43151         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43152         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43153         * modules/stdio (Files): Add lib/stdio-write.c.
43154         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43155         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43156         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43157         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43158         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43159         REPLACE_FPRINTF_POSIX.
43160         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43161         REPLACE_PRINTF_POSIX.
43162         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43163         REPLACE_VFPRINTF_POSIX.
43164         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43165         REPLACE_VPRINTF_POSIX.
43166         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43167         SIGPIPE issue.
43168         * doc/posix-functions/fputc.texi: Likewise.
43169         * doc/posix-functions/fputs.texi: Likewise.
43170         * doc/posix-functions/fwrite.texi: Likewise.
43171         * doc/posix-functions/printf.texi: Likewise.
43172         * doc/posix-functions/putc.texi: Likewise.
43173         * doc/posix-functions/putchar.texi: Likewise.
43174         * doc/posix-functions/puts.texi: Likewise.
43175         * doc/posix-functions/vfprintf.texi: Likewise.
43176         * doc/posix-functions/vprintf.texi: Likewise.
43177
43178         * modules/safe-write (Depends-on): Add write.
43179
43180         * modules/sigpipe-tests: New file.
43181         * tests/test-sigpipe.c: New file.
43182         * tests/test-sigpipe.sh: New file.
43183
43184         * modules/write: New file.
43185         * lib/unistd.in.h: Include <sys/types.h>.
43186         (write): New declaration.
43187         * lib/write.c: New file.
43188         * m4/write.m4: New file.
43189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43190         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43191         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43192         GNULIB_WRITE, REPLACE_WRITE.
43193         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43194         and the SIGPIPE issue.
43195
43196         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43197         (raise): New declaration.
43198         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43199         (ext_signal): New function.
43200         (rpl_raise): New function.
43201         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43202         GNULIB_SIGNAL_H_SIGPIPE.
43203         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43204         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43205
43206         * modules/sigpipe: New file.
43207         * m4/sigpipe.m4: New file.
43208
43209 2008-09-25  Derek Price  <derek@ximbiot.com>
43210             Bruno Haible  <bruno@clisp.org>
43211
43212         * gnulib-tool (func_import): Report all license incompatibilities, not
43213         just the first one.
43214
43215 2008-09-25  Bruno Haible  <bruno@clisp.org>
43216
43217         * gnulib-tool (func_import): When computing the edits, consider not
43218         only the Makefile.ams that exist but also those that will be generated.
43219
43220 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43221
43222         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43223         fixes gnulib-tool --test warning about duplicate dependency.
43224
43225 2008-09-25  Bruno Haible  <bruno@clisp.org>
43226
43227         * gnulib-tool: Don't ask the user to perform edits in the generated
43228         Makefile.ams.
43229         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43230         apply to the Makefile.am being generated.
43231         (func_emit_tests_Makefile_am): Execute edits that apply to the
43232         Makefile.am being generated.
43233         (func_import): Setup list of Makefile.am edits before emitting the
43234         Makefile.ams, not at the end.
43235         (func_create_testdir): Update.
43236         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43237
43238 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43239
43240         * gnulib-tool (func_import): Store the --tests-base option in the
43241         comment in gnulib-cache.m4.
43242
43243 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43244
43245         * NEWS: Document increased portability that sys_select now provides.
43246
43247         * lib/sys_select.in.h: Install select wrapper.
43248         * lib/sys_socket.in.h: Use more descriptive name when there is no
43249         select wrapper.
43250         * lib/winsock-select.c: New.
43251         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43252         Require gl_HEADER_SYS_SOCKET.
43253         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43254         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43255         * tests/test-sys_select.c: Add functional tests.
43256
43257 2008-09-24  Eric Blake  <ebb9@byu.net>
43258
43259         open, fopen: close fd leak in last patch
43260         * lib/open.c (rpl_open): Close fd before returning error.
43261         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43262         * doc/posix-functions/open.texi (open): Document that Irix also
43263         has the bug.
43264         * doc/posix-functions/fopen.texi (fopen): Likewise.
43265         Reported by Paolo Bonzini.
43266
43267 2008-09-24  Bruno Haible  <bruno@clisp.org>
43268
43269         Ensure that a filename ending in a slash cannot be used to access a
43270         non-directory.
43271         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43272         to check whether it's really a directory.
43273         * lib/fopen.c: Include fcntl.h, unistd.h.
43274         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43275         and fdopen().
43276         * modules/fopen (Depends-on): Add unistd.
43277         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43278         * tests/test-fopen.c (main): Likewise.
43279         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43280         * doc/posix-functions/fopen.texi: Likewise.
43281         Reported by Eric Blake.
43282
43283 2008-09-23  Eric Blake  <ebb9@byu.net>
43284
43285         c-stack: avoid compiler optimizations when provoking overflow
43286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43287         recursion harder to optimize, to ensure a stack overflow occurs.
43288         * tests/test-c-stack.c (recurse): Likewise.
43289         Borrowed from libsigsegv.
43290
43291         c-stack: work around Irix sigaltstack bug
43292         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43293         whether sigaltstack uses wrong end of stack_t (copied in part from
43294         libsigsegv).
43295         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43296         Irix bug, without requiring an over-allocation.
43297         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43298         bug.
43299
43300         fopen: document mingw bug on directories
43301         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43302         not allowing a stream visiting a directory, even though reading
43303         from such a stream is not portable.
43304
43305 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43306
43307         * lib/poll.c: Rewrite.
43308         * modules/poll: Depend on alloca.
43309
43310 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43311
43312         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43313         instead define prototypes for a full set of wrappers.  Ensure
43314         that Cygwin does not use the compatibility code, which is only
43315         for MinGW.
43316         * lib/winsock.c: New.
43317         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43318         * modules/sys_socket: Add lib/winsock.c.
43319
43320         * modules/poll-tests: Add errno and perror.
43321         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43322
43323 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43324
43325         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43326
43327 2008-09-23  Bruno Haible  <bruno@clisp.org>
43328
43329         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43330         * doc/glibc-functions/*: Likewise.
43331
43332 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43333
43334         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43335         success.
43336
43337 2008-09-22  Eric Blake  <ebb9@byu.net>
43338             Bruno Haible  <bruno@clisp.org>
43339
43340         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43341         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43342         supply %A but mishandle pseudo-NaN.
43343         Reported by Simon Josefsson.
43344
43345 2008-09-21  Bruno Haible  <bruno@clisp.org>
43346
43347         * tests/test-lock.c (main): Tweak skip message.
43348         * tests/test-tls.c (main): Likewise.
43349
43350 2008-09-21  Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43353         whether 'struct sigaction' has sa_sigaction here...
43354         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43355         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43356
43357 2008-09-21  Bruno Haible  <bruno@clisp.org>
43358
43359         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43360         section.
43361         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43362         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43363         the new section.
43364         (Support for obsolete systems lacking POSIX:2001): New section.
43365         (String handling <string.h>): Move strdup to the new section.
43366         Suggested by Simon Josefsson and Paolo Bonzini.
43367
43368 2008-09-21  Bruno Haible  <bruno@clisp.org>
43369
43370         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43371         exponents in %e and %g results on 'long double'. Needed for mingw's
43372         improved *printf functions.
43373         * tests/test-vasprintf-posix.c (test_function): Likewise.
43374         * tests/test-snprintf-posix.h (test_function): Likewise.
43375         * tests/test-sprintf-posix.h (test_function): Likewise.
43376         Reported by Eric Blake.
43377
43378 2008-09-21  Bruno Haible  <bruno@clisp.org>
43379
43380         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43381         * tests/test-sprintf-posix.h (test_function): Likewise.
43382
43383 2008-09-21  Bruno Haible  <bruno@clisp.org>
43384
43385         * modules/getpass (Depends-on): Add strdup-posix.
43386
43387         New module 'strdup-posix'.
43388         * modules/strdup-posix: New file.
43389         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43390         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43392         REPLACE_STRDUP.
43393         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43394         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43396         strdup-posix.
43397
43398         * modules/strdup (Depends-on): Remove malloc-posix.
43399
43400 2008-09-20  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43403         Wildenhues.
43404
43405 2008-09-20  Bruno Haible  <bruno@clisp.org>
43406
43407         Ensure that wint_t gets defined on IRIX 5.3.
43408         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43409         * lib/wctype.in.h (wint_t): Likewise.
43410         (__wctype_wint_t): Remove type.
43411         (isw*): Use wint_t instead of __wctype_wint_t.
43412         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43413         * modules/wchar (Files): Add m4/wint_t.m4.
43414         (Makefile.am): Substitute HAVE_WINT_T.
43415         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43416         * tests/test-wctype.c: Check that wint_t is defined.
43417         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43418         * doc/posix-headers/wctype.texi: Likewise.
43419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43420
43421 2008-09-18  Bruno Haible  <bruno@clisp.org>
43422
43423         * gnulib-tool (func_exit): Update comment.
43424
43425 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43426
43427         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43428         assumes strdup exists and does not depend on strdup to return
43429         ENOMEM on out of memory conditions.
43430
43431 2008-09-18  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43434         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43435         digits for the exponent.
43436
43437 2008-09-18  Jim Meyering  <meyering@redhat.com>
43438             Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/vasnprintf.c (decimal_point_char): Define also if
43441         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43442
43443 2008-09-16  Bruno Haible  <bruno@clisp.org>
43444         and Eric Blake  <ebb9@byu.net>
43445
43446         vasnprintf: support Irix 5.3
43447         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43448         that mishandle long double infinity.
43449         Reported by Tom G. Christensen.
43450
43451 2008-09-16  Bruno Haible  <bruno@clisp.org>
43452
43453         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43454         Solaris 9.
43455         * doc/glibc-functions/alphasort.texi: Likewise.
43456         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43457
43458 2008-09-16  Jim Meyering  <meyering@redhat.com>
43459
43460         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43461         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43462         a umask modification leak out of a subshell.  Otherwise, the
43463         opensolaris /bin/sh would be accepted and thus cause unwarranted
43464         failures in the coreutils test suite.
43465
43466 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43467
43468         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43469         to succeed.
43470
43471 2008-09-16  Jim Meyering  <meyering@redhat.com>
43472
43473         avoid spurious test failure when library is built without ACL support
43474         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43475         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43476         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43477         * tests/test-copy-acl.sh: Likewise.
43478
43479 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43480
43481         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43482         based on character occurrence counts.
43483
43484 2008-09-15  Eric Blake  <ebb9@byu.net>
43485
43486         tests: avoid some compiler warnings
43487         * tests/test-memchr.c (main): Pass NULL indirectly.
43488         * tests/test-closein.c (main): Avoid unused variable.
43489
43490 2008-09-15  Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43493         are missing on OpenBSD 4.0 individually.
43494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43495
43496 2008-09-15  Bruno Haible  <bruno@clisp.org>
43497
43498         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43499         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43500         * doc/posix-functions/perror.texi: Likewise.
43501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43502         is missing.
43503         Reported by Eric Blake.
43504
43505         * lib/errno.in.h: Use replacement values >= 2000.
43506         Reported by Eric Blake.
43507
43508 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43509
43510         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43511         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43512         limit.
43513         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43514         compareseq was aborted.
43515
43516 2008-09-14  Bruno Haible  <bruno@clisp.org>
43517
43518         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43519         yvec_edit_count.
43520         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43521         (fstrcmp_bounded): Simplify result computation accordingly.
43522
43523 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43524
43525         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43526         (fstrcmp): Define in terms of fstrcmp_bounded.
43527         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43528         lower_bound argument.
43529         Return quickly if the result is certainly < lower_bound.
43530         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43531
43532 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43533
43534         * lib/diffseq.h (EARLY_ABORT): New macro.
43535         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43536         evaluates to true.
43537
43538 2008-09-14  Bruno Haible  <bruno@clisp.org>
43539
43540         * modules/perror-tests: New file.
43541         * tests/test-perror.sh: New file.
43542         * tests/test-perror.c: New file.
43543
43544         New module 'perror'.
43545         * lib/stdio.in.h (perror): New declaration.
43546         * lib/perror.c: New file.
43547         * m4/perror.m4: New file.
43548         * modules/perror: New file.
43549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43550         * doc/posix-functions/perror.texi: Mention the perror module.
43551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43552         REPLACE_PERROR.
43553         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43554         REPLACE_PERROR.
43555
43556 2008-09-14  Bruno Haible  <bruno@clisp.org>
43557
43558         * modules/stdio (Makefile.am): Reorder to match the order in
43559         lib/stdio.in.h.
43560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43561
43562 2008-09-13  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43565
43566 2008-09-13  Bruno Haible  <bruno@clisp.org>
43567
43568         Extend strerror to cover the added errno values.
43569         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43570         (rpl_strerror): Provide error messages for the added errno values and
43571         for the WSA* values.
43572         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43573         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43574         strerror.
43575         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43576         * modules/strerror (Depends-on): Add errno.
43577         * doc/posix-functions/strerror.texi: Document the change.
43578         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43579         and EOVERFLOW.
43580
43581 2008-09-13  Bruno Haible  <bruno@clisp.org>
43582
43583         * modules/EOVERFLOW: Remove file.
43584         * m4/eoverflow.m4: Remove file.
43585         * modules/EOVERFLOW-tests: Remove file.
43586         * tests/test-EOVERFLOW.c: Remove file.
43587         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43588         * modules/ftell (Depends-on): Likewise.
43589         * modules/getdelim (Depends-on): Likewise.
43590         * modules/getugroups (Depends-on): Likewise.
43591         * modules/poll (Depends-on): Likewise.
43592         * modules/snprintf (Depends-on): Likewise.
43593         * modules/sprintf-posix (Depends-on): Likewise.
43594         * modules/vasnprintf (Depends-on): Likewise.
43595         * modules/vasprintf (Depends-on): Likewise.
43596         * modules/vfprintf-posix (Depends-on): Likewise.
43597         * modules/vsnprintf (Depends-on): Likewise.
43598         * modules/vsprintf-posix (Depends-on): Likewise.
43599         * modules/xvasprintf (Depends-on): Likewise.
43600         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43601         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43602         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43603         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43604         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43605         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43606         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43607         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43609         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43610         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43611         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43612         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43613         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43614         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43615         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43616         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43617         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43618         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43619         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43620         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43621         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43622         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43623         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43624         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43626         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43627         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43628         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43629         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43630         * MODULES.html.sh: Remove EOVERFLOW.
43631         * NEWS: Mention the change.
43632
43633 2008-09-13  Bruno Haible  <bruno@clisp.org>
43634
43635         * modules/errno-tests: New file.
43636         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43637
43638         * lib/errno.in.h: New file.
43639         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43640         * modules/errno: New file.
43641         * doc/posix-headers/errno.texi: Update documentation.
43642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43643
43644 2008-09-13  Bruno Haible  <bruno@clisp.org>
43645
43646         * tests/test-poll.c: Use #if for native Windows, rather than testing
43647         __MSVCRT__.
43648
43649 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43650             Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/glob.c: Don't include <pwd.h> on native Windows.
43653         (WINDOWS32): New macro.
43654         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43655
43656 2008-09-13  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43659         (ETIMEDOUT): Remove macro.
43660         (glthread_cond_timedwait_multithreaded): New declaration.
43661         (glthread_cond_timedwait): Use it.
43662         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43663         (glthread_cond_timedwait_multithreaded): New function.
43664
43665 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43666
43667         * modules/poll-tests: Do not check for io.h.
43668         * tests/test-poll.c: Check for __MSVCRT__ instead.
43669
43670 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43671
43672         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43673         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43674         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43675
43676 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43677
43678         * modules/poll-tests: New.
43679         * tests/test-poll.c: New.
43680
43681 2008-09-12  Eric Blake  <ebb9@byu.net>
43682
43683         frexp: test for NetBSD failure on -0.0
43684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43685         not all, bugs from NetBSD 3.0 have been fixed.
43686         * doc/posix-functions/frexp.texi (frexp): Document bug.
43687         Reported by Thomas Klausner.
43688
43689         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43690         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43691         literal -0.0.
43692         Reported by Jonathan C. Patschke <jp@centtech.com>.
43693
43694 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43695
43696         * lib/glthread/cond.h: Use dummy implementation also if
43697         USE_WIN32_THREADS.
43698
43699 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43700
43701         * modules/fnmatch-posix (License): Change to LGPLv2+.
43702         * modules/fnmatch-gnu (License): Likewise.
43703
43704 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43705
43706         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43707
43708 2008-09-11  Jim Meyering  <meyering@redhat.com>
43709
43710         * users.txt: Add gtk-vnc.
43711
43712 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43713
43714         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43715         rotate amounts.
43716
43717         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43718         required for 16-bit and 8-bit rotates.
43719         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43720         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43721         UINT8_MAX instead of hard-coded constants.
43722         Suggested by Paul Eggert.
43723
43724 2008-09-07  Bruno Haible  <bruno@clisp.org>
43725
43726         * tests/test-striconveh.c (main): Check behaviour when converting from
43727         UTF-7.
43728
43729         Make striconveh work better with stateful encodings.
43730         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43731         that iconv does not increment the inptr when returning -1/EINVAL.
43732
43733 2008-09-07  Bruno Haible  <bruno@clisp.org>
43734
43735         * build-aux/config.rpath: Update according to libtool-2.2.6.
43736         * build-aux/config.libpath: Likewise.
43737
43738 2008-09-06  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43741         * lib/freadptr.c (freadptr): Likewise.
43742         * lib/freadseek.c (freadptrinc): Likewise.
43743         Reported by Simon Josefsson.
43744
43745 2008-09-06  Bruno Haible  <bruno@clisp.org>
43746
43747         * modules/freadptr (License): Change to LGPLv2+.
43748         * modules/freadseek (License): Likewise.
43749         Suggested by Eric Blake.
43750
43751         * modules/memchr2 (License): Change to LGPLv2+.
43752         Approved by Eric Blake.
43753
43754 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43755             Bruno Haible  <bruno@clisp.org>
43756
43757         Make gnulib-tool work with native 'sed' on AIX.
43758         * gnulib-tool (sed_noop): New variable.
43759         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43760         func_add_or_update, func_create_testdir): Use it to initialize sed
43761         script variables.
43762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43763
43764 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43765             Bruno Haible  <bruno@clisp.org>
43766
43767         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43768         also works after #include directives.
43769
43770 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43771
43772         getdate.y: reject an out-of-range timezone value
43773         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43774         the range [-24...+24].  When specified with only one or two digits,
43775         * tests/test-getdate.c: Tests for the fix.
43776         * doc/getdate.texi: Document this change.
43777
43778 2008-09-03  Bruno Haible  <bruno@clisp.org>
43779
43780         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43781
43782 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43783
43784         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43785         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43786         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43787         Blake <ebb9@byu.net>.
43788
43789         * tests/test-bitrotate.c: Add more test vectors.
43790
43791 2008-09-02  Eric Blake  <ebb9@byu.net>
43792
43793         vasnprintf-posix: handle large precision via %.*d
43794         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43795         when handling it ourselves.
43796         * tests/test-vasnprintf-posix.c (test_function): Add test.
43797         * tests/test-snprintf-posix.h (test_function): Likewise.
43798         * tests/test-sprintf-posix.h (test_function): Likewise.
43799         * tests/test-vasprintf-posix.c (test_function): Likewise.
43800         Reported by Alain Guibert.
43801
43802 2008-09-01  Eric Blake  <ebb9@byu.net>
43803
43804         c-stack: make configure-time check more robust
43805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43806         successful sigaction call.
43807         Reported by Tom G. Christensen.
43808
43809 2008-09-01  Bruno Haible  <bruno@clisp.org>
43810
43811         New module 'findprog-lgpl'.
43812         * modules/findprog-lgpl: New file.
43813         * lib/findprog-lgpl.c: New file.
43814         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43815         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43816         to decide whether to use strdup or xstrdup, concatenated_filename or
43817         xconcatenated_filename.
43818
43819 2008-09-01  Bruno Haible  <bruno@clisp.org>
43820
43821         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43822         'xconcat-filename' (GPL).
43823         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43824         (License): Change to LGPLv2+.
43825         * modules/xconcat-filename: New file.
43826         * lib/concat-filename.h (concatenated_filename): Change specification.
43827         (xconcatenated_filename): New declaration.
43828         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43829         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43830         memory situations.
43831         * lib/xconcat-filename.c: New file.
43832         * NEWS: Mention the change.
43833         * lib/findprog.c: Include concat-filename.h, not filename.h.
43834         (find_in_path): Use xconcatenated_filename instead of
43835         concatenated_filename.
43836         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43837         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43838         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43839         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43840         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43841         instead of concatenated_filename.
43842         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43843         (execute_java_class): Use xconcatenated_filename instead of
43844         concatenated_filename.
43845         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43846         * modules/javacomp (Depends-on): Likewise.
43847         * modules/javaexec (Depends-on): Likewise.
43848
43849 2008-09-01  Bruno Haible  <bruno@clisp.org>
43850
43851         Split module 'filename' into 'filename' and 'concat-filename'.
43852         * modules/filename: Keep only lib/filename.h.
43853         (License): Change to LGPLv2+.
43854         * modules/concat-filename: New file, extracted from modules/filename.
43855         * lib/filename.h (concatenated_filename): Remove declaration.
43856         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43857         * lib/concat-filename.c: Include concat-filename.h.
43858         * NEWS: Mention the change.
43859
43860 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43861
43862         * lib/bitrotate.h (rotl8, rotr8): Add.
43863
43864         * modules/bitrotate (configure.ac): Need
43865         AC_REQUIRE([AC_C_INLINE]).
43866         (Description): Mention stdint.h.  Reported by Bruno Haible
43867         <bruno@clisp.org>.
43868
43869         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43870         Paolo Bonzini <bonzini@gnu.org>.
43871
43872 2008-08-31  Bruno Haible  <bruno@clisp.org>
43873
43874         Assume Solaris specific bi-arch conventions on Solaris systems.
43875         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43876         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43878         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43879         like acl_libdirstem.
43880         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43881         acl_libdirstem.
43882         * NEWS: Mention the change.
43883         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43884
43885 2008-08-31  Jim Meyering  <meyering@redhat.com>
43886
43887         * lib/strftime.h: Add comments describing the two added arguments.
43888
43889         remove duplicate #include directives
43890         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43891         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43892
43893 2008-08-31  Bruno Haible  <bruno@clisp.org>
43894
43895         New module 'sigpipe-die'.
43896         * modules/sigpipe-die: New file.
43897         * lib/sigpipe-die.h: New file.
43898         * lib/sigpipe-die.c: New file.
43899         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43900
43901 2008-08-31  Bruno Haible  <bruno@clisp.org>
43902
43903         Don't override previously installed signal handlers.
43904         * lib/fatal-signal.c (saved_sigactions): New variable.
43905         (uninstall_handlers): Reset the signal to the saved handler, not
43906         to SIG_DFL (except when ignored).
43907         (install_handlers): Save the previous handlers.
43908
43909 2008-08-30  Bruno Haible  <bruno@clisp.org>
43910
43911         * gnulib-tool (func_reset_sigpipe): New function.
43912         (func_get_automake_snippet, func_modules_transitive_closure,
43913         func_import): Invoke it before a join command that reads from stdin,
43914         to avoid "echo: write error: Broken pipe" error messages on stderr.
43915         Reported by Sam Steingold <sds@gnu.org>.
43916
43917 2008-08-30  Bruno Haible  <bruno@clisp.org>
43918
43919         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43920         Code copied from m4/open.m4.
43921         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43922         access and the filename ends in a slash. Code copied from lib/open.c.
43923         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43924         * tests/test-fopen.c (main): Check against bug with trailing slash.
43925
43926 2008-08-29  Bruno Haible  <bruno@clisp.org>
43927
43928         Avoid some "gcc -pedantic" warnings.
43929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43930         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43931         * lib/dirent.in.h: Likewise.
43932         * lib/fcntl.in.h: Likewise.
43933         * lib/float.in.h: Likewise.
43934         * lib/iconv.in.h: Likewise.
43935         * lib/inttypes.in.h: Likewise.
43936         * lib/locale.in.h: Likewise.
43937         * lib/math.in.h: Likewise.
43938         * lib/netinet_in.in.h: Likewise.
43939         * lib/search.in.h: Likewise.
43940         * lib/signal.in.h: Likewise.
43941         * lib/stdarg.in.h: Likewise.
43942         * lib/stdint.in.h: Likewise.
43943         * lib/stdio.in.h: Likewise.
43944         * lib/stdlib.in.h: Likewise.
43945         * lib/string.in.h: Likewise.
43946         * lib/strings.in.h: Likewise.
43947         * lib/sys_select.in.h: Likewise.
43948         * lib/sys_socket.in.h: Likewise.
43949         * lib/sys_stat.in.h: Likewise.
43950         * lib/sys_time.in.h: Likewise.
43951         * lib/sysexits.in.h: Likewise.
43952         * lib/time.in.h: Likewise.
43953         * lib/unistd.in.h: Likewise.
43954         * lib/wchar.in.h: Likewise.
43955         * lib/wctype.in.h: Likewise.
43956         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43957         * modules/fchdir (Makefile.am): Likewise.
43958         * modules/fcntl (Makefile.am): Likewise.
43959         * modules/float (Makefile.am): Likewise.
43960         * modules/iconv_open (Makefile.am): Likewise.
43961         * modules/inttypes (Makefile.am): Likewise.
43962         * modules/locale (Makefile.am): Likewise.
43963         * modules/math (Makefile.am): Likewise.
43964         * modules/netinet_in (Makefile.am): Likewise.
43965         * modules/search (Makefile.am): Likewise.
43966         * modules/signal (Makefile.am): Likewise.
43967         * modules/stdarg (Makefile.am): Likewise.
43968         * modules/stdint (Makefile.am): Likewise.
43969         * modules/stdio (Makefile.am): Likewise.
43970         * modules/stdlib (Makefile.am): Likewise.
43971         * modules/string (Makefile.am): Likewise.
43972         * modules/strings (Makefile.am): Likewise.
43973         * modules/sys_select (Makefile.am): Likewise.
43974         * modules/sys_socket (Makefile.am): Likewise.
43975         * modules/sys_stat (Makefile.am): Likewise.
43976         * modules/sys_time (Makefile.am): Likewise.
43977         * modules/sysexits (Makefile.am): Likewise.
43978         * modules/time (Makefile.am): Likewise.
43979         * modules/unistd (Makefile.am): Likewise.
43980         * modules/wchar (Makefile.am): Likewise.
43981         * modules/wctype (Makefile.am): Likewise.
43982         Reported by Reuben Thomas <rrt@sc3d.org>.
43983
43984 2008-08-29  Bruno Haible  <bruno@clisp.org>
43985
43986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43987         any more.
43988
43989 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43990
43991         * MODULES.html.sh (Misc): Add bitrotate.
43992
43993         * modules/bitrotate: New file.
43994
43995         * lib/bitrotate.h: New file.
43996
43997         * modules/bitrotate-tests: New file.
43998
43999         * tests/test-bitrotate.c: New file.
44000
44001         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44002         on the bitrotate module.
44003
44004         * lib/arctwo.c: Use new bitrotate module.
44005
44006 2008-08-29  Jim Meyering  <meyering@redhat.com>
44007
44008         bootstrap: merge changes from coreutils
44009         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44010         of copied files.  Remove a kludge, now that this is fixed.
44011         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44012         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44013         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44014
44015 2008-08-29  Bruno Haible  <bruno@clisp.org>
44016
44017         * MODULES.html.sh: Remove --cvs-urls option.
44018
44019 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44020
44021         maint.mk: adjust to file name change
44022         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44023
44024 2008-08-28  Jim Meyering  <meyering@redhat.com>
44025
44026         * modules/getndelim2 (License): Relicense to LGPLv2+.
44027         Approved by Richard Stallman for the version of 1995, and by
44028         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44029
44030 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44031
44032         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44033         dummy if one is not available.  Do not touch them if
44034         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44035         (getc_maybe_unlocked): New.
44036         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44037
44038 2008-08-26  Eric Blake  <ebb9@byu.net>
44039
44040         doc/INSTALL: resync from autoconf
44041         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44042         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44043         moving...
44044         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44045         * INSTALL: Regenerate.
44046         * INSTALL.ISO: New file.
44047         * INSTALL.UTF-8: Likewise.
44048
44049 2008-08-26  Jim Meyering  <meyering@redhat.com>
44050
44051         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44052         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44053         these definitions conditional, so that they may be overridden, too.
44054
44055 2008-08-26  Bruno Haible  <bruno@clisp.org>
44056
44057         Generate INSTALL file variants with prettier quotes.
44058         * doc/Makefile (INSTALL_PRELUDE): New macro.
44059         (INSTALL): Use it.
44060         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44061
44062 2008-08-26  Bruno Haible  <bruno@clisp.org>
44063
44064         Run makeinfo in an English locale.
44065         * doc/Makefile (MAKEINFO): New variable.
44066
44067 2008-08-26  Bruno Haible  <bruno@clisp.org>
44068
44069         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44070         Suggested by Eric Blake.
44071
44072 2008-08-25  Bruno Haible  <bruno@clisp.org>
44073
44074         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44075
44076 2008-08-25  Eric Blake  <ebb9@byu.net>
44077
44078         c-stack: test that stack overflow can be caught
44079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44080         that platform allows handling stack overflow; at least OS/2 EMX
44081         has sigaltstack, but crashes before transferring control to
44082         handler on stack overflow.
44083         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44084         check for HAVE_STACK_OVERFLOW_HANDLING.
44085         Reported by Elbert Pol.
44086
44087 2008-08-25  Bruno Haible  <bruno@clisp.org>
44088
44089         * doc/posix-functions/strftime.texi: Fix description of strftime
44090         module.
44091
44092 2008-08-24  Bruno Haible  <bruno@clisp.org>
44093
44094         * tests/uniwidth/test-uc_width2.c: New file.
44095         * tests/uniwidth/test-uc_width2.sh: New file.
44096         * modules/uniwidth/width-tests (Files): Add the new files.
44097         (TESTS): Add uniwidth/test-uc_width2.sh.
44098         (TESTS_ENVIRONMENT): New variable.
44099         (check_PROGRAMS): Add test-uc_width2.
44100         (test_uc_width2_SOURCES): New variable.
44101
44102         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44103         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44104         not 0x00AB.
44105         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44106
44107 2008-08-22  Eric Blake  <ebb9@byu.net>
44108
44109         test-lock, test-tls: mention why a test is skipped
44110         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44111         skipped.
44112         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44113
44114         count-one-bits: relax license
44115         * modules/count-one-bits (License): Relicense to LGPLv2+.
44116         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44117
44118 2008-08-22  Andreas Schwab  <schwab@suse.de>
44119
44120         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44121         Remove spurious space in assignment.
44122
44123 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44124
44125         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44126         Paul Eggert <eggert@CS.UCLA.EDU>.
44127
44128 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44129
44130         * modules/gettext: Add m4/threadlib.m4.
44131
44132 2008-08-19  Eric Blake  <ebb9@byu.net>
44133
44134         test-c-stack: fix compilation failure on FreeBSD 5.0
44135         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44136         headers before <sys/resource.h>.
44137         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44138         the bug.
44139         Reported by Nelson H. F. Beebe.
44140
44141         strverscmp: migrate from "strverscmp.h" to <string.h>
44142         * modules/string (Makefile.am): Add new hooks.
44143         * modules/strverscmp (Files): Remove strverscmp.h.
44144         (Depends-on): Add string.
44145         (configure.ac): Add indicator.
44146         (Include): Mention new header.
44147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44148         defaults.
44149         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44150         results.
44151         * lib/strverscmp.h: Delete.
44152         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44153         * tests/test-strverscmp.c (includes): Adjust client.
44154         * lib/check-version.c (includes): Likewise.
44155         * NEWS: Document the change.
44156
44157         strverscmp: add unit test
44158         * modules/strverscmp-tests: New file.
44159         * tests/test-strverscmp.c: Likewise.
44160
44161 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44162
44163         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44164         regarding Windows crypto stuff, from Mono.
44165
44166 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44167
44168         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44169         if present, for intel RND.  Return error on failures.
44170
44171 2008-08-18  Ben Pfaff  <blp@gnu.org>
44172
44173         gitlog-to-changelog: give better diagnostic for failed pipe-open
44174         * build-aux/gitlog-to-changelog: Improve error message: suggest
44175         that the version of Git may be too old.
44176
44177 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44178
44179         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44180         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44181
44182 2008-08-18  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44185         pthread_in_use().
44186
44187 2008-08-18  Bruno Haible  <bruno@clisp.org>
44188
44189         * lib/glthread/threadlib.c: Include <pthread.h>.
44190
44191 2008-08-18  Bruno Haible  <bruno@clisp.org>
44192
44193         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44194         glthread_recursive_lock_* macros.
44195         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44196         Fix syntax error.
44197
44198 2008-08-18  Bruno Haible  <bruno@clisp.org>
44199
44200         * lib/glthread/thread.c: Avoid forcing a context switch right after
44201         thread creation.
44202
44203 2008-08-17  Bruno Haible  <bruno@clisp.org>
44204
44205         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44206         * lib/glthread/thread.h: Provide Win32 specific implementation.
44207         * modules/thread (Files): Add lib/glthread/thread.c.
44208         (Depends-on): Add lock.
44209         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44210
44211 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44212
44213         New module 'yield'.
44214         * modules/yield: New file.
44215         * lib/glthread/yield.h: New file.
44216         * m4/yield.m4: New file.
44217         * MODULES.html.sh (Multithreading): Add yield.
44218
44219 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44220
44221         New module 'thread'.
44222         * modules/thread: New file.
44223         * lib/glthread/thread.h: New file.
44224         * m4/thread.m4: New file.
44225         * MODULES.html.sh (Multithreading): Add thread.
44226
44227 2008-08-17  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/glthread/lock.h: Include <stdlib.h> always.
44230         * lib/glthread/tls.h: Likewise.
44231         * lib/glthread/cond.h: Likewise.
44232
44233 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44234
44235         New module 'cond'.
44236         * modules/cond: New file.
44237         * lib/glthread/cond.h: New file.
44238         * lib/glthread/cond.c: New file.
44239         * m4/cond.m4: New file.
44240         * MODULES.html.sh (Multithreading): Add cond.
44241
44242 2008-08-16  Eric Blake  <ebb9@byu.net>
44243
44244         c-stack: fix regression on Irix 5.3 from 2008-06-21
44245         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44246         sa_sigaction...
44247         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44248         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44250         * modules/signal (Makefile.am): Use the value.
44251         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44252         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44253         * doc/posix-headers/signal.texi (signal.h): Document this
44254         portability issue.
44255         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44256         Reported by Tom G. Christensen.
44257
44258 2008-08-17  Bruno Haible  <bruno@clisp.org>
44259
44260         New module 'threadlib'.
44261         * modules/threadlib: New file.
44262         * lib/glthread/threadlib.c: New file, extracted from
44263         lib/glthread/lock.c.
44264         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44265         functions.
44266         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44267         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44268         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44269         macros.
44270         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44271         (gl_DISABLE_THREADS): Remove macro.
44272         * modules/lock (Files): Remove build-aux/config.rpath.
44273         (Depends-on): Remove havelib. Add threadlib.
44274         (configure.ac-early): Remove section.
44275         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44276         * modules/tls (Depends-on): Remove lock. Add threadlib.
44277         (Link): New section, copied from threadlib.
44278         * MODULES.html.sh (Multithreading): Add threadlib.
44279
44280 2008-08-14  Bruno Haible  <bruno@clisp.org>
44281
44282         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44283         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44284         glthread_rwlock_unlock, glthread_rwlock_destroy,
44285         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44286         glthread_recursive_lock_destroy): Define as macros always.
44287         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44288         glthread_lock_lock.
44289         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44290         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44291         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44292         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44293         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44294         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44295         (glthread_recursive_lock_lock_func): Renamed from
44296         glthread_recursive_lock_lock.
44297         (glthread_recursive_lock_unlock_func): Renamed from
44298         glthread_recursive_lock_unlock.
44299         (glthread_recursive_lock_destroy_func): Renamed from
44300         glthread_recursive_lock_destroy.
44301
44302 2008-08-14  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/glthread/lock.h: Renamed from lib/lock.h.
44305         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44306         * lib/glthread/tls.h: Renamed from lib/tls.h.
44307         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44308         * lib/fstrcmp.c: Update includes.
44309         * lib/strsignal.c: Update includes.
44310         * modules/lock (Files, Makefile.am): Update.
44311         (Include): Change to "glthread/lock.h".
44312         * modules/tls (Files, Makefile.am): Update.
44313         (Include): Change to "glthread/tls.h".
44314         * tests/test-lock.c: Update includes.
44315         * tests/test-tls.c: Update includes.
44316         * NEWS: Mention the renamed header files.
44317
44318 2008-08-11  Jim Meyering  <meyering@redhat.com>
44319
44320         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44321
44322 2008-08-11  Eric Blake  <ebb9@byu.net>
44323
44324         test-c-stack: avoid C99-ism
44325         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44326         before statement.
44327         Reported by Alain Guibert.
44328
44329 2008-08-10  Jim Meyering  <meyering@redhat.com>
44330
44331         ensure that return value of uinttostr et al are not ignored
44332         * lib/inttostr.h (__GNUC_PREREQ): Define.
44333         (__attribute_warn_unused_result__): Define.
44334         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44335
44336 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44337
44338         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44339         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44340
44341 2008-08-07  Jim Meyering  <meyering@redhat.com>
44342
44343         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44344
44345         * modules/mkstemp (License): Relicense under LGPLv2+.
44346         * modules/tempname (License): Likewise.
44347
44348 2008-08-06  Bruno Haible  <bruno@clisp.org>
44349
44350         * lib/poll.c (poll): Further micro-optimization.
44351
44352 2008-08-06  Jim Meyering  <meyering@redhat.com>
44353
44354         inet_pton.c: use locale-independent tolower
44355         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44356         (inet_pton6): Use c_tolower rather than tolower.
44357         * modules/inet_pton (Depends-on): Add c-ctype.
44358
44359 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44360
44361         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44362         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44363
44364 2008-08-06  Jim Meyering  <meyering@redhat.com>
44365
44366         * modules/inet_pton (License): Relicense under LGPLv2+.
44367
44368 2008-08-03  Bruno Haible  <bruno@clisp.org>
44369
44370         Additional non-aborting API for lock and tls.
44371         * lib/lock.h: Include <errno.h>.
44372         (glthread_lock_init): New macro/function.
44373         (gl_lock_init): Define as wrapper around glthread_lock_init.
44374         (glthread_lock_lock): New macro/function.
44375         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44376         (glthread_lock_unlock): New macro/function.
44377         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44378         (glthread_lock_destroy): New macro/function.
44379         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44380         (glthread_rwlock_init): New macro/function.
44381         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44382         (glthread_rwlock_rdlock): New macro/function.
44383         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44384         (glthread_rwlock_wrlock): New macro/function.
44385         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44386         (glthread_rwlock_unlock): New macro/function.
44387         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44388         (glthread_rwlock_destroy): New macro/function.
44389         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44390         (glthread_recursive_lock_init): New macro/function.
44391         (gl_recursive_lock_init): Define as wrapper around
44392         glthread_recursive_lock_init.
44393         (glthread_recursive_lock_lock): New macro/function.
44394         (gl_recursive_lock_lock): Define as wrapper around
44395         glthread_recursive_lock_lock.
44396         (glthread_recursive_lock_unlock): New macro/function.
44397         (gl_recursive_lock_unlock): Define as wrapper around
44398         glthread_recursive_lock_unlock.
44399         (glthread_recursive_lock_destroy): New macro/function.
44400         (gl_recursive_lock_destroy): Define as wrapper around
44401         glthread_recursive_lock_destroy.
44402         (glthread_once): New macro/function.
44403         (gl_once): Define as wrapper around glthread_once.
44404         Update function declarations.
44405         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44406         glthread_rwlock_init. Return error code.
44407         (glthread_rwlock_rdlock_multithreaded): Renamed from
44408         glthread_rwlock_rdlock. Return error code.
44409         (glthread_rwlock_wrlock_multithreaded): Renamed from
44410         glthread_rwlock_wrlock. Return error code.
44411         (glthread_rwlock_unlock_multithreaded): Renamed from
44412         glthread_rwlock_unlock. Return error code.
44413         (glthread_rwlock_destroy_multithreaded): Renamed from
44414         glthread_rwlock_destroy. Return error code.
44415         (glthread_recursive_lock_init_multithreaded): Renamed from
44416         glthread_recursive_lock_init. Return error code.
44417         (glthread_recursive_lock_lock_multithreaded): Renamed from
44418         glthread_recursive_lock_lock. Return error code.
44419         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44420         glthread_recursive_lock_unlock. Return error code.
44421         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44422         glthread_recursive_lock_destroy. Return error code.
44423         (glthread_once_call): Make static.
44424         (glthread_once_multithreaded): Renamed from glthread_once.
44425         * lib/tls.h: Include <errno.h>.
44426         (glthread_tls_key_init): New macro/function.
44427         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44428         (glthread_tls_set): New macro/function.
44429         (gl_tls_set): Define as wrapper around glthread_tls_set.
44430         (glthread_tls_key_destroy): New macro/function.
44431         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44432         Update function declarations.
44433         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44434         glthread_tls_get.
44435         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44436
44437 2008-08-04  Eric Blake  <ebb9@byu.net>
44438
44439         gnumakefile: use space, not TAB, outside of targets
44440         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44441
44442 2008-08-02  Jim Meyering  <meyering@redhat.com>
44443
44444         getdate.y: avoid locale-dependent date parsing failure
44445         In Turkish locales, getdate would fail to recognize keywords
44446         containing a lowercase "i".  The solution is not to rely on
44447         locale-sensitive case-conversion.
44448         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44449         (lookup_word): Use c_toupper in place of toupper.
44450         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44451         Reported by Vefa Bicakci <bicave@superonline.com> in
44452         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44453         * modules/getdate (Depends-on): Add c-ctype.
44454
44455 2008-08-02  Bruno Haible  <bruno@clisp.org>
44456
44457         * gnulib-tool (func_import): When updating or creating a .gitignore
44458         file, prepend each added line with a slash, and ignore leading slashes
44459         from the existing lines.
44460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44461
44462 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44463
44464         Portability fix for GNU make 3.79.1.
44465         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44466         versions do not understand.
44467
44468 2008-08-01  Bruno Haible  <bruno@clisp.org>
44469
44470         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44471         * tests/test-isnanf.h (zero): New variable.
44472         (main): Avoid literal -0.0f.
44473         * tests/test-isnand.h (zero): New variable.
44474         (main): Avoid literal -0.0.
44475         * tests/test-isnanl.h (zero): New variable.
44476         (main): Avoid literal -0.0L.
44477         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44478         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44479         -0.0, -0.0L.
44480         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44481         (test_signbitd): Avoid literal -0.0.
44482         (test_signbitl): Avoid literal -0.0L.
44483         * tests/test-ceilf1.c (zero): New variable.
44484         (main): Avoid literal -0.0f.
44485         * tests/test-ceill.c (zero): New variable.
44486         (main): Avoid literal -0.0L.
44487         * tests/test-floorf1.c (zero): New variable.
44488         (main): Avoid literal -0.0f.
44489         * tests/test-floorl.c (zero): New variable.
44490         (main): Avoid literal -0.0L.
44491         * tests/test-roundf1.c (zero): New variable.
44492         (main): Avoid literal -0.0f.
44493         * tests/test-round1.c (zero): New variable.
44494         (main): Avoid literal -0.0.
44495         * tests/test-roundl.c (zero): New variable.
44496         (main): Avoid literal -0.0L.
44497         * tests/test-truncf1.c (zero): New variable.
44498         (main): Avoid literal -0.0f.
44499         * tests/test-trunc1.c (zero): New variable.
44500         (main): Avoid literal -0.0.
44501         * tests/test-truncl.c (zero): New variable.
44502         (main): Avoid literal -0.0L.
44503         * tests/test-frexp.c (zero): New variable.
44504         (main): Avoid literal -0.0.
44505         * tests/test-frexpl.c (zero): New variable.
44506         (main): Avoid literal -0.0L.
44507         * tests/test-ldexpl.c (zero): New variable.
44508         (main): Avoid literal -0.0L.
44509         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44510         (zerod, zerol): New variables.
44511         (test_function): Avoid literals -0.0, -0.0L.
44512         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44513         (zerod, zerol): New variables.
44514         (test_function): Avoid literals -0.0, -0.0L.
44515         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44516         (zerod, zerol): New variables.
44517         (test_function): Avoid literals -0.0, -0.0L.
44518         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44519         (zerod, zerol): New variables.
44520         (test_function): Avoid literals -0.0, -0.0L.
44521         * tests/test-strtod.c (zero): New variable.
44522         (main): Avoid literal -0.0.
44523         Reported by Jonathan C. Patschke <jp@centtech.com>.
44524
44525 2008-07-31  Jim Meyering  <meyering@redhat.com>
44526
44527         sha256.h: correct definition of SHA224_DIGEST_SIZE
44528         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44529         Reported by Paulie Pena IV <paulie4@gmail.com>.
44530         Define as 224 / 8, rather than as a literal.
44531         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44532         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44533         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44534
44535 2008-07-31  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44538         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44539         Reported by Jonathan Patschke <jp@centtech.com>.
44540
44541 2008-07-31  Bruno Haible  <bruno@clisp.org>
44542
44543         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44544         Reported by Paolo Bonzini <bonzini@gnu.org>.
44545
44546 2008-07-30  Eric Blake  <ebb9@byu.net>
44547
44548         test-strtod: allow compilation without -lm
44549         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44550         Reported by Dennis Clarke <blastwave@gmail.com>.
44551
44552 2008-07-28  Jim Meyering  <meyering@redhat.com>
44553
44554         bootstrap: work also when there are no .po files in po/
44555         * build-aux/bootstrap (update_po_files): Complete the change
44556         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44557
44558 2008-07-27  Jim Meyering  <meyering@redhat.com>
44559
44560         * users.txt: Add zile.
44561
44562 2008-07-26  Ben Pfaff  <blp@gnu.org>
44563
44564         Add missing dependencies on new m4/exponent[fdl].m4 files.
44565         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44566         * modules/isnand-nolibm: Add m4/exponentd.m4.
44567         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44568         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44569         m4/isnan[fdl].m4, because the macros actually used moved.
44570         Reported by Jim Meyering.
44571
44572 2008-07-14  Ben Pfaff  <blp@gnu.org>
44573
44574         Add isinf module.
44575         * lib/isinf.c: New file.
44576         * lib/math.in.h: Define isinf macro if we have decided to replace
44577         it.
44578         * m4/isinf.m4: New file.
44579         * m4/math_h.m4: Initialize and substitute variables for isinf
44580         module.
44581         * modules/isinf: New file.
44582         * modules/isinf-tests: New file.
44583         * modules/math: Add substitutions for new module.
44584         * tests/test-isinf.c: New file.
44585         * doc/posix-functions/isinf.texi: Mention new module.
44586         * MODULES.html.sh: Mention new module.
44587
44588 2008-07-14  Ben Pfaff  <blp@gnu.org>
44589
44590         Factor out some macros for use by additional modules.
44591         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44592         exponentf.m4.
44593         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44594         exponentd.m4.
44595         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44596         file exponentl.m4.
44597         * m4/exponentf.m4: New file.
44598         * m4/exponentd.m4: New file.
44599         * m4/exponentl.m4: New file.
44600         * modules/isnanf: Use new file m4/exponentf.m4.
44601         * modules/isnand: Use new file m4/exponentd.m4.
44602         * modules/isnanl: Use new file m4/exponentl.m4.
44603
44604 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44605
44606         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44607         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44608         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44609         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44610
44611         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44612         readlink on platforms without PATH_MAX.
44613
44614 2008-07-21  Eric Blake  <ebb9@byu.net>
44615
44616         Warn, not fail, on stale version.
44617         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44618
44619         Don't allow installation with stale devel version number.
44620         * top/GNUmakefile (_is-install-target): New macro.
44621         (_curr-ver): Forbid installation with stale version number.
44622
44623 2008-07-20  Bruno Haible  <bruno@clisp.org>
44624
44625         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44626         TESTS_ENVIRONMENT.
44627         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44628
44629 2008-07-20  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/c-stack.h (c_stack_action): Add documentation.
44632         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44633
44634 2008-07-20  Bruno Haible  <bruno@clisp.org>
44635
44636         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44637         * modules/readlink (License): Likewise.
44638
44639 2008-07-17  Eric Blake  <ebb9@byu.net>
44640
44641         * modules/c-stack (Link): Fix typo.
44642
44643         Make c-stack use libsigsegv, when available.
44644         * modules/c-stack (Depends-on): Add libsigsegv.
44645         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44646         needed.
44647         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44648         (segv_handler, overflow_handler, c_stack_action)
44649         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44650         implementation when libsigsegv is available, but only when using
44651         the library is necessary.
44652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44653         comment, explaining why XSI check fails on Linux.
44654         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44655         * tests/test-c-stack2.sh: Tweak skip message.
44656         * NEWS: Document new link-time requirements.
44657
44658 2008-07-16  Eric Blake  <ebb9@byu.net>
44659
44660         c-stack: Expose false positives when not using libsigsegv.
44661         * modules/c-stack-tests (Files): Expand test.
44662         * tests/test-c-stack.c (main): Add means to conditionally trigger
44663         non-overflow SIGSEGV.
44664         * tests/test-c-stack2.sh: New file.
44665
44666 2008-07-14  Bruno Haible  <bruno@clisp.org>
44667
44668         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44669         Reported by Eric Blake.
44670
44671 2008-07-14  Sam Steingold  <sds@gnu.org>
44672             Bruno Haible  <bruno@clisp.org>
44673
44674         New module libsigsegv.
44675         * modules/libsigsegv: New file.
44676         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44677         modifications.
44678         * MODULES.html.sh (Signal handling): New section.
44679
44680 2008-07-14  Bruno Haible  <bruno@clisp.org>
44681
44682         * modules/unictype/ctype-* (Description): Add the word "function".
44683         Improves the resulting doc in MODULES.html.
44684
44685 2008-07-12  Ben Pfaff  <blp@gnu.org>
44686
44687         Add longlong module.
44688         * modules/longlong: New file.
44689
44690 2008-07-12  Bruno Haible  <bruno@clisp.org>
44691
44692         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44693         to empty.
44694
44695 2008-07-10  Ben Pfaff  <blp@gnu.org>
44696
44697         Add isnan module.
44698         * doc/posix-functions/isnan.texi: Mention new module.
44699         * lib/math.in.h: Define isnan macro if we have decided to replace
44700         it.
44701         * m4/isnan.m4: New file.
44702         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44703         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44704         also.
44705         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44706         redundancy.
44707         * m4/math_h.m4: Initialize and substitute variables for isnan
44708         module.
44709         * modules/isnan: New file.
44710         * modules/isnan-tests: New file.
44711         * modules/math: Add substitutions for new module.
44712         * tests/test-isnan.c: New file.
44713         * MODULES.html.sh: Mention new module.
44714
44715 2008-07-10  Ben Pfaff  <blp@gnu.org>
44716
44717         Add isnanf module.
44718         * lib/isnanf.m4: New file.
44719         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44720         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44721         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44722         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44723         * modules/isnanf: New file.
44724         * modules/isnanf-tests: New file.
44725         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44726         files.
44727         * tests/test-isnanf-nolibm.c: factored most of its contents into
44728         new file tests/test-isnanf.h.
44729         * tests/test-isnanf.h: New file.
44730         * tests/test-isnanf.c: New file.
44731         * MODULES.html.sh: Mention new module.
44732         * doc/glibc-functions/isnanf.texi: Mention new module.
44733
44734 2008-07-10  Ben Pfaff  <blp@gnu.org>
44735
44736         Add isnand module.
44737         * lib/isnand.h: New file.
44738         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44739         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44740         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44741         functionality also.
44742         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44743         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44744         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44745         * modules/isnand: New file.
44746         * modules/isnand-tests: New file.
44747         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44748         files.
44749         * tests/test-isnand-nolibm.c: factored most of its contents into
44750         new file tests/test-isnand.h.
44751         * tests/test-isnand.h: New file.
44752         * tests/test-isnand.c: New file.
44753         * MODULES.html.sh: Mention new module.
44754
44755 2008-07-10  Ben Pfaff  <blp@gnu.org>
44756
44757         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44758         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44759         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44760         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44761         * modules/isnanf-nolibm: Update references to renamed files.
44762         * modules/isnand-nolibm: Likewise.
44763         * modules/isnanf-nolibm-tests: Likewise.
44764         * modules/isnand-nolibm-tests: Likewise.
44765         * lib/frexp.c: Likewise.
44766         * lib/isfinite.c: Likewise.
44767         * lib/signbitd.c: Likewise.
44768         * lib/signbitf.c: Likewise.
44769         * lib/vasnprintf.c: Likewise.
44770         * tests/test-ceilf1.c: Likewise.
44771         * tests/test-ceilf2.c: Likewise.
44772         * tests/test-floorf1.c: Likewise.
44773         * tests/test-floorf2.c: Likewise.
44774         * tests/test-frexp.c: Likewise.
44775         * tests/test-round1.c: Likewise.
44776         * tests/test-round2.c: Likewise.
44777         * tests/test-roundf1.c: Likewise.
44778         * tests/test-strtod.c: Likewise.
44779         * tests/test-trunc1.c: Likewise.
44780         * tests/test-trunc2.c: Likewise.
44781         * tests/test-truncf1.c: Likewise.
44782         * tests/test-truncf2.c: Likewise.
44783         * NEWS: Mention the renamed header files.
44784
44785 2008-07-11  Jim Meyering  <meyering@redhat.com>
44786
44787         vc-list-files: make the last-resort awk code more portable
44788         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44789         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44790         does not support it.
44791
44792 2008-07-10  Eric Blake  <ebb9@byu.net>
44793
44794         Work with tar's bootstrap.
44795         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44796         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44797         an m4 comment.
44798
44799 2008-07-09  Jim Meyering  <meyering@redhat.com>
44800
44801         posix-shell.m4: fix typo that made this test malfunction
44802         * m4/posix-shell.m4: Remove capitalization in variable name.
44803
44804 2008-07-08  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/onceonly.m4: Update comments.
44807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44808
44809 2008-07-04  Jim Meyering  <meyering@redhat.com>
44810
44811         * users.txt: Add vc-dwim.
44812         (bison, coreutils): Use the gitweb URL.
44813
44814 2008-07-03  Jim Meyering  <meyering@redhat.com>
44815
44816         * users.txt: Add libffcall.  From Sam Steingold.
44817
44818 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44819
44820         getdate.y: do not ignore TZ with relative day, month or year offset
44821         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44822         relative-date-handling, since otherwise, the latter would clobber the
44823         sole output (an updated Start value) of the tz-handling block.
44824         * tests/test-getdate.c: Tests for the fix
44825
44826 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44827
44828         Recognize 'foo_LIBRARIES += libgnu.a'.
44829         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44830         makefile snippet has already specified an installation location,
44831         also using '+='.
44832
44833 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44834
44835         getdate.y: factor out common actions
44836         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44837         Use them in place of open-coded actions.
44838
44839 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44840
44841         Add self-test for getdate module.
44842         * modules/getdate-tests: New file.
44843         * tests/test-getdate.c: New file.
44844
44845 2008-06-29  Bruno Haible  <bruno@clisp.org>
44846
44847         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44848         .gitignore.
44849         Reported by Sylvain Beucler <beuc@beuc.net>.
44850
44851 2008-06-29  Bruno Haible  <bruno@clisp.org>
44852
44853         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44854         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44855
44856 2008-06-29  Bruno Haible  <bruno@clisp.org>
44857
44858         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44859         EXTRA_DIST.
44860         Reported by Sylvain Beucler <beuc@beuc.net>.
44861
44862 2008-06-26  Jim Meyering  <meyering@redhat.com>
44863
44864         make several modules depend on the "open" module
44865         This provides slightly increased consistency when opening-for-write
44866         the name of a non-directory spelled with a trailing slash.
44867         * modules/chdir-safer: Likewise.
44868         * modules/chown: Likewise.
44869         * modules/clean-temp: Likewise.
44870         * modules/copy-file: Likewise.
44871         * modules/fchdir: Likewise.
44872         * modules/fcntl-safer: Likewise.
44873         * modules/pipe: Likewise.
44874         * modules/utime: Likewise.
44875         Prompted by Eric Blake and Bruno Haible.
44876
44877 2008-06-24  Andreas Schwab  <schwab@suse.de>
44878
44879         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44880         literals can be used as initializers for global variables.
44881
44882 2008-06-23  Eric Blake  <ebb9@byu.net>
44883
44884         Make gnulib-cache.m4 easier to diff.
44885         * gnulib-tool (func_import): Allow newlines when reading cached
44886         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44887
44888 2008-06-23  Bruno Haible  <bruno@clisp.org>
44889
44890         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44891         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44893         m4/signalblocking.m4.
44894         (gl_PREREQ_SIGACTION): Don't invoke it.
44895         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44896         gl_PREREQ_SIG_HANDLER_H.
44897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44898         Don't check for sigaction here.
44899
44900 2008-06-23  Bruno Haible  <bruno@clisp.org>
44901
44902         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44903         (install_handlers): Don't set the SA_RESETHAND flag.
44904
44905 2008-06-23  Bruno Haible  <bruno@clisp.org>
44906
44907         * m4/sigaction.m4: Comment fixes.
44908         * lib/signal.in.h: Likewise.
44909
44910 2008-06-23  Eric Blake  <ebb9@byu.net>
44911
44912         Fix typo.
44913         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44914
44915         Avoid SA_ namespace.
44916         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44917         Reported by Ralf Wildenhues.
44918
44919         Avoid test failure due to SA_RESTORER.
44920         * tests/test-sigaction.c (SA_MASK): New macro.
44921         (main): Avoid failing due to extension flags being set.
44922         Reported by Jim Meyering.
44923
44924         Revert use of sig-handler.h in sigprocmask.c.
44925         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44926         it requires the existence of struct sigaction.
44927         * lib/sigprocmask.c (handler_t): Restore typedef.
44928         (rpl_signal, old_handlers): Use local type.
44929
44930 2008-06-22  Bruno Haible  <bruno@clisp.org>
44931
44932         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44933         conditionally.
44934         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44935
44936 2008-06-22  Bruno Haible  <bruno@clisp.org>
44937
44938         * doc/posix-functions/siginterrupt.texi: Move note.
44939
44940         * lib/signal.in.h (SA_RESTART): New macro.
44941         * lib/sigaction.c: Update comment.
44942
44943         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44944
44945         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44946         (gl_PREREQ_SIGPROCMASK): Invoke it.
44947         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44948
44949         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44950
44951         * lib/sigprocmask.c: Update a comment.
44952
44953 2008-06-21  Eric Blake  <ebb9@byu.net>
44954
44955         Use sigaction module rather than signal().
44956         * modules/c-stack (Depends-on): Add sigaction.
44957         * modules/fatal-signal (Depends-on): Likewise.
44958         * modules/nanosleep (Depends-on): Likewise.
44959         * modules/sigprocmask (Files): Add sig-handler.h.
44960         * modules/sigaction (Files): Likewise.
44961         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44962         Eggert.
44963         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44964         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44965         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44966         (init_fatal_signals): Likewise.
44967         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44968         (siginterrupt): Delete fallback.
44969         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44970         instead.
44971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44972         siginterrupt.
44973
44974         New module sigaction, for mingw.
44975         * modules/sigaction: New module...
44976         * modules/sigaction-tests: ...and its test.
44977         * m4/sigaction.m4: New file.
44978         * lib/sigaction.c: Likewise.
44979         * tests/test-sigaction.c: Likewise.
44980         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44981         * modules/signal (Makefile.am): Likewise.
44982         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44983         needed.
44984         * doc/posix-headers/signal.texi (signal.h): Mention provided
44985         types.
44986         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44987         that sigaction is preferable.
44988         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44989         module.
44990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44991         sigaction.
44992
44993         Improve robustness of sigprocmask by overriding signal.
44994         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44995         is in use.
44996         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44997         (SIGKILL, SIGSTOP): Provide fallbacks.
44998         (rpl_signal): Implement.
44999         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45000         signal can be called inside handlers.
45001
45002         Fix nanosleep module on mingw.
45003         * modules/nanosleep (Depends-on): Add sys_select.
45004         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45005
45006         Fix licensing of sigprocmask.
45007         * modules/raise (License): Relicense as LGPL.
45008
45009 2008-06-21  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45012         result if it contains question marks.
45013         Reported by Michael Geng <linux@michaelgeng.de>.
45014
45015 2008-06-19  Bruno Haible  <bruno@clisp.org>
45016
45017         Fix CVS-ism.
45018         * doc/gnulib.texi: Include updated-stamp.texi.
45019         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45020         (updated-stamp.texi): New rule.
45021         (gnulib.info): Depend on it.
45022         * doc/.gitignore: Add updated-stamp.texi.
45023         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45024
45025 2008-06-19  Bruno Haible  <bruno@clisp.org>
45026
45027         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45028         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45029
45030 2008-06-19  Eric Blake  <ebb9@byu.net>
45031
45032         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45033         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45034         Reported by Stepan Kasal.
45035
45036 2008-06-18  Bruno Haible  <bruno@clisp.org>
45037
45038         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45039         Reported by Eric Blake.
45040
45041 2008-06-18  Eric Blake  <ebb9@byu.net>
45042
45043         Work around cygwin 1.5.25 strsignal bug.
45044         * tests/test-strsignal.c: Allow for const char *.
45045         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45046
45047 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45048
45049         * users.txt: Update URL to article and add author/date
45050         information.
45051
45052 2008-06-17  Bruno Haible  <bruno@clisp.org>
45053
45054         New macro gl_DISABLE_THREADS.
45055         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45056         if the user did not pass --enable-threads or --disable-threads option.
45057         (gl_DISABLE_THREADS): New macro.
45058         Reported by Eric Blake <ebb9@byu.net>.
45059
45060 2008-06-17  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45063         when the macro ignores it.
45064         Based on a patch by Eric Blake <ebb9@byu.net>.
45065
45066 2008-06-17  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/tls (License): Change to LGPLv2+.
45069         Reported by Eric Blake.
45070
45071 2008-06-17  Eric Blake  <ebb9@byu.net>
45072
45073         Simplify c-stack prerequisites.
45074         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45076         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45077         check.
45078         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45079         <sys/resource.h>.
45080
45081         Move c-stack test into testsuite.
45082         * modules/c-stack-tests: New file.
45083         * lib/c-stack.c [DEBUG]: Move test program...
45084         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45085         fail test if sigaltstack is lacking.
45086         * tests/test-c-stack.sh: New driver file.
45087
45088 2008-06-16  Eric Blake  <ebb9@byu.net>
45089
45090         Use raise module consistently.
45091         * modules/fatal-signal (Depends-on): Add raise.
45092         * modules/sigprocmask (Depends-on): Likewise.
45093         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45094         * lib/sigprocmask.c (sigprocmask): Likewise.
45095         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45096         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45097
45098         Fix compliance bug in sigpending.
45099         * lib/sigprocmask.c (sigpending): Return pending array via
45100         parameter, not return value.
45101
45102 2008-06-14  Eric Blake  <ebb9@byu.net>
45103
45104         Improve obstack-printf test code.
45105         * tests/test-obstack-printf.c (test_function): Fix comment, and
45106         simplify usage of obstack_* in macros.  Add a test for coverage.
45107         Reported by Bruno Haible.
45108
45109 2008-06-14  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45112         array size as a constant, not as a const variable.
45113         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45114         AC_USE_SYSTEM_EXTENSIONS.
45115         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45116         Test whether the obstack_printf function actually exists.
45117         * modules/obstack-printf (Depends-on): Add extensions.
45118         (Include): Remove obstack.h.
45119         * modules/obstack-printf-posix (Depends-on): Add extensions.
45120         (Include): Remove obstack.h.
45121
45122 2008-06-13  Eric Blake  <ebb9@byu.net>
45123
45124         Add obstack-printf and obstack-printf-posix modules.
45125         * modules/obstack-printf: New file.
45126         * modules/obstack-printf-posix: Likewise.
45127         * MODULES.html.sh (Misc): Mention them.
45128         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45129         Likewise.
45130         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45131         Likewise.
45132         * modules/stdio (Makefile.am): Accomodate new modules.
45133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45134         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45135         Declare.
45136         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45137         functions.
45138         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45139         (gl_REPLACE_OBSTACK_PRINTF): New macros
45140         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45141         * tests/test-obstack-printf.c: New file.
45142         * modules/obstack-printf-tests: Likewise.
45143         * modules/obstack-printf-posix-tests: Likewise.
45144
45145 2008-06-11  Bruno Haible  <bruno@clisp.org>
45146
45147         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45148         * lib/open.c: Include errno.h.
45149         (open): Fail when attempting to write to a file that has a trailing
45150         slash.
45151         * tests/test-open.c (main): Test against trailing slash bug.
45152         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45153
45154 2008-06-10  Bruno Haible  <bruno@clisp.org>
45155
45156         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45157         for $? to work inside the trap command, with various /bin/sh-s.
45158         * tests/test-vc-list-files-cvs.sh: Likewise.
45159
45160 2008-06-10  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/acl-internal.h: Don't include gettext.h here.
45163         * lib/set-mode-acl.c: Include gettext.h here.
45164         * lib/copy-acl.c: Likewise.
45165
45166 2008-06-10  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45169         * lib/wait-process.c (wait_subprocess): Likewise.
45170         * lib/execute.h (execute): Add termsigp argument.
45171         * lib/execute.c (execute): Likewise.
45172         * lib/csharpcomp.c (compile_csharp_using_pnet,
45173         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45174         * lib/csharpexec.c (execute_csharp_using_pnet,
45175         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45176         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45177         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45178         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45179         is_jikes_present): Update.
45180         * lib/javaexec.c (execute_java_class): Update.
45181         * lib/javaversion.c (execute_and_read_line): Update.
45182         * NEWS: Document the changes.
45183         Reported by Eric Blake.
45184
45185 2008-06-10  Eric Blake  <ebb9@byu.net>
45186
45187         Add missing include.
45188         * tests/test-strstr.c (includes): Add <signal.h>.
45189         * tests/test-strcasestr.c (includes): Likewise.
45190         * tests/test-memmem.c (includes): Likewise.
45191
45192 2008-06-10  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/wait-process.c (wait_subprocess): Add an assertion.
45195
45196 2008-06-10  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45199
45200 2008-06-10  Bruno Haible  <bruno@clisp.org>
45201
45202         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45203         using alarm().
45204         * tests/test-strcasestr.c (main): Likewise.
45205         * tests/test-strstr.c (main): Likewise.
45206
45207 2008-06-09  Bruno Haible  <bruno@clisp.org>
45208
45209         Work around the Solaris 10 ACE ACLs ABI change.
45210         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45211         declare if ACL_NO_TRIVIAL is present.
45212         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45213         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45214         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45215         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45216         define if ACL_NO_TRIVIAL is present.
45217         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45218         and use the current ABI.
45219         (file_has_acl): Use same #if condition as elsewhere.
45220         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45221         in use, and use the current ABI.
45222         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45223         Reported by Jim Meyering.
45224
45225 2008-06-09  Eric Blake  <ebb9@byu.net>
45226
45227         Work around environments that (stupidly) ignore SIGALRM.
45228         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45229         before using alarm().
45230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45232         Reported by Ian Beckwith <ianb@erislabs.net>.
45233
45234         Produce autobuild blurb earlier in log.
45235         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45236
45237 2008-06-09  Jim Meyering  <meyering@redhat.com>
45238         and OndÅ™ej Vašík  <ovasik@redhat.com>
45239
45240         utimens.c: correct kernel bug work-around
45241         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45242         failure, not success, and the kernel bug we're trying to work
45243         around affects not just the utimensat call, but also the fallback
45244         futimens call.
45245         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45246         not success.
45247         [HAVE_FUTIMENS]: Use the same work-around, here.
45248
45249 2008-06-09  Jim Meyering  <meyering@redhat.com>
45250
45251         add more guards around definition of ACE_-related code
45252         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45253         ALLOW and ACE_OWNER are also defined.
45254
45255 2008-06-08  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/acl-internal.h: Add me as co-author.
45258         * lib/file-has-acl.c: Likewise.
45259         * lib/set-mode-acl.c: Likewise.
45260         * lib/copy-acl.c: Likewise.
45261
45262 2008-06-08  Bruno Haible  <bruno@clisp.org>
45263
45264         Add support for AIX ACLs.
45265         * lib/acl-internal.h (acl_nontrivial): New declaration.
45266         * lib/file-has-acl.c (acl_nontrivial): New function.
45267         (file_has_acl): Add implementation using AIX 4 ACL API.
45268         * lib/set-mode-acl.c (qset_acl): Likewise.
45269         * lib/copy-acl.c (qcopy_acl): Likewise.
45270
45271 2008-06-08  Bruno Haible  <bruno@clisp.org>
45272
45273         Add support for HP-UX ACLs.
45274         * lib/acl-internal.h (acl_nontrivial): New declaration.
45275         * lib/file-has-acl.c (acl_nontrivial): New function.
45276         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45277         * lib/set-mode-acl.c (qset_acl): Likewise.
45278         * lib/copy-acl.c (qcopy_acl): Likewise.
45279
45280 2008-06-08  Bruno Haible  <bruno@clisp.org>
45281
45282         Add support for Cygwin ACLs.
45283         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45284         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45285         the chmod_or_fchmod call.
45286         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45287
45288 2008-06-08  Bruno Haible  <bruno@clisp.org>
45289
45290         Fix bug with setuid modes in Solaris 10+ code.
45291         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45292         succeeded, when the mode contains some special bits.
45293
45294 2008-06-08  Bruno Haible  <bruno@clisp.org>
45295
45296         Add support for Solaris 7..10 ACLs.
45297         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45298         declarations.
45299         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45300         functions.
45301         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45302         * lib/set-mode-acl.c (qset_acl): Likewise.
45303         * lib/copy-acl.c (qcopy_acl): Likewise.
45304
45305 2008-06-08  Bruno Haible  <bruno@clisp.org>
45306
45307         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45308         declaration.
45309         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45310         (acl_access_nontrivial): Remove MacOS X case.
45311         (file_has_acl): Use acl_extended_nontrivial.
45312         * lib/copy-acl.c (qcopy_acl): Likewise.
45313
45314 2008-06-08  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45317
45318 2008-06-08  Jim Meyering  <meyering@redhat.com>
45319
45320         * modules/acl (Maintainer): Add Bruno Haible.
45321
45322 2008-06-07  Bruno Haible  <bruno@clisp.org>
45323
45324         Improve support for Tru64 ACLs.
45325         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45326         ACL on OSF/1.
45327
45328 2008-06-07  Bruno Haible  <bruno@clisp.org>
45329
45330         Add support for MacOS X ACLs.
45331         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45332         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45333         * lib/set-mode-acl.c (qset_acl): Likewise.
45334         * lib/copy-acl.c (qcopy_acl): Likewise.
45335
45336 2008-06-07  Bruno Haible  <bruno@clisp.org>
45337
45338         Fix memory leak introduced on 2008-05-22.
45339         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45340         use.
45341
45342 2008-06-07  Bruno Haible  <bruno@clisp.org>
45343
45344         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45345         to construct an empty ACL.
45346
45347 2008-06-07  Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45350         precisely.
45351         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45352
45353 2008-06-07  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45356         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45357
45358 2008-06-07  Bruno Haible  <bruno@clisp.org>
45359
45360         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45361         regardless of POSIX.
45362         * doc/posix-functions/_longjmp.texi: Likewise.
45363         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45364         SystemV platform in this case.
45365
45366 2008-06-06  Eric Blake  <ebb9@byu.net>
45367
45368         Document abort() bugs.
45369         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45370
45371         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45372         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45373         sigsetjmp.
45374         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45375         siglongjmp, but only as a macro.
45376         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45377         is obsolete.
45378         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45379
45380         Tweak documentation to cover cygwin argz bugs.
45381         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45382         argz bug fix; no code change needed since no cygwin releases
45383         occurred between the last fix and the bug being tested.
45384         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45385         module and recently fixed cygwin bugs.
45386         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45387         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45388         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45389         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45390         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45391         Likewise.
45392         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45393         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45394         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45395         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45396         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45397         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45398         Likewise.
45399
45400         Avoid gcc warning on cygwin.
45401         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45402         !ACL_NO_TRIVIAL]: Avoid unused variable.
45403
45404 2008-06-05  Eric Blake  <ebb9@byu.net>
45405
45406         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45407         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45408         git-version-gen fails to come up with a version.
45409         Reported by Simon Josefsson.
45410
45411 2008-06-05  Jim Meyering  <meyering@redhat.com>
45412             Paul Eggert  <eggert@cs.ucla.edu>
45413
45414         utimens.c: work around a probable Linux kernel bug
45415         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45416         appears to be a kernel bug that causes utimensat to return 280
45417         instead of 0, indicating success.
45418
45419 2008-06-04  Bruno Haible  <bruno@clisp.org>
45420
45421         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45422         2008-06-01 commit.
45423
45424 2008-06-04  Bruno Haible  <bruno@clisp.org>
45425
45426         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45427         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45428         (file_has_acl): Use it. Save errno afterwards.
45429         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45430
45431 2008-06-03  Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45434         draft code. Simplify #ifs.
45435         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45436         Put Solaris code after POSIX-draft code. Fix comments regarding
45437         Solaris 10, HP-UX. Mention Cygwin.
45438         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45439
45440 2008-06-03  Eric Blake  <ebb9@byu.net>
45441
45442         Provide fallback for older kernels.
45443         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45444         Provide runtime fallback if kernel lacks support.
45445         Reported by Mike Frysinger.
45446
45447 2008-06-02  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45450         it exists.
45451
45452 2008-06-02  Bruno Haible  <bruno@clisp.org>
45453
45454         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45455         * lib/copy-acl.c (qcopy_acl): Update comment.
45456
45457 2008-06-02  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45460         like ACL APIs.
45461
45462 2008-06-02  Bruno Haible  <bruno@clisp.org>
45463
45464         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45465         * tests/test-set-mode-acl.sh: Likewise.
45466         * tests/test-copy-acl.sh: Likewise.
45467         * tests/test-copy-file.sh: Likewise.
45468
45469 2008-06-02  Bruno Haible  <bruno@clisp.org>
45470
45471         * tests/test-file-has-acl.sh: Remove unused code.
45472
45473 2008-06-01  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45476         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45477         messages.
45478         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45479
45480 2008-06-01  Bruno Haible  <bruno@clisp.org>
45481
45482         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45483         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45484         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45485         APIs.
45486         * modules/acl-tests (configure.ac): Remove tests now contained in
45487         m4/acl.m4.
45488
45489 2008-06-02  Jim Meyering  <meyering@redhat.com>
45490
45491         announce-gen: use a better key-server host name
45492         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45493         it may be more consistently reliable.  Suggested by Werner Koch
45494         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45495
45496 2008-06-01  Bruno Haible  <bruno@clisp.org>
45497
45498         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45499         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45500
45501 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45502
45503         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45504
45505 2008-06-01  Bruno Haible  <bruno@clisp.org>
45506
45507         New ACL tests.
45508         * tests/test-file-has-acl.sh: New file.
45509         * tests/test-file-has-acl.c: New file.
45510         * tests/test-set-mode-acl.sh: New file.
45511         * tests/test-set-mode-acl.c: New file.
45512         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45513         * tests/test-copy-acl.c: New file.
45514         * modules/acl-tests: New file, based on modules/copy-file-tests.
45515         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45516         (Depends-on): Add acl-tests.
45517         (configure.ac): Remove checks.
45518         (Makefile.am): Don't create test-sameacls program here any more.
45519
45520 2008-06-01  Bruno Haible  <bruno@clisp.org>
45521
45522         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45523         * tests/test-sameacls.c: Include progname.h.
45524         (main): Invoke set_program_name. Portability fixes for MacOS X,
45525         Solaris, HP-UX.
45526
45527 2008-06-01  Bruno Haible  <bruno@clisp.org>
45528
45529         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45530         function.
45531         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45532
45533 2008-06-01  Bruno Haible  <bruno@clisp.org>
45534
45535         * modules/rpmatch (Depends-on): Add strdup.
45536
45537 2008-06-01  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/pipe.c: Include unistd-safer.h.
45540         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45541         * modules/pipe (Depends-on): Add unistd-safer.
45542
45543 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45544
45545         * modules/autobuild (configure.ac): Call AB_INIT.
45546
45547 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45548
45549         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45550         Suggested by Bruno Haible <bruno@clisp.org>.
45551
45552 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45553
45554         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45555         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45556         <bruno@clisp.org>.
45557
45558 2008-05-29  Eric Blake  <ebb9@byu.net>
45559
45560         Prefer new POSIX 200x interfaces over futimesat.
45561         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45562         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45563         when available.
45564         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45565
45566 2008-05-28  Bruno Haible  <bruno@clisp.org>
45567
45568         * modules/stpcpy (License): Change to LGPLv2+.
45569         Requested by David Lutterkort <dlutter@redhat.com>.
45570
45571 2008-05-27  Bruno Haible  <bruno@clisp.org>
45572
45573         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45574         current mingw.
45575         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45576
45577 2008-05-27  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/iconv_open (Link): New section, from module 'iconv'.
45580         * modules/striconv (Link): Likewise.
45581         * modules/striconveh (Link): Likewise.
45582         * modules/xstriconv (Link): Likewise.
45583         * modules/unicodeio (Link): Likewise.
45584         * modules/propername (Link): Likewise.
45585         Reported by Jim Meyering.
45586
45587 2008-05-26  Jim Meyering  <meyering@redhat.com>
45588
45589         sha256: do not artificially restrict buffer length to be < 2^32
45590         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45591         uint32_t to size_t.
45592         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45593         to match.
45594
45595         avoid unaligned access errors, e.g., on sparc
45596         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45597         direct access through a possibly-unaligned uint64* pointer.
45598         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45599         direct access through a possibly-unaligned uint32* pointer.
45600         Prompted by this patch from Tom "spot" Callaway:
45601         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45602
45603         sha512.c: fix typo in comment
45604         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45605
45606 2008-05-25  Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45609         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45610         (Makefile.am): Update lib_SOURCES.
45611
45612 2008-05-25  Bruno Haible  <bruno@clisp.org>
45613
45614         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45615
45616 2008-05-25  Jim Meyering  <meyering@redhat.com>
45617
45618         useless-if-before-free: freed expr may have white-space differences
45619         * build-aux/useless-if-before-free: Recognize cases in which the
45620         freed expression differs from the tested one in embedded white
45621         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45622         $1 was used, so we can't make any regexp shy.  Improved tests now
45623         detect this.
45624
45625         useless-if-before-free: accept white space in the expression.
45626         * build-aux/useless-if-before-free: For now, any white space
45627         in the expression must be identical in the free argument.
45628
45629         useless-if-before-free: efficiency tweak
45630         * build-aux/useless-if-before-free: Make the expression-matching
45631         regexp "shy".
45632         Make the *outer* regexp shy, not the expr-matching one.
45633
45634         update code-in-comment to accept cast of free arg
45635         * build-aux/useless-if-before-free: Update regexp.
45636
45637 2008-05-25  Bruno Haible  <bruno@clisp.org>
45638
45639         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45640         * modules/copy-file-tests (Files, Makefile.am): Update.
45641         * tests/test-copy-file.c (func_test_copy): Update.
45642
45643 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45644
45645         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45646
45647 2008-05-23  Bruno Haible  <bruno@clisp.org>
45648
45649         Improve support for ACLs on OSF/1.
45650         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45651         Remove fallback for unknown flavors of ACLs.
45652
45653 2008-05-22  Bruno Haible  <bruno@clisp.org>
45654
45655         Add support for ACLs on OSF/1.
45656         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45657         replacements.
45658         (acl_free_text): New macro fallback.
45659         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45660         acl_free.
45661         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45662         acl_free_text function. Require AC_C_INLINE.
45663
45664 2008-05-22  Bruno Haible  <bruno@clisp.org>
45665
45666         Make copy_acl work on MacOS X 10.5.
45667         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45668         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45669         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45670         If MODE_INSIDE_ACL, don't assume that every system has the same text
45671         representation for ACLs as FreeBSD.
45672         * lib/copy-acl.c (copy_acl): Add support for platforms with
45673         !MODE_INSIDE_ACL.
45674         * lib/file-has-acl.c (file_has_acl): Likewise.
45675         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45676         FreeBSD, MacOS X, or IRIX, respectively.
45677
45678 2008-05-22  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/acl.h: Don't include <sys/acl.h>.
45681         (GETACLCNT): Move fallback to lib/acl-internal.h.
45682         * lib/acl-internal.h: Include <sys/acl.h> here.
45683         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45684
45685 2008-05-22  Bruno Haible  <bruno@clisp.org>
45686
45687         Split off copy_acl function to separate file.
45688         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45689         * lib/acl.c (copy_acl): Moved function to separate file.
45690         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45691         * modules/acl (Files): Add lib/copy-acl.c.
45692         (Makefiles.am): Augment lib_SOURCES.
45693
45694 2008-05-22  Bruno Haible  <bruno@clisp.org>
45695
45696         * modules/copy-file-tests: New file.
45697         * tests/test-copy-file.sh: New file.
45698         * tests/test-copy-file.c: New file.
45699         * tests/test-copy-file-sameacls.c: New file.
45700
45701 2008-05-22  Eric Blake  <ebb9@byu.net>
45702
45703         Avoid gcc warning.
45704         * tests/test-memcmp.c (main): Pass NULL indirectly.
45705
45706 2008-05-21  Bruno Haible  <bruno@clisp.org>
45707
45708         Add reference doc about ACLs.
45709         * doc/acl-resources.txt: New file.
45710         * doc/acl-cygwin.txt: New file.
45711
45712 2008-05-21  Bruno Haible  <bruno@clisp.org>
45713
45714         Avoid one more warning from gcc.
45715         * lib/vasnprintf.c (IF_LINT): Update comments.
45716         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45717
45718 2008-05-21  Jim Meyering  <meyering@redhat.com>
45719
45720         avoid a warning from gcc
45721         * lib/vasnprintf.c (IF_LINT): Define.
45722         (scale10_round_decimal_long_double):
45723         Use it to avoid a "may be used uninitialized" warning.
45724         (scale10_round_decimal_double): Likewise.
45725
45726 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45727
45728         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45729         declared.
45730
45731 2008-05-20  Bruno Haible  <bruno@clisp.org>
45732
45733         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45734         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45735
45736 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45737
45738         * modules/memcmp-tests: New file.
45739         * tests/test-memcmp.c: New file.
45740
45741 2008-05-19  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/propername (Notice, configure.ac): Put quoted "..." into
45744         --keyword option.
45745         * lib/propername.h: Update comments accordingly.
45746         Reported by Eric Blake.
45747
45748 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45749
45750         * modules/getpass-gnu (Depends-on): Add fseeko.
45751
45752 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45753
45754         * modules/base64-tests: New file.
45755
45756 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45757
45758         * lib/base64.c (base64_decode_ctx): If a decode context structure
45759         was passed in use it to ignore newlines.  If a context structure
45760         was _not_ passed in, continue to treat newlines as garbage (this
45761         is the historical behavior).  Formerly base64_decode.
45762         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45763         takes a decode context structure.
45764         * lib/base64.h (base64_decode): Macro for four-argument calls.
45765         (base64_decode_alloc): Likewise.
45766         * lib/base64.c (base64_decode_ctx): If a decode context structure
45767         was passed in use it to ignore newlines.  If a context structure
45768         was _not_ passed in, continue to treat newlines as garbage (this
45769         is the historical behavior).  Formerly base64_decode.
45770         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45771         takes a decode context structure.
45772         * lib/base64.h (base64_decode): Macro for four-argument calls.
45773         (base64_decode_alloc): Likewise.
45774
45775 2008-05-19  Jim Meyering  <meyering@redhat.com>
45776
45777         avoid a warning from gcc
45778         * lib/trim.c (IF_LINT): Define.
45779         (trim2): Use it to avoid a "may be used uninitialized" warning.
45780
45781         Fix doc typo.
45782         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45783
45784 2008-05-19  Bruno Haible  <bruno@clisp.org>
45785
45786         * doc/glibc-functions/getpass.texi: Document limits of other
45787         implementations.
45788
45789 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45790             Bruno Haible <bruno@clisp.org>
45791
45792         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45793
45794 2008-05-18  Bruno Haible  <bruno@clisp.org>
45795
45796         * modules/propername: New file, from GNU gettext.
45797         * lib/propername.h: New file, from GNU gettext.
45798         * lib/propername.c: New file, from GNU gettext.
45799         * MODULES.html.sh (Internationalization functions): Add propername.
45800
45801 2008-05-16  Jim Meyering  <meyering@redhat.com>
45802             Bruno Haible  <bruno@clisp.org>
45803
45804         Avoid some warnings from "gcc -Wshadow".
45805         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45806
45807 2008-05-15  Eric Blake  <ebb9@byu.net>
45808
45809         Extend previous patch to cygwin 1.7.0.
45810         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45811         fast implementation in cygwin >= 1.7.0.
45812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45814
45815 2008-05-15  Bruno Haible  <bruno@clisp.org>
45816
45817         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45818         implementation in glibc >= 2.9.
45819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45821
45822 2008-05-15  Bruno Haible  <bruno@clisp.org>
45823
45824         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45825         (Unicode string functions): Add unilbrk/*.
45826         Reported by Karl Berry.
45827
45828 2008-05-15  Eric Blake  <ebb9@byu.net>
45829
45830         Fix violation of <stdbool.h> replacement in regex.
45831         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45832         * lib/regexec.c (re_search_internal): Likewise.
45833         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45834
45835 2008-05-15  Jim Meyering  <meyering@redhat.com>
45836
45837         avoid distracting test output when git or cvs is not found
45838         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45839         * tests/test-vc-list-files-git.sh: Likewise.
45840
45841 2008-05-15  Eric Blake  <ebb9@byu.net>
45842
45843         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45844         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45845         glibc version.
45846         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45847         * doc/posix-functions/strstr.texi (strstr): Likewise.
45848         * lib/str-two-way.h (MAX): Sychronize with glibc.
45849
45850 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45851
45852         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45853         opr.ctx_type.
45854         (calc_first): Initialize constraint field.
45855         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45856         Fix grammar.
45857         (duplicate_node): Merge constraint field for all node types.
45858         (calc_eclosure_iter): Look at constraint field for all node types.
45859         * lib/regex_internal.c (create_cd_newstate): Don't look at
45860         opr.ctx_type.
45861
45862 2008-05-14  Bruno Haible  <bruno@clisp.org>
45863
45864         Help GCC to do better code generation.
45865         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45866         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45867         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45868         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45869         Declare with attribute 'malloc' if supported.
45870
45871 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45872
45873         use "echo STR|wc -c" rather than unportable "expr length STR"
45874         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45875         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45876
45877 2008-05-14  Jim Meyering  <meyering@redhat.com>
45878
45879         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45880         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45881         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45882         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45883         via Collin Lasse.
45884
45885 2008-05-14  Eric Blake  <ebb9@byu.net>
45886
45887         Avoid quadratic growth in gl_LIBSOURCES.
45888         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45889         Suggested by Bruno Haible.
45890
45891         Test xmemdup0.
45892         * modules/xmemdup0-tests: New file.
45893         * tests/test-xmemdup0.c: Likewise.
45894
45895 2008-05-13  Eric Blake  <ebb9@byu.net>
45896
45897         Split xmemdup0 into its own module.
45898         * modules/xmemdup0: New file.
45899         * lib/xmemdup0.h: Likewise.
45900         * lib/xmemdup0.c: Likewise.
45901         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45902         * lib/xalloc.h (xmemdup0): Remove.
45903         * lib/xmalloc.c (xmemdup0): Likewise.
45904
45905 2008-05-13  Eric Blake  <ebb9@byu.net>
45906             Bruno Haible  <bruno@clisp.org>
45907
45908         Reduce number of forks required during autoconf.
45909         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45910         and gl_LIBSOURCES_DIR.
45911         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45912         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45913         m4_syscmd per file.
45914         <m4_foreach_w>: Move...
45915         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45916
45917 2008-05-13  Eric Blake  <ebb9@byu.net>
45918
45919         * gnulib-tool: Fix various comment typos.
45920
45921 2008-05-12  Bruno Haible  <bruno@clisp.org>
45922
45923         Tailor the linebreaking algorithm.
45924         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45925
45926 2008-05-12  Bruno Haible  <bruno@clisp.org>
45927
45928         Update to Unicode 5.0.0.
45929         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45930         LBP_JV, LBP_JT. Redistribute values.
45931         (unilbrk_table): Change size.
45932         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45933         Unicode TR#14 rev. 22.
45934         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45935         LBP_JV, LBP_JT. Redistribute values.
45936         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45937         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45938         Update.
45939         * lib/unilbrk/lbrkprop1.h: Regenerated.
45940         * lib/unilbrk/lbrkprop2.h: Regenerated.
45941         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45942         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45943         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45944         Likewise.
45945         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45946         Likewise.
45947         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45948         result.
45949         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45950         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45951         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45952         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45953         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45954         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45955
45956 2008-05-11  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45959
45960 2008-05-11  Bruno Haible  <bruno@clisp.org>
45961
45962         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45963         * modules/unilbrk/gen-lbrk: New file.
45964
45965 2008-05-11  Bruno Haible  <bruno@clisp.org>
45966
45967         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45968         * m4/sha512.m4 (gl_SHA512): Likewise.
45969
45970 2008-05-11  Jim Meyering  <meyering@redhat.com>
45971
45972         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45973         * modules/crypto/sha256: New file.
45974         * modules/crypto/sha512: Likewise.
45975         * lib/sha256.c: Likewise.
45976         * lib/sha256.h: Likewise.
45977         * lib/sha512.c: Likewise.
45978         * lib/sha512.h: Likewise.
45979         * lib/u64.h: Likewise.
45980         * m4/sha256.m4: Likewise.
45981         * m4/sha512.m4: Likewise.
45982         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45983
45984 2008-05-10  Bruno Haible  <bruno@clisp.org>
45985
45986         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45987         (Input/Output <stdio.h>): Add xprintf.
45988         (Signal handling <signal.h>): Add strsignal.
45989         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45990         (Core language properties): Add func.
45991         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45992         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45993         strings.
45994         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45995         (Input/output): New section.
45996         (File system functions): Add openat-die, stat-macros.
45997         (Networking functions): Add sockets.
45998         (Unicode string functions): Add unictype/*.
45999         (Support for building libraries and executables): Add gperf.
46000         (Support for building documentation): Add agpl-3.0.
46001         (Misc): Add nocrash.
46002
46003 2008-05-10  Bruno Haible  <bruno@clisp.org>
46004
46005         * modules/unictype/gen-ctype: New file.
46006
46007 2008-05-10  Jim Meyering  <meyering@redhat.com>
46008
46009         Make chdir-safer.c more efficient on a system with no symlinks.
46010         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46011         also if ELOOP is zero.  Suggested by Bruno Haible.
46012
46013         Make chdir-safer.c slightly safer.
46014         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46015         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46016
46017         Avoid compile failure on systems without ELOOP (like mingw).
46018         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46019         Reported by Bruno Haible.
46020
46021 2008-05-10  Bruno Haible  <bruno@clisp.org>
46022
46023         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46024         (is_utf8_encoding): Use a case-insensitive comparison.
46025         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46026         streq.
46027
46028 2008-05-10  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46031         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46032         * lib/unilbrk/ulc-common.h (iconv_string_length,
46033         iconv_string_keeping_offsets): Remove declarations.
46034         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46035         Don't include <iconv.h>, streq.h, xsize.h.
46036         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46037         conversion.
46038         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46039         <iconv.h>, streq.h, xsize.h.
46040         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46041         conversion.
46042         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46043         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46044         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46045         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46046
46047 2008-05-10  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46050         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46051
46052         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46053         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46054
46055         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46056         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46057
46058         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46059         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46060
46061         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46062         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46063
46064         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46065         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46066
46067         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46068         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46069
46070         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46071         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46072
46073 2008-05-10  Bruno Haible  <bruno@clisp.org>
46074
46075         Split up 'linebreak' module.
46076         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46077         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46078         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46079         modifications.
46080         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46081         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46082         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46083         lib/linebreak.c.
46084         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46085         lib/linebreak.c.
46086         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46087         lib/linebreak.c.
46088         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46089         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46090         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46091         lib/linebreak.c.
46092         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46093         lib/linebreak.c.
46094         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46095         lib/linebreak.c.
46096         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46097         lib/linebreak.c.
46098         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46099         lib/linebreak.c.
46100         * modules/unilbrk/base: New file.
46101         * modules/unilbrk/tables: New file.
46102         * modules/unilbrk/u8-possible-linebreaks: New file.
46103         * modules/unilbrk/u16-possible-linebreaks: New file.
46104         * modules/unilbrk/u32-possible-linebreaks: New file.
46105         * modules/unilbrk/ulc-common: New file.
46106         * modules/unilbrk/ulc-possible-linebreaks: New file.
46107         * modules/unilbrk/u8-width-linebreaks: New file.
46108         * modules/unilbrk/u16-width-linebreaks: New file.
46109         * modules/unilbrk/u32-width-linebreaks: New file.
46110         * modules/unilbrk/ulc-width-linebreaks: New file.
46111         * lib/linebreak.h: Remove file.
46112         * lib/linebreak.c: Remove file.
46113         * m4/linebreak.m4: Remove file.
46114         * modules/linebreak: Remove file.
46115         * NEWS: Mention the changes.
46116
46117 2008-05-09  Eric Blake  <ebb9@byu.net>
46118
46119         Add xmemdup0.
46120         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46121         implementation.
46122         * lib/xmalloc.c (xmemdup0): New C implementation.
46123
46124 2008-05-08  Bruno Haible  <bruno@clisp.org>
46125
46126         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46127
46128 2008-05-07  Eric Blake  <ebb9@byu.net>
46129
46130         Support cross-compilation of <wctype.h>.
46131         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46132         AC_CACHE_CHECK.
46133
46134 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46135
46136         * build-aux/vc-list-files: Add support for bzr.
46137
46138 2008-05-03  Jim Meyering  <meyering@redhat.com>
46139
46140         avoid failed assertion with tight malloc
46141         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46142
46143 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46144
46145         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46146         are needed from arpa/inet.h.
46147         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46148         Reported by Bruno Haible.
46149
46150 2008-05-02  Jim Meyering  <meyering@redhat.com>
46151
46152         avoid compilation error on FreeBSD 6
46153         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46154
46155 2008-05-01  Jim Meyering  <meyering@redhat.com>
46156
46157         useless-if-before-free: correct --help's exit status description
46158         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46159         for one or more matches, etc.  Reported by Bruno Haible.
46160
46161         vc-list-files: make the stand-alone gnulib test work
46162         * modules/vc-list-files-tests (configure.ac):
46163         Define and AC_SUBST abs_aux_dir.
46164         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46165         $(abs_top_srcdir) to each script and having each of them
46166         duplicate the work of setting PATH, set PATH here, using
46167         the new variable, abs_aux_dir instead.
46168         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46169         * tests/test-vc-list-files-git.sh: Likewise.
46170         Reported by Bruno Haible.
46171
46172 2008-05-01  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46175         reallocation. Rename 'done' to 'found_delimiter'.
46176
46177 2008-05-01  Jim Meyering  <meyering@redhat.com>
46178
46179         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46180         * build-aux/vc-list-files: Use `...`, not $(...).
46181
46182 2008-04-30  Jim Meyering  <meyering@redhat.com>
46183
46184         add tests for vc-list-files
46185         * modules/vc-list-files-tests: New module.
46186         * tests/test-vc-list-files-cvs.sh: New file.
46187         * tests/test-vc-list-files-git.sh: New file.
46188
46189         avoid a warning from gcc
46190         * lib/getndelim2.c (IF_LINT): Define.
46191         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46192
46193         vc-list-files: work properly with build-aux/cvsu, too
46194         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46195         to all cvs-based clauses.
46196
46197         vc-list-files: work properly in the CVS+awk case, too
46198         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46199
46200         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46201         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46202         take more than one file argument, so .  Add quotes, just in case $dir
46203         ever contains a shell meta-character.  Prompted by Soren Hansen in
46204         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46205
46206 2008-04-29  Eric Blake  <ebb9@byu.net>
46207
46208         Optimize getndelim2 to use block operations when possible.
46209         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46210         freadseek, and memchr2.
46211         * lib/getndelim2.c (getndelim2): Use them for block reads.
46212
46213 2008-04-29  Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46217         * modules/inet_ntop (Depends-on): Add extensions.
46218         * modules/inet_pton (Depends-on): Likewise.
46219         Reported by Simon Josefsson.
46220
46221 2008-04-29  Jim Meyering  <meyering@redhat.com>
46222
46223         When the is more than one match in a block, match all of them.
46224         * build-aux/useless-if-before-free: Iterate through each block
46225         until there are no more matches.
46226
46227         Fix broken useless-if-before-free script.
46228         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46229         the expression to match cast of argument to free-like function.
46230
46231 2008-04-29  Eric Blake  <ebb9@byu.net>
46232
46233         Use new header.
46234         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46235
46236 2008-04-29  Jim Meyering  <meyering@redhat.com>
46237
46238         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46239         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46240         by gnulib to exist and to declare e.g., inet_ntop.
46241         Don't include "inet_ntop.h", now removed.
46242
46243         * m4/arpa_inet_h.m4: Remove trailing blanks.
46244
46245 2008-04-29  Eric Blake  <ebb9@byu.net>
46246
46247         Silence valgrind on safe reads beyond potential array bounds.
46248         * lib/rawmemchr.valgrind: New file.
46249         * lib/strchrnul.valgrind: Likewise.
46250         * modules/rawmemchr (Files): Distribute new file.
46251         * modules/strchrnul (Files): Likewise.
46252         Suggested by Bruno Haible.
46253
46254 2008-04-29  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46257         (inet_ntop, inet_pton): Change portability warning's wording.
46258         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46259         Invoke gl_CHECK_NEXT_HEADERS.
46260         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46261         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46262         set ARPA_INET_H.
46263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46264         * modules/arpa_inet (Description): No longer only for systems that
46265         lack it.
46266         (Depends-on): Add include_next.
46267         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46268         HAVE_ARPA_INET_H.
46269
46270 2008-04-29  Jim Meyering  <meyering@redhat.com>
46271
46272         * modules/mkdir (License): Re-license as LGPLv2+.
46273
46274 2008-04-29  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/rawmemchr (Maintainer): Set to Eric.
46277         * modules/strchrnul (Maintainer): Likewise.
46278
46279 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46280
46281         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46282         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46283
46284         * modules/arpa_inet (arpa/inet.h): Use them.
46285
46286 2008-04-28  Eric Blake  <ebb9@byu.net>
46287
46288         Test getndelim2.
46289         * modules/getndelim2-tests: New file.
46290         * tests/test-getndelim2.c: Likewise.
46291         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46292         stream.
46293         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46294
46295         * MODULES.html.sh: Document new module.
46296
46297 2008-04-20  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/c-stack.c (die): Use raise.
46300         * modules/c-stack (Depends-on): Add raise.
46301
46302 2008-04-28  Bruno Haible  <bruno@clisp.org>
46303
46304         Expect rpmatch to be declared.
46305         * lib/yesno.c (rpmatch): Remove declaration.
46306
46307         Declare rpmatch.
46308         * lib/stdlib.in.h (rpmatch): New declaration.
46309         * lib/rpmatch.c: Include <stdlib.h> first.
46310         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46311         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46313         HAVE_RPMATCH.
46314         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46316         (Include): Set to <stdlib.h>.
46317         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46318         HAVE_RPMATCH.
46319         * NEWS: Document the change.
46320
46321 2008-04-28  Bruno Haible  <bruno@clisp.org>
46322
46323         Change rpmatch to use nl_langinfo when appropriate.
46324         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46325         (N_): New macro.
46326         (localized_pattern): New function/macro.
46327         (try): Remove match, nomatch arguments. Copy the pattern into safe
46328         memory before caching it.
46329         (rpmatch): Use localized_pattern. Add translator comments.
46330         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46331         Suggested by Eric Blake.
46332         * modules/rpmatch (Depends-on): Add stdbool.
46333
46334 2008-04-28  Eric Blake  <ebb9@byu.net>
46335
46336         Add rawmemchr module, matching glibc.
46337         * modules/string (Makefile.am): New indicator.
46338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46339         * lib/string.in.h (rawmemchr): Declare when appropriate.
46340         * modules/rawmemchr: New file.
46341         * m4/rawmemchr.m4: Likewise.
46342         * lib/rawmemchr.c: Likewise.
46343         * modules/rawmemchr-tests: Likewise.
46344         * tests/test-rawmemchr.c: Likewise.
46345         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46346         module.
46347         * modules/strchrnul (Depends-on): Add rawmemchr.
46348         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46349
46350         Whitespace cleanup.
46351         * tests/test-strchrnul.c: Reindent.
46352         * lib/strchrnul.c: Likewise.
46353
46354         Optimize and test strchrnul.
46355         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46356         * modules/strchrnul-tests: New file.
46357         * tests/test-strchrnul.c: Likewise.
46358
46359         Remove intprops dependency.
46360         * modules/memchr (Depends-on): Remove intprops.
46361         * modules/memrchr (Depends-on): Likewise.
46362         * modules/memchr2 (Depends-on): Likewise.
46363         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46364         * lib/memrchr.c (__memrchr): Likewise.
46365         * lib/memrchr2.c (memchr2): Likewise.
46366         Reported by Simon Josefsson.
46367
46368 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46369
46370         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46371         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46372
46373 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46374
46375         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46376
46377         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46378
46379         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46380
46381         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46382         declarations.
46383         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46384
46385         * m4/inet_pton.m4: Don't check for header files.
46386
46387         * m4/inet_ntop.m4: Don't check for header files.
46388
46389 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46390
46391         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46392         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46393         trigger for cygwin).
46394         Reported by Bruno Haible  <bruno@clisp.org>.
46395
46396 2008-04-28  Bruno Haible  <bruno@clisp.org>
46397
46398         * doc/posix-functions/strdup.texi: Mention mingw problem.
46399
46400 2008-04-27  Bruno Haible  <bruno@clisp.org>
46401
46402         * modules/stat-time-tests (Depends-on): Add sleep.
46403         * tests/test-stat-time.c (force_unlink): New function.
46404         (cleanup): Use it.
46405         (test_mtime): Remove the ctime related tests.
46406         (test_ctime): New function, containing the ctime related tests.
46407         (main): Call test_ctime, except on native Windows platforms.
46408
46409 2008-04-27  Bruno Haible  <bruno@clisp.org>
46410
46411         * lib/rpmatch.c (rpmatch): Add some comments.
46412         Reported by James Youngman <jay@gnu.org>.
46413
46414 2008-04-27  Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46417         quiet NaNs.
46418
46419 2008-04-27  Bruno Haible  <bruno@clisp.org>
46420
46421         Make test-yesno.sh work on mingw.
46422         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46423         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46424         (main): Set stdin to binary mode.
46425         * modules/yesno-tests (Depends-on): Add binary-io.
46426
46427 2008-04-27  Bruno Haible  <bruno@clisp.org>
46428
46429         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46430         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46431         argument that lie outside the IEEE 854 domain.
46432         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46433         (gl_ISFINITE): Use it.
46434         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46435
46436 2008-04-27  Bruno Haible  <bruno@clisp.org>
46437
46438         Allow local renaming in config.h.
46439         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46440
46441 2008-04-27  Bruno Haible  <bruno@clisp.org>
46442
46443         * lib/memchr.c (__memchr): Change type of 'i'.
46444         * lib/memchr2.c (memchr2): Likewise.
46445
46446 2008-04-26  Eric Blake  <ebb9@byu.net>
46447         and Bruno Haible  <bruno@clisp.org>
46448
46449         Optimize and test memrchr.
46450         * modules/memrchr (Depends-on): Add intprops.
46451         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46452         * modules/memrchr-tests: New file.
46453         * tests/test-memrchr.c: New file.
46454
46455 2008-04-26  Bruno Haible  <bruno@clisp.org>
46456
46457         Add tentative support for DragonFly BSD.
46458         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46459         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46460         fp.
46461         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46462         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46463         * lib/fpurge.c (fpurge): Likewise.
46464         * lib/freadable.c (freaadable): Likewise.
46465         * lib/freadahead.c (freadahead): Likewise.
46466         * lib/freading.c (freading): Likewise.
46467         * lib/freadptr.c (freadptr): Likewise.
46468         * lib/freadseek.c (freadptrinc): Likewise.
46469         * lib/fseeko.c (fseeko): Likewise.
46470         * lib/fseterr.c (fseterr): Likewise.
46471         * lib/fwritable.c (fwritable): Likewise.
46472         * lib/fwriting.c (fwriting): Likewise.
46473
46474 2008-04-26  Bruno Haible  <bruno@clisp.org>
46475
46476         * lib/stdio-impl.h: New file.
46477         * lib/fbufmode.c: Include stdio-impl.h.
46478         (fbufmode): Use fp_, remove redundant #defines.
46479         * lib/fflush.c: Include stdio-impl.h.
46480         (clear_ungetc_buffer): Remove redundant #defines.
46481         * lib/fpurge.c: Include stdio-impl.h.
46482         (fpurge): Remove redundant #defines.
46483         * lib/freadable.c: Include stdio-impl.h.
46484         (freadable): Remove redundant #defines.
46485         * lib/freadahead.c: Include stdio-impl.h.
46486         (freadahead): Remove redundant #defines.
46487         * lib/freading.c: Include stdio-impl.h.
46488         (freading): Remove redundant #defines.
46489         * lib/freadptr.c: Include stdio-impl.h.
46490         (freadptr): Remove redundant #defines.
46491         * lib/freadseek.c: Include stdio-impl.h.
46492         (freadptrinc): Remove redundant #defines.
46493         * lib/fseeko.c: Include stdio-impl.h.
46494         (rpl_fseeko): Remove redundant #defines.
46495         * lib/fseterr.c: Include stdio-impl.h.
46496         (fseterr): Remove redundant #defines.
46497         * lib/fwritable.c: Include stdio-impl.h.
46498         (fwritable: Remove redundant #defines.
46499         * lib/fwriting.c: Include stdio-impl.h.
46500         (fwriting): Remove redundant #defines.
46501         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46502         * modules/fflush (Files): Likewise.
46503         * modules/fpurge (Files): Likewise.
46504         * modules/freadable (Files): Likewise.
46505         * modules/freadahead (Files): Likewise.
46506         * modules/freading (Files): Likewise.
46507         * modules/freadptr (Files): Likewise.
46508         * modules/freadseek (Files): Likewise.
46509         * modules/fseeko (Files): Likewise.
46510         * modules/fseterr (Files): Likewise.
46511         * modules/fwritable (Files): Likewise.
46512         * modules/fwriting (Files): Likewise.
46513
46514 2008-04-26  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46517         restore_seek_optimization, update_fpos_cache): New functions, extracted
46518         from rpl_fflush.
46519         (rpl_fflush): Use them.
46520         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46521         (gl_REPLACE_FFLUSH): Use it.
46522
46523 2008-04-26  Bruno Haible  <bruno@clisp.org>
46524
46525         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46526         on Solaris.
46527         * tests/test-xstrtoimax.sh: Likewise.
46528         * tests/test-xstrtoumax.sh: Likewise.
46529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46530
46531 2008-04-26  Bruno Haible  <bruno@clisp.org>
46532
46533         * modules/memchr-tests: New file.
46534         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46535
46536 2008-04-26  Eric Blake  <ebb9@byu.net>
46537             Bruno Haible  <bruno@clisp.org>
46538
46539         * lib/memchr.c: Include intprops.h.
46540         (__memchr): Optimize parallel detection of matching bytes. Rename local
46541         variables. Add explanatory comments.
46542
46543 2008-04-26  Bruno Haible  <bruno@clisp.org>
46544
46545         Fix module 'memchr', broken since 2000-10-28.
46546         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46547
46548 2008-04-26  Bruno Haible  <bruno@clisp.org>
46549
46550         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46551         comments.
46552
46553 2008-04-25  Eric Blake  <ebb9@byu.net>
46554
46555         Use native fstatat on cygwin 1.7.0.
46556         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46557         first.
46558
46559 2008-04-23  Eric Blake  <ebb9@byu.net>
46560
46561         Improve memchr2 performance.
46562         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46563         NUL bytes.
46564         * modules/memchr2 (Depends-on): Use intprops.h.
46565
46566 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46567
46568         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46569         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46570         <blp@cs.stanford.edu>.
46571
46572 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46573
46574         * lib/arpa_inet.in.h: New file.
46575
46576         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46577         (Makefile.am): Sed in substitute header file.
46578
46579         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46580         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46581
46582         * modules/inet_ntop (configure.ac): Use
46583         gl_ARPA_INET_MODULE_INDICATOR.
46584
46585         * modules/inet_pton (configure.ac): Use
46586         gl_ARPA_INET_MODULE_INDICATOR.
46587
46588 2008-04-22  Jim Meyering  <meyering@redhat.com>
46589
46590         * modules/verify (License): Re-license as LGPLv2+.
46591
46592 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46593
46594         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46595         parameter to void* as per POSIX standard (MinGW uses char*).
46596
46597 2008-04-21  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46600         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46601         Define to replacements if REPLACE_ISWCNTRL is 1.
46602         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46603         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46604         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46605         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46606         what it fixes.
46607         * doc/posix-functions/iswalpha.texi: Likewise.
46608         * doc/posix-functions/iswblank.texi: Likewise.
46609         * doc/posix-functions/iswcntrl.texi: Likewise.
46610         * doc/posix-functions/iswdigit.texi: Likewise.
46611         * doc/posix-functions/iswgraph.texi: Likewise.
46612         * doc/posix-functions/iswlower.texi: Likewise.
46613         * doc/posix-functions/iswprint.texi: Likewise.
46614         * doc/posix-functions/iswpunct.texi: Likewise.
46615         * doc/posix-functions/iswspace.texi: Likewise.
46616         * doc/posix-functions/iswupper.texi: Likewise.
46617         * doc/posix-functions/iswxdigit.texi: Likewise.
46618         Reported by Alain Guibert.
46619
46620 2008-04-21  Bruno Haible  <bruno@clisp.org>
46621
46622         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46623         Patch by Alain Guibert.
46624
46625 2008-04-21  Bruno Haible  <bruno@clisp.org>
46626
46627         Fix test failures on mingw.
46628         * tests/test-xstrtol.c (print_no_progname): New function.
46629         (main): Install it in error_print_progname hook.
46630         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46631         * tests/test-xstrtoimax.sh: Likewise.
46632         * tests/test-xstrtoumax.sh: Likewise.
46633
46634 2008-04-21  Bruno Haible  <bruno@clisp.org>
46635
46636         Fix test failure on mingw.
46637         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46638
46639 2008-04-21  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46642         Actually assign a value.
46643
46644 2008-04-20  Bruno Haible  <bruno@clisp.org>
46645
46646         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46647         take 2.
46648         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46649         'canonicalize-lgpl' module is also used.
46650         * lib/canonicalize-lgpl.c: Undo last change.
46651         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46652
46653 2008-04-20  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46656         config.h. Provide _mkdir based fallback for mingw.
46657         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46658         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46659         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46660         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46661         rather than defining mkdir in config.h.
46662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46663         (gl_SYS_STAT_H_DEFAULTS): New macro.
46664         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46665         HAVE_IO_H any more.
46666         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46667         HAVE_DECL_MKDIR and HAVE_IO_H.
46668
46669 2008-04-20  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/isapipe.c: Port to native Windows platforms.
46672
46673 2008-04-20  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46676
46677 2008-04-21  Eric Blake  <ebb9@byu.net>
46678
46679         Work around preprocessors that don't handle UINTMAX_MAX.
46680         * lib/memchr2.c (memchr2): Avoid embedded #if.
46681         Reported by Alain Guibert, fix suggested by Bruno Haible.
46682
46683 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46684
46685         * doc/posix-functions/strftime.texi (strftime): Explain better
46686         Windows incompatibility.  Suggested by Micah Cowan
46687         <micah@cowan.name>.
46688
46689 2008-04-20  Bruno Haible  <bruno@clisp.org>
46690
46691         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46692         unistr/u8-mblen.
46693
46694 2008-04-20  Bruno Haible  <bruno@clisp.org>
46695
46696         Fix test failure on platforms with non-GNU iconv.
46697         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46698         (U_TO_U8): Use it, rather than u16_to_u8.
46699         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46700         units at the end of the input string.
46701         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46702
46703 2008-04-20  Bruno Haible  <bruno@clisp.org>
46704
46705         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46706         when the resulting length is 0.
46707         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46708
46709 2008-04-20  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46712         works.
46713         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46714
46715 2008-04-20  Bruno Haible  <bruno@clisp.org>
46716
46717         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46718         * modules/tsearch-tests (configure.ac): Test for initstate function.
46719
46720 2008-04-20  Bruno Haible  <bruno@clisp.org>
46721
46722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46723         for nlink_t if missing.
46724         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46725
46726 2008-04-19  Bruno Haible  <bruno@clisp.org>
46727
46728         Work around snprintf bug on Linux libc5.
46729         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46731         gl_SNPRINTF_SIZE1.
46732         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46733         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46734         that test failed.
46735         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46736         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46737         * modules/snprintf (Files): Add m4/printf.m4.
46738         * modules/vsnprintf (Files): Likewise.
46739         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46740         * doc/posix-functions/vsnprintf.texi: Likewise.
46741
46742 2008-04-19  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46745         from 0.0058 to less than 10^-7.
46746
46747 2008-04-19  Bruno Haible  <bruno@clisp.org>
46748
46749         Fix rounding when a precision is given.
46750         * lib/vasnprintf.c (is_borderline): New function.
46751         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46752         9...9x.
46753         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46754         %e, %g.
46755         * tests/test-vasprintf-posix.c (test_function): Likewise.
46756         * tests/test-snprintf-posix.h (test_function): Likewise.
46757         * tests/test-sprintf-posix.h (test_function): Likewise.
46758         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46759         * tests/test-printf-posix.h (test_function): Likewise.
46760         * tests/test-printf-posix.output: Update.
46761         Reported by John Darrington <john@darrington.wattle.id.au> via
46762         Ben Pfaff <blp@cs.stanford.edu>.
46763
46764 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46765
46766         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46767         Suggested by Bruno Haible <bruno@clisp.org>.
46768
46769 2008-04-17  Bruno Haible  <bruno@clisp.org>
46770
46771         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46772         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46773         implementation.
46774         Patch by Bruce Merry <bmerry@gmail.com>.
46775
46776 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46777
46778         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46779         doesn't work under Windows.
46780
46781 2008-04-16  Bruno Haible  <bruno@clisp.org>
46782
46783         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46784         New macros.
46785         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46786         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46787         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46788         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46789         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46790         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46791         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46792         macros.
46793         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46794         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46795         Northern Sotho, Uighur.
46796
46797 2008-04-16  Bruno Haible  <bruno@clisp.org>
46798
46799         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46800         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46801         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46802         Reported by Daniel Bergström <daniel@octocode.com>.
46803
46804 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46805             Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46808         function.
46809         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46810         New functions, mostly extracted from gl_locale_name_default.
46811         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46812
46813 2008-04-16  Eric Blake  <ebb9@byu.net>
46814
46815         Adjust strtod detection to catch glibc 2.7 bug.
46816         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46817         Reported by John Gatewood Ham.
46818
46819 2008-04-16  Bruno Haible  <bruno@clisp.org>
46820
46821         Add tentative support for Linux libc5.
46822         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46823         * lib/fpurge.c (fpurge): Likewise.
46824         * lib/freadable.c (freadable): Likewise.
46825         * lib/freadahead.c (freadahead): Likewise.
46826         * lib/freading.c (freading): Likewise.
46827         * lib/freadptr.c (freadptr): Likewise.
46828         * lib/freadseek.c (freadptrinc): Likewise.
46829         * lib/fseeko.c (rpl_fseeko): Likewise.
46830         * lib/fseterr.c (fseterr): Likewise.
46831         * lib/fwritable.c (fwritable): Likewise.
46832         * lib/fwriting.c (fwriting): Likewise.
46833         Reported by Alain Guibert <alguibert+bts@free.fr>.
46834
46835 2008-04-15  Bruno Haible  <bruno@clisp.org>
46836
46837         * modules/mathl (configure.ac): Define module indicator.
46838
46839 2008-04-15  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/logl.c (logl): Remove unused variables.
46842
46843 2008-04-15  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46846         fails.
46847
46848 2008-04-15  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/trim.c (trim2): Fix argument of isspace() macro.
46851
46852 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46853
46854         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46855         to 0.
46856         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46857
46858 2008-04-14  Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46861         AC_LANG_PROGRAM argument.
46862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46863         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46865         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46866         * m4/math_h.m4 (gl_MATH_H): Likewise.
46867         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46870         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46871         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46872         * m4/regex.m4 (gl_REGEX): Likewise.
46873         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46874         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46876         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46877         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46878         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46881
46882 2008-04-14  Jim Meyering  <meyering@redhat.com>
46883
46884         test-strtod: fix typos: s/abs/fabs/
46885         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46886
46887 2008-04-13  Bruno Haible  <bruno@clisp.org>
46888
46889         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46890         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46891         module is also used and while not building the reloc-wrapper.
46892
46893 2008-04-13  Bruno Haible  <bruno@clisp.org>
46894
46895         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46896
46897 2008-04-13  Bruno Haible  <bruno@clisp.org>
46898
46899         Fix AIX compilation failure introduced on 2008-04-02.
46900         * tests/test-frexp.c (exp): Undefine before redefining.
46901         * tests/test-frexpl.c (exp): Likewise.
46902
46903 2008-04-13  Bruno Haible  <bruno@clisp.org>
46904
46905         Work around a HP-UX stdio bug.
46906         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46907         * tests/test-ftello.c (main): Likewise.
46908         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46909         * doc/posix-functions/ftello.texi: Likewise.
46910
46911 2008-04-13  Bruno Haible  <bruno@clisp.org>
46912
46913         Make test-signbit pass on HP-UX/hppa.
46914         * tests/test-signbit.c (minus_zerol): New variable.
46915         (test_signbitl): Use it.
46916
46917 2008-04-13  Bruno Haible  <bruno@clisp.org>
46918
46919         Make truncl work on OSF/1 4.0.
46920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46921         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46922         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46924         HAVE_DECL_TRUNCL.
46925         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46926         HAVE_DECL_TRUNCL.
46927         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46928
46929 2008-04-13  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46932
46933 2008-04-13  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46936         expression, so as to avoid HP-UX 11 cc compiler bug.
46937
46938 2008-04-13  Bruno Haible  <bruno@clisp.org>
46939
46940         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46941
46942 2008-04-13  Bruno Haible  <bruno@clisp.org>
46943
46944         * lib/git-merge-changelog.c: Remove empty declaration outside of
46945         functions.
46946
46947 2008-04-13  Bruno Haible  <bruno@clisp.org>
46948
46949         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46950
46951 2008-04-13  Bruno Haible  <bruno@clisp.org>
46952
46953         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46954         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46956         also if it exists but lacks definitions of the SHUT_* macros.
46957         * modules/sys_socket (Description): Update.
46958         Reported by Elbert Pol <e.pol@chello.nl>.
46959
46960 2008-04-13  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/localcharset.c (OS2): Don't redefine if already defined.
46963         Reported by Elbert Pol <e.pol@chello.nl>.
46964
46965 2008-04-13  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/binary-io.h [__EMX__]: Include <io.h>.
46968         Reported by Elbert Pol <e.pol@chello.nl>.
46969
46970 2008-04-12  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/fpucw.h: Enable the definitions also for x86_64.
46973         Needed for NetBSD/x86_64.
46974         Reported by Thomas Klausner <tk@giga.or.at>.
46975
46976 2008-04-12  Bruno Haible  <bruno@clisp.org>
46977
46978         * tests/test-strtod.c: Include isnand.h.
46979         (main): Use isnand instead of isnan.
46980         Reported by Jim Meyering.
46981
46982 2008-04-12  Bruno Haible  <bruno@clisp.org>
46983
46984         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46985         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46986
46987 2008-04-12  Jim Meyering  <meyering@redhat.com>
46988
46989         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46990
46991 2008-04-12  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46994         Reported by Elbert Pol <e.pol@chello.nl>.
46995
46996 2008-04-12  Eric Blake  <ebb9@byu.net>
46997
46998         Work around Solaris 10 math.h bug.
46999         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47000         (gl_MATH_H_DEFAULTS): Set up default.
47001         * modules/math (Makefile.am): Replace new indicators.
47002         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47003         * tests/test-math.c (main): Test this.
47004         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47005         * doc/posix-headers/math.texi (math.h): Mention bug.
47006         Reported by Nelson H. F. Beebe and Jim Meyering.
47007
47008 2008-04-11  Bruno Haible  <bruno@clisp.org>
47009
47010         Adapt to future versions of Apple GCC.
47011         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47012         Reported by Peter O'Gorman <peter@pogma.com>.
47013
47014 2008-04-11  Bruno Haible  <bruno@clisp.org>
47015
47016         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47017
47018 2008-04-11  Bruno Haible  <bruno@clisp.org>
47019
47020         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47021
47022         * modules/getaddrinfo-tests (Makefile.am): Define
47023         test_getaddrinfo_LDADD.
47024
47025 2008-04-11  Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47028         (init): Fix syntax error.
47029         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47030         is declared.
47031
47032 2008-04-11  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47035         * modules/glob (Depends-on): Add stdbool.
47036
47037 2008-04-11  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/trim.c: Include <string.h>.
47040
47041 2008-04-11  Eric Blake  <ebb9@byu.net>
47042
47043         Avoid compile failure on OS/2.
47044         * lib/regex_internal.h (internal_function): Disable optimization
47045         on OS/2 (__EMX__), where it caused compiler error.
47046         Reported by Elbert Pol.
47047
47048 2008-04-11  Bruno Haible  <bruno@clisp.org>
47049
47050         Flush the standard error stream before aborting. Needed on mingw.
47051         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47052         * tests/test-array_list.c (ASSERT): Likewise.
47053         * tests/test-array_oset.c (ASSERT): Likewise.
47054         * tests/test-avltree_list.c (ASSERT): Likewise.
47055         * tests/test-avltree_oset.c (ASSERT): Likewise.
47056         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47057         * tests/test-binary-io.c (ASSERT): Likewise.
47058         * tests/test-byteswap.c (ASSERT): Likewise.
47059         * tests/test-c-ctype.c (ASSERT): Likewise.
47060         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47061         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47062         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47063         * tests/test-c-strstr.c (ASSERT): Likewise.
47064         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47065         * tests/test-canonicalize.c (ASSERT): Likewise.
47066         * tests/test-carray_list.c (ASSERT): Likewise.
47067         * tests/test-ceilf1.c (ASSERT): Likewise.
47068         * tests/test-ceilf2.c (ASSERT): Likewise.
47069         * tests/test-ceill.c (ASSERT): Likewise.
47070         * tests/test-count-one-bits.c (ASSERT): Likewise.
47071         * tests/test-fbufmode.c (ASSERT): Likewise.
47072         * tests/test-fflush2.c (ASSERT): Likewise.
47073         * tests/test-floorf1.c (ASSERT): Likewise.
47074         * tests/test-floorf2.c (ASSERT): Likewise.
47075         * tests/test-floorl.c (ASSERT): Likewise.
47076         * tests/test-fopen.c (ASSERT): Likewise.
47077         * tests/test-fpending.c (ASSERT): Likewise.
47078         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47079         * tests/test-fpurge.c (ASSERT): Likewise.
47080         * tests/test-freadable.c (ASSERT): Likewise.
47081         * tests/test-freadahead.c (ASSERT): Likewise.
47082         * tests/test-freading.c (ASSERT): Likewise.
47083         * tests/test-freadptr.c (ASSERT): Likewise.
47084         * tests/test-freadptr2.c (ASSERT): Likewise.
47085         * tests/test-freadseek.c (ASSERT): Likewise.
47086         * tests/test-freopen.c (ASSERT): Likewise.
47087         * tests/test-frexp.c (ASSERT): Likewise.
47088         * tests/test-frexpl.c (ASSERT): Likewise.
47089         * tests/test-fseek.c (ASSERT): Likewise.
47090         * tests/test-fseeko.c (ASSERT): Likewise.
47091         * tests/test-fstrcmp.c (ASSERT): Likewise.
47092         * tests/test-ftell.c (ASSERT): Likewise.
47093         * tests/test-ftello.c (ASSERT): Likewise.
47094         * tests/test-func.c (ASSERT): Likewise.
47095         * tests/test-fwritable.c (ASSERT): Likewise.
47096         * tests/test-fwriting.c (ASSERT): Likewise.
47097         * tests/test-getdelim.c (ASSERT): Likewise.
47098         * tests/test-getline.c (ASSERT): Likewise.
47099         * tests/test-i-ring.c (ASSERT): Likewise.
47100         * tests/test-iconv-utf.c (ASSERT): Likewise.
47101         * tests/test-iconv.c (ASSERT): Likewise.
47102         * tests/test-isfinite.c (ASSERT): Likewise.
47103         * tests/test-isnand.c (ASSERT): Likewise.
47104         * tests/test-isnanf.c (ASSERT): Likewise.
47105         * tests/test-isnanl.h (ASSERT): Likewise.
47106         * tests/test-ldexpl.c (ASSERT): Likewise.
47107         * tests/test-linked_list.c (ASSERT): Likewise.
47108         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47109         * tests/test-localename.c (ASSERT): Likewise.
47110         * tests/test-lseek.c (ASSERT): Likewise.
47111         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47112         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47113         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47114         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47115         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47116         * tests/test-mbschr.c (ASSERT): Likewise.
47117         * tests/test-mbscspn.c (ASSERT): Likewise.
47118         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47119         * tests/test-mbspbrk.c (ASSERT): Likewise.
47120         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47121         * tests/test-mbsrchr.c (ASSERT): Likewise.
47122         * tests/test-mbsspn.c (ASSERT): Likewise.
47123         * tests/test-mbsstr1.c (ASSERT): Likewise.
47124         * tests/test-mbsstr2.c (ASSERT): Likewise.
47125         * tests/test-mbsstr3.c (ASSERT): Likewise.
47126         * tests/test-memchr2.c (ASSERT): Likewise.
47127         * tests/test-memmem.c (ASSERT): Likewise.
47128         * tests/test-open.c (ASSERT): Likewise.
47129         * tests/test-printf-frexp.c (ASSERT): Likewise.
47130         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47131         * tests/test-printf-posix.c (ASSERT): Likewise.
47132         * tests/test-quotearg.c (ASSERT): Likewise.
47133         * tests/test-rbtree_list.c (ASSERT): Likewise.
47134         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47135         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47136         * tests/test-round1.c (ASSERT): Likewise.
47137         * tests/test-roundf1.c (ASSERT): Likewise.
47138         * tests/test-roundl.c (ASSERT): Likewise.
47139         * tests/test-signbit.c (ASSERT): Likewise.
47140         * tests/test-sleep.c (ASSERT): Likewise.
47141         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47142         * tests/test-snprintf.c (ASSERT): Likewise.
47143         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47144         * tests/test-stat-time.c (ASSERT): Likewise.
47145         * tests/test-strcasestr.c (ASSERT): Likewise.
47146         * tests/test-strerror.c (ASSERT): Likewise.
47147         * tests/test-striconv.c (ASSERT): Likewise.
47148         * tests/test-striconveh.c (ASSERT): Likewise.
47149         * tests/test-striconveha.c (ASSERT): Likewise.
47150         * tests/test-strsignal.c (ASSERT): Likewise.
47151         * tests/test-strstr.c (ASSERT): Likewise.
47152         * tests/test-strtod.c (ASSERT): Likewise.
47153         * tests/test-trunc1.c (ASSERT): Likewise.
47154         * tests/test-trunc2.c (ASSERT): Likewise.
47155         * tests/test-truncf1.c (ASSERT): Likewise.
47156         * tests/test-truncf2.c (ASSERT): Likewise.
47157         * tests/test-truncl.c (ASSERT): Likewise.
47158         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47159         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47160         * tests/test-vasnprintf.c (ASSERT): Likewise.
47161         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47162         * tests/test-vasprintf.c (ASSERT): Likewise.
47163         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47164         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47165         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47166         * tests/test-vsnprintf.c (ASSERT): Likewise.
47167         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47168         * tests/test-wcwidth.c (ASSERT): Likewise.
47169         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47170         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47171         * tests/test-xvasprintf.c (ASSERT): Likewise.
47172         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47173         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47174         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47175         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47176         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47177         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47178         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47179         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47180         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47181         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47182         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47183         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47184         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47185         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47186         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47187         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47188         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47189         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47190         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47191         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47192         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47193         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47194         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47195         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47196         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47197         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47198         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47199         * tests/unictype/test-combining.c (ASSERT): Likewise.
47200         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47201         * tests/unictype/test-digit.c (ASSERT): Likewise.
47202         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47203         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47204         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47205         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47206         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47207         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47208         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47209         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47210         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47211         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47212         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47213         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47214         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47215         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47216         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47217         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47218         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47219         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47220         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47221         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47222         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47223         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47224         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47225         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47226         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47227         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47228         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47229         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47230         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47231         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47232         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47233         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47234         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47235         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47236         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47237         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47238         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47239         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47240         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47241         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47242         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47243         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47244         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47245         Reported by Eric Blake.
47246
47247 2008-04-11  Bruno Haible  <bruno@clisp.org>
47248
47249         * lib/wchar.in.h: Tweak comment.
47250
47251 2008-04-11  Bruno Haible  <bruno@clisp.org>
47252
47253         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47254         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47255         gl_COMMON.
47256         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47257
47258 2008-04-11  Bruno Haible  <bruno@clisp.org>
47259
47260         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47261
47262 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47263
47264         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47265         of attempting to use non-existing /dev/*random.  Based on patch
47266         from Adam Strzelecki <ono@java.pl> in
47267         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47268
47269 2008-04-08  Bruno Haible  <bruno@clisp.org>
47270
47271         Add tentative support for emx+gcc.
47272         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47273         * lib/fpurge.c (fpurge): Likewise.
47274         * lib/freadable.c (freadable): Likewise.
47275         * lib/freadahead.c (freadahead): Likewise.
47276         * lib/freading.c (freading): Likewise.
47277         * lib/freadptr.c (freadptr): Likewise.
47278         * lib/freadseek.c (freadptrinc): Likewise.
47279         * lib/fseeko.c (rpl_fseeko): Likewise.
47280         * lib/fseterr.c (fseterr): Likewise.
47281         * lib/fwritable.c (fwritable): Likewise.
47282         * lib/fwriting.c (fwriting): Likewise.
47283         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47284
47285 2008-04-09  Eric Blake  <ebb9@byu.net>
47286
47287         Avoid some autoconf warnings.
47288         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47289         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47290         * m4/afs.m4 (gl_AFS): Likewise.
47291         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47292         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47294         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47295         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47296         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47297         (AC_CHECK_DECLS_ONCE): Likewise.
47298         Rename file...
47299         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47300         gnulib-tool requires autoconf 2.59 or better.
47301         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47302
47303 2008-04-08  Eric Blake  <ebb9@byu.net>
47304
47305         Use 'git describe --match' if present (added in git 1.5.5).
47306         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47307         if possible.
47308
47309 2008-04-08  Bruno Haible  <bruno@clisp.org>
47310
47311         Add tentative support for OpenServer.
47312         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47313         _ptr, _cnt.
47314         * lib/fpurge.c (fpurge): Likewise.
47315         * lib/freadable.c (freadable): Likewise.
47316         * lib/freadahead.c (freadahead): Likewise.
47317         * lib/freading.c (freading): Likewise.
47318         * lib/freadptr.c (freadptr): Likewise.
47319         * lib/freadseek.c (freadptrinc): Likewise.
47320         * lib/fseeko.c (rpl_fseeko): Likewise.
47321         * lib/fseterr.c (fseterr): Likewise.
47322         * lib/fwritable.c (fwritable): Likewise.
47323         * lib/fwriting.c (fwriting): Likewise.
47324         Reported by Roger Cornelius <rac@tenzing.org> and
47325         Brian K. White <brian@aljex.com>.
47326
47327 2008-04-06  Jim Meyering  <meyering@redhat.com>
47328
47329         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47330
47331 2008-04-06  Bruno Haible  <bruno@clisp.org>
47332
47333         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47334         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47335         * tests/test-printf-posix.sh: Likewise.
47336         * tests/test-vfprintf-posix.sh: Likewise.
47337         * tests/test-vprintf-posix.sh: Likewise.
47338         * tests/test-xprintf-posix.sh: Likewise.
47339
47340 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47341
47342         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47343         hide error from 'ls', needed on OS/2.
47344         Report by Elbert Pol <elbert.pol@gmail.com>.
47345
47346 2008-04-04  Eric Blake  <ebb9@byu.net>
47347
47348         Make test-fseeko.c failures meaningful.
47349         * tests/test-fseeko.c: Print line number on failure.
47350         * tests/test-fseek.c: Likewise.
47351         Reported by Nelson H. F. Beebe.
47352
47353         Improve strtod bug detection check.
47354         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47355         required for Solaris 10.
47356         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47357
47358 2008-04-04  Bruno Haible  <bruno@clisp.org>
47359
47360         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47361         by m4/setenv.m4.
47362
47363 2008-04-03  Eric Blake  <ebb9@byu.net>
47364
47365         Ensure sane .version contents.
47366         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47367         version string.
47368         * build-aux/git-version-gen: Improve documentation.
47369
47370         Make GNU make output nicer.
47371         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47372         MAKECMDGOALS to enforce message for all command line targets.  Set
47373         srcdir for use in maint.mk.
47374
47375         Another maintainer tweak.
47376         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47377         a target that regenerates version.
47378
47379 2008-04-03  Jim Meyering  <meyering@redhat.com>
47380
47381         vc-list-files: don't cause coreutils "make po-check" failure
47382         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47383
47384 2008-04-03  Eric Blake  <ebb9@byu.net>
47385
47386         Allow VPATH usage of vc-list-files.
47387         * build-aux/vc-list-files (scriptversion): Add timestamp.
47388         (options): Add --help, --version, -C.
47389         (CVS): Support installed cvsu.
47390
47391 2008-04-02  Bruno Haible  <bruno@clisp.org>
47392
47393         Avoid some "statement with no effect" warnings from gcc.
47394         * tests/test-wctype.c (main): Explicitly ignore unused values.
47395         Reported by Jim Meyering.
47396
47397 2008-04-02  Jim Meyering  <meyering@redhat.com>
47398
47399         Avoid some warnings from "gcc -Wshadow".
47400         * tests/test-frexp.c (exp): Define to a different identifier.
47401         * tests/test-frexpl.c (exp): Likewise.
47402
47403 2008-04-03  Jim Meyering  <meyering@redhat.com>
47404
47405         bootstrap: remove dangling *.[ch] symlinks from lib
47406         * build-aux/bootstrap [dangling symlink removal]: Move find's
47407         -depth option to precede all others, to avoid a warning.
47408         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47409
47410 2008-04-02  Bruno Haible  <bruno@clisp.org>
47411
47412         Avoid some warnings from "gcc -Wshadow".
47413         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47414         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47415         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47416         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47417         Reported by Jim Meyering.
47418
47419 2008-04-01  Bruno Haible  <bruno@clisp.org>
47420
47421         Fix test to work on IRIX 6.5 with cc.
47422         * tests/test-math.c (numeric_equal): New function.
47423         (main): Use it.
47424
47425 2008-04-01  Bruno Haible  <bruno@clisp.org>
47426
47427         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47428
47429 2008-04-01  Bruno Haible  <bruno@clisp.org>
47430
47431         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47432         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47433         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47434         (Depends-on): Remove math.
47435
47436         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47437         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47438         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47439         (Depends-on): Remove math.
47440
47441         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47442         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47443         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47444         (Depends-on): Remove math.
47445         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47446         (Depends-on): Remove math.
47447
47448         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47449         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47450         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47451         (Depends-on): Remove math.
47452         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47453         (Depends-on): Remove math.
47454
47455         * tests/test-round1.c: Include nan.h.
47456         (main): Use NaNd instead of NAN.
47457         * modules/round-tests (Files): Add tests/nan.h.
47458
47459         * tests/test-trunc1.c: Include nan.h.
47460         (main): Use NaNd instead of NAN.
47461         * modules/trunc-tests (Files): Add tests/nan.h.
47462
47463         * tests/test-roundf1.c: Include nan.h.
47464         (main): Use NaNf instead of NAN.
47465         * modules/roundf-tests (Files): Add tests/nan.h.
47466
47467         * tests/test-truncf1.c: Include nan.h.
47468         (main): Use NaNf instead of NAN.
47469         * modules/truncf-tests (Files): Add tests/nan.h.
47470
47471         * tests/test-ceilf1.c: Include nan.h.
47472         (main): Use NaNf instead of NAN.
47473         * modules/ceilf-tests (Files): Add tests/nan.h.
47474
47475         * tests/test-floorf1.c: Include nan.h.
47476         (main): Use NaNf instead of NAN.
47477         * modules/floorf-tests (Files): Add tests/nan.h.
47478
47479         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47480         (main): Use NaNf instead of NAN.
47481         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47482
47483         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47484         (main): Use NaNd instead of NAN.
47485         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47486
47487         * tests/test-frexp.c: Include nan.h.
47488         (main): Use NaNd instead of NAN.
47489         * modules/frexp-tests (Files): Add tests/nan.h.
47490
47491         * lib/isnan.c: Don't include <math.h>.
47492         (FUNC): Don't use NAN macro.
47493         * modules/isnand-nolibm (Depends-on): Remove math.
47494         * modules/isnanf-nolibm (Depends-on): Remove math.
47495         * modules/isnanl (Depends-on): Remove math.
47496         * modules/isnanl-nolibm (Depends-on): Remove math.
47497
47498         * tests/nan.h: New file.
47499
47500 2008-04-01  Eric Blake  <ebb9@byu.net>
47501
47502         Fix typos.
47503         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47504         values to be the right type.
47505
47506         For now, cater to gnulib strtod inaccuracies.
47507         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47508         fractional results.  While not as nice from a QoI perspective, it
47509         is a quicker patch than correctly implementing decimal to binary
47510         rounding.
47511
47512 2008-03-31  Eric Blake  <ebb9@byu.net>
47513
47514         Guarantee a definition of NAN.
47515         * lib/math.in.h (NAN): Define if missing.
47516         * tests/test-math.c (main): Test it.
47517         * doc/posix-headers/math.texi (math.h): Document this.
47518         * lib/isnan.c (rpl_isnand): Use it.
47519         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47520         * tests/test-floorf1.c (NaN): Likewise.
47521         * tests/test-frexp.c (NaN): Likewise.
47522         * tests/test-isnand.c (NaN): Likewise.
47523         * tests/test-isnanf.c (NaN): Likewise.
47524         * tests/test-round1.c (NaN): Likewise.
47525         * tests/test-roundf1.c (NaN): Likewise.
47526         * tests/test-snprintf-posix.h (NaN): Likewise.
47527         * tests/test-sprintf-posix.h (NaN): Likewise.
47528         * tests/test-trunc1.c (NaN): Likewise.
47529         * tests/test-truncf1.c (NaN): Likewise.
47530         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47531         * tests/test-vasprintf-posix.c (NaN): Likewise.
47532         * modules/isnand-nolibm (Depends-on): Add math.
47533         * modules/isnanf-nolibm (Depends-on): Likewise.
47534         * modules/isnanl (Depends-on): Likewise.
47535         * modules/isnanl-nolibm (Depends-on): Likewise.
47536         * modules/snprintf-posix-tests (Depends-on): Likewise.
47537         * modules/sprintf-posix-tests (Depends-on): Likewise.
47538         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47539         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47540         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47541         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47542
47543 2008-03-31  Bruno Haible  <bruno@clisp.org>
47544
47545         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47546         * doc/posix-functions/strtod.texi: Likewise.
47547
47548 2008-03-31  Bruno Haible  <bruno@clisp.org>
47549
47550         * tests/test-strtod.c (main): Don't use C99 syntax.
47551
47552 2008-03-31  Bruno Haible  <bruno@clisp.org>
47553
47554         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47555         Reported by Eric Blake.
47556
47557 2008-03-31  Jim Meyering  <meyering@redhat.com>
47558
47559         Don't compare actual signbit return values.
47560         * tests/test-strtod.c (main): Rather, compare only their
47561         zero/non-zero nature.
47562
47563 2008-03-31  Eric Blake  <ebb9@byu.net>
47564
47565         More strtod documentation.
47566         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47567         failures as distinct bugs.
47568
47569 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47570
47571         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47572         Problem reported by Erik Benada in
47573         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47574
47575 2008-03-30  Bruno Haible  <bruno@clisp.org>
47576
47577         * tests/test-strtod.c: Add comments about which assertion fails on which
47578         platform.
47579         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47580
47581 2008-03-30  Eric Blake  <ebb9@byu.net>
47582
47583         Test signbit behavior on zeros.
47584         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47585         (test_signbitd, test_signbitl): Likewise.
47586
47587         More strtod touchups.
47588         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47589         sign of negative underflow, for now.  Use .5, not .1.
47590         * doc/posix-functions/strtod.texi (strtod): Mention these
47591         limitations.
47592         Reported by Jim Meyering.
47593
47594 2008-03-30  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47597         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47598
47599 2008-03-30  Bruno Haible  <bruno@clisp.org>
47600
47601         Avoid failure when attempting to return empty iconv results on some
47602         platforms.
47603         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47604         allocation, don't report ENOMEM when the resulting string is empty.
47605
47606 2008-03-30  Bruno Haible  <bruno@clisp.org>
47607
47608         Fix buffer overrun.
47609         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47610         Don't consider the width for tmp_length. Check count against tmp_length
47611         before doing the padding. Ensure enough allocation during padding.
47612
47613 2008-03-30  Eric Blake  <ebb9@byu.net>
47614
47615         strtod touchups.
47616         * lib/strtod.c (strtod): Avoid compiler warnings.
47617         Reported by Jim Meyering.
47618
47619 2008-03-30  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47622         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47623         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47624         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47625         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47626         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47627         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47628         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47629
47630         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47631         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47632         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47633         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47634         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47635         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47636         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47637         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47638
47639         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47640         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47641         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47642         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47643         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47644         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47645         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47646         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47647
47648         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47649         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47650
47651         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47652         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47653
47654         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47655         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47656
47657         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47659         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47660
47661         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47663         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47664
47665         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47667         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47668
47669         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47671         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47672
47673         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47674         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47676         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47677         (Depends-on): Add EOVERFLOW.
47678         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47679         (Depends-on): Add EOVERFLOW.
47680         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47681         (Depends-on): Add EOVERFLOW.
47682         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47683         (Depends-on): Add EOVERFLOW.
47684         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47685         (Depends-on): Add EOVERFLOW.
47686         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47687         (Depends-on): Add EOVERFLOW.
47688         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47689         (Depends-on): Add EOVERFLOW.
47690         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47691         (Depends-on): Add EOVERFLOW.
47692
47693         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47695         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47696
47697         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47699         * modules/snprintf (Depends-on): Add EOVERFLOW.
47700
47701         * lib/poll.c (EOVERFLOW): Remove fallback.
47702         * modules/poll (Depends-on): Add EOVERFLOW.
47703
47704         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47705         * modules/getugroups (Depends-on): Add EOVERFLOW.
47706
47707         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47708         * modules/getdelim (Depends-on): Add EOVERFLOW.
47709
47710         * lib/ftell.c (EOVERFLOW): Remove fallback.
47711         * modules/ftell (Depends-on): Add EOVERFLOW.
47712
47713         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47715         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47716
47717         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47718
47719         * modules/EOVERFLOW-tests: New file.
47720         * tests/test-EOVERFLOW.c: New file.
47721
47722         * modules/EOVERFLOW: New file.
47723         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47724
47725 2008-03-30  Bruno Haible  <bruno@clisp.org>
47726
47727         Fix bug introduced on 2007-06-10.
47728         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47729         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47730
47731 2008-03-30  Bruno Haible  <bruno@clisp.org>
47732
47733         Improve freadseek's efficiency after ungetc.
47734         * lib/freadseek.c: Include freadahead.h.
47735         (freadptrinc): New function, extracted from freadseek.
47736         (freadseek): Use it in a loop. Use freadahead to determine the number
47737         of loop iterations.
47738         * modules/freadseek (Depends-on): Add freadahead.
47739         (configure.ac): Require AC_C_INLINE.
47740
47741 2008-03-30  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/freadseek.c (freadseek): Don't ignore the return value of
47744         freadptr.
47745
47746 2008-03-29  Eric Blake  <ebb9@byu.net>
47747
47748         Add hex float support.
47749         * modules/strtod (Depends-on): Add c-ctype.
47750         (Link): Mention POW_LIB.
47751         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47752         whitespace between 'e' and exponent.
47753         * tests/test-strtod.c (main): Enable hex float tests.
47754         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47755         now provides.
47756
47757         Document various strtod bugs, with some fixes.
47758         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47759         "-0x", "inf", "nan", and hex constants.
47760         * doc/posix-functions/atof.texi (atof): Likewise.
47761         * modules/stdlib (Makefile.am): Support strtod.
47762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47763         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47764         detect additional strtod bugs.
47765         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47766         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47767         bool where appropriate.  Parse 'inf' and 'nan'.
47768         * tests/test-strtod.c: New file.
47769         * modules/strtod (Depends-on): Add stdbool, stdlib.
47770         (configure.ac): Turn on module indicator.
47771         * modules/strtod-tests: New module.
47772
47773 2008-03-29  Eric Blake  <ebb9@byu.net>
47774
47775         Fix ftell on mingw.
47776         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47777         * modules/ftell-tests (Depends-on): Add binary-io.
47778         * modules/ftello-tests (Depends-on): Likewise.
47779         * tests/test-ftell.c (main): Enhance test to cover behavior after
47780         ungetc.  Enforce binary mode.
47781         * tests/test-ftello.c (main): Likewise.
47782
47783         Pass test-freadseek on cygwin.
47784         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47785         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47786         ungetc buffer.
47787
47788         * tests/test-fflush2.c (main): Fix typo.
47789
47790 2008-03-29  Bruno Haible  <bruno@clisp.org>
47791
47792         * tests/test-fflush2.c (main): Temporarily disable the contents of
47793         this test.
47794         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47795         Reported by Eric Blake.
47796
47797 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47798
47799         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47800         (GC_SHA224_DIGEST_SIZE): Add.
47801
47802         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47803         (gc_hash_digest_length): Likewise.
47804         (gc_hash_buffer): Likewise.
47805
47806 2008-03-25  Bruno Haible  <bruno@clisp.org>
47807
47808         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47809         detail which gettext release to use.
47810         Reported by Simon Josefsson.
47811
47812 2008-03-26  Jim Meyering  <meyering@redhat.com>
47813
47814         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47815         * modules/gnumakefile (clean-GNUmakefile): Also, use
47816         test ... && ... || : syntax rather than if-then ... fi.
47817
47818         gnumakefile: Don't double-quote-expand $(VPATH) value.
47819         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47820
47821 2008-03-24  Eric Blake  <ebb9@byu.net>
47822
47823         Alter GNUmakefile to install into top directory.
47824         * modules/maintainer-makefile: Split, and add dependency...
47825         * modules/gnumakefile: to this new module.
47826         * build-aux/GNUmakefile: Move...
47827         * top/GNUmakefile: ...here.
47828         * build-aux/maint.mk: Move...
47829         * top/maint.mk: ...here.
47830         * MODULES.html.sh (Support for maintaining...): Document new
47831         module.
47832
47833 2008-03-23  Bruno Haible  <bruno@clisp.org>
47834
47835         * gnulib-tool: New options --vc-files, --no-vc-files.
47836         (func_usage): Document them.
47837         (vc_files): New variable.
47838         (func_import): Consider vc_files.
47839         (func_create_testdir): Set vc_files to empty.
47840         Suggested by Jim Meyering and Karl Berry.
47841
47842 2008-03-23  Bruno Haible  <bruno@clisp.org>
47843
47844         Fix regex compilation error on HP-UX 11.
47845         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47846         * modules/regex (Files): Add m4/mbstate_t.m4.
47847         Reported by Ton Voon <ton.voon@altinity.com>.
47848
47849 2008-03-23  Bruno Haible  <bruno@clisp.org>
47850
47851         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47852
47853 2008-03-23  Eric Blake  <ebb9@byu.net>
47854             Bruno Haible  <bruno@clisp.org>
47855
47856         Install files from top/ in the destination directory.
47857         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47858         augmentation also for the files from top/.
47859         (func_import, func_create_testdir): Rewrite file names:
47860         top/filename -> filename.
47861
47862 2008-03-23  Bruno Haible  <bruno@clisp.org>
47863
47864         Tweak "gnulib --version" output.
47865         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47866
47867 2008-03-23  Bruno Haible  <bruno@clisp.org>
47868
47869         Tweak "gnulib --version" output.
47870         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47871         rather than contents of ChangeLog, when possible.
47872
47873 2008-03-21  Eric Blake  <ebb9@byu.net>
47874
47875         More --version tweaks.
47876         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47877         date of last ChangeLog entry.
47878
47879 2008-03-21  Jim Meyering  <meyering@redhat.com>
47880
47881         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47882
47883 2008-03-20  Eric Blake  <ebb9@byu.net>
47884
47885         VPATH fix.
47886         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47887
47888 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47889
47890         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47891         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47892
47893 2008-03-20  Eric Blake  <ebb9@byu.net>
47894
47895         Sync GNUmakefile with coreutils.
47896         * build-aux/GNUmakefile (have-Makefile): Rename...
47897         (_have-Makefile): ...to this, for namespace consideration.
47898         (GNUmakefile.cfg): Include, if present.
47899         (_autoreconf): Define a default.
47900         (_is-dist-target): New rule for rebuilds to pick up intra-release
47901         version.
47902         (maint-cfg.mk): Rename...
47903         (cfg.mk): ...to this.
47904
47905 2008-03-18  Jim Meyering  <meyering@redhat.com>
47906
47907         New script and module: mktempd
47908         * MODULES.html.sh (maint+release support): Add mktempd.
47909         * build-aux/mktempd: New file.
47910         * modules/mktempd: New file.
47911
47912 2008-03-15  Jim Meyering  <meyering@redhat.com>
47913
47914         Undo last change.
47915         * lib/sha1.c, lib/md5.c: 63 != ~63.
47916         Reported by Andreas Schwab.
47917
47918         sha1.c, md5.c: Hoist a redundant expression.
47919         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47920         "ctx->buflen" only once, before calling *_process_block.
47921         * lib/md5.c (md5_process_bytes): Likewise.
47922
47923 2008-03-14  Eric Blake  <ebb9@byu.net>
47924
47925         Bump copyright year in files generated by gnulib-tool.
47926         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47927         gnulib-tool, rather than hard-coding it.
47928
47929         Fix 'gnulib-tool --version' output to work with git.
47930         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47931         (startup): ...here.
47932         (func_version): Use it to invoke git-version-gen, rather than
47933         relying on CVS keyword expansion.  Modernize wording.
47934         (cvsdatestamp, last_checkin_date, version): Kill unused
47935         variables.
47936
47937 2008-03-12  Jim Meyering  <meyering@redhat.com>
47938
47939         Recognize optional cast of the argument to free.
47940         * build-aux/useless-if-before-free: Update regexps.
47941
47942         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47943
47944 2008-03-11  Bruno Haible  <bruno@clisp.org>
47945
47946         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47947         by a single package.
47948         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47949         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47950         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47951         Reported by Sam Steingold <sds@gnu.org>.
47952
47953 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47954
47955         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47956         repositories.
47957
47958 2008-03-11  Bruno Haible  <bruno@clisp.org>
47959
47960         Avoid conflicts between local macro definitions.
47961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47962         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47963
47964 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47965             Bruno Haible  <bruno@clisp.org>
47966
47967         Make va_copy work with some version of xlc on AIX 5.1.
47968         * lib/stdarg.in.h: New file.
47969         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47970         On AIX, use a <stdarg.h> file substitute.
47971         * modules/stdarg (Files): Add lib/stdarg.in.h.
47972         (Depends-on): Add include_next.
47973         (Makefile.am): Build a stdarg.h substitute if requested.
47974         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47975
47976 2008-03-10  Bruno Haible  <bruno@clisp.org>
47977
47978         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47979         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47980         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47981
47982 2008-03-10  Bruno Haible  <bruno@clisp.org>
47983
47984         * modules/stdlib (Depends-on): Add include_next, remove
47985         absolute-header.
47986
47987 2008-03-09  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/freadahead.h (freadahead): Document more precisely.
47990         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47991         the sum of both buffer sizes.
47992         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47993         * NEWS: Document the change.
47994
47995 2008-03-09  Bruno Haible  <bruno@clisp.org>
47996
47997         Extend freadptr to return also the buffer size.
47998         * lib/freadptr.h (freadptr): Add sizep argument.
47999         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48000         (freadptr): Add sizep argument. Determine buffer size like freadahead
48001         does.
48002         * tests/test-freadptr.c: Don't include freadahead.h.
48003         (main): Adapt for new calling convention of freadptr.
48004         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48005         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48006         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48007         tests/test-freadptr2.sh.
48008         (Depends): Remove freadahead.
48009         (TESTS): Add test-freadptr2.sh.
48010         (check_PROGRAMS): Add test-freadptr2.
48011
48012 2008-03-09  Bruno Haible  <bruno@clisp.org>
48013
48014         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48015         Report and solution by Simon Josefsson.
48016
48017 2008-03-06  Bruno Haible  <bruno@clisp.org>
48018
48019         Make fflush after ungetc work on BSD platforms.
48020         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48021         * tests/test-fflush2.c: New file.
48022         * tests/test-fflush2.sh: New file.
48023         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48024         tests/test-fflush2.c.
48025         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48026         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48027
48028 2008-03-06  Eric Blake  <ebb9@byu.net>
48029
48030         Likewise for ftello.
48031         * modules/ftello (Dependencies): Add extensions.
48032         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48033
48034 2008-03-06  Bruno Haible  <bruno@clisp.org>
48035
48036         * modules/fseeko (Dependencies): Add extensions.
48037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48038         Needed on glibc systems.
48039
48040 2008-03-06  Bruno Haible  <bruno@clisp.org>
48041
48042         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48043         email address.
48044         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48045
48046 2008-03-06  Bruno Haible  <bruno@clisp.org>
48047
48048         * users.txt: Add libgnupdf.
48049
48050 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48051
48052         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48053         (Header File Substitutes, Function Substitutes,
48054         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48055         (Build robot for gnulib): Fix typo.
48056
48057 2008-03-06  Bruno Haible  <bruno@clisp.org>
48058
48059         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48060         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48061
48062 2008-03-06  Bruno Haible  <bruno@clisp.org>
48063
48064         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48065         * doc/gnulib.texi: Include it.
48066
48067 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48068
48069         * modules/func (License): Change license to unlimited; there was
48070         no LGPL parts in the module anyway.
48071
48072 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48073
48074         * modules/__func__: Renamed to modules/func.
48075         * modules/__func__-tests: Renamed to modules/func-tests.
48076         * tests/test-__func__.c: Renamed to tests/test-func.c.
48077         * m4/__func__.m4: Renamed to m4/func.m4.
48078         * doc/gnulib.texi (__func__): Section renamed to func.
48079         Suggested by Eric Blake <ebb9@byu.net>.
48080
48081 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48082
48083         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48084         about __func__.  Make example self-contained.  Suggested by Eric
48085         Blake <ebb9@byu.net>.
48086
48087         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48088         Suggested by Eric Blake <ebb9@byu.net>.
48089
48090 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48091
48092         * modules/__func__: New file.
48093         * modules/__func__-tests: New file.
48094         * tests/test-__func__.c: New file.
48095         * m4/__func__.m4: New file.
48096         * doc/gnulib.texi (__func__): Document __func__ module.
48097
48098 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48099
48100         * modules/byteswap (License): Re-license as LGPLv2+.
48101
48102 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48103
48104         * doc/Makefile: Add pdf target.
48105
48106 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48107
48108         * modules/inline (License): Use 'unlimited', since there are only
48109         *.m4 files in this module.
48110
48111 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48112             Bruno Haible  <bruno@clisp.org>
48113
48114         Add support for HP C 7.1 on OpenVMS 8.3.
48115         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48116
48117 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48118
48119         Update VMS specifics.
48120         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48121
48122 2008-03-02  Jim Meyering  <meyering@redhat.com>
48123
48124         Remove the last dependency on the "free" module.
48125         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48126         Reported by Bob Proulx.
48127
48128         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48129
48130         Remove useless "if" tests before free.  Deprecate "free" module.
48131         * doc/posix-functions/free.texi: Mention that this
48132         module is no longer useful.
48133         * modules/free (Notice): Say this module is obsolete.
48134         * modules/readutmp (Depends-on): Remove free.
48135         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48136         * lib/putenv.c (putenv): Likewise.
48137         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48138         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48139         * tests/test-c-strcasestr.c (main): Likewise.
48140         * tests/test-c-strstr.c (main): Likewise.
48141         * tests/test-mbscasestr1.c (main): Likewise.
48142         * tests/test-mbscasestr2.c (main): Likewise.
48143         * tests/test-mbsstr1.c (main): Likewise.
48144         * tests/test-mbsstr2.c (main): Likewise.
48145         * tests/test-memmem.c (main): Likewise.
48146         * tests/test-strcasestr.c (main): Likewise.
48147         * tests/test-striconv.c (main): Likewise.
48148         * tests/test-striconveh.c (main): Likewise.
48149         * tests/test-striconveha.c (main): Likewise.
48150         * tests/test-strstr.c (main): Likewise.
48151
48152         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48153
48154         bootstrap: sync from coreutils again
48155         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48156
48157 2008-03-01  Jim Meyering  <meyering@redhat.com>
48158
48159         bootstrap: sync from coreutils
48160         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48161         also when the target doesn't exist.
48162
48163 2008-03-01  Eric Blake  <ebb9@byu.net>
48164
48165         Fix bugs in last patch.
48166         * lib/memchr2.c (memchr2): Fix typo.
48167         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48168         extension.
48169         Reported by Bruce Korb.
48170
48171         New module 'memchr2'.
48172         * modules/memchr2: New file.
48173         * modules/memchr2-tests: Likewise.
48174         * lib/memchr2.h: Likewise.
48175         * lib/memchr2.c: Likewise, based on memchr.c.
48176         * tests/test-memchr2.c: New test.
48177         * MODULES.html.sh (String handling): Add memchr2.
48178
48179 2008-02-29  Bruno Haible  <bruno@clisp.org>
48180
48181         * modules/freadseek-tests: New file.
48182         * tests/test-freadseek.sh: New file.
48183         * tests/test-freadseek.c: New file.
48184
48185         New module 'freadseek'.
48186         * modules/freadseek: New file.
48187         * lib/freadseek.h: New file.
48188         * lib/freadseek.c: New file.
48189         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48190
48191 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48192
48193         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48194         wydawca.
48195
48196         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48197         program_invocation_name and program_invocation_short_name are
48198         present.
48199
48200 2008-02-28  Bruno Haible  <bruno@clisp.org>
48201
48202         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48203         * tests/test-freadptr.sh: Also test non-seekable stdin.
48204
48205 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48206
48207         * build-aux/bootstrap (source_base, m4_base)
48208         (doc_base, tests_base): New variables.
48209         (gnulib_tool_options): Do not hardcode base directories, use
48210         the above variables instead.
48211
48212 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48213
48214         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48215
48216 2008-02-28  Bruno Haible  <bruno@clisp.org>
48217
48218         * modules/freadptr-tests: New file.
48219         * tests/test-freadptr.sh: New file.
48220         * tests/test-freadptr.c: New file.
48221
48222         New module 'freadptr'.
48223         * modules/freadptr: New file.
48224         * lib/freadptr.h: New file.
48225         * lib/freadptr.c: New file.
48226         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48227
48228 2008-02-26  Karl Berry  <karl@freefriends.org>
48229
48230         Sync from Libtool:
48231         * libltdl/argz.c (argz_add, argz_count): New functions.
48232         * libltdl/argz.in.h: Declare them.
48233         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48234
48235 2008-02-22  Bruno Haible  <bruno@clisp.org>
48236
48237         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48238         is a pointer type.  Needed for HP-UX 10.
48239         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48240         * doc/posix-functions/gmtime_r.texi: Likewise.
48241         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48242
48243 2008-02-24  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/environ-tests: New file.
48246         * tests/test-environ.c: New file.
48247
48248         New module 'environ'.
48249         * modules/environ: New file.
48250         * lib/unistd.in.h (environ): New declaration.
48251         * m4/environ.m4: New file.
48252         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48253         after use.
48254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48255         HAVE_DECL_ENVIRON.
48256         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48257         HAVE_DECL_ENVIRON.
48258         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48259         wrong claim that 'environ' is missing on some systems.
48260         * modules/execute (Depends-on): Add environ.
48261         * lib/execute.c (environ): Remove fallback declaration.
48262         * modules/pipe (Depends-on): Add environ.
48263         * lib/pipe.c (environ): Remove fallback declaration.
48264         * modules/setenv (Depends-on): Add environ.
48265         * lib/setenv.c (environ): Remove fallback declaration.
48266         * modules/unsetenv (Depends-on): Add environ.
48267         * lib/unsetenv.c (environ): Remove fallback declaration.
48268         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48269         m4/environ.m4.
48270         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48271         (gl_PREREQ_UNSETENV): Likewise.
48272
48273 2008-02-24  Bruno Haible  <bruno@clisp.org>
48274
48275         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48276
48277 2008-02-20  Bob Proulx  <bob@proulx.com>
48278
48279         Enable use of older two part flavor 'git describe'.
48280         * build-aux/git-version-gen: If using the older two part flavor of
48281         git version then recreate the third part now present in the
48282         newer three part flavor of git describe.
48283
48284 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48285
48286         * lib/fts.c (fts_build): Typo correction to comment.
48287
48288 2008-02-17  Bruno Haible  <bruno@clisp.org>
48289
48290         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48291         generating no-op conflicts.
48292
48293 2008-02-17  Bruno Haible  <bruno@clisp.org>
48294
48295         Speed up by 10%.
48296         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48297         result_entries, rather than an index-based loop.
48298
48299 2008-02-17  Bruno Haible  <bruno@clisp.org>
48300
48301         Speed up by 25%.
48302         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48303         'hashcode_cached'.
48304         (entry_create): New function.
48305         (entry_hashcode): Use the cached hashcode if possible.
48306         (read_changelog_file, try_split_merged_entry): Use entry_create.
48307
48308 2008-02-17  Bruno Haible  <bruno@clisp.org>
48309
48310         Speed up from O(n^2) to O(n) for long ChangeLog files.
48311         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48312         (read_changelog_file): Change implementation of entries_reversed list
48313         to rbtreehash.
48314         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48315
48316 2008-02-17  Bruno Haible  <bruno@clisp.org>
48317
48318         New option --split-merged-entry.
48319         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48320         (find_paragraph_end, try_split_merged_entry): New functions.
48321         (long_options): Add option --split-merged-entry.
48322         (usage): Document option --split-merged-entry.
48323         (main): Implement option --split-merged-entry.
48324         Reported by Eric Blake.
48325
48326 2008-02-17  Bruno Haible  <bruno@clisp.org>
48327
48328         * lib/git-merge-changelog.c: Include c-strstr.h.
48329         (main): Support the "git pull --rebase" situation.
48330         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48331         Reported by Eric Blake.
48332
48333 2008-02-16  Eric Blake  <ebb9@byu.net>
48334
48335         Avoid doubling \ in common case of "c-maybe" quoting style.
48336         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48337         eliding outer quotes.
48338         * lib/quotearg.h: Document this.
48339         * tests/test-quotearg.c (result_strings, inputs, results_g)
48340         (flag_results, locale_results): Test it by adding a new string to
48341         each test group.
48342         (compare_strings): Test new string.
48343
48344 2008-02-13  Eric Blake  <ebb9@byu.net>
48345
48346         Avoid trigraph quoting in default output.
48347         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48348         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48349         unless explicitly requested.
48350         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48351
48352 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48353
48354         Don't rely on signed integer overflowing to negative value.
48355         * lib/getugroups.c (getugroups): Include <limits.h>.
48356         Instead, compare against INT_MAX, and increment only if the test passes.
48357
48358 2008-02-13  Jim Meyering  <meyering@redhat.com>
48359         and Eric Blake  <ebb9@byu.net>
48360
48361         Avoid shadowing warning and compile errors on Linux.
48362         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48363         forwarding macros on Linux.
48364         (dcgettext): Define a stub, for Linux.
48365         (results_g, main): Avoid warnings.
48366
48367 2008-02-12  Eric Blake  <ebb9@byu.net>
48368
48369         Silence warning in last patch.
48370         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48371
48372         Quotearg part 4: add tests, fix c-maybe colon quoting.
48373         * lib/quotearg.h: Improve documentation.
48374         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48375         escapes when adding outer quotes.  When quoting trigraphs, use
48376         valid C notation.  When quoting NUL, omit extra characters if next
48377         character is not digit.  Alter prototype.
48378         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48379         callers.
48380         * modules/quotearg-tests: New module.
48381         * tests/test-quotearg.c: New test.
48382
48383 2008-02-07  Eric Blake  <ebb9@byu.net>
48384
48385         Quotearg part 3: add flag to control outer quote elision.
48386         * lib/quotearg.h (c_maybe_quoting_style): New style.
48387         (enum quoting_flags): Better documentation of flags.
48388         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48389         c-maybe style.
48390         (quotearg_buffer_restyled): Handle new flag to elide outer
48391         quotes.
48392
48393         Quotearg part 2: add flag that can control NUL elision.
48394         * lib/quotearg.h (set_quoting_flags): New prototype.
48395         * lib/quotearg.c (struct quoting_options): Add flag field.
48396         (set_quoting_flags): New function.
48397         (quotearg_buffer_restyled): Add flags parameter.
48398         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48399         (quotearg_n_options): Set the flag, since length cannot be
48400         returned.
48401         (quoting_options_from_style): Default flags correctly.
48402
48403         Quotearg part 1: more wrappers, restore quotearg_char state.
48404         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48405         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48406         (quotearg_colon_mem): New wrappers.
48407         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48408         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48409         functions.
48410         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48411         (quotearg_colon_mem): New functions.
48412
48413 2008-02-11  Bruno Haible  <bruno@clisp.org>
48414
48415         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48416         library in the current directory: it does not work with parallel make.
48417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48418
48419 2008-02-11  Bruno Haible  <bruno@clisp.org>
48420
48421         * .gitattributes: New file.
48422
48423 2008-02-11  Jim Meyering  <meyering@redhat.com>
48424
48425         useless-if-before-free: Fix reversed exit values.
48426         * build-aux/useless-if-before-free: Use correct values
48427         for EXIT_MATCH and EXIT_NO_MATCH.
48428
48429         * build-aux/useless-if-before-free: Close stdout carefully.
48430
48431 2008-02-10  Bruno Haible  <bruno@clisp.org>
48432
48433         New module 'git-merge-changelog'.
48434         * modules/git-merge-changelog: New file.
48435         * lib/git-merge-changelog.c: New file.
48436
48437 2008-02-10  Jim Meyering  <meyering@redhat.com>
48438
48439         useless-if-before-free: New option: --list (-l).
48440
48441         useless-if-before-free: Don't exit immediately upon open failure.
48442         * build-aux/useless-if-before-free: Exit 2 for errors.
48443         Upon failure to open a file, don't exit immediately.
48444         Rather, just warn and continue with any remaining files.
48445
48446 2008-02-10  Bruno Haible  <bruno@clisp.org>
48447
48448         New abstract list operation 'node_set_value'.
48449         * lib/gl_list.h (gl_list_node_set_value): New function.
48450         (struct gl_list_implementation): New field node_set_value.
48451         * lib/gl_list.c (gl_list_node_set_value): New function.
48452         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48453         (gl_array_list_implementation): Update.
48454         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48455         (gl_carray_list_implementation): Update.
48456         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48457         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48458         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48459         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48460         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48462         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48463         Update.
48464         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48465         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48466         (gl_sublist_list_implementation): Update.
48467
48468 2008-02-10  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48471         Needed when ELEMENT is #defined to 'some_type *'.
48472
48473 2008-02-10  Jim Meyering  <meyering@redhat.com>
48474
48475         New script and module: useless-if-before-free
48476         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48477         * build-aux/useless-if-before-free: New file.
48478         * modules/useless-if-before-free: New file.
48479
48480         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48481
48482         xstrtol_error: Fix typo.
48483         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48484         s/exit_failure/exit_status/.
48485
48486 2008-02-09  Jim Meyering  <meyering@redhat.com>
48487
48488         New script and module: gitlog-to-changelog
48489         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48490         * modules/gitlog-to-changelog: New file.
48491         * build-aux/gitlog-to-changelog: New file.
48492
48493 2008-02-08  Jim Meyering  <meyering@redhat.com>
48494
48495         Avoid two "parameter unused" warnings.
48496         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48497         Mark "st" as used.
48498
48499         Use "git COMMAND", not "git-COMMAND".
48500         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48501         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48502         * build-aux/git-version-gen: Use "git status", not "git-status".
48503
48504 2008-02-07  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48507         Avoids a crash on Windows Vista.
48508         Reported by Adam Strzelecki <ono@java.pl> via
48509         Simon Josefsson <simon@josefsson.org>.
48510
48511 2008-02-06  Bruno Haible  <bruno@clisp.org>
48512
48513         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48514         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48515         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48517         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48519         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48520         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48521         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48522         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48524         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48528         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48529         left-adjust flag.
48530         * tests/test-snprintf-posix.h (test_function): Likewise.
48531         * tests/test-sprintf-posix.h (test_function): Likewise.
48532         * tests/test-vasprintf-posix.c (test_function): Likewise.
48533         * doc/posix-functions/fprintf.texi: Update.
48534         * doc/posix-functions/printf.texi: Update.
48535         * doc/posix-functions/snprintf.texi: Update.
48536         * doc/posix-functions/sprintf.texi: Update.
48537         * doc/posix-functions/vfprintf.texi: Update.
48538         * doc/posix-functions/vprintf.texi: Update.
48539         * doc/posix-functions/vsnprintf.texi: Update.
48540         * doc/posix-functions/vsprintf.texi: Update.
48541         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48542
48543 2008-02-06  Bruno Haible  <bruno@clisp.org>
48544
48545         Fix bug introduced on 2008-01-26.
48546         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48547
48548 2008-02-06  Bruno Haible  <bruno@clisp.org>
48549
48550         Fix bug introduced on 2007-06-10.
48551         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48552         !NEED_PRINTF_FLAG_ZERO.
48553
48554 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48555
48556         getloadavg: use libperfstat on AIX5
48557         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48558
48559 2008-02-03  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/diffseq.h: Add comments about required #includes.
48562         Reported by Michael Biggs <gnulib@doubleplum.net>.
48563
48564 2008-02-01  Bruno Haible  <bruno@clisp.org>
48565
48566         * users.txt: Add gnuit.
48567
48568 2008-01-31  Bruno Haible  <bruno@clisp.org>
48569
48570         * lib/md4.c (set_uint32): Mark as inline.
48571         * lib/md5.c (set_uint32): Likewise.
48572         * lib/sha1.c (set_uint32): Likewise.
48573         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48574         * m4/md5.m4 (gl_MD5): Likewise.
48575         * m4/sha1.m4 (gl_SHA1): Likewise.
48576
48577 2008-01-31  Jim Meyering  <meyering@redhat.com>
48578
48579         Use "sizeof VAR", rather than a literal "4".
48580         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48581         * lib/md4.c (md4_read_ctx): Likewise.
48582         * lib/sha1.c (sha1_read_ctx): Likewise.
48583
48584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48585
48586         * tests/test-sha1.c: New file, based on test-md5.c.
48587
48588         * modules/crypto/sha1-tests: New file.
48589
48590 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48591
48592         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48593
48594 2008-01-31  Jim Meyering  <meyering@redhat.com>
48595
48596         Prefer "sizeof v" over the equivalent "4".
48597         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48598         * lib/md5.c (set_uint32): Likewise.
48599         * lib/sha1.c (set_uint32): Likewise.
48600
48601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48602
48603         * lib/sha1.c (set_uint32): Mark function as static.
48604
48605 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48606
48607         md2: clarify comments to say that alignment is not required.
48608         * lib/md2.h: Remove warning about alignment in comment.
48609         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48610         never been required.
48611
48612 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48613
48614         md4: adapt alignment constraint fix from sha1.
48615         * lib/md4.c (set_uint32): New function, from sha1.c
48616         (md4_read_ctx): Use it.
48617         (md4_finish_ctx): Doc fix.
48618         * lib/md4.h: Doc fix.
48619
48620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48621
48622         md5: adapt alignment constraint fix from sha1.
48623         * lib/md5.c (set_uint32): New function, from sha1.c
48624         (md5_read_ctx): Use it.
48625         (md5_finish_ctx): Doc fix.
48626         * lib/md5.h: Doc fix.
48627
48628 2008-01-30  Peter Palfrader  <weasel@debian.org>
48629
48630         sha1: remove the result buffer alignment constraint
48631         * lib/sha1.c (set_uint32): New function.
48632         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48633         constraint.
48634         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48635         * lib/sha1.h: Likewise.
48636
48637 2008-01-30  Andreas Schwab  <schwab@suse.de>
48638             Bruno Haible  <bruno@clisp.org>
48639
48640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48641         correct definition of LDBL_MIN_EXP.
48642
48643 2008-01-30  Karl Berry  <karl@gnu.org>
48644
48645         * config/srclist-update: try to preserve x bit on updates.
48646         * config/srclistvars.sh: update for karl.
48647
48648 2008-01-29  Jim Meyering  <meyering@redhat.com>
48649
48650         vasnprintf.c: Avoid warning about unused label
48651         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48652         "overflow" label definition and associated code with the
48653         same cpp condition that guards the sole use of that label.
48654
48655 2008-01-26  Bruno Haible  <bruno@clisp.org>
48656
48657         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48658         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48659         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48660         * lib/isnanl-nolibm.h (isnanl): Likewise.
48661         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48662
48663 2008-01-26  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48666         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48667
48668 2008-01-26  Bruno Haible  <bruno@clisp.org>
48669
48670         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48671         GCC >= 4.0 built-in.
48672         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48673
48674 2008-01-26  Bruno Haible  <bruno@clisp.org>
48675
48676         Rename isnan, applicable to 'double' only, to isnand.
48677         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48678         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48679         (configure.ac): Update.
48680         (Include): Replace "isnan.h" with "isnand.h".
48681         * m4/isnand.m4: Renamed from m4/isnan.m4.
48682         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48683         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48684         instead of isnan.c.
48685         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48686         instead of HAVE_ISNAN_IN_LIBC.
48687         (isnand): Renamed from isnan.
48688         * lib/isnand.c: New file.
48689         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48690         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48691         (Makefile.am): Update.
48692         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48693         Include isnand.h instead of isnan.h.
48694         (main): Test isnand instead of isnan.
48695         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48696         isnan-nolibm.
48697         * modules/frexp (Depends-on): Likewise.
48698         * modules/frexp-tests (Depends-on): Likewise.
48699         * modules/frexp-nolibm (Depends-on): Likewise.
48700         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48701         * modules/isfinite (Depends-on): Likewise.
48702         * modules/round-tests (Depends-on): Likewise.
48703         * modules/signbit (Depends-on): Likewise.
48704         * modules/signbit-tests (Depends-on): Likewise.
48705         * modules/snprintf-posix (Depends-on): Likewise.
48706         * modules/sprintf-posix (Depends-on): Likewise.
48707         * modules/trunc-tests (Depends-on): Likewise.
48708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48709         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48710         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48711         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48712         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48713         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48714         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48715         * modules/vasnprintf-posix (Depends-on): Likewise.
48716         * modules/vasprintf-posix (Depends-on): Likewise.
48717         * modules/vfprintf-posix (Depends-on): Likewise.
48718         * modules/vsnprintf-posix (Depends-on): Likewise.
48719         * modules/vsprintf-posix (Depends-on): Likewise.
48720         * lib/frexp.c: Include isnand.h instead of isnan.h.
48721         (ISNAN): Set to isnand instead of isnan.
48722         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48723         (gl_isfinited): Use isnand instead of isnan.
48724         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48725         (gl_signbitd): Use isnand instead of isnan.
48726         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48727         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48728         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48729         (main): Use isnand instead of isnan.
48730         * tests/test-round1.c: Include isnand.h.
48731         (main): Use isnand instead of isnan.
48732         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48733         (ISNAN): Set to isnand instead of isnan.
48734         * tests/test-trunc1.c: Include isnand.h.
48735         (main): Use isnand instead of isnan.
48736         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48737         (equal): Use isnand instead of isnan.
48738         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48739         isnand-nolibm.
48740         * NEWS: Mention the change.
48741
48742 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48743             Bruno Haible  <bruno@clisp.org>
48744
48745         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48746         the GCC builtins for signbits are present and set
48747         REPLACE_SIGNBIT_USING_GCC if so.
48748         * lib/math.in.h (signbit): Define using GCC builtins if
48749         REPLACE_SIGNBIT_USING_GCC is set.
48750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48751         REPLACE_SIGNBIT_USING_GCC.
48752         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48753
48754 2008-01-25  Jim Meyering  <meyering@redhat.com>
48755
48756         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48757         * lib/poll.c: Include <config.h>, not "config.h".
48758         * tests/test-getaddrinfo.c: Likewise.
48759
48760 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48761
48762         * modules/sockets-tests: New file.
48763
48764 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48765
48766         * modules/sockets: New module, can be used to call WSA_Startup and
48767         WSA_Cleanup when needed.
48768
48769         * lib/sockets.h, lib/sockets.c: New files.
48770
48771         * m4/sockets.m4: New file.
48772
48773         * tests/test-sockets.c: New file.
48774
48775 2008-01-19  Bruno Haible  <bruno@clisp.org>
48776
48777         * doc/posix-headers: Renamed from doc/headers.
48778         * doc/posix-functions: Renamed from doc/functions.
48779         * doc/gnulib.texi: Update.
48780
48781 2008-01-19  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/glibc-functions/strcasestr.texi: Include contents of
48784         doc/functions/strcasestr.texi, fixing the list of platforms.
48785         * doc/functions/strcasestr.texi: Remove file.
48786
48787 2008-01-19  Bruno Haible  <bruno@clisp.org>
48788
48789         * doc/glibc-functions/memmem.texi: Include contents of
48790         doc/functions/memmem.texi.
48791         * doc/functions/memmem.texi: Remove file.
48792
48793 2008-01-18  Bruno Haible  <bruno@clisp.org>
48794
48795         * doc/glibc-functions/*.texi: New files.
48796         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48797         to use the new files.
48798
48799 2008-01-17  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-gethostname.c (main): Fix printf statement.
48802
48803 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48804
48805         * modules/gethostname-tests: New file.
48806
48807         * tests/test-gethostname.c: New file.
48808
48809 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48810
48811         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48812         used by the UNAME case.  Reported by Bruno Haible
48813         <bruno@clisp.org>.
48814
48815 2008-01-17  Eric Blake  <ebb9@byu.net>
48816
48817         Convert c-strcasestr to be more efficient.
48818         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48819         (Depends-on): Add c-strcase, remove malloca, strnlen.
48820         * tests/test-c-strcasestr.c (main): Enhance test.
48821         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48822
48823 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48824
48825         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48826         Use it in creating po/Makevars.
48827
48828 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48829
48830         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48831         Applications that requires it should initialize libgcrypt
48832         manually.
48833
48834 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48835
48836         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48837
48838 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48839
48840         Fix problem with getdate on mingw32 reported by Simon Josefsson
48841         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48842         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48843         tzname", when deciding whether to declare tzname.
48844         * lib/strftime.c (tzname): Likewise.
48845
48846 2008-01-15  Bruno Haible  <bruno@clisp.org>
48847
48848         Work around a MacOS X 10.5 bug in frexpl().
48849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48850         * doc/functions/frexpl.texi: Document the bug.
48851         Reported by Elias Pipping <pipping@gentoo.org>.
48852
48853 2008-01-14  Eric Blake  <ebb9@byu.net>
48854
48855         Touch up previous patch.
48856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48857         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48858
48859         Convert strcasestr module to use Two-Way algorithm.
48860         * modules/strcasestr-simple: New module, based on the old
48861         strcasestr, but with Two-Way rather than KMP.
48862         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48863         * lib/string.in.h (rpl_strcasestr): Declare.
48864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48865         performance.
48866         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48867         * modules/string (Makefile.am): Support strcasestr.
48868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48869         * modules/strcasestr-tests (Depends-on): Check for alarm.
48870         * tests/test-strcasestr.c: Augment test.
48871         * lib/str-two-way.h: Clean up stray macro.
48872         * NEWS: Document new module.
48873         * MODULES.html.sh (string handling): Likewise.
48874         * doc/functions/strcasestr.texi: New file.
48875         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48876         here, since it is not a POSIX function.
48877
48878 2008-01-14  Colin Watson  <cjwatson@debian.org>
48879             Bruno Haible  <bruno@clisp.org>
48880
48881         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48882         works fine; if not, set REPLACE_STRSIGNAL.
48883         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48885         REPLACE_STRSIGNAL.
48886         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48887         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48888         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48889
48890 2008-01-14  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/strsignal (Include): Change to <string.h>.
48893
48894 2008-01-14  Colin Watson  <cjwatson@debian.org>
48895
48896         * modules/argp (Notice): Add a notice recommending to change
48897         XGETTEXT_OPTIONS.
48898         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48899
48900 2008-01-13  Colin Watson  <cjwatson@debian.org>
48901
48902         * modules/strsignal-tests: New file.
48903         * tests/test-strsignal.c: New file.
48904
48905         * lib/strsignal.c: New file, from glibc with modifications.
48906         * lib/siglist.h: New file, from glibc with modifications.
48907         * lib/string.in.h (strsignal): New declaration.
48908         * m4/strsignal.m4: New file.
48909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48910         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48911         * modules/strsignal: New file.
48912         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48913         HAVE_DECL_STRSIGNAL.
48914
48915 2008-01-13  Bruno Haible  <bruno@clisp.org>
48916
48917         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48918         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48921
48922 2008-01-13  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48925         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48926         * lib/argp.h (__attribute__): Likewise.
48927         * lib/c-stack.c (__attribute__): Likewise.
48928         * lib/error.h (__attribute__): Likewise.
48929         * lib/fts.c (__attribute__): Likewise.
48930         * lib/openat.h (__attribute__): Likewise.
48931         * lib/stdio.in.h (__attribute__): Likewise.
48932         * lib/string.in.h (__attribute__): Likewise.
48933         * lib/utimens.c (__attribute__): Likewise.
48934         * lib/vasnprintf.h (__attribute__): Likewise.
48935         * lib/xalloc.h (__attribute__): Likewise.
48936         * lib/xprintf.h (__attribute__): Likewise.
48937         * lib/xstrtol.h (__attribute__): Likewise.
48938         * lib/xvasprintf.h (__attribute__): Likewise.
48939
48940 2008-01-12  Bruno Haible  <bruno@clisp.org>
48941
48942         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48943         * doc/glibc-headers/a.out.texi: New file.
48944         * doc/glibc-headers/aliases.texi: New file.
48945         * doc/glibc-headers/alloca.texi: New file.
48946         * doc/glibc-headers/ar.texi: New file.
48947         * doc/glibc-headers/argp.texi: New file.
48948         * doc/glibc-headers/argz.texi: New file.
48949         * doc/glibc-headers/byteswap.texi: New file.
48950         * doc/glibc-headers/crypt.texi: New file.
48951         * doc/glibc-headers/endian.texi: New file.
48952         * doc/glibc-headers/envz.texi: New file.
48953         * doc/glibc-headers/err.texi: New file.
48954         * doc/glibc-headers/error.texi: New file.
48955         * doc/glibc-headers/execinfo.texi: New file.
48956         * doc/glibc-headers/fpu_control.texi: New file.
48957         * doc/glibc-headers/fstab.texi: New file.
48958         * doc/glibc-headers/fts.texi: New file.
48959         * doc/glibc-headers/getopt.texi: New file.
48960         * doc/glibc-headers/ieee754.texi: New file.
48961         * doc/glibc-headers/ifaddrs.texi: New file.
48962         * doc/glibc-headers/libintl.texi: New file.
48963         * doc/glibc-headers/mcheck.texi: New file.
48964         * doc/glibc-headers/mntent.texi: New file.
48965         * doc/glibc-headers/obstack.texi: New file.
48966         * doc/glibc-headers/paths.texi: New file.
48967         * doc/glibc-headers/printf.texi: New file.
48968         * doc/glibc-headers/pty.texi: New file.
48969         * doc/glibc-headers/resolv.texi: New file.
48970         * doc/glibc-headers/shadow.texi: New file.
48971         * doc/glibc-headers/sysexits.texi: New file.
48972         * doc/glibc-headers/ttyent.texi: New file.
48973
48974 2008-01-12  Jim Meyering  <meyering@redhat.com>
48975
48976         announce-gen: emit Gnulib's git-based version string.
48977         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48978         New option --gnulib-version=V, where V is expected to be
48979         the output of running git describe in the gnulib directory.
48980         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48981         not useful, and plan to stop publishing an xdelta file with each
48982         coreutils release.
48983
48984         * build-aux/announce-gen: Also check for lzma-compressed files.
48985
48986 2008-01-11  Bruno Haible  <bruno@clisp.org>
48987
48988         * tests/test-memmem.c (main): Increase maximum allowed time.
48989         * tests/test-strstr.c (main): Likewise.
48990
48991 2008-01-11  Bruno Haible  <bruno@clisp.org>
48992
48993         * doc/functions/memmem.texi: Add more precisions about platforms.
48994         * doc/functions/strstr.texi: Likewise.
48995
48996 2008-01-10  Eric Blake  <ebb9@byu.net>
48997
48998         * m4/strstr.m4: Delete cruft from copy-n-paste.
48999         Reported by Bruno Haible.
49000
49001 2008-01-10  Bruno Haible  <bruno@clisp.org>
49002
49003         Make c-strstr rely on strstr.
49004         * lib/c-strstr.c: Don't include str-kmp.h.
49005         (c_strstr): Define in terms of strstr.
49006         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49007         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49008
49009 2008-01-10  Bruno Haible  <bruno@clisp.org>
49010
49011         * doc/gnulib.texi (String Functions in C Locale): New section.
49012         * doc/c-ctype.texi: New file.
49013         * doc/c-strcase.texi: New file.
49014         * doc/c-strcaseeq.texi: New file.
49015         * doc/c-strcasestr.texi: New file.
49016         * doc/c-strstr.texi: New file.
49017         * doc/c-strtod.texi: New file.
49018         * doc/c-strtold.texi: New file.
49019
49020 2008-01-10  Eric Blake  <ebb9@byu.net>
49021
49022         * lib/relocatable.h: Fix a comment.
49023
49024 2008-01-10  Eric Blake  <ebb9@byu.net>
49025
49026         Share two-way algorithm.
49027         * lib/str-two-way.h: New file, merged from...
49028         * lib/memmem.c: ...here...
49029         * lib/strstr.c: ...and here.
49030         * modules/memmem (Files): Use it.
49031         * modules/strstr (Files): Likewise.
49032
49033         Avoid quadratic strstr implementations.
49034         * lib/strstr.c: New file.
49035         * m4/strstr.m4: Likewise.
49036         * modules/strstr: Likewise.
49037         * modules/strstr-tests: Likewise.
49038         * tests/test-strstr.c: Likewise.
49039         * lib/string.in.h (rpl_strstr): Declare.
49040         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49042         * modules/string (Makefile.am): Likewise.
49043         * MODULES.html.sh (string handling): Mention new module.
49044         * doc/functions/strstr.texi (strstr): Document the bug.
49045
49046 2008-01-10  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/relocatable.h (relocate): State whether result is freshly
49049         allocated or not.
49050         * lib/relocatable.c (relocate): Return a freshly allocated string
49051         instead of a pointer to a privately held string.
49052         Reported by Sylvain Beucler <beuc@gnu.org>.
49053
49054 2008-01-10  Colin Watson  <cjwatson@debian.org>
49055
49056         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49057         s/S_ISNLK/S_ISLNK/.
49058
49059 2008-01-09  Bruno Haible  <bruno@clisp.org>
49060
49061         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49062         and other files.
49063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49064         if it's only a guess.
49065         * modules/memmem: Simplify by depending on memmem-simple.
49066
49067 2008-01-09  Bruno Haible  <bruno@clisp.org>
49068
49069         Work around OpenBSD 4.0 tdelete() bug.
49070         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49071         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49072         macros and don't redefine the enum values.
49073         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49074         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49075         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49076
49077 2008-01-09  Bruno Haible  <bruno@clisp.org>
49078
49079         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49080         (main): Don't perform the tests if setlocale did not install a UTF-8
49081         locale. Needed on OpenBSD 4.0.
49082         * modules/wcwidth-tests (Depends-on): Add localcharset.
49083
49084 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49085
49086         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49087         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49088         * NEWS: announce this.
49089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49090
49091 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49092         and Eric Blake  <ebb9@byu.net>
49093
49094         Add memmem-simple module.
49095         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49096         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49097         * modules/memmem-simple: New file.
49098         * modules/memmem (Description): Tweak.
49099         * MODULES.html.sh (string handling): Mention new module.
49100         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49101         addressed by memmem-simple.
49102         * NEWS: Document the difference.
49103
49104 2008-01-09  Eric Blake  <ebb9@byu.net>
49105
49106         Give gcc some memmem optimization hints.
49107         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49108         (strcasestr): Declare as pure.
49109         * modules/memmem (Maintainer): Claim my implementation.
49110
49111 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49112
49113         Support AIX 6.1 and higher.
49114         * build-aux/config.libpath: Likewise.
49115         * build-aux/config.rpath: Likewise.
49116
49117 2008-01-08  Jim Meyering  <meyering@redhat.com>
49118             Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49121         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49122         Reported by Peter Fales in
49123         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49124
49125 2008-01-08  Bruno Haible  <bruno@clisp.org>
49126
49127         * modules/unictype/category-of (Depends-on): Add
49128         unictype/category-none.
49129         * modules/unictype/category-and-tests (Depends-on): Add
49130         unictype/category-{L,N,Lu,Nd}.
49131         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49132         * modules/unictype/category-or-tests (Depends-on): Add
49133         unictype/category-{L,N}.
49134         * modules/unictype/category-name-tests (Depends-on): Add
49135         unictype/category-{Z,Nl}.
49136         Reported by Simon Josefsson.
49137
49138 2008-01-08  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49141         convention better.
49142         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49143         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49144         Reported by Peter Miller <millerp@canb.auug.org.au>.
49145
49146 2008-01-08  Eric Blake  <ebb9@byu.net>
49147
49148         Rewrite memmem to guarantee linear complexity without malloc.
49149         * lib/memmem.c (memmem): Use Two-Way rather than
49150         Knuth-Morris-Pratt, to allow O(1) space usage.
49151         (critical_factorization, two_way_short_needle)
49152         (two_way_long_needle): New functions.
49153         (knuth_morris_pratt): Delete.
49154         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49155         Add stdint.
49156         * tests/test-memmem.c (main): Add tests for periodic needle and
49157         sublinear performance.
49158         * doc/functions/memmem.texi (memmem): Document other deficiencies
49159         in cygwin and older glibc.
49160
49161 2008-01-08  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49164         augmentation.
49165
49166 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49167
49168         Add a configure time option: --disable-acl.
49169         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49170         AC_ARG_ENABLE(acl).
49171
49172 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49173
49174         * tests/test-localename.c: Don't include obsolete "setenv.h".
49175
49176         * modules/localename-tests (Depends-on): Need unsetenv.
49177
49178 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49179
49180         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49181
49182 2008-01-06  Colin Watson  <cjwatson@debian.org>
49183
49184         * users.txt: Add man-db.
49185
49186 2008-01-07  Bruno Haible  <bruno@clisp.org>
49187
49188         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49189         previous section name.
49190
49191 2008-01-07  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/progname.c (set_program_name): Don't strip off a leading
49194         "lt-" prefix outside a .libs directory.
49195         Suggested by Paul Eggert.
49196
49197 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49198             Bruno Haible  <bruno@clisp.org>
49199
49200         Improve memory cleanup in 'relocatable' module.
49201         * lib/relocatable.h (compute_curr_prefix): Change return type to
49202         'char *'.
49203         * lib/relocatable.c (compute_curr_prefix): Change return type to
49204         'char *'. Free curr_installdir after use.
49205         (relocate): Free curr_prefix_better after use.
49206         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49207
49208 2008-01-01  Bruno Haible  <bruno@clisp.org>
49209
49210         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49211         failure on older glibc systems.
49212         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49213
49214 2008-01-05  Eric Blake  <ebb9@byu.net>
49215
49216         Avoid quadratic system memmem.
49217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49218         Reported by Ralf Wildenhues.
49219
49220         Fix memmem test for mingw.
49221         * modules/memmem-tests (configure.ac): Check for alarm.
49222         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49223         it.
49224         * doc/functions/memmem.texi: New file.
49225         * doc/gnulib.texi (Function Substitutes): Add memmem.
49226         Reported by Bruno Haible.
49227
49228 2008-01-04  Bruno Haible  <bruno@clisp.org>
49229
49230         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49231         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49232         gl_HEADER_STRING_H_DEFAULTS.
49233
49234 2008-01-04  Eric Blake  <ebb9@byu.net>
49235
49236         Shorten duration of memmem test.
49237         * tests/test-memmem.c (main): Use alarm to declare failure if test
49238         is taking too long.
49239         Reported by Ralf Wildenhues.
49240
49241 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49242
49243         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49244         string, needed by strerror.
49245
49246 2008-01-03  Colin Watson  <cjwatson@debian.org>
49247             Bruno Haible  <bruno@clisp.org>
49248
49249         * doc/gnulib-tool.texi (Localization): New section.
49250
49251 2008-01-02  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49254         variables to 'unsigned char *' type.
49255         Reported by Paul Eggert.
49256
49257 2008-01-02  Jim Meyering  <jim@meyering.net>
49258
49259         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49260
49261 2007-12-31  Jim Meyering  <jim@meyering.net>
49262
49263         Avoid use of private FTS type name.
49264         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49265
49266 2007-12-30  Karl Berry  <karl@gnu.org>
49267
49268         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49269         work around defect in Texinfo and/or the standalone Info browser.
49270
49271 2007-12-30  Bruno Haible  <bruno@clisp.org>
49272
49273         Unify 5 copies of the KMP code.
49274         * lib/str-kmp.h: New file.
49275         * lib/c-strcasestr.c: Include str-kmp.h.
49276         (knuth_morris_pratt): Remove function.
49277         (c_strcasestr): Update.
49278         * lib/c-strstr.c: Include str-kmp.h.
49279         (knuth_morris_pratt): Remove function.
49280         (c_strcasestr): Update.
49281         * lib/mbscasestr.c: Include str-kmp.h.
49282         (knuth_morris_pratt_unibyte): Remove function.
49283         * lib/mbsstr.c: Include str-kmp.h.
49284         (knuth_morris_pratt_unibyte): Remove function.
49285         * lib/strcasestr.c: Include str-kmp.h.
49286         (knuth_morris_pratt): Remove function.
49287         (strcasestr): Update.
49288         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49289         * modules/c-strstr (Files): Likewise.
49290         * modules/mbscasestr (Files): Likewise.
49291         * modules/mbsstr (Files): Likewise.
49292         * modules/strcasestr (Files): Likewise.
49293         Suggested by Paul Eggert.
49294
49295 2007-12-30  Bruno Haible  <bruno@clisp.org>
49296
49297         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49298         defined.
49299
49300 2007-12-30  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/xmalloca.h: Include xalloc.h.
49303         (xnmalloca): New macro.
49304
49305 2007-12-30  Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/malloca.h (nmalloca): New macro.
49308         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49309         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49310         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49311         knuth_morris_pratt_multibyte): Likewise.
49312         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49313         knuth_morris_pratt_multibyte): Likewise.
49314         * lib/memmem.c (knuth_morris_pratt): Likewise.
49315         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49316
49317 2007-12-25  Bruno Haible  <bruno@clisp.org>
49318
49319         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49320         * lib/glob.c: Don't include openat.h.
49321         (link_exists2_p): Add back the code that deals with the
49322         !GLOB_ALTDIRFUNC case.
49323         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49324         let it do the filename concatenation.
49325         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49326         * modules/glob (Depends-on): Remove openat.
49327
49328 2007-12-31  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/dirfd (License): Change to LGPLv2+.
49331         Approved by Jim Meyering.
49332
49333 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49334
49335         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49336         when multiplying M by sizeof (size_t).
49337
49338 2007-12-10  Martin Lambers  <marlam@marlam.de>
49339
49340         Override getpagesize on mingw.
49341         * lib/getpagesize.c: New file.
49342         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49343         * modules/getpagesize (Files): Add lib/getpagesize.c.
49344         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49346         REPLACE_GETPAGESIZE.
49347         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49348
49349 2007-12-25  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/localcharset (Notice): New field.
49352         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49353         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49354
49355 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49356             Bruno Haible  <bruno@clisp.org>
49357
49358         Avoid using the syntax symbol() in formatted documentation.
49359         * MODULES.html.sh (func_module): When replacing symbol() with a
49360         hyperlink, remove the parentheses. Show an error if some remain.
49361         Recognize and render the '...' syntax.
49362         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49363         Rework. Add paragraph about GCC's inlining.
49364         * doc/alloca.texi: Likewise.
49365         * doc/error.texi: Remove parentheses from symbol reference.
49366         * doc/gnulib-intro.texi: Likewise.
49367         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49368         * modules/fnmatch (Description): Reword to say "the ... function".
49369         * modules/full-read (Description): Likewise.
49370         * modules/full-write (Description): Likewise.
49371         * modules/safe-read (Description): Likewise.
49372         * modules/safe-write (Description): Likewise.
49373         * modules/strchrnul (Description): Likewise.
49374         * modules/trim (Description): Likewise.
49375         * modules/error (Description): Remove parentheses from symbol
49376         references.
49377         * modules/verror (Description): Likewise.
49378         Reported by Karl Berry.
49379
49380 2007-12-25  Bruno Haible  <bruno@clisp.org>
49381
49382         Fixup after 2007-10-16 commit.
49383         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49384
49385 2007-12-24  Bruno Haible  <bruno@clisp.org>
49386
49387         Make --enable-relocatable work with DESTDIR.
49388         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49389         to compute installdir from destprog.
49390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49391         also set the RELOC_DESTDIR variable.
49392         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49393
49394 2007-12-24  Bruno Haible  <bruno@clisp.org>
49395
49396         Fix link error due to xalloc_die().
49397         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49398         of xreadlink.
49399         * lib/relocwrapper.c: Update comments.
49400         * build-aux/install-reloc: Remove xreadlink.c from file list.
49401         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49402         xreadlink.c.
49403         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49404
49405 2007-12-24  Bruno Haible  <bruno@clisp.org>
49406
49407         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49408         * lib/setenv.h: Remove file.
49409         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49410         lib/setenv.h.
49411         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49412         (Depends-on): Add stdlib.
49413         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49414         gl_FUNC_UNSETENV.
49415         (Include): Replace setenv.h with <stdlib.h>.
49416         * modules/unsetenv: New file.
49417         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49418         * lib/unsetenv.c: Include <stdlib.h> first.
49419         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49420         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49421         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49422         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49423         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49424         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49426         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49427         * doc/functions/unsetenv.texi: Update.
49428         * modules/xsetenv (Depends-on): Add unsetenv.
49429         * modules/getdate (Depends-on): Likewise.
49430         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49431         * lib/xsetenv.c: Don't include setenv.h.
49432         * lib/getdate.y: Likewise.
49433         * lib/relocwrapper.c: Likewise.
49434         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49435         (Depends-on): Add stdlib.
49436         * NEWS: Mention the changes.
49437         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49438
49439 2007-12-23  Bruno Haible  <bruno@clisp.org>
49440
49441         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49442         indentation.
49443
49444 2007-12-23  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/c-strcasestr.c: Add more comments.
49447         * lib/c-strstr.c: Likewise.
49448         * lib/mbscasestr.c: Likewise.
49449         * lib/mbsstr.c: Likewise.
49450         * lib/strcasestr.c: Likewise.
49451         * lib/memmem.c: Likewise.
49452
49453 2007-12-23  Bruno Haible  <bruno@clisp.org>
49454
49455         * tests/test-memmem.c: Include <string.h> first.
49456
49457 2007-12-22  Bruno Haible  <bruno@clisp.org>
49458
49459         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49460         the contents of $testsbase.
49461         Reported by Ralf Wildenhues.
49462
49463 2007-12-22  Bruno Haible  <bruno@clisp.org>
49464
49465         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49466         two variables local_ldadd_before, local_ldadd_last.
49467
49468 2007-12-20  Eric Blake  <ebb9@byu.net>
49469
49470         Work around circular library issue when cross-compiling.
49471         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49472         that progname.o does not need to pull in rpl_memcmp.
49473
49474 2007-12-19  Eric Blake  <ebb9@byu.net>
49475
49476         Fix memmem to avoid O(n^2) worst-case complexity.
49477         * lib/memmem.c (knuth_morris_pratt): New function.
49478         (memmem): Use it if first few naive iterations fail.
49479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49480         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49481         * modules/memchr (License): Likewise.
49482         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49483         malloca.
49484         * tests/test-memmem.c: Rewrite, borrowing ideas from
49485         test-mbsstr1.c; the old version wouldn't even compile!
49486         * modules/memmem-tests: New file.
49487         * lib/string.in.h (rpl_memmem): Add declaration.
49488         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49490         REPLACE_MEMMEM.
49491
49492 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49493
49494         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49495         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49496         before any system include files, and undef after them all.  This
49497         should fix a problem on VMS reported by John E. Malmberg in
49498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49499
49500 2007-12-17  Eric Blake  <ebb9@byu.net>
49501
49502         Revert addition of verify, for BSD/OS.
49503         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49504         can't handle large files, for the sake of obsolete platforms.
49505         * modules/fseeko (Depends-on): Remove verify.
49506         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49507         * doc/functions/ftello.texi (ftello): Likewise.
49508         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49509         Reported by Larry Jones.
49510
49511 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49512
49513         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49514         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49515
49516 2007-12-17  Jim Meyering  <meyering@redhat.com>
49517
49518         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49519         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49520         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49521         * modules/getcwd (Depends-on): Add openat.
49522         Reported by Petr Salinger.
49523
49524 2007-12-17  Bruno Haible  <bruno@clisp.org>
49525
49526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49527         avoid a segmentation fault of the configure test on x86_64 systems.
49528
49529 2007-12-15  Jim Meyering  <meyering@redhat.com>
49530
49531         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49532
49533 2007-12-13  Eric Blake  <ebb9@byu.net>
49534
49535         Another fseek test.
49536         * tests/test-fseek.c (main): Also test ungetc handling.
49537         * tests/test-fseeko.c (main): Likewise.
49538         * modules/fseeko (Depends-on): Add verify.
49539         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49540         large.
49541         Reported by Larry Jones.
49542
49543         Fix fseeko on mingw.
49544         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49545         seek.
49546
49547         Beef up fseek tests.
49548         * tests/test-fseek.c (main): Also test eof handling.
49549         * tests/test-fseeko.c (main): Likewise.
49550         Reported by Larry Jones.
49551
49552 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49553
49554         Fix fseeko on BSD-based platforms.
49555         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49556         successful seek.
49557
49558 2007-12-12  Eric Blake  <ebb9@byu.net>
49559
49560         Allow circular dependency of separate libtests.a
49561         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49562         when use_libtests.
49563
49564 2007-12-11  Eric Blake  <ebb9@byu.net>
49565
49566         Fix bug with -0.0L in previous patch.
49567         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49568         * tests/test-isnan.c (main): Also test on zeroes.
49569         * tests/test-isnanf.c (main): Likewise.
49570         * tests/test-isnanl.h (main): Likewise.
49571
49572         Detect pseudo-denormals on x86 even when cross-compiling.
49573         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49574         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49575         invalid bit patterns that happen to satisfy ==.
49576
49577         Avoid link failures with separate libtests.a.
49578         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49579         last, to satisfy circular dependencies.
49580
49581 2007-12-11  Eric Blake  <ebb9@byu.net>
49582         and Bruno Haible  <bruno@clisp.org>
49583
49584         Fix OpenBSD 4.0 <float.h> handling of long double.
49585         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49586         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49587         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49588
49589 2007-12-11  Jim Meyering  <meyering@redhat.com>
49590
49591         * users.txt: Add libvirt.
49592
49593         Support versions of autoconf prior to 2.59c.
49594         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49595         if it is not already defined.
49596
49597 2007-12-09  Bruno Haible  <bruno@clisp.org>
49598
49599         Let 'gnulib-tool --import' collect sources needed for the tests in
49600         tests/ rather than in lib/.
49601         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49602         argument. If true, add rules to generate libtests.a, and put libtests.a
49603         into $(LDADD). Consider source files in subdirectories and set
49604         uses_subdirs.
49605         (func_emit_initmacro_start, func_emit_initmacro_end,
49606         func_emit_initmacro_done): Pass all arguments explicitly.
49607         (func_import): Determine two module lists main_modules,
49608         testsrelated_modules. Determine use_libtests. Determine two variables
49609         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49610         instead of just sed_transform_lib_file. Determine two variables
49611         main_files and testsrelated_files. Compute 'files' as the union of
49612         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49613         func_add_or_update. In the generated gnulib-comp.m4, collect the
49614         object files for tests/ in different variables than those for lib/.
49615         Substitute LIBTESTS_LIBDEPS.
49616         (func_create_testdir): Combine the uses_subdirs results from
49617         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49618
49619 2007-12-09  Bruno Haible  <bruno@clisp.org>
49620
49621         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49622         the build-aux directory.
49623
49624 2007-12-09  Bruno Haible  <bruno@clisp.org>
49625
49626         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49627         introduced on 2006-09-09.
49628
49629 2007-12-07  Jim Meyering  <meyering@redhat.com>
49630
49631         Let these macros work also with autoconf-2.59.
49632         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49633         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49634         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49635
49636 2007-12-06  Jim Meyering  <meyering@redhat.com>
49637
49638         Avoid a configure-time syntax error in gl_FUNC_ACL.
49639         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49640         function in each branch, before testing the cache variable.
49641
49642 2007-12-04  Eric Blake  <ebb9@byu.net>
49643
49644         Make scripts executable.
49645         * build-aux/config.guess: Add execute permissions.
49646         * build-aux/config.sub: Likewise.
49647         * build-aux/gendocs.sh: Likewise.
49648
49649         Fix frexp on mingw.
49650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49651         cross-compiling.
49652         * doc/functions/frexp.texi (frexp): Document the bug.
49653
49654         Make cygwin fseeko check more reliable.
49655         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49656         version numbers, rather than unrelated feature check.
49657         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49658         * doc/functions/ftello.texi (ftello): Likewise.
49659         Reported by Bruno Haible.
49660
49661         * m4/strerror.m4: Bump version number.
49662
49663 2007-12-03  Bruno Haible  <bruno@clisp.org>
49664
49665         * doc/functions/mprotect.texi: Mention the mingw problem.
49666
49667 2007-12-03  Eric Blake  <ebb9@byu.net>
49668
49669         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49670         REPLACE_STRERROR is initialized before this macro.
49671
49672 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49675         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49676         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49677         put -lsec in even for programs other than 'ls'.  This fixes a problem
49678         for gettext reported by Bruno Haible in
49679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49680         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49681         Add support for Solaris 10.  This isn't efficient, but should get the
49682         job done for now.
49683
49684 2007-12-03  James Youngman  <jay@gnu.org>
49685
49686         * doc/regexprops-generic.texi: change "an close-group" to "a
49687         close-group" and "illegal" to "not allowed".
49688
49689 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49690
49691         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49692         pr_byname.h. Needed for the rare case when the maintainer has done
49693         "make maintainer-clean" in the source directory and then attempts a
49694         build outside the source directory.
49695         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49696         scripts_byname.h.
49697
49698 2007-12-02  Martin Lambers <marlam@marlam.de>
49699             Bruno Haible  <bruno@clisp.org>
49700
49701         * lib/getpagesize.h: Remove file.
49702         * lib/unistd.in.h: Include declaration of getpagesize here.
49703         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49704         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49705         HAVE_SYS_PARAM_H.
49706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49707         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49708         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49709         (Depends-on): Add unistd.
49710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49711         (Include): Use <unistd.h> instead of getpagesize.h.
49712         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49713         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49714         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49715         gl_GETPAGESIZE invocation, already handled by module dependency.
49716         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49717
49718 2007-12-02  Bruno Haible  <bruno@clisp.org>
49719
49720         * modules/strings-tests: New file.
49721         * tests/test-strings.c: New file.
49722
49723         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49724         * lib/strings.in.h: New file.
49725         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49726         * m4/strings_h.m4: New file.
49727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49728         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49729         * modules/strings: New file.
49730         * modules/string (Makefile.am): Update.
49731         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49732         Reported by Karl Berry.
49733
49734 2007-12-01  Eric Blake  <ebb9@byu.net>
49735
49736         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49737         accomodate fix in cygwin 1.5.25.
49738
49739 2007-12-01  Jim Meyering  <meyering@redhat.com>
49740
49741         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49742         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49743         that would inhibit utf8-optimization of a regexp containing line-
49744         or buffer-anchors, e.g., `^', `$'.
49745
49746 2007-11-30  Bruno Haible  <bruno@clisp.org>
49747
49748         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49749         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49750         glthread_recursive_lock_init.
49751         * lib/lock.c (glthread_recursive_lock_init)
49752         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49754
49755 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         New function qset_acl, like set_acl but with syscall semantics.
49758         * lib/acl.h (qset_acl): New decl.
49759         * lib/acl.c (qset_acl): New function.
49760         (set_acl): Use new function.  Use more-consistent diagnostics.
49761
49762 2007-11-28  Jim Meyering  <meyering@redhat.com>
49763
49764         * modules/physmem (License): Change from GPL to LGPLv2+.
49765
49766 2007-11-26  Bruno Haible  <bruno@clisp.org>
49767
49768         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49769         'long double' type has excess precision.
49770         Reported by Jim Meyering in
49771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49772
49773 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49774
49775         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49776         Sync from <http://gnu.org/licenses>.
49777         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49778         with license text from same location.
49779         * doc/maintain.texi, doc/standards.texi:  Sync from
49780         <http://savannah.gnu.org/projects/gnustandards>.
49781
49782 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49783         and Jim Meyering  <meyering@redhat.com>
49784
49785         Adjust getdate' grammar to accept a slightly more regular language.
49786         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49787         Before, the former was rejected.
49788         * lib/getdate.y (digits_to_date_time): New function, factored
49789         out of ...
49790         (number): ...here.  Just call digits_to_date_time.
49791         (hybrid): New non-terminal to handle an <unsigned number,
49792         signed relative offset> sequence consistently.
49793
49794 2007-11-18  Jim Meyering  <meyering@redhat.com>
49795
49796         Pull my changes from coreutils:
49797         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49798         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49799         use of $gnulib_tool_option_extras, so that it's separated from the
49800         preceding argument.
49801
49802         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49803         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49804         parent destination directories before copying a file into place.
49805
49806 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49807
49808         bootstrap: work also with 4-argument variant of AC_INIT
49809         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49810
49811 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49812
49813         Port test-getaddrinfo to Solaris.
49814         Problem reported by Bruno Haible in
49815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49816         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49817         explanation of setting 'hints'.
49818         Don't reject an implementation merely because it returns EAI_SERVICE.
49819         (EAI_SERVICE): Define to 0 if not defined.
49820
49821 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49822
49823         The license of gnu-make and posix-shell is now "GPLed build tool".
49824         * modules/gnu-make (License): Likewise.
49825         * modules/posix-shell (License): Likewise.
49826
49827         New module posix-shell, for determining a POSIX shell
49828         or perhaps something that is close enough to a POSIX shell.
49829         * m4/posix-shell.m4: New file.
49830         * modules/posix-shell: New file.
49831
49832         * MODULES.html.sh: Mention new module.
49833
49834         New module gnu-make, for determining whether we're using GNU Make.
49835         * m4/gnu-make.m4: New file.
49836         * modules/gnu-make: New file.
49837         * MODULES.html.sh: Mention new module.
49838
49839 2007-11-14  Jim Meyering  <meyering@redhat.com>
49840
49841         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49842         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49843         use this macro to create a function _definition_.
49844         Remove useless "#undef ARGMATCH_DIE".
49845
49846 2007-11-14  Bruno Haible  <bruno@clisp.org>
49847
49848         * lib/config.charset: Update for OpenBSD 4.1.
49849         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49850
49851 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49852
49853         Document 64-bit #if problems in stdint.texi.
49854         * doc/headers/stdint.texi (stdint.h): Mention problems with
49855         64-bit-#if, and how to work around them.
49856
49857         Don't insist on 'long long int' support in the preprocessor.  It
49858         breaks too many things.  For example, PRIdMAX still uses a 'long
49859         long int' format with the latest Sun compiler, even though
49860         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49861         preprocessor problem.  This causes the latest coreutils to dump
49862         core on Solaris 10 sparc with the Sun C compiler.
49863         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49864         the troublesome expressions at configure-time, not at #if-time.
49865         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49866         preprocessor.
49867         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49868         compile-time C checks, done at 'configure'-time.
49869         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49870         * modules/inttypes (Makefile): Substitute the new symbols that
49871         gl_INTTYPES_H now generates.
49872         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49873
49874 2007-11-12  Bruno Haible  <bruno@clisp.org>
49875
49876         Tests for Unicode character classification functions.
49877
49878         * modules/unictype/bidicategory-byname-tests: New file.
49879         * modules/unictype/bidicategory-name-tests: New file.
49880         * modules/unictype/bidicategory-of-tests: New file.
49881         * modules/unictype/bidicategory-test-tests: New file.
49882         * modules/unictype/block-list-tests: New file.
49883         * modules/unictype/block-of-tests: New file.
49884         * modules/unictype/block-test-tests: New file.
49885         * modules/unictype/category-C-tests: New file.
49886         * modules/unictype/category-Cc-tests: New file.
49887         * modules/unictype/category-Cf-tests: New file.
49888         * modules/unictype/category-Cn-tests: New file.
49889         * modules/unictype/category-Co-tests: New file.
49890         * modules/unictype/category-Cs-tests: New file.
49891         * modules/unictype/category-L-tests: New file.
49892         * modules/unictype/category-Ll-tests: New file.
49893         * modules/unictype/category-Lm-tests: New file.
49894         * modules/unictype/category-Lo-tests: New file.
49895         * modules/unictype/category-Lt-tests: New file.
49896         * modules/unictype/category-Lu-tests: New file.
49897         * modules/unictype/category-M-tests: New file.
49898         * modules/unictype/category-Mc-tests: New file.
49899         * modules/unictype/category-Me-tests: New file.
49900         * modules/unictype/category-Mn-tests: New file.
49901         * modules/unictype/category-N-tests: New file.
49902         * modules/unictype/category-Nd-tests: New file.
49903         * modules/unictype/category-Nl-tests: New file.
49904         * modules/unictype/category-No-tests: New file.
49905         * modules/unictype/category-P-tests: New file.
49906         * modules/unictype/category-Pc-tests: New file.
49907         * modules/unictype/category-Pd-tests: New file.
49908         * modules/unictype/category-Pe-tests: New file.
49909         * modules/unictype/category-Pf-tests: New file.
49910         * modules/unictype/category-Pi-tests: New file.
49911         * modules/unictype/category-Po-tests: New file.
49912         * modules/unictype/category-Ps-tests: New file.
49913         * modules/unictype/category-S-tests: New file.
49914         * modules/unictype/category-Sc-tests: New file.
49915         * modules/unictype/category-Sk-tests: New file.
49916         * modules/unictype/category-Sm-tests: New file.
49917         * modules/unictype/category-So-tests: New file.
49918         * modules/unictype/category-Z-tests: New file.
49919         * modules/unictype/category-Zl-tests: New file.
49920         * modules/unictype/category-Zp-tests: New file.
49921         * modules/unictype/category-Zs-tests: New file.
49922         * modules/unictype/category-and-not-tests: New file.
49923         * modules/unictype/category-and-tests: New file.
49924         * modules/unictype/category-byname-tests: New file.
49925         * modules/unictype/category-name-tests: New file.
49926         * modules/unictype/category-none-tests: New file.
49927         * modules/unictype/category-of-tests: New file.
49928         * modules/unictype/category-or-tests: New file.
49929         * modules/unictype/category-test-withtable-tests: New file.
49930         * modules/unictype/combining-class-tests: New file.
49931         * modules/unictype/ctype-alnum-tests: New file.
49932         * modules/unictype/ctype-alpha-tests: New file.
49933         * modules/unictype/ctype-blank-tests: New file.
49934         * modules/unictype/ctype-cntrl-tests: New file.
49935         * modules/unictype/ctype-digit-tests: New file.
49936         * modules/unictype/ctype-graph-tests: New file.
49937         * modules/unictype/ctype-lower-tests: New file.
49938         * modules/unictype/ctype-print-tests: New file.
49939         * modules/unictype/ctype-punct-tests: New file.
49940         * modules/unictype/ctype-space-tests: New file.
49941         * modules/unictype/ctype-upper-tests: New file.
49942         * modules/unictype/ctype-xdigit-tests: New file.
49943         * modules/unictype/decimal-digit-tests: New file.
49944         * modules/unictype/digit-tests: New file.
49945         * modules/unictype/mirror-tests: New file.
49946         * modules/unictype/numeric-tests: New file.
49947         * modules/unictype/property-alphabetic-tests: New file.
49948         * modules/unictype/property-ascii-hex-digit-tests: New file.
49949         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49950         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49951         * modules/unictype/property-bidi-block-separator-tests: New file.
49952         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49953         * modules/unictype/property-bidi-common-separator-tests: New file.
49954         * modules/unictype/property-bidi-control-tests: New file.
49955         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49956         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49957         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49958         * modules/unictype/property-bidi-european-digit-tests: New file.
49959         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49960         * modules/unictype/property-bidi-left-to-right-tests: New file.
49961         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49962         * modules/unictype/property-bidi-other-neutral-tests: New file.
49963         * modules/unictype/property-bidi-pdf-tests: New file.
49964         * modules/unictype/property-bidi-segment-separator-tests: New file.
49965         * modules/unictype/property-bidi-whitespace-tests: New file.
49966         * modules/unictype/property-byname-tests: New file.
49967         * modules/unictype/property-combining-tests: New file.
49968         * modules/unictype/property-composite-tests: New file.
49969         * modules/unictype/property-currency-symbol-tests: New file.
49970         * modules/unictype/property-dash-tests: New file.
49971         * modules/unictype/property-decimal-digit-tests: New file.
49972         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49973         * modules/unictype/property-deprecated-tests: New file.
49974         * modules/unictype/property-diacritic-tests: New file.
49975         * modules/unictype/property-extender-tests: New file.
49976         * modules/unictype/property-format-control-tests: New file.
49977         * modules/unictype/property-grapheme-base-tests: New file.
49978         * modules/unictype/property-grapheme-extend-tests: New file.
49979         * modules/unictype/property-grapheme-link-tests: New file.
49980         * modules/unictype/property-hex-digit-tests: New file.
49981         * modules/unictype/property-hyphen-tests: New file.
49982         * modules/unictype/property-id-continue-tests: New file.
49983         * modules/unictype/property-id-start-tests: New file.
49984         * modules/unictype/property-ideographic-tests: New file.
49985         * modules/unictype/property-ids-binary-operator-tests: New file.
49986         * modules/unictype/property-ids-trinary-operator-tests: New file.
49987         * modules/unictype/property-ignorable-control-tests: New file.
49988         * modules/unictype/property-iso-control-tests: New file.
49989         * modules/unictype/property-join-control-tests: New file.
49990         * modules/unictype/property-left-of-pair-tests: New file.
49991         * modules/unictype/property-line-separator-tests: New file.
49992         * modules/unictype/property-logical-order-exception-tests: New file.
49993         * modules/unictype/property-lowercase-tests: New file.
49994         * modules/unictype/property-math-tests: New file.
49995         * modules/unictype/property-non-break-tests: New file.
49996         * modules/unictype/property-not-a-character-tests: New file.
49997         * modules/unictype/property-numeric-tests: New file.
49998         * modules/unictype/property-other-alphabetic-tests: New file.
49999         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50000         * modules/unictype/property-other-grapheme-extend-tests: New file.
50001         * modules/unictype/property-other-id-continue-tests: New file.
50002         * modules/unictype/property-other-id-start-tests: New file.
50003         * modules/unictype/property-other-lowercase-tests: New file.
50004         * modules/unictype/property-other-math-tests: New file.
50005         * modules/unictype/property-other-uppercase-tests: New file.
50006         * modules/unictype/property-paired-punctuation-tests: New file.
50007         * modules/unictype/property-paragraph-separator-tests: New file.
50008         * modules/unictype/property-pattern-syntax-tests: New file.
50009         * modules/unictype/property-pattern-white-space-tests: New file.
50010         * modules/unictype/property-private-use-tests: New file.
50011         * modules/unictype/property-punctuation-tests: New file.
50012         * modules/unictype/property-quotation-mark-tests: New file.
50013         * modules/unictype/property-radical-tests: New file.
50014         * modules/unictype/property-sentence-terminal-tests: New file.
50015         * modules/unictype/property-soft-dotted-tests: New file.
50016         * modules/unictype/property-space-tests: New file.
50017         * modules/unictype/property-terminal-punctuation-tests: New file.
50018         * modules/unictype/property-test-tests: New file.
50019         * modules/unictype/property-titlecase-tests: New file.
50020         * modules/unictype/property-unassigned-code-value-tests: New file.
50021         * modules/unictype/property-unified-ideograph-tests: New file.
50022         * modules/unictype/property-uppercase-tests: New file.
50023         * modules/unictype/property-variation-selector-tests: New file.
50024         * modules/unictype/property-white-space-tests: New file.
50025         * modules/unictype/property-xid-continue-tests: New file.
50026         * modules/unictype/property-xid-start-tests: New file.
50027         * modules/unictype/property-zero-width-tests: New file.
50028         * modules/unictype/scripts-tests: New file.
50029         * modules/unictype/syntax-c-ident-tests: New file.
50030         * modules/unictype/syntax-c-whitespace-tests: New file.
50031         * modules/unictype/syntax-java-ident-tests: New file.
50032         * modules/unictype/syntax-java-whitespace-tests: New file.
50033         * tests/unictype/test-bidi_byname.c: New file.
50034         * tests/unictype/test-bidi_name.c: New file.
50035         * tests/unictype/test-bidi_of.c: New file.
50036         * tests/unictype/test-bidi_test.c: New file.
50037         * tests/unictype/test-block_list.c: New file.
50038         * tests/unictype/test-block_of.c: New file.
50039         * tests/unictype/test-block_test.c: New file.
50040         * tests/unictype/test-categ_and.c: New file.
50041         * tests/unictype/test-categ_and_not.c: New file.
50042         * tests/unictype/test-categ_byname.c: New file.
50043         * tests/unictype/test-categ_name.c: New file.
50044         * tests/unictype/test-categ_none.c: New file.
50045         * tests/unictype/test-categ_of.c: New file.
50046         * tests/unictype/test-categ_or.c: New file.
50047         * tests/unictype/test-categ_test_withtable.c: New file.
50048         * tests/unictype/test-combining.c: New file.
50049         * tests/unictype/test-decdigit.c: New file.
50050         * tests/unictype/test-digit.c: New file.
50051         * tests/unictype/test-mirror.c: New file.
50052         * tests/unictype/test-numeric.c: New file.
50053         * tests/unictype/test-pr_byname.c: New file.
50054         * tests/unictype/test-pr_test.c: New file.
50055         * tests/unictype/test-predicate-part1.h: New file.
50056         * tests/unictype/test-predicate-part2.h: New file.
50057         * tests/unictype/test-scripts.c: New file.
50058         * tests/unictype/test-sy_c_ident.c: New file.
50059         * tests/unictype/test-sy_java_ident.c: New file.
50060
50061         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50062         for Unicode 5.0.0.
50063         * tests/unictype/test-categ_Cc.c: Likewise.
50064         * tests/unictype/test-categ_Cf.c: Likewise.
50065         * tests/unictype/test-categ_Cn.c: Likewise.
50066         * tests/unictype/test-categ_Co.c: Likewise.
50067         * tests/unictype/test-categ_Cs.c: Likewise.
50068         * tests/unictype/test-categ_L.c: Likewise.
50069         * tests/unictype/test-categ_Ll.c: Likewise.
50070         * tests/unictype/test-categ_Lm.c: Likewise.
50071         * tests/unictype/test-categ_Lo.c: Likewise.
50072         * tests/unictype/test-categ_Lt.c: Likewise.
50073         * tests/unictype/test-categ_Lu.c: Likewise.
50074         * tests/unictype/test-categ_M.c: Likewise.
50075         * tests/unictype/test-categ_Mc.c: Likewise.
50076         * tests/unictype/test-categ_Me.c: Likewise.
50077         * tests/unictype/test-categ_Mn.c: Likewise.
50078         * tests/unictype/test-categ_N.c: Likewise.
50079         * tests/unictype/test-categ_Nd.c: Likewise.
50080         * tests/unictype/test-categ_Nl.c: Likewise.
50081         * tests/unictype/test-categ_No.c: Likewise.
50082         * tests/unictype/test-categ_P.c: Likewise.
50083         * tests/unictype/test-categ_Pc.c: Likewise.
50084         * tests/unictype/test-categ_Pd.c: Likewise.
50085         * tests/unictype/test-categ_Pe.c: Likewise.
50086         * tests/unictype/test-categ_Pf.c: Likewise.
50087         * tests/unictype/test-categ_Pi.c: Likewise.
50088         * tests/unictype/test-categ_Po.c: Likewise.
50089         * tests/unictype/test-categ_Ps.c: Likewise.
50090         * tests/unictype/test-categ_S.c: Likewise.
50091         * tests/unictype/test-categ_Sc.c: Likewise.
50092         * tests/unictype/test-categ_Sk.c: Likewise.
50093         * tests/unictype/test-categ_Sm.c: Likewise.
50094         * tests/unictype/test-categ_So.c: Likewise.
50095         * tests/unictype/test-categ_Z.c: Likewise.
50096         * tests/unictype/test-categ_Zl.c: Likewise.
50097         * tests/unictype/test-categ_Zp.c: Likewise.
50098         * tests/unictype/test-categ_Zs.c: Likewise.
50099         * tests/unictype/test-ctype_alnum.c: Likewise.
50100         * tests/unictype/test-ctype_alpha.c: Likewise.
50101         * tests/unictype/test-ctype_blank.c: Likewise.
50102         * tests/unictype/test-ctype_cntrl.c: Likewise.
50103         * tests/unictype/test-ctype_digit.c: Likewise.
50104         * tests/unictype/test-ctype_graph.c: Likewise.
50105         * tests/unictype/test-ctype_lower.c: Likewise.
50106         * tests/unictype/test-ctype_print.c: Likewise.
50107         * tests/unictype/test-ctype_punct.c: Likewise.
50108         * tests/unictype/test-ctype_space.c: Likewise.
50109         * tests/unictype/test-ctype_upper.c: Likewise.
50110         * tests/unictype/test-ctype_xdigit.c: Likewise.
50111         * tests/unictype/test-decdigit.h: Likewise.
50112         * tests/unictype/test-digit.h: Likewise.
50113         * tests/unictype/test-numeric.h: Likewise.
50114         * tests/unictype/test-pr_alphabetic.c: Likewise.
50115         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50116         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50117         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50118         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50119         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50120         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50121         * tests/unictype/test-pr_bidi_control.c: Likewise.
50122         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50123         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50124         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50125         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50126         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50127         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50128         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50129         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50130         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50131         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50132         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50133         * tests/unictype/test-pr_combining.c: Likewise.
50134         * tests/unictype/test-pr_composite.c: Likewise.
50135         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50136         * tests/unictype/test-pr_dash.c: Likewise.
50137         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50138         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50139         * tests/unictype/test-pr_deprecated.c: Likewise.
50140         * tests/unictype/test-pr_diacritic.c: Likewise.
50141         * tests/unictype/test-pr_extender.c: Likewise.
50142         * tests/unictype/test-pr_format_control.c: Likewise.
50143         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50144         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50145         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50146         * tests/unictype/test-pr_hex_digit.c: Likewise.
50147         * tests/unictype/test-pr_hyphen.c: Likewise.
50148         * tests/unictype/test-pr_id_continue.c: Likewise.
50149         * tests/unictype/test-pr_id_start.c: Likewise.
50150         * tests/unictype/test-pr_ideographic.c: Likewise.
50151         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50152         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50153         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50154         * tests/unictype/test-pr_iso_control.c: Likewise.
50155         * tests/unictype/test-pr_join_control.c: Likewise.
50156         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50157         * tests/unictype/test-pr_line_separator.c: Likewise.
50158         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50159         * tests/unictype/test-pr_lowercase.c: Likewise.
50160         * tests/unictype/test-pr_math.c: Likewise.
50161         * tests/unictype/test-pr_non_break.c: Likewise.
50162         * tests/unictype/test-pr_not_a_character.c: Likewise.
50163         * tests/unictype/test-pr_numeric.c: Likewise.
50164         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50165         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50166         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50167         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50168         * tests/unictype/test-pr_other_id_start.c: Likewise.
50169         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50170         * tests/unictype/test-pr_other_math.c: Likewise.
50171         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50172         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50173         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50174         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50175         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50176         * tests/unictype/test-pr_private_use.c: Likewise.
50177         * tests/unictype/test-pr_punctuation.c: Likewise.
50178         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50179         * tests/unictype/test-pr_radical.c: Likewise.
50180         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50181         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50182         * tests/unictype/test-pr_space.c: Likewise.
50183         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50184         * tests/unictype/test-pr_titlecase.c: Likewise.
50185         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50186         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50187         * tests/unictype/test-pr_uppercase.c: Likewise.
50188         * tests/unictype/test-pr_variation_selector.c: Likewise.
50189         * tests/unictype/test-pr_white_space.c: Likewise.
50190         * tests/unictype/test-pr_xid_continue.c: Likewise.
50191         * tests/unictype/test-pr_xid_start.c: Likewise.
50192         * tests/unictype/test-pr_zero_width.c: Likewise.
50193         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50194         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50195
50196 2007-11-12  Bruno Haible  <bruno@clisp.org>
50197
50198         Unicode character classification functions.
50199         * lib/unictype.h: New file.
50200         * modules/unictype/base: New file.
50201         * modules/unictype/category-L: New file.
50202         * modules/unictype/category-Lu: New file.
50203         * modules/unictype/category-Ll: New file.
50204         * modules/unictype/category-Lt: New file.
50205         * modules/unictype/category-Lm: New file.
50206         * modules/unictype/category-Lo: New file.
50207         * modules/unictype/category-M: New file.
50208         * modules/unictype/category-Mn: New file.
50209         * modules/unictype/category-Mc: New file.
50210         * modules/unictype/category-Me: New file.
50211         * modules/unictype/category-N: New file.
50212         * modules/unictype/category-Nd: New file.
50213         * modules/unictype/category-Nl: New file.
50214         * modules/unictype/category-No: New file.
50215         * modules/unictype/category-P: New file.
50216         * modules/unictype/category-Pc: New file.
50217         * modules/unictype/category-Pd: New file.
50218         * modules/unictype/category-Ps: New file.
50219         * modules/unictype/category-Pe: New file.
50220         * modules/unictype/category-Pi: New file.
50221         * modules/unictype/category-Pf: New file.
50222         * modules/unictype/category-Po: New file.
50223         * modules/unictype/category-S: New file.
50224         * modules/unictype/category-Sm: New file.
50225         * modules/unictype/category-Sc: New file.
50226         * modules/unictype/category-Sk: New file.
50227         * modules/unictype/category-So: New file.
50228         * modules/unictype/category-Z: New file.
50229         * modules/unictype/category-Zs: New file.
50230         * modules/unictype/category-Zl: New file.
50231         * modules/unictype/category-Zp: New file.
50232         * modules/unictype/category-C: New file.
50233         * modules/unictype/category-Cc: New file.
50234         * modules/unictype/category-Cf: New file.
50235         * modules/unictype/category-Cs: New file.
50236         * modules/unictype/category-Co: New file.
50237         * modules/unictype/category-Cn: New file.
50238         * modules/unictype/category-or: New file.
50239         * modules/unictype/category-of: New file.
50240         * modules/unictype/category-test: New file.
50241         * modules/unictype/category-test-withtable: New file.
50242         * modules/unictype/category-byname: New file.
50243         * modules/unictype/category-none: New file.
50244         * modules/unictype/category-and: New file.
50245         * modules/unictype/category-and-not: New file.
50246         * modules/unictype/category-name: New file.
50247         * modules/unictype/combining-class: New file.
50248         * modules/unictype/category-all: New file.
50249         * modules/unictype/bidicategory-all: New file.
50250         * modules/unictype/bidicategory-byname: New file.
50251         * modules/unictype/bidicategory-name: New file.
50252         * modules/unictype/bidicategory-of: New file.
50253         * modules/unictype/bidicategory-test: New file.
50254         * modules/unictype/decimal-digit: New file.
50255         * modules/unictype/digit: New file.
50256         * modules/unictype/numeric: New file.
50257         * modules/unictype/mirror: New file.
50258         * modules/unictype/property-white-space: New file.
50259         * modules/unictype/property-alphabetic: New file.
50260         * modules/unictype/property-other-alphabetic: New file.
50261         * modules/unictype/property-not-a-character: New file.
50262         * modules/unictype/property-default-ignorable-code-point: New file.
50263         * modules/unictype/property-other-default-ignorable-code-point: New
50264         file.
50265         * modules/unictype/property-deprecated: New file.
50266         * modules/unictype/property-logical-order-exception: New file.
50267         * modules/unictype/property-variation-selector: New file.
50268         * modules/unictype/property-private-use: New file.
50269         * modules/unictype/property-unassigned-code-value: New file.
50270         * modules/unictype/property-uppercase: New file.
50271         * modules/unictype/property-other-uppercase: New file.
50272         * modules/unictype/property-lowercase: New file.
50273         * modules/unictype/property-other-lowercase: New file.
50274         * modules/unictype/property-titlecase: New file.
50275         * modules/unictype/property-soft-dotted: New file.
50276         * modules/unictype/property-id-start: New file.
50277         * modules/unictype/property-other-id-start: New file.
50278         * modules/unictype/property-id-continue: New file.
50279         * modules/unictype/property-other-id-continue: New file.
50280         * modules/unictype/property-xid-start: New file.
50281         * modules/unictype/property-xid-continue: New file.
50282         * modules/unictype/property-pattern-white-space: New file.
50283         * modules/unictype/property-pattern-syntax: New file.
50284         * modules/unictype/property-join-control: New file.
50285         * modules/unictype/property-grapheme-base: New file.
50286         * modules/unictype/property-grapheme-extend: New file.
50287         * modules/unictype/property-other-grapheme-extend: New file.
50288         * modules/unictype/property-grapheme-link: New file.
50289         * modules/unictype/property-bidi-control: New file.
50290         * modules/unictype/property-bidi-left-to-right: New file.
50291         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50292         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50293         * modules/unictype/property-bidi-european-digit: New file.
50294         * modules/unictype/property-bidi-eur-num-separator: New file.
50295         * modules/unictype/property-bidi-eur-num-terminator: New file.
50296         * modules/unictype/property-bidi-arabic-digit: New file.
50297         * modules/unictype/property-bidi-common-separator: New file.
50298         * modules/unictype/property-bidi-block-separator: New file.
50299         * modules/unictype/property-bidi-segment-separator: New file.
50300         * modules/unictype/property-bidi-whitespace: New file.
50301         * modules/unictype/property-bidi-non-spacing-mark: New file.
50302         * modules/unictype/property-bidi-boundary-neutral: New file.
50303         * modules/unictype/property-bidi-pdf: New file.
50304         * modules/unictype/property-bidi-embedding-or-override: New file.
50305         * modules/unictype/property-bidi-other-neutral: New file.
50306         * modules/unictype/property-hex-digit: New file.
50307         * modules/unictype/property-ascii-hex-digit: New file.
50308         * modules/unictype/property-ideographic: New file.
50309         * modules/unictype/property-unified-ideograph: New file.
50310         * modules/unictype/property-radical: New file.
50311         * modules/unictype/property-ids-binary-operator: New file.
50312         * modules/unictype/property-ids-trinary-operator: New file.
50313         * modules/unictype/property-zero-width: New file.
50314         * modules/unictype/property-space: New file.
50315         * modules/unictype/property-non-break: New file.
50316         * modules/unictype/property-iso-control: New file.
50317         * modules/unictype/property-format-control: New file.
50318         * modules/unictype/property-dash: New file.
50319         * modules/unictype/property-hyphen: New file.
50320         * modules/unictype/property-punctuation: New file.
50321         * modules/unictype/property-line-separator: New file.
50322         * modules/unictype/property-paragraph-separator: New file.
50323         * modules/unictype/property-quotation-mark: New file.
50324         * modules/unictype/property-sentence-terminal: New file.
50325         * modules/unictype/property-terminal-punctuation: New file.
50326         * modules/unictype/property-currency-symbol: New file.
50327         * modules/unictype/property-math: New file.
50328         * modules/unictype/property-other-math: New file.
50329         * modules/unictype/property-paired-punctuation: New file.
50330         * modules/unictype/property-left-of-pair: New file.
50331         * modules/unictype/property-combining: New file.
50332         * modules/unictype/property-composite: New file.
50333         * modules/unictype/property-decimal-digit: New file.
50334         * modules/unictype/property-numeric: New file.
50335         * modules/unictype/property-diacritic: New file.
50336         * modules/unictype/property-extender: New file.
50337         * modules/unictype/property-ignorable-control: New file.
50338         * modules/unictype/property-test: New file.
50339         * modules/unictype/property-byname: New file.
50340         * modules/unictype/property-all: New file.
50341         * modules/unictype/scripts: New file.
50342         * modules/unictype/scripts-all: New file.
50343         * modules/unictype/block-of: New file.
50344         * modules/unictype/block-test: New file.
50345         * modules/unictype/block-list: New file.
50346         * modules/unictype/block-all: New file.
50347         * modules/unictype/syntax-c-whitespace: New file.
50348         * modules/unictype/syntax-java-whitespace: New file.
50349         * modules/unictype/syntax-c-ident: New file.
50350         * modules/unictype/syntax-java-ident: New file.
50351         * modules/unictype/ctype-alnum: New file.
50352         * modules/unictype/ctype-alpha: New file.
50353         * modules/unictype/ctype-cntrl: New file.
50354         * modules/unictype/ctype-digit: New file.
50355         * modules/unictype/ctype-graph: New file.
50356         * modules/unictype/ctype-lower: New file.
50357         * modules/unictype/ctype-print: New file.
50358         * modules/unictype/ctype-punct: New file.
50359         * modules/unictype/ctype-space: New file.
50360         * modules/unictype/ctype-upper: New file.
50361         * modules/unictype/ctype-xdigit: New file.
50362         * modules/unictype/ctype-blank: New file.
50363         * lib/unictype/bidi_byname.c: New file.
50364         * lib/unictype/bidi_name.c: New file.
50365         * lib/unictype/bidi_of.c: New file.
50366         * lib/unictype/bidi_test.c: New file.
50367         * lib/unictype/bitmap.h: New file.
50368         * lib/unictype/block_test.c: New file.
50369         * lib/unictype/blocks.c: New file.
50370         * lib/unictype/categ_C.c: New file.
50371         * lib/unictype/categ_Cc.c: New file.
50372         * lib/unictype/categ_Cf.c: New file.
50373         * lib/unictype/categ_Cn.c: New file.
50374         * lib/unictype/categ_Co.c: New file.
50375         * lib/unictype/categ_Cs.c: New file.
50376         * lib/unictype/categ_L.c: New file.
50377         * lib/unictype/categ_Ll.c: New file.
50378         * lib/unictype/categ_Lm.c: New file.
50379         * lib/unictype/categ_Lo.c: New file.
50380         * lib/unictype/categ_Lt.c: New file.
50381         * lib/unictype/categ_Lu.c: New file.
50382         * lib/unictype/categ_M.c: New file.
50383         * lib/unictype/categ_Mc.c: New file.
50384         * lib/unictype/categ_Me.c: New file.
50385         * lib/unictype/categ_Mn.c: New file.
50386         * lib/unictype/categ_N.c: New file.
50387         * lib/unictype/categ_Nd.c: New file.
50388         * lib/unictype/categ_Nl.c: New file.
50389         * lib/unictype/categ_No.c: New file.
50390         * lib/unictype/categ_P.c: New file.
50391         * lib/unictype/categ_Pc.c: New file.
50392         * lib/unictype/categ_Pd.c: New file.
50393         * lib/unictype/categ_Pe.c: New file.
50394         * lib/unictype/categ_Pf.c: New file.
50395         * lib/unictype/categ_Pi.c: New file.
50396         * lib/unictype/categ_Po.c: New file.
50397         * lib/unictype/categ_Ps.c: New file.
50398         * lib/unictype/categ_S.c: New file.
50399         * lib/unictype/categ_Sc.c: New file.
50400         * lib/unictype/categ_Sk.c: New file.
50401         * lib/unictype/categ_Sm.c: New file.
50402         * lib/unictype/categ_So.c: New file.
50403         * lib/unictype/categ_Z.c: New file.
50404         * lib/unictype/categ_Zl.c: New file.
50405         * lib/unictype/categ_Zp.c: New file.
50406         * lib/unictype/categ_Zs.c: New file.
50407         * lib/unictype/categ_and.c: New file.
50408         * lib/unictype/categ_and_not.c: New file.
50409         * lib/unictype/categ_byname.c: New file.
50410         * lib/unictype/categ_name.c: New file.
50411         * lib/unictype/categ_none.c: New file.
50412         * lib/unictype/categ_of.c: New file.
50413         * lib/unictype/categ_or.c: New file.
50414         * lib/unictype/categ_test.c: New file.
50415         * lib/unictype/combining.c: New file.
50416         * lib/unictype/ctype_alnum.c: New file.
50417         * lib/unictype/ctype_alpha.c: New file.
50418         * lib/unictype/ctype_blank.c: New file.
50419         * lib/unictype/ctype_cntrl.c: New file.
50420         * lib/unictype/ctype_digit.c: New file.
50421         * lib/unictype/ctype_graph.c: New file.
50422         * lib/unictype/ctype_lower.c: New file.
50423         * lib/unictype/ctype_print.c: New file.
50424         * lib/unictype/ctype_punct.c: New file.
50425         * lib/unictype/ctype_space.c: New file.
50426         * lib/unictype/ctype_upper.c: New file.
50427         * lib/unictype/ctype_xdigit.c: New file.
50428         * lib/unictype/decdigit.c: New file.
50429         * lib/unictype/digit.c: New file.
50430         * lib/unictype/identsyntaxmap.h: New file.
50431         * lib/unictype/mirror.c: New file.
50432         * lib/unictype/numeric.c: New file.
50433         * lib/unictype/pr_alphabetic.c: New file.
50434         * lib/unictype/pr_ascii_hex_digit.c: New file.
50435         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50436         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50437         * lib/unictype/pr_bidi_block_separator.c: New file.
50438         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50439         * lib/unictype/pr_bidi_common_separator.c: New file.
50440         * lib/unictype/pr_bidi_control.c: New file.
50441         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50442         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50443         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50444         * lib/unictype/pr_bidi_european_digit.c: New file.
50445         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50446         * lib/unictype/pr_bidi_left_to_right.c: New file.
50447         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50448         * lib/unictype/pr_bidi_other_neutral.c: New file.
50449         * lib/unictype/pr_bidi_pdf.c: New file.
50450         * lib/unictype/pr_bidi_segment_separator.c: New file.
50451         * lib/unictype/pr_bidi_whitespace.c: New file.
50452         * lib/unictype/pr_byname.c: New file.
50453         * lib/unictype/pr_byname.gperf: New file.
50454         * lib/unictype/pr_combining.c: New file.
50455         * lib/unictype/pr_composite.c: New file.
50456         * lib/unictype/pr_currency_symbol.c: New file.
50457         * lib/unictype/pr_dash.c: New file.
50458         * lib/unictype/pr_decimal_digit.c: New file.
50459         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50460         * lib/unictype/pr_deprecated.c: New file.
50461         * lib/unictype/pr_diacritic.c: New file.
50462         * lib/unictype/pr_extender.c: New file.
50463         * lib/unictype/pr_format_control.c: New file.
50464         * lib/unictype/pr_grapheme_base.c: New file.
50465         * lib/unictype/pr_grapheme_extend.c: New file.
50466         * lib/unictype/pr_grapheme_link.c: New file.
50467         * lib/unictype/pr_hex_digit.c: New file.
50468         * lib/unictype/pr_hyphen.c: New file.
50469         * lib/unictype/pr_id_continue.c: New file.
50470         * lib/unictype/pr_id_start.c: New file.
50471         * lib/unictype/pr_ideographic.c: New file.
50472         * lib/unictype/pr_ids_binary_operator.c: New file.
50473         * lib/unictype/pr_ids_trinary_operator.c: New file.
50474         * lib/unictype/pr_ignorable_control.c: New file.
50475         * lib/unictype/pr_iso_control.c: New file.
50476         * lib/unictype/pr_join_control.c: New file.
50477         * lib/unictype/pr_left_of_pair.c: New file.
50478         * lib/unictype/pr_line_separator.c: New file.
50479         * lib/unictype/pr_logical_order_exception.c: New file.
50480         * lib/unictype/pr_lowercase.c: New file.
50481         * lib/unictype/pr_math.c: New file.
50482         * lib/unictype/pr_non_break.c: New file.
50483         * lib/unictype/pr_not_a_character.c: New file.
50484         * lib/unictype/pr_numeric.c: New file.
50485         * lib/unictype/pr_other_alphabetic.c: New file.
50486         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50487         * lib/unictype/pr_other_grapheme_extend.c: New file.
50488         * lib/unictype/pr_other_id_continue.c: New file.
50489         * lib/unictype/pr_other_id_start.c: New file.
50490         * lib/unictype/pr_other_lowercase.c: New file.
50491         * lib/unictype/pr_other_math.c: New file.
50492         * lib/unictype/pr_other_uppercase.c: New file.
50493         * lib/unictype/pr_paired_punctuation.c: New file.
50494         * lib/unictype/pr_paragraph_separator.c: New file.
50495         * lib/unictype/pr_pattern_syntax.c: New file.
50496         * lib/unictype/pr_pattern_white_space.c: New file.
50497         * lib/unictype/pr_private_use.c: New file.
50498         * lib/unictype/pr_punctuation.c: New file.
50499         * lib/unictype/pr_quotation_mark.c: New file.
50500         * lib/unictype/pr_radical.c: New file.
50501         * lib/unictype/pr_sentence_terminal.c: New file.
50502         * lib/unictype/pr_soft_dotted.c: New file.
50503         * lib/unictype/pr_space.c: New file.
50504         * lib/unictype/pr_terminal_punctuation.c: New file.
50505         * lib/unictype/pr_test.c: New file.
50506         * lib/unictype/pr_titlecase.c: New file.
50507         * lib/unictype/pr_unassigned_code_value.c: New file.
50508         * lib/unictype/pr_unified_ideograph.c: New file.
50509         * lib/unictype/pr_uppercase.c: New file.
50510         * lib/unictype/pr_variation_selector.c: New file.
50511         * lib/unictype/pr_white_space.c: New file.
50512         * lib/unictype/pr_xid_continue.c: New file.
50513         * lib/unictype/pr_xid_start.c: New file.
50514         * lib/unictype/pr_zero_width.c: New file.
50515         * lib/unictype/scripts.c: New file.
50516         * lib/unictype/sy_c_ident.c: New file.
50517         * lib/unictype/sy_c_whitespace.c: New file.
50518         * lib/unictype/sy_java_ident.c: New file.
50519         * lib/unictype/sy_java_whitespace.c: New file.
50520
50521         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50522         Unicode 5.0.0.
50523         * lib/unictype/blocks.h: Likewise.
50524         * lib/unictype/categ_C.h: Likewise.
50525         * lib/unictype/categ_Cc.h: Likewise.
50526         * lib/unictype/categ_Cf.h: Likewise.
50527         * lib/unictype/categ_Cn.h: Likewise.
50528         * lib/unictype/categ_Co.h: Likewise.
50529         * lib/unictype/categ_Cs.h: Likewise.
50530         * lib/unictype/categ_L.h: Likewise.
50531         * lib/unictype/categ_Ll.h: Likewise.
50532         * lib/unictype/categ_Lm.h: Likewise.
50533         * lib/unictype/categ_Lo.h: Likewise.
50534         * lib/unictype/categ_Lt.h: Likewise.
50535         * lib/unictype/categ_Lu.h: Likewise.
50536         * lib/unictype/categ_M.h: Likewise.
50537         * lib/unictype/categ_Mc.h: Likewise.
50538         * lib/unictype/categ_Me.h: Likewise.
50539         * lib/unictype/categ_Mn.h: Likewise.
50540         * lib/unictype/categ_N.h: Likewise.
50541         * lib/unictype/categ_Nd.h: Likewise.
50542         * lib/unictype/categ_Nl.h: Likewise.
50543         * lib/unictype/categ_No.h: Likewise.
50544         * lib/unictype/categ_P.h: Likewise.
50545         * lib/unictype/categ_Pc.h: Likewise.
50546         * lib/unictype/categ_Pd.h: Likewise.
50547         * lib/unictype/categ_Pe.h: Likewise.
50548         * lib/unictype/categ_Pf.h: Likewise.
50549         * lib/unictype/categ_Pi.h: Likewise.
50550         * lib/unictype/categ_Po.h: Likewise.
50551         * lib/unictype/categ_Ps.h: Likewise.
50552         * lib/unictype/categ_S.h: Likewise.
50553         * lib/unictype/categ_Sc.h: Likewise.
50554         * lib/unictype/categ_Sk.h: Likewise.
50555         * lib/unictype/categ_Sm.h: Likewise.
50556         * lib/unictype/categ_So.h: Likewise.
50557         * lib/unictype/categ_Z.h: Likewise.
50558         * lib/unictype/categ_Zl.h: Likewise.
50559         * lib/unictype/categ_Zp.h: Likewise.
50560         * lib/unictype/categ_Zs.h: Likewise.
50561         * lib/unictype/categ_of.h: Likewise.
50562         * lib/unictype/combining.h: Likewise.
50563         * lib/unictype/ctype_alnum.h: Likewise.
50564         * lib/unictype/ctype_alpha.h: Likewise.
50565         * lib/unictype/ctype_blank.h: Likewise.
50566         * lib/unictype/ctype_cntrl.h: Likewise.
50567         * lib/unictype/ctype_digit.h: Likewise.
50568         * lib/unictype/ctype_graph.h: Likewise.
50569         * lib/unictype/ctype_lower.h: Likewise.
50570         * lib/unictype/ctype_print.h: Likewise.
50571         * lib/unictype/ctype_punct.h: Likewise.
50572         * lib/unictype/ctype_space.h: Likewise.
50573         * lib/unictype/ctype_upper.h: Likewise.
50574         * lib/unictype/ctype_xdigit.h: Likewise.
50575         * lib/unictype/decdigit.h: Likewise.
50576         * lib/unictype/digit.h: Likewise.
50577         * lib/unictype/mirror.h: Likewise.
50578         * lib/unictype/numeric.h: Likewise.
50579         * lib/unictype/pr_alphabetic.h: Likewise.
50580         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50581         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50582         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50583         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50584         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50585         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50586         * lib/unictype/pr_bidi_control.h: Likewise.
50587         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50588         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50589         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50590         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50591         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50592         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50593         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50594         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50595         * lib/unictype/pr_bidi_pdf.h: Likewise.
50596         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50597         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50598         * lib/unictype/pr_combining.h: Likewise.
50599         * lib/unictype/pr_composite.h: Likewise.
50600         * lib/unictype/pr_currency_symbol.h: Likewise.
50601         * lib/unictype/pr_dash.h: Likewise.
50602         * lib/unictype/pr_decimal_digit.h: Likewise.
50603         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50604         * lib/unictype/pr_deprecated.h: Likewise.
50605         * lib/unictype/pr_diacritic.h: Likewise.
50606         * lib/unictype/pr_extender.h: Likewise.
50607         * lib/unictype/pr_format_control.h: Likewise.
50608         * lib/unictype/pr_grapheme_base.h: Likewise.
50609         * lib/unictype/pr_grapheme_extend.h: Likewise.
50610         * lib/unictype/pr_grapheme_link.h: Likewise.
50611         * lib/unictype/pr_hex_digit.h: Likewise.
50612         * lib/unictype/pr_hyphen.h: Likewise.
50613         * lib/unictype/pr_id_continue.h: Likewise.
50614         * lib/unictype/pr_id_start.h: Likewise.
50615         * lib/unictype/pr_ideographic.h: Likewise.
50616         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50617         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50618         * lib/unictype/pr_ignorable_control.h: Likewise.
50619         * lib/unictype/pr_iso_control.h: Likewise.
50620         * lib/unictype/pr_join_control.h: Likewise.
50621         * lib/unictype/pr_left_of_pair.h: Likewise.
50622         * lib/unictype/pr_line_separator.h: Likewise.
50623         * lib/unictype/pr_logical_order_exception.h: Likewise.
50624         * lib/unictype/pr_lowercase.h: Likewise.
50625         * lib/unictype/pr_math.h: Likewise.
50626         * lib/unictype/pr_non_break.h: Likewise.
50627         * lib/unictype/pr_not_a_character.h: Likewise.
50628         * lib/unictype/pr_numeric.h: Likewise.
50629         * lib/unictype/pr_other_alphabetic.h: Likewise.
50630         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50631         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50632         * lib/unictype/pr_other_id_continue.h: Likewise.
50633         * lib/unictype/pr_other_id_start.h: Likewise.
50634         * lib/unictype/pr_other_lowercase.h: Likewise.
50635         * lib/unictype/pr_other_math.h: Likewise.
50636         * lib/unictype/pr_other_uppercase.h: Likewise.
50637         * lib/unictype/pr_paired_punctuation.h: Likewise.
50638         * lib/unictype/pr_paragraph_separator.h: Likewise.
50639         * lib/unictype/pr_pattern_syntax.h: Likewise.
50640         * lib/unictype/pr_pattern_white_space.h: Likewise.
50641         * lib/unictype/pr_private_use.h: Likewise.
50642         * lib/unictype/pr_punctuation.h: Likewise.
50643         * lib/unictype/pr_quotation_mark.h: Likewise.
50644         * lib/unictype/pr_radical.h: Likewise.
50645         * lib/unictype/pr_sentence_terminal.h: Likewise.
50646         * lib/unictype/pr_soft_dotted.h: Likewise.
50647         * lib/unictype/pr_space.h: Likewise.
50648         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50649         * lib/unictype/pr_titlecase.h: Likewise.
50650         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50651         * lib/unictype/pr_unified_ideograph.h: Likewise.
50652         * lib/unictype/pr_uppercase.h: Likewise.
50653         * lib/unictype/pr_variation_selector.h: Likewise.
50654         * lib/unictype/pr_white_space.h: Likewise.
50655         * lib/unictype/pr_xid_continue.h: Likewise.
50656         * lib/unictype/pr_xid_start.h: Likewise.
50657         * lib/unictype/pr_zero_width.h: Likewise.
50658         * lib/unictype/scripts.h: Likewise.
50659         * lib/unictype/scripts_byname.gperf: Likewise.
50660         * lib/unictype/sy_c_ident.h: Likewise.
50661         * lib/unictype/sy_c_whitespace.h: Likewise.
50662         * lib/unictype/sy_java_ident.h: Likewise.
50663         * lib/unictype/sy_java_whitespace.h: Likewise.
50664
50665         * lib/unictype/Makefile: New file.
50666         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50667         glibc.
50668         * lib/unictype/3level.h: New file, copied from glibc.
50669         * lib/unictype/3levelbit.h: New file.
50670
50671 2007-11-11  Bruno Haible  <bruno@clisp.org>
50672
50673         * modules/gperf: New file.
50674         * modules/iconv_open (Depends-on): Add it.
50675         (Makefile.am): Remove the GPERF definition.
50676
50677 2007-11-11  Bruno Haible  <bruno@clisp.org>
50678
50679         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50680         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50681
50682 2007-11-11  Bruno Haible  <bruno@clisp.org>
50683
50684         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50685         (usage): Remove function.
50686
50687 2007-11-11  Bruno Haible  <bruno@clisp.org>
50688
50689         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50690         gl_FUNC_CEILF_LIBS.
50691         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50692         gl_FUNC_CEIL_LIBS.
50693         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50694         gl_FUNC_CEILL_LIBS.
50695         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50696         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50697         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50698
50699 2007-11-11  Bruno Haible  <bruno@clisp.org>
50700
50701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50702         roundf were declared but do not exist on functions.
50703         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50704         roundl were declared but do not exist on functions.
50705         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50706         HAVE_FLOORL_AND_CEILL, respectively.
50707         Needed for Sun C on Solaris 10.
50708
50709 2007-11-11  Bruno Haible  <bruno@clisp.org>
50710
50711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50712         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50713         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50714         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50716         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50717         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50718         HAVE_DECL_ROUNDF.
50719         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50720         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50722         of HAVE_DECL_ROUND*.
50723         * modules/math (Makefile.am): Update.
50724
50725 2007-11-10  Bruno Haible  <bruno@clisp.org>
50726
50727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50728         ptrdiff_t as m4/intl.m4.
50729
50730 2007-11-10  Jim Meyering  <meyering@redhat.com>
50731
50732         Avoid link failure for the argmatch test.
50733         * tests/test-argmatch.c (usage): Define function to avoid a link
50734         failure: argmatch_die requires a usage function.
50735
50736 2007-11-09  Bruno Haible  <bruno@clisp.org>
50737
50738         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50739         * doc/functions/vsnprintf.texi: Likewise.
50740         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50741         with a size argument < 2.
50742
50743 2007-11-09  Bruno Haible  <bruno@clisp.org>
50744
50745         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50746         buffer. Fixes an inefficiency introduced on 2007-11-03.
50747
50748 2007-11-09  Bruno Haible  <bruno@clisp.org>
50749
50750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50751         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50752
50753 2007-11-08  Jim Meyering  <meyering@redhat.com>
50754
50755         Change cache variable name prefix "jm_" to "gl_" everywhere.
50756         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50757         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50758         * m4/uptime.m4: s/gl_/jm_/
50759
50760 2007-11-07  Bruno Haible  <bruno@clisp.org>
50761
50762         Update to GNU gettext 0.17.
50763         * m4/intl.m4: Update to GNU gettext 0.17.
50764         * m4/po.m4: Likewise.
50765         * modules/gettext (Files): Remove m4/ulonglong.m4.
50766         (configure.ac): Require gettext infrastructure from version 0.17.
50767
50768 2007-11-06  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50771         symbolic values are not defined in a public header.
50772         * lib/freadable.c (freadable) [QNX]: Likewise.
50773         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50774         * lib/freading.c (freading) [QNX]: Likewise.
50775         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50776         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50777         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50778         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50779         Reported by Alain Magloire.
50780
50781         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50782
50783 2007-11-05  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50786         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50787         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50788         Reported by Eric Blake.
50789
50790 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50794         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50795         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50796         (malloc): Undefine also before including <stdlib.h>.
50797         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50798         Needed on OSF/1 4.0.
50799
50800 2007-11-05  Jim Meyering  <meyering@redhat.com>
50801
50802         git-version-gen: sync from coreutils.
50803         * build-aux/git-version-gen: Add comments.
50804         Change the first '-' to '.' in the snapshot version string,
50805         e.g., 6.9-377-08144 -> 6.9.377-08144
50806         Remove first parameter.
50807         Don't declare a version "-dirty" merely because a time
50808         stamp has changed.
50809
50810 2007-11-04  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/lock.h: Protect all macro definitions containing an 'if'
50813         statement through a "do { ... } while (0)".
50814         * lib/tls.h: Likewise.
50815
50816 2007-11-04  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50819
50820 2007-11-04  Bruno Haible  <bruno@clisp.org>
50821
50822         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50823         * modules/fprintf-posix (Depends-on): Add nocrash.
50824         * modules/snprintf-posix (Depends-on): Likewise.
50825         * modules/sprintf-posix (Depends-on): Likewise.
50826         * modules/vasnprintf-posix (Depends-on): Likewise.
50827         * modules/vasprintf-posix (Depends-on): Likewise.
50828         * modules/vfprintf-posix (Depends-on): Likewise.
50829         * modules/vsnprintf-posix (Depends-on): Likewise.
50830         * modules/vsprintf-posix (Depends-on): Likewise.
50831         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50833         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50835         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50836         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50837         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50838
50839 2007-11-04  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/nocrash: New file.
50842         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50843         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50844
50845 2007-11-04  Bruno Haible  <bruno@clisp.org>
50846
50847         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50848         precision handling.
50849         * tests/test-vasprintf-posix.c (test_function): Likewise.
50850         * tests/test-snprintf-posix.h (test_function): Likewise.
50851         * tests/test-sprintf-posix.h (test_function): Likewise.
50852
50853         Fix *printf behaviour for large precisions on mingw and BeOS.
50854         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50855         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50857         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50858         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50859         gl_PRINTF_PRECISION and test its result. Invoke
50860         gl_PREREQ_VASNPRINTF_PRECISION.
50861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50865         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50866         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50867         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50868         * doc/functions/fprintf.texi: Update.
50869         * doc/functions/printf.texi: Update.
50870         * doc/functions/snprintf.texi: Update.
50871         * doc/functions/sprintf.texi: Update.
50872         * doc/functions/vfprintf.texi: Update.
50873         * doc/functions/vprintf.texi: Update.
50874         * doc/functions/vsnprintf.texi: Update.
50875         * doc/functions/vsprintf.texi: Update.
50876
50877 2007-11-04  Bruno Haible  <bruno@clisp.org>
50878
50879         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50880
50881 2007-11-04  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50884         Reported by Sylvain Beucler <beuc@gnu.org>.
50885
50886 2007-11-03  Bruno Haible  <bruno@clisp.org>
50887
50888         * tests/test-fprintf-posix2.sh: New file.
50889         * tests/test-fprintf-posix2.c: New file.
50890         * modules/fprintf-posix-tests (Files): Add them.
50891         (TESTS): Add test-fprintf-posix2.sh.
50892         (configure.ac): Check for getrlimit and setrlimit.
50893         (check_PROGRAMS): Add test-fprintf-posix2.
50894
50895         * tests/test-printf-posix2.sh: New file.
50896         * tests/test-printf-posix2.c: New file.
50897         * modules/printf-posix-tests (Files): Add them.
50898         (TESTS): Add test-printf-posix2.sh.
50899         (configure.ac): Check for getrlimit and setrlimit.
50900         (check_PROGRAMS): Add test-printf-posix2.
50901
50902         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50903         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50904         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50905         (decode_double): New function, copied from decode_long_double.
50906         (scale10_round_decimal_decoded): New function, extracted from
50907         scale10_round_decimal_long_double.
50908         (scale10_round_decimal_long_double): Use it.
50909         (scale10_round_decimal_double): New function.
50910         (floorlog10): New function.
50911         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50913         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50915         gl_PRINTF_ENOMEM and test its result. Invoke
50916         gl_PREREQ_VASNPRINTF_ENOMEM.
50917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50924         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50925         * modules/snprintf-posix (Depends-on): Likewise.
50926         * modules/sprintf-posix (Depends-on): Likewise.
50927         * modules/vasnprintf-posix (Depends-on): Likewise.
50928         * modules/vasprintf-posix (Depends-on): Likewise.
50929         * modules/vfprintf-posix (Depends-on): Likewise.
50930         * modules/vsnprintf-posix (Depends-on): Likewise.
50931         * modules/vsprintf-posix (Depends-on): Likewise.
50932         * doc/functions/fprintf.texi: Update.
50933         * doc/functions/printf.texi: Update.
50934         * doc/functions/snprintf.texi: Update.
50935         * doc/functions/sprintf.texi: Update.
50936         * doc/functions/vfprintf.texi: Update.
50937         * doc/functions/vprintf.texi: Update.
50938         * doc/functions/vsnprintf.texi: Update.
50939         * doc/functions/vsprintf.texi: Update.
50940
50941 2007-11-03  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/frexp-nolibm-tests: New file.
50944
50945         * modules/frexp-nolibm: New file.
50946         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50947
50948 2007-11-03  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50951         value is C99 compliant.
50952         Needed for OSF/1 5.1.
50953
50954 2007-11-03  Bruno Haible  <bruno@clisp.org>
50955
50956         Fix out-of-memory handling of vasnprintf.
50957         * lib/printf-parse.c: Include <errno.h>.
50958         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50959         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50960         is already set.
50961
50962 2007-11-02  Eric Blake  <ebb9@byu.net>
50963
50964         Fix tests on cygwin.
50965         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50966
50967 2007-11-01  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50970         warning.
50971         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50972         needed for POSIX compatibility.
50973
50974 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50975
50976         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50977         for compatibility with GNU.
50978
50979 2007-11-01  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50982         (putenv): Renamed from rpl_putenv. Change argument type from
50983         'const char *' to 'char *'.
50984         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50985         of defining putenv in config.h, just set REPLACE_PUTENV.
50986         * modules/putenv (Depends-on): Add stdlib.
50987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50988         (Include): Use <stdlib.h>.
50989         * lib/stdlib.in.h (putenv): New declaration.
50990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50991         REPLACE_PUTENV.
50992         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50993         REPLACE_PUTENV.
50994         Needed for MacOS X 10.5.0.
50995         Reported by Peter O'Gorman <peter@pogma.com>.
50996
50997 2007-11-01  Jim Meyering  <meyering@redhat.com>
50998
50999         Treat an empty date string exactly like "0".
51000         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51001         if the remaining date string (to be parsed) is empty, use "0".
51002         Reported by Mischa Molhoek and discussed in this thread:
51003         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51004
51005 2007-10-31  Bruno Haible  <bruno@clisp.org>
51006
51007         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51008         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51009         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51010         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51011         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51012         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51013
51014 2007-10-31  Bruno Haible  <bruno@clisp.org>
51015
51016         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51017         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51018         (AC_TYPE_LONG_LONG_INT): Use it.
51019         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51020         it as well.
51021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51022         to m4/longlong.m4.
51023         * modules/stdint (Files): Remove m4/ulonglong.m4.
51024         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51025         m4/ulonglong.m4.
51026         * modules/strtoumax (Files): Likewise.
51027
51028 2007-10-30  Bruno Haible  <bruno@clisp.org>
51029
51030         * modules/xvasprintf-posix: New file.
51031         Suggested by Eric Blake.
51032
51033 2007-10-30  Bruno Haible  <bruno@clisp.org>
51034
51035         * modules/xprintf-posix-tests: New file.
51036         * tests/test-xprintf-posix.sh: New file.
51037         * tests/test-xprintf-posix.c: New file.
51038         * tests/test-xfprintf-posix.c: New file.
51039
51040         * modules/xprintf-posix: New file.
51041
51042 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51043
51044         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51045         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51046         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51047
51048 2007-10-29  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51051         contain the special marker '_cv_'.
51052         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51053         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51054         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51055         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51056         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51057         Reported by Ralf Wildenhues.
51058
51059 2007-10-29  Bruno Haible  <bruno@clisp.org>
51060
51061         * gnulib-tool (func_import): When --lgpl is not specified, set
51062         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51063         GPLv3.
51064         Reported by Simon Josefsson.
51065
51066 2007-10-28  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51069         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51070         HAVE_DECL_ISFINITE.
51071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51072         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51073         HAVE_DECL_ISFINITE.
51074
51075 2007-10-28  Bruno Haible  <bruno@clisp.org>
51076
51077         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51078         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51079
51080 2007-10-28  Bruno Haible  <bruno@clisp.org>
51081
51082         Fix link errors with Sun C 5.0 on Solaris 10.
51083         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51084         function is declared but not present in the compiler's libm.
51085         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51086         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51087         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51088         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51089         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51090         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51091         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51093         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51094         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51095         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51096         HAVE_DECL_FLOORL.
51097
51098 2007-10-28  Bruno Haible  <bruno@clisp.org>
51099
51100         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51101         gl_FUNC_FLOORL. Cache the result.
51102         (gl_FUNC_FLOORL): Use it.
51103         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51104         gl_FUNC_CEILL. Cache the result.
51105         (gl_FUNC_CEILL): Use it.
51106
51107         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51108         gl_FUNC_FLOOR. Cache the result.
51109         (gl_FUNC_FLOOR): Use it.
51110         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51111         gl_FUNC_CEIL. Cache the result.
51112         (gl_FUNC_CEIL): Use it.
51113
51114         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51115         gl_FUNC_FLOORF. Cache the result.
51116         (gl_FUNC_FLOORF): Use it.
51117         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51118         gl_FUNC_CEILF. Cache the result.
51119         (gl_FUNC_CEILF): Use it.
51120
51121 2007-10-28  Bruno Haible  <bruno@clisp.org>
51122
51123         * gnulib-tool: Allow specifying the LGPL version number through
51124         --lgpl=2 or --lgpl=3.
51125         (func_usage): Document --lgpl with argument.
51126         Handle --lgpl=... arguments.
51127         (func_import): Recognize also gl_LGPL calls with an argument. When
51128         --lgpl=2 is used and the module's license is just LGPL, report an
51129         error. Set sed_transform_lib_file according to the lgpl variable. In
51130         the generated files, use --lgpl or gl_LGPL invocations with argument,
51131         if necessary.
51132         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51133         an LGPv2+ license.
51134         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51135         gl_LGPL macro.
51136
51137 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51138             Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51141         (u16_uctomb_aux): Likewise.
51142         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51143         !HAVE_INLINE.
51144         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51145
51146 2007-10-28  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51149         Invoke AM_GETTEXT_OPTION if it exists.
51150         * modules/vasprintf: Likewise.
51151         * modules/verror: Likewise.
51152         * modules/xprintf: Likewise.
51153         * modules/xvasprintf: Likewise.
51154
51155 2007-10-27  Ben Pfaff  <blp@gnu.org>
51156
51157         * lib/math.in.h: Define isfinite macro and prototypes for
51158         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51159         implementations.
51160         * m4/math_h.m4: New substitutions for isfinite module.
51161         * lib/isfinite.c: New file.
51162         * m4/isfinite.m4: New file.
51163         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51164         * modules/isfinite: New file.
51165         * modules/isfinite-tests: New file.
51166         * tests/tests-isfinite.c: New file.
51167         * doc/functions/isfinite.texi: Mention isfinite module.
51168         * MODULES.html.sh: Mention new module.
51169
51170 2007-10-27  Ben Pfaff  <blp@gnu.org>
51171
51172         Ralf Wildenhues reported that Tru64 4.0D declares the round
51173         functions but does not have definitions.
51174         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51175         cannot be found in any library, set the output variable to
51176         "missing" instead of "".
51177         * m4/round.m4: Also use our substitute if we cannot find round in
51178         any library, even if it is declared.
51179         * m4/roundf.m4: Likewise for roundf.
51180         * m4/roundl.m4: Likewise for roundl.
51181         * lib/math.in.h: Undefine roundf, round, roundl before defining
51182         their replacements, to allow for hypothetical systems where these
51183         may be defined as macros but not available in libraries.
51184
51185 2007-10-27  Bruno Haible  <bruno@clisp.org>
51186
51187         * doc/gnulib.texi: Invoke @firstparagraphindent.
51188         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51189         changes in gnulib.
51190         (Source changes): New section.
51191
51192 2007-10-26  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51195         borrowed from autoconf.
51196
51197 2007-10-26  Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51200         strerror returned the empty string. Needed on HP-UX 11.00.
51201
51202 2007-10-24  Micah Cowan  <micah@cowan.name>
51203
51204         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51205         * build-aux/bootstrap: Remove support for now-unnecessary option,
51206         --cvs-user, and envvars CVS_USER, CVS_RSH.
51207
51208 2007-10-24  Jim Meyering  <meyering@redhat.com>
51209
51210         Avoid diagnostics from sha1sum when there is no cached checksum.
51211         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51212         if the po.s1 file hasn't been created yet.
51213
51214         * build-aux/bootstrap: Sync from coreutils:
51215         2007-10-24  Jim Meyering  <meyering@redhat.com>
51216         Get gnulib from the git repository, not from an obsolete cvs one.
51217         * build-aux/bootstrap: Suggestion from Micah Cowan.
51218         2007-10-04  Jim Meyering  <jim@meyering.net>
51219         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51220         (update_po_files): Work also when there are no .po files in po/.
51221
51222 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         * README: Append ".git" to git and cg examples.
51225         Problem reported by Benoit Sigoure.
51226
51227 2007-10-23  Micah Cowan  <micah@cowan.name>
51228
51229         * users.txt: Add wget.
51230
51231 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51232
51233         Fix linking of some unistdio tests on FreeBSD.
51234         * modules/unistdio/u16-vsnprintf-tests
51235         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51236         * modules/unistdio/u16-vsprintf-tests
51237         (test_u16_vsnprintf1_LDADD): Likewise.
51238         * modules/unistdio/u32-vsnprintf-tests
51239         (test_u32_vsnprintf1_LDADD): Likewise.
51240         * modules/unistdio/u32-vsprintf-tests
51241         (test_u32_vsprintf1_LDADD): Likewise.
51242         * modules/unistdio/u8-vsnprintf-tests
51243         (test_u8_vsnprintf1_LDADD): Likewise.
51244         * modules/unistdio/u8-vsprintf-tests
51245         (test_u8_vsprintf1_LDADD): Likewise.
51246         * modules/unistdio/ulc-vsnprintf-tests
51247         (test_ulc_vsnprintf1_LDADD): Likewise.
51248         * modules/unistdio/ulc-vsprintf-tests
51249         (test_ulc_vsprintf1_LDADD): Likewise.
51250
51251         Fix linking of some uniconv tests on FreeBSD.
51252         * modules/uniconv/u16-conv-from-enc-tests
51253         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51254         * modules/uniconv/u16-conv-to-enc-tests
51255         (test_u16_conv_to_enc_LDADD): Likewise.
51256         * modules/uniconv/u16-strconv-from-enc-tests
51257         (test_u16_strconv_from_enc_LDADD): Likewise.
51258         * modules/uniconv/u16-strconv-to-enc-tests
51259         (test_u16_strconv_to_enc_LDADD): Likewise.
51260         * modules/uniconv/u32-conv-from-enc-tests
51261         (test_u32_conv_from_enc_LDADD): Likewise.
51262         * modules/uniconv/u32-conv-to-enc-tests
51263         (test_u32_conv_to_enc_LDADD): Likewise.
51264         * modules/uniconv/u32-strconv-from-enc-tests
51265         (test_u32_strconv_from_enc_LDADD): Likewise.
51266         * modules/uniconv/u32-strconv-to-enc-tests
51267         (test_u32_strconv_to_enc_LDADD): Likewise.
51268         * modules/uniconv/u8-conv-from-enc-tests
51269         (test_u8_conv_from_enc_LDADD): Likewise.
51270         * modules/uniconv/u8-conv-to-enc-tests
51271         (test_u8_conv_to_enc_LDADD): Likewise.
51272         * modules/uniconv/u8-strconv-from-enc-tests
51273         (test_u8_strconv_from_enc_LDADD): Likewise.
51274         * modules/uniconv/u8-strconv-to-enc-tests
51275         (test_u8_strconv_to_enc_LDADD): Likewise.
51276
51277 2007-10-22  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51280         size.
51281
51282 2007-10-22  Eric Blake  <ebb9@byu.net>
51283
51284         Tweak x*printf documentation.
51285         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51286         variable name and comments.
51287         Suggested by Bruno Haible.
51288
51289 2007-10-22  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/acl.c (copy_acl): Fix file name in comment.
51292
51293 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         Fix Tru64 problem with stdbool.h.
51296         * lib/stdbool.in.h (false, true):
51297         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51298         Don't declare as an enum in this situation; it runs afoul of Tru64.
51299         Problem reported by Steven M. Schweda in
51300         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51301
51302 2007-10-22  Eric Blake  <ebb9@byu.net>
51303
51304         Also wrap vf?printf.
51305         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51306         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51307         (xvprintf, xvfprintf): New functions.
51308
51309 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51310
51311         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51312         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51313
51314         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51315         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51316
51317 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51318
51319         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51320         by Bruno Haible.
51321
51322 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51323
51324         * lib/getloadavg.c
51325         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51326         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51327
51328         * tests/test-i-ring.c: Work for C89.
51329
51330 2007-10-22  Bruno Haible  <bruno@clisp.org>
51331
51332         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51333         -1u, in preprocessor expression, so that we don't test for the bug
51334         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51336
51337 2007-10-22  Eric Blake  <ebb9@byu.net>
51338
51339         * tests/test-yesno.sh: Silence stderr during test.
51340
51341 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51342
51343         * modules/crypto/gc-camellia: New file.
51344
51345         * m4/gc-camellia.m4: New file.
51346
51347         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51348
51349         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51350
51351 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51352
51353         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51354         --help to stdout.  Reported by sms@antinode.org (Steven
51355         M. Schweda).
51356
51357 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51358
51359         * users.txt: Fix link to libksba.
51360
51361 2007-10-21  Ben Pfaff  <blp@gnu.org>
51362
51363         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51364         round.c roundf implementation that depends on floorf and ceilf to
51365         be tested unconditionally.
51366
51367 2007-10-21  Ben Pfaff  <blp@gnu.org>
51368
51369         * m4/check-libm-func.m4: Removed.
51370         * m4/check-math-lib.m4: New file.
51371         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51372         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51373         definition and lack of AC_LIBOBJ([roundf]).
51374         * m4/roundl.m4: Ditto, and similarly for roundl.
51375         * modules/round: Reference new m4 file.
51376         * modules/roundf: Ditto.
51377         * modules/roundl: Ditto.
51378         * tests/test-round2.c (main): Use ROUND instead of round.
51379         Bug report from Bruno Haible.
51380
51381 2007-10-21  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51384         context.
51385
51386 2007-10-21  Bruno Haible  <bruno@clisp.org>
51387
51388         * tests/test-wcwidth.c (main): Allow negative result for some control
51389         characters.
51390
51391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51392         Needed on OSF/1 5.1.
51393
51394 2007-10-21  Bruno Haible  <bruno@clisp.org>
51395
51396         * tests/test-floorf1.c: Include isnanf.h.
51397         (main): Use isnanf() instead of isnan().
51398         * tests/test-ceilf1.c: Include isnanf.h.
51399         (main): Use isnanf() instead of isnan().
51400         * tests/test-truncf1.c: Include isnanf.h.
51401         (main): Use isnanf() instead of isnan().
51402         * tests/test-roundf1.c: Include isnanf.h.
51403         (main): Use isnanf() instead of isnan().
51404
51405 2007-10-21  Eric Blake  <ebb9@byu.net>
51406
51407         * users.txt: Update URL for m4.
51408
51409 2007-10-21  Bruno Haible  <bruno@clisp.org>
51410
51411         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51412
51413 2007-10-21  Bruno Haible  <bruno@clisp.org>
51414
51415         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51416         Git's management files if the CVS files are not present.
51417
51418 2007-10-20  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51421         gcc-3.4.x.
51422
51423 2007-10-20  Ben Pfaff  <blp@gnu.org>
51424
51425         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51426         implementations.
51427         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51428         * lib/round.c: New file.
51429         * lib/roundf.c: New file.
51430         * lib/roundl.c: New file.
51431         * m4/round.m4: New file.
51432         * m4/roundf.m4: New file.
51433         * m4/roundl.m4: New file.
51434         * m4/check-libm-func-m4: New file.
51435         * modules/math: Replace round, roundf, roundl related @VARS@ in
51436         math.in.h.
51437         * modules/round: New file.
51438         * modules/round-tests: New file.
51439         * modules/roundf: New file.
51440         * modules/roundf-tests: New file.
51441         * modules/roundl: New file.
51442         * modules/roundl-tests: New file.
51443         * tests/test-round1.c: New file.
51444         * tests/test-round2.c: New file.
51445         * tests/test-roundf1.c: New file.
51446         * tests/test-roundf2.c: New file.
51447         * tests/test-roundl.c: New file.
51448         * doc/functions/round.texi: Mention round module.
51449         * doc/functions/roundf.texi: Mention roundf module.
51450         * doc/functions/roundl.texi: Mention roundl module.
51451         * MODULES.html.sh: Mention new modules.
51452         Thanks to Bruno Haible for suggestions.
51453
51454 2007-10-20  Jim Meyering  <meyering@redhat.com>
51455
51456         * lib/xprintf.c: Include <config.h> unconditionally.
51457
51458         Change xprintf's license to GPL.
51459         * modules/xprintf (License): s/LGPL/GPL/, since this module
51460         depends on modules (exit and exitfail) which are GPL.
51461         Suggestion from Bruno Haible.
51462
51463         xprintf fixes.
51464         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51465         Use a clearer diagnostic.
51466         Patch from Bruno Haible.
51467
51468 2007-10-20  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51471         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51473
51474 2007-10-20  Bruno Haible  <bruno@clisp.org>
51475
51476         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51477         precision in the comparison result > x - 1 or similar.
51478         * tests/test-ceilf2.c (correct_result_p): Likewise.
51479         * tests/test-truncf2.c (correct_result_p): Likewise.
51480         * tests/test-trunc2.c (correct_result_p): Likewise.
51481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51482
51483 2007-10-20  Bruno Haible  <bruno@clisp.org>
51484
51485         * modules/ceil: New file.
51486         * m4/ceil.m4: New file.
51487         * doc/functions/ceil.texi: Mention the 'ceil' module.
51488
51489 2007-10-20  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/floor: New file.
51492         * m4/floor.m4: New file.
51493         * doc/functions/floor.texi: Mention the 'floor' module.
51494
51495 2007-10-20  Bruno Haible  <bruno@clisp.org>
51496
51497         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51498         of %a.
51499         * modules/floorf-tests (Depends-on): Likewise.
51500         * modules/truncf-tests (Depends-on): Likewise.
51501         * modules/trunc-tests (Depends-on): Likewise.
51502         Reported by Ben Pfaff.
51503
51504 2007-10-19  Jim Meyering  <meyering@redhat.com>
51505
51506         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51507         Don't bother testing specific errno values.  Just test ferror.
51508
51509         New module: xprintf
51510         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51511
51512 2007-10-19  Bruno Haible  <bruno@clisp.org>
51513
51514         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51515         syntax.
51516         * modules/javaexec (Makefile.am): Likewise.
51517         * modules/relocatable-prog (Makefile.am): Likewise.
51518         Suggested by Jim Meyering.
51519
51520 2007-10-18  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51523         Reported by Jim Meyering.
51524
51525 2007-10-18  Eric Blake  <ebb9@byu.net>
51526
51527         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51528
51529 2007-10-18  Bruno Haible  <bruno@clisp.org>
51530
51531         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51532         the format string into writable memory. Needed in Fortify conditions.
51533
51534 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51535             Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51538         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51539         * modules/trim (Depends-on): Add mbchar.
51540         (configure.ac): Add gl_FUNC_MBRTOWC.
51541         (Makefile.am): Augment lib_SOURCES.
51542
51543 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         Modify glob.c to use fstatat and dirfd, to simplify it.
51546         Suggested by Eric Blake.
51547         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51548         Don't include <stdbool.h>; not used.
51549         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51550         (link_exists_p): Simplify implementation, since we can now assume
51551         dirfd and fstatat.
51552         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51553
51554 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51555
51556         * gnulib-tool (func_get_dependencies): Fix sed script to
51557         match only tests.
51558
51559 2007-10-17  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51562         allow locale names without encoding suffix.
51563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51565
51566 2007-10-16  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51569         * lib/getgroups.c (getgroups): Likewise.
51570         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51571
51572 2007-10-16  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51575         * modules/malloc-posix (License): Likewise.
51576         * modules/realloc-posix (License): Likewise.
51577         * modules/calloc-posix (License): Likewise.
51578         * modules/intprops (License): Change from GPL to LGPL, with
51579         Paul Eggert's approval.
51580
51581 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51582
51583         Merge glibc changes into lib/glob.c.
51584
51585         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51586         2007-10-15 04:59:03 UTC.  Here are the changes:
51587
51588         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51589
51590         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51591
51592         * lib/glob.c: Add some branch prediction throughout.
51593
51594         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51595
51596         [BZ #5103]
51597         * lib/glob.c (glob): Recognize patterns starting \/.
51598
51599         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51600
51601         [BZ #3996]
51602         * lib/glob.c (attribute_hidden): Define if not defined.
51603         (glob): Unescape dirname, filename or username when needed and not
51604         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51605         is NULL.  Handle unescaped [ in pattern without closing ].
51606         Don't pass GLOB_CHECK down to recursive glob for directories.
51607         (__glob_pattern_type): New function.
51608         (__glob_pattern_p): Implement using __glob_pattern_type.
51609         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51610         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51611         Remove unreachable code.
51612
51613         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51614
51615         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51616         explain why there are no leaks.
51617
51618         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51619
51620         [BZ #3253]
51621         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51622         time, rather allocate increasingly bigger arrays of pointers, if
51623         possible with alloca, if too large with malloc.
51624
51625 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51626
51627         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51628         Problem reported by H.Merijn Brand in
51629         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51630         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51631         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51632
51633 2007-10-15  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51636         with explicit rpl_ prefix.
51637         * lib/fopen.c (fopen): Likewise.
51638         * lib/freopen.c (freopen): Likewise.
51639         * lib/iconv.c (iconv): Likewise.
51640         * lib/iconv_close.c (iconv_close): Likewise.
51641
51642 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51643
51644         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51645
51646 2007-10-15  Bruno Haible  <bruno@clisp.org>
51647
51648         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51649         <stddef.h> instead of <stdlib.h> since we only need NULL.
51650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51651
51652 2007-10-15  Bruno Haible  <bruno@clisp.org>
51653
51654         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51655         Replace paragraph talking about LIBOBJS.
51656         Reported by Colin Watson <cjwatson@debian.org>.
51657
51658 2007-10-15  Bruno Haible  <bruno@clisp.org>
51659
51660         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51661         <stdlib.h> before using NULL.
51662
51663 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51664
51665         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51666         Reported by Albert Chin <china@thewrittenword.com>.
51667
51668 2007-10-14  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/iconv_open-utf-tests: New file.
51671         * tests/test-iconv-utf.c: New file.
51672
51673         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51674         * modules/iconv_open-utf: New file.
51675         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51676         (iconv, iconv_close): New declarations.
51677         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51678         be defined.
51679         (iconv_open): Add special handling of conversion between UTF-8 and
51680         UTF-{16,32}{BE,LE}.
51681         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51682         * lib/iconv_close.c: New file.
51683         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51684         gl_FUNC_ICONV_OPEN.
51685         (gl_FUNC_ICONV_OPEN): Use it.
51686         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51687         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51688         and REPLACE_ICONV_UTF.
51689         * modules/iconv_open (Depends-on): Add c-strcase.
51690         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51691         ICONV_CONST.
51692         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51693
51694 2007-10-13  Albert Chin  <china@thewrittenword.com>
51695             Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51698         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51699
51700 2007-10-13  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51703         defined, use the ISO C99 inline semantics.
51704         * lib/argp.h (ARGP_EI): Likewise.
51705
51706 2007-10-13  Bruno Haible  <bruno@clisp.org>
51707
51708         Handle 'inline' change in gcc 4.3.0.
51709         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51710         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51711         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51712         argp_fmtstream_point): Disable 'extern' declaration if the function
51713         definition is going to be provided inline.
51714         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51715         semantics, not the ISO C99 inline semantics.
51716         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51717         'extern' declaration if the function definition is going to be provided
51718         inline.
51719         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51720         the GNU C inline semantics, not the ISO C99 inline semantics. With
51721         GCC 4.2, avoid a warning.
51722
51723 2007-10-13  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/freading.h (freading): Enable the use of __freading for
51726         glibc >= 2.7.
51727         * lib/freading.c (freading): Likewise.
51728
51729 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51732         "warning: C99 inline functions are not supported; using GNU89".
51733
51734 2007-10-12  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51737         of 2.
51738         * tests/test-ceilf2.c: New file.
51739         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51740
51741         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51742         * modules/ceilf-tests: Update.
51743
51744 2007-10-12  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51747         of 2.
51748         * tests/test-floorf2.c: New file.
51749         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51750
51751         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51752         * modules/floorf-tests: Update.
51753
51754 2007-10-12  Bruno Haible  <bruno@clisp.org>
51755
51756         * tests/test-trunc2.c: New file.
51757         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51758
51759         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51760         * modules/trunc-tests: Update.
51761
51762 2007-10-12  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51765         of 2.
51766         * tests/test-truncf2.c: New file.
51767         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51768
51769         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51770         * modules/truncf-tests: Update.
51771
51772 2007-10-11  Eric Blake  <ebb9@byu.net>
51773
51774         Don't claim strerror is broken on Interix.
51775         * doc/functions/strerror.texi (strerror): Known broken systems are
51776         now Solaris 8, and not Interix.
51777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51778         Interix on cross-compile.
51779         Reported by Martin Koeppe in
51780         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51781
51782 2007-10-11  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/i-ring-tests: New file.
51785         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51786         instead of assert.
51787
51788 2007-10-11  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/filenamecat-tests: New file.
51791         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51792         * lib/filenamecat.c: Remove test code.
51793
51794 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51797
51798         * lib/strerror.c: Include <string.h> always, to test interface,
51799         and to remove the need for the dummy.
51800         Include intprops.h to compute width instead of doing it ourselves
51801         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51802         (strerror): Define it to return NULL if there's no system strerror.
51803         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51804         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51805         ancient pre-strerror Unix systems well any more.  Saying "unknown
51806         system error" is enough.
51807         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51808         simpler strerror.c implementation.
51809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51810         Simplify the tests to reflect the simpler strerror implementation.
51811         * modules/strerror (Depends-on): Add intprops.
51812
51813 2007-10-09  Eric Blake  <ebb9@byu.net>
51814
51815         Silence test-fpending.
51816         * modules/fpending-tests (Files): Add wrapper script.
51817         * tests/test-fpending.sh: New file.
51818
51819 2007-10-09  Bruno Haible  <bruno@clisp.org>
51820
51821         * MODULES.html.sh (func_module): Don't create a hyperlink for
51822         function names like 'printf_frexp'.
51823         (Misc): Add crc, memxor.
51824         (Characteristics of floating types): New section.
51825         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51826         isnanf-nolibm, signbit, trunc, truncf, truncl.
51827         (Enhancements for ISO C 99 functions): New subsection Input/output.
51828         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51829         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51830         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51831         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51832         (Enhancements for POSIX:2001 functions): Add chdir-long.
51833         (File system functions): Add areadlink, chdir-safer, read-file.
51834         Remove cycle-check.
51835         (File system as inode set): New section.
51836         (Date and time): Add gethrxtime.
51837         (Multithreading): Add openmp.
51838         (Internationalization functions): Add localename.
51839         (Unicode string functions): Add unistr/u*-mbsnlen.
51840         (Support for maintaining and releasing projects): Add git-version-gen.
51841         (Lone files): Remove directories.
51842
51843 2007-10-08  Ben Pfaff  <blp@gnu.org>
51844
51845         * lib/xmalloca.h: Fix typo in comment.
51846
51847 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51850         when avoiding problems with integer overflow.  Use a portable test
51851         instead.
51852
51853 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51854
51855         * modules/dummy (License): Change to LGPLv2+.
51856         * modules/float (License): Likewise
51857         * modules/realloc (License): Likewise
51858         * modules/stdlib (License): Likewise
51859
51860 2007-10-07  Bruno Haible  <bruno@clisp.org>
51861
51862         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51863         * floor.c (TWO_MANT_DIG): Likewise.
51864         * ceil.c (TWO_MANT_DIG): Likewise.
51865         Reported by Ben Pfaff.
51866
51867 2007-10-07  Bruno Haible  <bruno@clisp.org>
51868
51869         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51870         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51871         * lib/frexp.c (FUNC): Likewise.
51872         * lib/printf-frexp.h (printf_frexp): Likewise.
51873         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51874         * lib/printf-frexp.c (FUNC): Likewise.
51875         Suggested by Jim Meyering.
51876
51877 2007-10-07  Jim Meyering  <meyering@redhat.com>
51878
51879         Make xnanosleep's integer overflow test more robust.
51880         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51881         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51882
51883 2007-10-07  Bruno Haible  <bruno@clisp.org>
51884
51885         * NEWS: Mention the license change.
51886
51887         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51888         abbreviations in the modules files.
51889
51890         Change copyright notice from GPLv2+ to GPLv3+.
51891         * README: Change copyright notice.
51892         * MODULES.html.sh: Likewise.
51893         * build-aux/bootstrap.conf: Likewise.
51894         * build-aux/config.libpath: Likewise.
51895         * build-aux/csharpcomp.sh.in: Likewise.
51896         * build-aux/csharpexec.sh.in: Likewise.
51897         * build-aux/install-reloc: Likewise.
51898         * build-aux/javacomp.sh.in: Likewise.
51899         * build-aux/javaexec.sh.in: Likewise.
51900         * build-aux/ldd.sh.in: Likewise.
51901         * build-aux/reloc-ldflags: Likewise.
51902         * build-aux/relocatable.sh.in: Likewise.
51903         * build-aux/x-to-1.in: Likewise.
51904         * check-module: Likewise.
51905         * config/srclistvars.sh: Likewise.
51906         * gnulib-tool: Likewise.
51907         * lib/acl-internal.h: Likewise.
51908         * lib/acl.c: Likewise.
51909         * lib/acl.h: Likewise.
51910         * lib/acl_entries.c: Likewise.
51911         * lib/areadlink-with-size.c: Likewise.
51912         * lib/areadlink.c: Likewise.
51913         * lib/areadlink.h: Likewise.
51914         * lib/argmatch.c: Likewise.
51915         * lib/argmatch.h: Likewise.
51916         * lib/argp-ba.c: Likewise.
51917         * lib/argp-eexst.c: Likewise.
51918         * lib/argp-fmtstream.c: Likewise.
51919         * lib/argp-fmtstream.h: Likewise.
51920         * lib/argp-fs-xinl.c: Likewise.
51921         * lib/argp-help.c: Likewise.
51922         * lib/argp-namefrob.h: Likewise.
51923         * lib/argp-parse.c: Likewise.
51924         * lib/argp-pin.c: Likewise.
51925         * lib/argp-pv.c: Likewise.
51926         * lib/argp-pvh.c: Likewise.
51927         * lib/argp-xinl.c: Likewise.
51928         * lib/argp.h: Likewise.
51929         * lib/at-func.c: Likewise.
51930         * lib/atanl.c: Likewise.
51931         * lib/backupfile.c: Likewise.
51932         * lib/backupfile.h: Likewise.
51933         * lib/basename.c: Likewise.
51934         * lib/binary-io.h: Likewise.
51935         * lib/byteswap.in.h: Likewise.
51936         * lib/c-stack.c: Likewise.
51937         * lib/c-stack.h: Likewise.
51938         * lib/c-strcasestr.c: Likewise.
51939         * lib/c-strcasestr.h: Likewise.
51940         * lib/c-strstr.c: Likewise.
51941         * lib/c-strstr.h: Likewise.
51942         * lib/c-strtod.c: Likewise.
51943         * lib/calloc.c: Likewise.
51944         * lib/canon-host.c: Likewise.
51945         * lib/canon-host.h: Likewise.
51946         * lib/canonicalize-lgpl.c: Likewise.
51947         * lib/canonicalize.c: Likewise.
51948         * lib/canonicalize.h: Likewise.
51949         * lib/ceil.c: Likewise.
51950         * lib/ceilf.c: Likewise.
51951         * lib/ceill.c: Likewise.
51952         * lib/chdir-long.c: Likewise.
51953         * lib/chdir-long.h: Likewise.
51954         * lib/chdir-safer.c: Likewise.
51955         * lib/chdir-safer.h: Likewise.
51956         * lib/chown.c: Likewise.
51957         * lib/classpath.c: Likewise.
51958         * lib/classpath.h: Likewise.
51959         * lib/clean-temp.c: Likewise.
51960         * lib/clean-temp.h: Likewise.
51961         * lib/cloexec.c: Likewise.
51962         * lib/close-stream.c: Likewise.
51963         * lib/closein.c: Likewise.
51964         * lib/closein.h: Likewise.
51965         * lib/closeout.c: Likewise.
51966         * lib/closeout.h: Likewise.
51967         * lib/concat-filename.c: Likewise.
51968         * lib/copy-file.c: Likewise.
51969         * lib/copy-file.h: Likewise.
51970         * lib/count-one-bits.h: Likewise.
51971         * lib/crc.c: Likewise.
51972         * lib/crc.h: Likewise.
51973         * lib/creat-safer.c: Likewise.
51974         * lib/csharpcomp.c: Likewise.
51975         * lib/csharpcomp.h: Likewise.
51976         * lib/csharpexec.c: Likewise.
51977         * lib/csharpexec.h: Likewise.
51978         * lib/cycle-check.c: Likewise.
51979         * lib/cycle-check.h: Likewise.
51980         * lib/diacrit.c: Likewise.
51981         * lib/diacrit.h: Likewise.
51982         * lib/diffseq.h: Likewise.
51983         * lib/dirchownmod.c: Likewise.
51984         * lib/dirent.in.h: Likewise.
51985         * lib/dirfd.c: Likewise.
51986         * lib/dirfd.h: Likewise.
51987         * lib/dirname.c: Likewise.
51988         * lib/dirname.h: Likewise.
51989         * lib/dummy.c: Likewise.
51990         * lib/dup-safer.c: Likewise.
51991         * lib/dup2.c: Likewise.
51992         * lib/eealloc.h: Likewise.
51993         * lib/error.c: Likewise.
51994         * lib/error.h: Likewise.
51995         * lib/euidaccess.c: Likewise.
51996         * lib/exclude.c: Likewise.
51997         * lib/exclude.h: Likewise.
51998         * lib/execute.c: Likewise.
51999         * lib/execute.h: Likewise.
52000         * lib/exitfail.c: Likewise.
52001         * lib/exitfail.h: Likewise.
52002         * lib/expl.c: Likewise.
52003         * lib/fatal-signal.c: Likewise.
52004         * lib/fatal-signal.h: Likewise.
52005         * lib/fbufmode.c: Likewise.
52006         * lib/fbufmode.h: Likewise.
52007         * lib/fchdir.c: Likewise.
52008         * lib/fchmodat.c: Likewise.
52009         * lib/fchownat.c: Likewise.
52010         * lib/fcntl--.h: Likewise.
52011         * lib/fcntl-safer.h: Likewise.
52012         * lib/fcntl.in.h: Likewise.
52013         * lib/fd-safer.c: Likewise.
52014         * lib/fflush.c: Likewise.
52015         * lib/file-has-acl.c: Likewise.
52016         * lib/file-set.c: Likewise.
52017         * lib/file-type.c: Likewise.
52018         * lib/file-type.h: Likewise.
52019         * lib/fileblocks.c: Likewise.
52020         * lib/filemode.c: Likewise.
52021         * lib/filemode.h: Likewise.
52022         * lib/filename.h: Likewise.
52023         * lib/filenamecat.c: Likewise.
52024         * lib/filenamecat.h: Likewise.
52025         * lib/findprog.c: Likewise.
52026         * lib/findprog.h: Likewise.
52027         * lib/float.in.h: Likewise.
52028         * lib/floor.c: Likewise.
52029         * lib/floorf.c: Likewise.
52030         * lib/floorl.c: Likewise.
52031         * lib/fopen-safer.c: Likewise.
52032         * lib/fopen.c: Likewise.
52033         * lib/fpending.c: Likewise.
52034         * lib/fpending.h: Likewise.
52035         * lib/fprintf.c: Likewise.
52036         * lib/fprintftime.h: Likewise.
52037         * lib/fpucw.h: Likewise.
52038         * lib/fpurge.c: Likewise.
52039         * lib/fpurge.h: Likewise.
52040         * lib/freadable.c: Likewise.
52041         * lib/freadable.h: Likewise.
52042         * lib/freadahead.c: Likewise.
52043         * lib/freadahead.h: Likewise.
52044         * lib/freading.c: Likewise.
52045         * lib/freading.h: Likewise.
52046         * lib/free.c: Likewise.
52047         * lib/freopen.c: Likewise.
52048         * lib/frexp.c: Likewise.
52049         * lib/frexpl.c: Likewise.
52050         * lib/fseek.c: Likewise.
52051         * lib/fseterr.c: Likewise.
52052         * lib/fseterr.h: Likewise.
52053         * lib/fstatat.c: Likewise.
52054         * lib/fstrcmp.c: Likewise.
52055         * lib/fstrcmp.h: Likewise.
52056         * lib/fsusage.c: Likewise.
52057         * lib/fsusage.h: Likewise.
52058         * lib/ftell.c: Likewise.
52059         * lib/ftello.c: Likewise.
52060         * lib/fts-cycle.c: Likewise.
52061         * lib/fts.c: Likewise.
52062         * lib/fts_.h: Likewise.
52063         * lib/full-read.c: Likewise.
52064         * lib/full-read.h: Likewise.
52065         * lib/full-write.c: Likewise.
52066         * lib/full-write.h: Likewise.
52067         * lib/fwritable.c: Likewise.
52068         * lib/fwritable.h: Likewise.
52069         * lib/fwriteerror.c: Likewise.
52070         * lib/fwriteerror.h: Likewise.
52071         * lib/fwriting.c: Likewise.
52072         * lib/fwriting.h: Likewise.
52073         * lib/gcd.c: Likewise.
52074         * lib/gcd.h: Likewise.
52075         * lib/getcwd.c: Likewise.
52076         * lib/getdate.h: Likewise.
52077         * lib/getdate.y: Likewise.
52078         * lib/getdomainname.c: Likewise.
52079         * lib/getdomainname.h: Likewise.
52080         * lib/getgroups.c: Likewise.
52081         * lib/gethostname.c: Likewise.
52082         * lib/gethrxtime.c: Likewise.
52083         * lib/gethrxtime.h: Likewise.
52084         * lib/getloadavg.c: Likewise.
52085         * lib/getndelim2.c: Likewise.
52086         * lib/getndelim2.h: Likewise.
52087         * lib/getnline.c: Likewise.
52088         * lib/getnline.h: Likewise.
52089         * lib/getopt.c: Likewise.
52090         * lib/getopt.in.h: Likewise.
52091         * lib/getopt1.c: Likewise.
52092         * lib/getopt_int.h: Likewise.
52093         * lib/getpagesize.h: Likewise.
52094         * lib/getsubopt.c: Likewise.
52095         * lib/gettime.c: Likewise.
52096         * lib/getugroups.c: Likewise.
52097         * lib/getugroups.h: Likewise.
52098         * lib/getusershell.c: Likewise.
52099         * lib/gl_anyavltree_list1.h: Likewise.
52100         * lib/gl_anyavltree_list2.h: Likewise.
52101         * lib/gl_anyhash_list1.h: Likewise.
52102         * lib/gl_anyhash_list2.h: Likewise.
52103         * lib/gl_anylinked_list1.h: Likewise.
52104         * lib/gl_anylinked_list2.h: Likewise.
52105         * lib/gl_anyrbtree_list1.h: Likewise.
52106         * lib/gl_anyrbtree_list2.h: Likewise.
52107         * lib/gl_anytree_list1.h: Likewise.
52108         * lib/gl_anytree_list2.h: Likewise.
52109         * lib/gl_anytree_oset.h: Likewise.
52110         * lib/gl_anytreehash_list1.h: Likewise.
52111         * lib/gl_anytreehash_list2.h: Likewise.
52112         * lib/gl_array_list.c: Likewise.
52113         * lib/gl_array_list.h: Likewise.
52114         * lib/gl_array_oset.c: Likewise.
52115         * lib/gl_array_oset.h: Likewise.
52116         * lib/gl_avltree_list.c: Likewise.
52117         * lib/gl_avltree_list.h: Likewise.
52118         * lib/gl_avltree_oset.c: Likewise.
52119         * lib/gl_avltree_oset.h: Likewise.
52120         * lib/gl_avltreehash_list.c: Likewise.
52121         * lib/gl_avltreehash_list.h: Likewise.
52122         * lib/gl_carray_list.c: Likewise.
52123         * lib/gl_carray_list.h: Likewise.
52124         * lib/gl_linked_list.c: Likewise.
52125         * lib/gl_linked_list.h: Likewise.
52126         * lib/gl_linkedhash_list.c: Likewise.
52127         * lib/gl_linkedhash_list.h: Likewise.
52128         * lib/gl_list.c: Likewise.
52129         * lib/gl_list.h: Likewise.
52130         * lib/gl_oset.c: Likewise.
52131         * lib/gl_oset.h: Likewise.
52132         * lib/gl_rbtree_list.c: Likewise.
52133         * lib/gl_rbtree_list.h: Likewise.
52134         * lib/gl_rbtree_oset.c: Likewise.
52135         * lib/gl_rbtree_oset.h: Likewise.
52136         * lib/gl_rbtreehash_list.c: Likewise.
52137         * lib/gl_rbtreehash_list.h: Likewise.
52138         * lib/gl_sublist.c: Likewise.
52139         * lib/gl_sublist.h: Likewise.
52140         * lib/group-member.c: Likewise.
52141         * lib/group-member.h: Likewise.
52142         * lib/hard-locale.c: Likewise.
52143         * lib/hard-locale.h: Likewise.
52144         * lib/hash-pjw.c: Likewise.
52145         * lib/hash-pjw.h: Likewise.
52146         * lib/hash-triple.c: Likewise.
52147         * lib/hash.c: Likewise.
52148         * lib/hash.h: Likewise.
52149         * lib/human.c: Likewise.
52150         * lib/human.h: Likewise.
52151         * lib/i-ring.c: Likewise.
52152         * lib/i-ring.h: Likewise.
52153         * lib/idcache.c: Likewise.
52154         * lib/imaxabs.c: Likewise.
52155         * lib/imaxdiv.c: Likewise.
52156         * lib/inet_pton.c: Likewise.
52157         * lib/inet_pton.h: Likewise.
52158         * lib/intprops.h: Likewise.
52159         * lib/inttostr.c: Likewise.
52160         * lib/inttostr.h: Likewise.
52161         * lib/inttypes.in.h: Likewise.
52162         * lib/isapipe.c: Likewise.
52163         * lib/isdir.c: Likewise.
52164         * lib/isnan.c: Likewise.
52165         * lib/isnan.h: Likewise.
52166         * lib/isnanf.c: Likewise.
52167         * lib/isnanf.h: Likewise.
52168         * lib/isnanl-nolibm.h: Likewise.
52169         * lib/isnanl.c: Likewise.
52170         * lib/isnanl.h: Likewise.
52171         * lib/javacomp.c: Likewise.
52172         * lib/javacomp.h: Likewise.
52173         * lib/javaexec.c: Likewise.
52174         * lib/javaexec.h: Likewise.
52175         * lib/javaversion.c: Likewise.
52176         * lib/javaversion.h: Likewise.
52177         * lib/javaversion.java: Likewise.
52178         * lib/lbrkprop.h: Likewise.
52179         * lib/lchmod.h: Likewise.
52180         * lib/lchown.c: Likewise.
52181         * lib/ldexpl.c: Likewise.
52182         * lib/linebreak.c: Likewise.
52183         * lib/linebreak.h: Likewise.
52184         * lib/linebuffer.c: Likewise.
52185         * lib/linebuffer.h: Likewise.
52186         * lib/locale.in.h: Likewise.
52187         * lib/logl.c: Likewise.
52188         * lib/long-options.c: Likewise.
52189         * lib/long-options.h: Likewise.
52190         * lib/lstat.c: Likewise.
52191         * lib/lstat.h: Likewise.
52192         * lib/math.in.h: Likewise.
52193         * lib/mbchar.c: Likewise.
52194         * lib/mbchar.h: Likewise.
52195         * lib/mbfile.h: Likewise.
52196         * lib/mbiter.h: Likewise.
52197         * lib/mbscasecmp.c: Likewise.
52198         * lib/mbscasestr.c: Likewise.
52199         * lib/mbschr.c: Likewise.
52200         * lib/mbscspn.c: Likewise.
52201         * lib/mbslen.c: Likewise.
52202         * lib/mbsncasecmp.c: Likewise.
52203         * lib/mbsnlen.c: Likewise.
52204         * lib/mbspbrk.c: Likewise.
52205         * lib/mbspcasecmp.c: Likewise.
52206         * lib/mbsrchr.c: Likewise.
52207         * lib/mbssep.c: Likewise.
52208         * lib/mbsspn.c: Likewise.
52209         * lib/mbsstr.c: Likewise.
52210         * lib/mbstok_r.c: Likewise.
52211         * lib/mbswidth.c: Likewise.
52212         * lib/mbswidth.h: Likewise.
52213         * lib/mbuiter.h: Likewise.
52214         * lib/memcasecmp.c: Likewise.
52215         * lib/memcasecmp.h: Likewise.
52216         * lib/memchr.c: Likewise.
52217         * lib/memcmp.c: Likewise.
52218         * lib/memcoll.c: Likewise.
52219         * lib/memcoll.h: Likewise.
52220         * lib/memcpy.c: Likewise.
52221         * lib/memrchr.c: Likewise.
52222         * lib/mkancesdirs.c: Likewise.
52223         * lib/mkdir-p.c: Likewise.
52224         * lib/mkdir-p.h: Likewise.
52225         * lib/mkdir.c: Likewise.
52226         * lib/mkdirat.c: Likewise.
52227         * lib/mkdtemp.c: Likewise.
52228         * lib/mkstemp-safer.c: Likewise.
52229         * lib/mkstemp.c: Likewise.
52230         * lib/modechange.c: Likewise.
52231         * lib/modechange.h: Likewise.
52232         * lib/mountlist.c: Likewise.
52233         * lib/mountlist.h: Likewise.
52234         * lib/mpsort.c: Likewise.
52235         * lib/nanosleep.c: Likewise.
52236         * lib/obstack.c: Likewise.
52237         * lib/obstack.h: Likewise.
52238         * lib/open-safer.c: Likewise.
52239         * lib/open.c: Likewise.
52240         * lib/openat-die.c: Likewise.
52241         * lib/openat-priv.h: Likewise.
52242         * lib/openat-proc.c: Likewise.
52243         * lib/openat.c: Likewise.
52244         * lib/openat.h: Likewise.
52245         * lib/pagealign_alloc.c: Likewise.
52246         * lib/pagealign_alloc.h: Likewise.
52247         * lib/physmem.c: Likewise.
52248         * lib/physmem.h: Likewise.
52249         * lib/pipe-safer.c: Likewise.
52250         * lib/pipe.c: Likewise.
52251         * lib/pipe.h: Likewise.
52252         * lib/posixtm.c: Likewise.
52253         * lib/posixtm.h: Likewise.
52254         * lib/posixver.c: Likewise.
52255         * lib/printf-frexp.c: Likewise.
52256         * lib/printf-frexp.h: Likewise.
52257         * lib/printf-frexpl.c: Likewise.
52258         * lib/printf-frexpl.h: Likewise.
52259         * lib/printf.c: Likewise.
52260         * lib/progname.c: Likewise.
52261         * lib/progname.h: Likewise.
52262         * lib/progreloc.c: Likewise.
52263         * lib/putenv.c: Likewise.
52264         * lib/quote.c: Likewise.
52265         * lib/quote.h: Likewise.
52266         * lib/quotearg.c: Likewise.
52267         * lib/quotearg.h: Likewise.
52268         * lib/raise.c: Likewise.
52269         * lib/readline.c: Likewise.
52270         * lib/readline.h: Likewise.
52271         * lib/readlink.c: Likewise.
52272         * lib/readtokens.c: Likewise.
52273         * lib/readtokens.h: Likewise.
52274         * lib/readtokens0.c: Likewise.
52275         * lib/readtokens0.h: Likewise.
52276         * lib/readutmp.c: Likewise.
52277         * lib/readutmp.h: Likewise.
52278         * lib/realloc.c: Likewise.
52279         * lib/relocwrapper.c: Likewise.
52280         * lib/rename-dest-slash.c: Likewise.
52281         * lib/rename.c: Likewise.
52282         * lib/rmdir.c: Likewise.
52283         * lib/rpmatch.c: Likewise.
52284         * lib/safe-read.c: Likewise.
52285         * lib/safe-read.h: Likewise.
52286         * lib/safe-write.c: Likewise.
52287         * lib/safe-write.h: Likewise.
52288         * lib/same-inode.h: Likewise.
52289         * lib/same.c: Likewise.
52290         * lib/same.h: Likewise.
52291         * lib/save-cwd.c: Likewise.
52292         * lib/save-cwd.h: Likewise.
52293         * lib/savedir.c: Likewise.
52294         * lib/savedir.h: Likewise.
52295         * lib/savewd.c: Likewise.
52296         * lib/savewd.h: Likewise.
52297         * lib/search.in.h: Likewise.
52298         * lib/setenv.c: Likewise.
52299         * lib/setenv.h: Likewise.
52300         * lib/settime.c: Likewise.
52301         * lib/sh-quote.c: Likewise.
52302         * lib/sh-quote.h: Likewise.
52303         * lib/sig2str.c: Likewise.
52304         * lib/sig2str.h: Likewise.
52305         * lib/signal.in.h: Likewise.
52306         * lib/signbitd.c: Likewise.
52307         * lib/signbitf.c: Likewise.
52308         * lib/signbitl.c: Likewise.
52309         * lib/sigprocmask.c: Likewise.
52310         * lib/sincosl.c: Likewise.
52311         * lib/sleep.c: Likewise.
52312         * lib/sprintf.c: Likewise.
52313         * lib/sqrtl.c: Likewise.
52314         * lib/stat-time.h: Likewise.
52315         * lib/stdio--.h: Likewise.
52316         * lib/stdio-safer.h: Likewise.
52317         * lib/stdlib--.h: Likewise.
52318         * lib/stdlib-safer.h: Likewise.
52319         * lib/stdlib.in.h: Likewise.
52320         * lib/stpcpy.c: Likewise.
52321         * lib/stpncpy.c: Likewise.
52322         * lib/strchrnul.c: Likewise.
52323         * lib/strcspn.c: Likewise.
52324         * lib/strerror.c: Likewise.
52325         * lib/strftime.c: Likewise.
52326         * lib/strftime.h: Likewise.
52327         * lib/striconveh.c: Likewise.
52328         * lib/striconveh.h: Likewise.
52329         * lib/striconveha.c: Likewise.
52330         * lib/striconveha.h: Likewise.
52331         * lib/stripslash.c: Likewise.
52332         * lib/strnlen1.c: Likewise.
52333         * lib/strnlen1.h: Likewise.
52334         * lib/strtod.c: Likewise.
52335         * lib/strtoimax.c: Likewise.
52336         * lib/strtok_r.c: Likewise.
52337         * lib/strtol.c: Likewise.
52338         * lib/strtoll.c: Likewise.
52339         * lib/strtoul.c: Likewise.
52340         * lib/strtoull.c: Likewise.
52341         * lib/sysexits.in.h: Likewise.
52342         * lib/tempname.c: Likewise.
52343         * lib/tempname.h: Likewise.
52344         * lib/timespec.h: Likewise.
52345         * lib/tls.c: Likewise.
52346         * lib/tls.h: Likewise.
52347         * lib/tmpdir.c: Likewise.
52348         * lib/tmpdir.h: Likewise.
52349         * lib/tmpfile-safer.c: Likewise.
52350         * lib/tmpfile.c: Likewise.
52351         * lib/trigl.c: Likewise.
52352         * lib/trigl.h: Likewise.
52353         * lib/trim.c: Likewise.
52354         * lib/trim.h: Likewise.
52355         * lib/trunc.c: Likewise.
52356         * lib/truncf.c: Likewise.
52357         * lib/truncl.c: Likewise.
52358         * lib/tsearch.c: Likewise.
52359         * lib/unicodeio.c: Likewise.
52360         * lib/unicodeio.h: Likewise.
52361         * lib/unistd--.h: Likewise.
52362         * lib/unistd-safer.h: Likewise.
52363         * lib/unistdio/ulc-fprintf.c: Likewise.
52364         * lib/unistdio/ulc-vfprintf.c: Likewise.
52365         * lib/unlinkdir.c: Likewise.
52366         * lib/unlinkdir.h: Likewise.
52367         * lib/unlocked-io.h: Likewise.
52368         * lib/unsetenv.c: Likewise.
52369         * lib/userspec.c: Likewise.
52370         * lib/utime.c: Likewise.
52371         * lib/utimecmp.c: Likewise.
52372         * lib/utimecmp.h: Likewise.
52373         * lib/utimens.c: Likewise.
52374         * lib/verify.h: Likewise.
52375         * lib/verror.c: Likewise.
52376         * lib/verror.h: Likewise.
52377         * lib/version-etc-fsf.c: Likewise.
52378         * lib/version-etc.c: Likewise.
52379         * lib/version-etc.h: Likewise.
52380         * lib/vfprintf.c: Likewise.
52381         * lib/vprintf.c: Likewise.
52382         * lib/vsprintf.c: Likewise.
52383         * lib/w32spawn.h: Likewise.
52384         * lib/wait-process.c: Likewise.
52385         * lib/wait-process.h: Likewise.
52386         * lib/wcwidth.c: Likewise.
52387         * lib/write-any-file.c: Likewise.
52388         * lib/xalloc-die.c: Likewise.
52389         * lib/xalloc.h: Likewise.
52390         * lib/xasprintf.c: Likewise.
52391         * lib/xgetcwd.c: Likewise.
52392         * lib/xgetcwd.h: Likewise.
52393         * lib/xgetdomainname.c: Likewise.
52394         * lib/xgetdomainname.h: Likewise.
52395         * lib/xgethostname.c: Likewise.
52396         * lib/xmalloc.c: Likewise.
52397         * lib/xmalloca.c: Likewise.
52398         * lib/xmalloca.h: Likewise.
52399         * lib/xmemcoll.c: Likewise.
52400         * lib/xnanosleep.c: Likewise.
52401         * lib/xreadlink.c: Likewise.
52402         * lib/xreadlink.h: Likewise.
52403         * lib/xsetenv.c: Likewise.
52404         * lib/xsetenv.h: Likewise.
52405         * lib/xstriconv.c: Likewise.
52406         * lib/xstriconv.h: Likewise.
52407         * lib/xstrndup.c: Likewise.
52408         * lib/xstrndup.h: Likewise.
52409         * lib/xstrtod.c: Likewise.
52410         * lib/xstrtod.h: Likewise.
52411         * lib/xstrtol-error.c: Likewise.
52412         * lib/xstrtol.c: Likewise.
52413         * lib/xstrtol.h: Likewise.
52414         * lib/xtime.h: Likewise.
52415         * lib/xvasprintf.c: Likewise.
52416         * lib/xvasprintf.h: Likewise.
52417         * lib/yesno.c: Likewise.
52418         * lib/yesno.h: Likewise.
52419         * posix-modules: Likewise.
52420         * tests/test-alloca-opt.c: Likewise.
52421         * tests/test-arcfour.c: Likewise.
52422         * tests/test-arctwo.c: Likewise.
52423         * tests/test-argmatch.c: Likewise.
52424         * tests/test-argp-2.sh: Likewise.
52425         * tests/test-argp.c: Likewise.
52426         * tests/test-arpa_inet.c: Likewise.
52427         * tests/test-array_list.c: Likewise.
52428         * tests/test-array_oset.c: Likewise.
52429         * tests/test-atexit.c: Likewise.
52430         * tests/test-avltree_list.c: Likewise.
52431         * tests/test-avltree_oset.c: Likewise.
52432         * tests/test-avltreehash_list.c: Likewise.
52433         * tests/test-base64.c: Likewise.
52434         * tests/test-binary-io.c: Likewise.
52435         * tests/test-byteswap.c: Likewise.
52436         * tests/test-c-ctype.c: Likewise.
52437         * tests/test-c-strcasecmp.c: Likewise.
52438         * tests/test-c-strcasestr.c: Likewise.
52439         * tests/test-c-strncasecmp.c: Likewise.
52440         * tests/test-c-strstr.c: Likewise.
52441         * tests/test-canonicalize-lgpl.c: Likewise.
52442         * tests/test-canonicalize.c: Likewise.
52443         * tests/test-carray_list.c: Likewise.
52444         * tests/test-ceilf.c: Likewise.
52445         * tests/test-ceill.c: Likewise.
52446         * tests/test-count-one-bits.c: Likewise.
52447         * tests/test-crc.c: Likewise.
52448         * tests/test-dirname.c: Likewise.
52449         * tests/test-fbufmode.c: Likewise.
52450         * tests/test-fcntl.c: Likewise.
52451         * tests/test-fflush.c: Likewise.
52452         * tests/test-floorf.c: Likewise.
52453         * tests/test-floorl.c: Likewise.
52454         * tests/test-fopen.c: Likewise.
52455         * tests/test-fprintf-posix.c: Likewise.
52456         * tests/test-fprintf-posix.h: Likewise.
52457         * tests/test-fpurge.c: Likewise.
52458         * tests/test-freadable.c: Likewise.
52459         * tests/test-freadahead.c: Likewise.
52460         * tests/test-freading.c: Likewise.
52461         * tests/test-freopen.c: Likewise.
52462         * tests/test-frexp.c: Likewise.
52463         * tests/test-frexpl.c: Likewise.
52464         * tests/test-fseek.c: Likewise.
52465         * tests/test-fseeko.c: Likewise.
52466         * tests/test-fseterr.c: Likewise.
52467         * tests/test-fstrcmp.c: Likewise.
52468         * tests/test-ftell.c: Likewise.
52469         * tests/test-ftello.c: Likewise.
52470         * tests/test-fwritable.c: Likewise.
52471         * tests/test-fwriting.c: Likewise.
52472         * tests/test-getaddrinfo.c: Likewise.
52473         * tests/test-getpass.c: Likewise.
52474         * tests/test-gettimeofday.c: Likewise.
52475         * tests/test-hmac-md5.c: Likewise.
52476         * tests/test-hmac-sha1.c: Likewise.
52477         * tests/test-iconv.c: Likewise.
52478         * tests/test-iconvme.c: Likewise.
52479         * tests/test-inttypes.c: Likewise.
52480         * tests/test-isnan.c: Likewise.
52481         * tests/test-isnanf.c: Likewise.
52482         * tests/test-isnanl-nolibm.c: Likewise.
52483         * tests/test-isnanl.c: Likewise.
52484         * tests/test-isnanl.h: Likewise.
52485         * tests/test-ldexpl.c: Likewise.
52486         * tests/test-linked_list.c: Likewise.
52487         * tests/test-linkedhash_list.c: Likewise.
52488         * tests/test-locale.c: Likewise.
52489         * tests/test-localename.c: Likewise.
52490         * tests/test-lock.c: Likewise.
52491         * tests/test-lseek.c: Likewise.
52492         * tests/test-malloca.c: Likewise.
52493         * tests/test-math.c: Likewise.
52494         * tests/test-mbscasecmp.c: Likewise.
52495         * tests/test-mbscasestr1.c: Likewise.
52496         * tests/test-mbscasestr2.c: Likewise.
52497         * tests/test-mbscasestr3.c: Likewise.
52498         * tests/test-mbscasestr4.c: Likewise.
52499         * tests/test-mbschr.c: Likewise.
52500         * tests/test-mbscspn.c: Likewise.
52501         * tests/test-mbsncasecmp.c: Likewise.
52502         * tests/test-mbspbrk.c: Likewise.
52503         * tests/test-mbspcasecmp.c: Likewise.
52504         * tests/test-mbsrchr.c: Likewise.
52505         * tests/test-mbsspn.c: Likewise.
52506         * tests/test-mbsstr1.c: Likewise.
52507         * tests/test-mbsstr2.c: Likewise.
52508         * tests/test-mbsstr3.c: Likewise.
52509         * tests/test-md5.c: Likewise.
52510         * tests/test-memmem.c: Likewise.
52511         * tests/test-netinet_in.c: Likewise.
52512         * tests/test-open.c: Likewise.
52513         * tests/test-printf-frexp.c: Likewise.
52514         * tests/test-printf-frexpl.c: Likewise.
52515         * tests/test-printf-posix.c: Likewise.
52516         * tests/test-printf-posix.h: Likewise.
52517         * tests/test-rbtree_list.c: Likewise.
52518         * tests/test-rbtree_oset.c: Likewise.
52519         * tests/test-rbtreehash_list.c: Likewise.
52520         * tests/test-read-file.c: Likewise.
52521         * tests/test-rijndael.c: Likewise.
52522         * tests/test-search.c: Likewise.
52523         * tests/test-signbit.c: Likewise.
52524         * tests/test-sleep.c: Likewise.
52525         * tests/test-snprintf-posix.c: Likewise.
52526         * tests/test-snprintf-posix.h: Likewise.
52527         * tests/test-snprintf.c: Likewise.
52528         * tests/test-sprintf-posix.c: Likewise.
52529         * tests/test-sprintf-posix.h: Likewise.
52530         * tests/test-stat-time.c: Likewise.
52531         * tests/test-stdbool.c: Likewise.
52532         * tests/test-stdint.c: Likewise.
52533         * tests/test-stdio.c: Likewise.
52534         * tests/test-stdlib.c: Likewise.
52535         * tests/test-stpncpy.c: Likewise.
52536         * tests/test-strcasestr.c: Likewise.
52537         * tests/test-striconv.c: Likewise.
52538         * tests/test-striconveh.c: Likewise.
52539         * tests/test-striconveha.c: Likewise.
52540         * tests/test-string.c: Likewise.
52541         * tests/test-sys_select.c: Likewise.
52542         * tests/test-sys_socket.c: Likewise.
52543         * tests/test-sys_stat.c: Likewise.
52544         * tests/test-sys_time.c: Likewise.
52545         * tests/test-sysexits.c: Likewise.
52546         * tests/test-time.c: Likewise.
52547         * tests/test-tls.c: Likewise.
52548         * tests/test-trunc.c: Likewise.
52549         * tests/test-truncf.c: Likewise.
52550         * tests/test-truncl.c: Likewise.
52551         * tests/test-unistd.c: Likewise.
52552         * tests/test-vasnprintf-posix.c: Likewise.
52553         * tests/test-vasnprintf-posix2.c: Likewise.
52554         * tests/test-vasnprintf.c: Likewise.
52555         * tests/test-vasprintf-posix.c: Likewise.
52556         * tests/test-vasprintf.c: Likewise.
52557         * tests/test-verify.c: Likewise.
52558         * tests/test-vfprintf-posix.c: Likewise.
52559         * tests/test-vprintf-posix.c: Likewise.
52560         * tests/test-vsnprintf-posix.c: Likewise.
52561         * tests/test-vsnprintf.c: Likewise.
52562         * tests/test-vsprintf-posix.c: Likewise.
52563         * tests/test-wchar.c: Likewise.
52564         * tests/test-wctype.c: Likewise.
52565         * tests/test-wcwidth.c: Likewise.
52566         * tests/test-xstrtol.c: Likewise.
52567         * tests/test-xvasprintf.c: Likewise.
52568         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52569         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52570         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52571         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52572         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52573         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52574         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52575         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52577         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52578         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52579         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52580         * tests/uniname/test-uninames.c: Likewise.
52581         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52582         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52583         * tests/unistdio/test-u16-printf1.h: Likewise.
52584         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52585         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52586         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52587         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52588         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52589         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52590         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52591         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52592         * tests/unistdio/test-u32-printf1.h: Likewise.
52593         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52594         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52595         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52596         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52597         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52598         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52599         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52600         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52601         * tests/unistdio/test-u8-printf1.h: Likewise.
52602         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52603         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52604         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52605         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52606         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52607         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52608         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52609         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52610         * tests/unistdio/test-ulc-printf1.h: Likewise.
52611         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52612         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52613         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52614         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52615         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52616         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52617         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52618         * tests/uniwidth/test-u16-width.c: Likewise.
52619         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52620         * tests/uniwidth/test-u32-width.c: Likewise.
52621         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52622         * tests/uniwidth/test-u8-width.c: Likewise.
52623         * tests/uniwidth/test-uc_width.c: Likewise.
52624         * config/srclist-update: Likewise.
52625         (fixlicense): Update to GPLv3+.
52626
52627         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52628         * tests/test-tsearch.c: Change copyright notice.
52629
52630         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52631         * lib/c-strcaseeq.h: Change copyright notice.
52632         * lib/streq.h: Likewise.
52633         * lib/uniconv.h: Likewise.
52634         * lib/uniconv/u-conv-from-enc.h: Likewise.
52635         * lib/uniconv/u-conv-to-enc.h: Likewise.
52636         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52637         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52638         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52639         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52640         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52641         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52642         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52643         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52644         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52645         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52646         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52647         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52648         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52649         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52650         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52651         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52652         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52653         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52654         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52655         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52656         * lib/uniname.h: Likewise.
52657         * lib/uniname/uniname.c: Likewise.
52658         * lib/unistdio.h: Likewise.
52659         * lib/unistdio/u-asnprintf.h: Likewise.
52660         * lib/unistdio/u-asprintf.h: Likewise.
52661         * lib/unistdio/u-printf-args.c: Likewise.
52662         * lib/unistdio/u-printf-args.h: Likewise.
52663         * lib/unistdio/u-printf-parse.h: Likewise.
52664         * lib/unistdio/u-snprintf.h: Likewise.
52665         * lib/unistdio/u-sprintf.h: Likewise.
52666         * lib/unistdio/u-vasprintf.h: Likewise.
52667         * lib/unistdio/u-vsnprintf.h: Likewise.
52668         * lib/unistdio/u-vsprintf.h: Likewise.
52669         * lib/unistdio/u16-asnprintf.c: Likewise.
52670         * lib/unistdio/u16-asprintf.c: Likewise.
52671         * lib/unistdio/u16-printf-parse.c: Likewise.
52672         * lib/unistdio/u16-snprintf.c: Likewise.
52673         * lib/unistdio/u16-sprintf.c: Likewise.
52674         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52675         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52676         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52677         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52678         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52679         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52680         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52681         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52682         * lib/unistdio/u16-vasnprintf.c: Likewise.
52683         * lib/unistdio/u16-vasprintf.c: Likewise.
52684         * lib/unistdio/u16-vsnprintf.c: Likewise.
52685         * lib/unistdio/u16-vsprintf.c: Likewise.
52686         * lib/unistdio/u32-asnprintf.c: Likewise.
52687         * lib/unistdio/u32-asprintf.c: Likewise.
52688         * lib/unistdio/u32-printf-parse.c: Likewise.
52689         * lib/unistdio/u32-snprintf.c: Likewise.
52690         * lib/unistdio/u32-sprintf.c: Likewise.
52691         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52692         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52693         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52694         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52695         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52696         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52697         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52698         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52699         * lib/unistdio/u32-vasnprintf.c: Likewise.
52700         * lib/unistdio/u32-vasprintf.c: Likewise.
52701         * lib/unistdio/u32-vsnprintf.c: Likewise.
52702         * lib/unistdio/u32-vsprintf.c: Likewise.
52703         * lib/unistdio/u8-asnprintf.c: Likewise.
52704         * lib/unistdio/u8-asprintf.c: Likewise.
52705         * lib/unistdio/u8-printf-parse.c: Likewise.
52706         * lib/unistdio/u8-snprintf.c: Likewise.
52707         * lib/unistdio/u8-sprintf.c: Likewise.
52708         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52709         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52710         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52711         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52712         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52713         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52714         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52715         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52716         * lib/unistdio/u8-vasnprintf.c: Likewise.
52717         * lib/unistdio/u8-vasprintf.c: Likewise.
52718         * lib/unistdio/u8-vsnprintf.c: Likewise.
52719         * lib/unistdio/u8-vsprintf.c: Likewise.
52720         * lib/unistdio/ulc-asnprintf.c: Likewise.
52721         * lib/unistdio/ulc-asprintf.c: Likewise.
52722         * lib/unistdio/ulc-printf-parse.c: Likewise.
52723         * lib/unistdio/ulc-snprintf.c: Likewise.
52724         * lib/unistdio/ulc-sprintf.c: Likewise.
52725         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52726         * lib/unistdio/ulc-vasprintf.c: Likewise.
52727         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52728         * lib/unistdio/ulc-vsprintf.c: Likewise.
52729         * lib/unistr.h: Likewise.
52730         * lib/unistr/u-cpy-alloc.h: Likewise.
52731         * lib/unistr/u-cpy.h: Likewise.
52732         * lib/unistr/u-endswith.h: Likewise.
52733         * lib/unistr/u-move.h: Likewise.
52734         * lib/unistr/u-set.h: Likewise.
52735         * lib/unistr/u-startswith.h: Likewise.
52736         * lib/unistr/u-stpcpy.h: Likewise.
52737         * lib/unistr/u-stpncpy.h: Likewise.
52738         * lib/unistr/u-strcat.h: Likewise.
52739         * lib/unistr/u-strcpy.h: Likewise.
52740         * lib/unistr/u-strcspn.h: Likewise.
52741         * lib/unistr/u-strdup.h: Likewise.
52742         * lib/unistr/u-strlen.h: Likewise.
52743         * lib/unistr/u-strncat.h: Likewise.
52744         * lib/unistr/u-strncpy.h: Likewise.
52745         * lib/unistr/u-strnlen.h: Likewise.
52746         * lib/unistr/u-strpbrk.h: Likewise.
52747         * lib/unistr/u-strspn.h: Likewise.
52748         * lib/unistr/u-strstr.h: Likewise.
52749         * lib/unistr/u-strtok.h: Likewise.
52750         * lib/unistr/u16-check.c: Likewise.
52751         * lib/unistr/u16-chr.c: Likewise.
52752         * lib/unistr/u16-cmp.c: Likewise.
52753         * lib/unistr/u16-cpy-alloc.c: Likewise.
52754         * lib/unistr/u16-cpy.c: Likewise.
52755         * lib/unistr/u16-endswith.c: Likewise.
52756         * lib/unistr/u16-mblen.c: Likewise.
52757         * lib/unistr/u16-mbsnlen.c: Likewise.
52758         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52759         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52760         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52761         * lib/unistr/u16-mbtouc.c: Likewise.
52762         * lib/unistr/u16-mbtoucr.c: Likewise.
52763         * lib/unistr/u16-move.c: Likewise.
52764         * lib/unistr/u16-next.c: Likewise.
52765         * lib/unistr/u16-prev.c: Likewise.
52766         * lib/unistr/u16-set.c: Likewise.
52767         * lib/unistr/u16-startswith.c: Likewise.
52768         * lib/unistr/u16-stpcpy.c: Likewise.
52769         * lib/unistr/u16-stpncpy.c: Likewise.
52770         * lib/unistr/u16-strcat.c: Likewise.
52771         * lib/unistr/u16-strchr.c: Likewise.
52772         * lib/unistr/u16-strcmp.c: Likewise.
52773         * lib/unistr/u16-strcpy.c: Likewise.
52774         * lib/unistr/u16-strcspn.c: Likewise.
52775         * lib/unistr/u16-strdup.c: Likewise.
52776         * lib/unistr/u16-strlen.c: Likewise.
52777         * lib/unistr/u16-strmblen.c: Likewise.
52778         * lib/unistr/u16-strmbtouc.c: Likewise.
52779         * lib/unistr/u16-strncat.c: Likewise.
52780         * lib/unistr/u16-strncmp.c: Likewise.
52781         * lib/unistr/u16-strncpy.c: Likewise.
52782         * lib/unistr/u16-strnlen.c: Likewise.
52783         * lib/unistr/u16-strpbrk.c: Likewise.
52784         * lib/unistr/u16-strrchr.c: Likewise.
52785         * lib/unistr/u16-strspn.c: Likewise.
52786         * lib/unistr/u16-strstr.c: Likewise.
52787         * lib/unistr/u16-strtok.c: Likewise.
52788         * lib/unistr/u16-to-u32.c: Likewise.
52789         * lib/unistr/u16-to-u8.c: Likewise.
52790         * lib/unistr/u16-uctomb-aux.c: Likewise.
52791         * lib/unistr/u16-uctomb.c: Likewise.
52792         * lib/unistr/u32-check.c: Likewise.
52793         * lib/unistr/u32-chr.c: Likewise.
52794         * lib/unistr/u32-cmp.c: Likewise.
52795         * lib/unistr/u32-cpy-alloc.c: Likewise.
52796         * lib/unistr/u32-cpy.c: Likewise.
52797         * lib/unistr/u32-endswith.c: Likewise.
52798         * lib/unistr/u32-mblen.c: Likewise.
52799         * lib/unistr/u32-mbsnlen.c: Likewise.
52800         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52801         * lib/unistr/u32-mbtouc.c: Likewise.
52802         * lib/unistr/u32-mbtoucr.c: Likewise.
52803         * lib/unistr/u32-move.c: Likewise.
52804         * lib/unistr/u32-next.c: Likewise.
52805         * lib/unistr/u32-prev.c: Likewise.
52806         * lib/unistr/u32-set.c: Likewise.
52807         * lib/unistr/u32-startswith.c: Likewise.
52808         * lib/unistr/u32-stpcpy.c: Likewise.
52809         * lib/unistr/u32-stpncpy.c: Likewise.
52810         * lib/unistr/u32-strcat.c: Likewise.
52811         * lib/unistr/u32-strchr.c: Likewise.
52812         * lib/unistr/u32-strcmp.c: Likewise.
52813         * lib/unistr/u32-strcpy.c: Likewise.
52814         * lib/unistr/u32-strcspn.c: Likewise.
52815         * lib/unistr/u32-strdup.c: Likewise.
52816         * lib/unistr/u32-strlen.c: Likewise.
52817         * lib/unistr/u32-strmblen.c: Likewise.
52818         * lib/unistr/u32-strmbtouc.c: Likewise.
52819         * lib/unistr/u32-strncat.c: Likewise.
52820         * lib/unistr/u32-strncmp.c: Likewise.
52821         * lib/unistr/u32-strncpy.c: Likewise.
52822         * lib/unistr/u32-strnlen.c: Likewise.
52823         * lib/unistr/u32-strpbrk.c: Likewise.
52824         * lib/unistr/u32-strrchr.c: Likewise.
52825         * lib/unistr/u32-strspn.c: Likewise.
52826         * lib/unistr/u32-strstr.c: Likewise.
52827         * lib/unistr/u32-strtok.c: Likewise.
52828         * lib/unistr/u32-to-u16.c: Likewise.
52829         * lib/unistr/u32-to-u8.c: Likewise.
52830         * lib/unistr/u32-uctomb.c: Likewise.
52831         * lib/unistr/u8-check.c: Likewise.
52832         * lib/unistr/u8-chr.c: Likewise.
52833         * lib/unistr/u8-cmp.c: Likewise.
52834         * lib/unistr/u8-cpy-alloc.c: Likewise.
52835         * lib/unistr/u8-cpy.c: Likewise.
52836         * lib/unistr/u8-endswith.c: Likewise.
52837         * lib/unistr/u8-mblen.c: Likewise.
52838         * lib/unistr/u8-mbsnlen.c: Likewise.
52839         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52840         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52841         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52842         * lib/unistr/u8-mbtouc.c: Likewise.
52843         * lib/unistr/u8-mbtoucr.c: Likewise.
52844         * lib/unistr/u8-move.c: Likewise.
52845         * lib/unistr/u8-next.c: Likewise.
52846         * lib/unistr/u8-prev.c: Likewise.
52847         * lib/unistr/u8-set.c: Likewise.
52848         * lib/unistr/u8-startswith.c: Likewise.
52849         * lib/unistr/u8-stpcpy.c: Likewise.
52850         * lib/unistr/u8-stpncpy.c: Likewise.
52851         * lib/unistr/u8-strcat.c: Likewise.
52852         * lib/unistr/u8-strchr.c: Likewise.
52853         * lib/unistr/u8-strcmp.c: Likewise.
52854         * lib/unistr/u8-strcpy.c: Likewise.
52855         * lib/unistr/u8-strcspn.c: Likewise.
52856         * lib/unistr/u8-strdup.c: Likewise.
52857         * lib/unistr/u8-strlen.c: Likewise.
52858         * lib/unistr/u8-strmblen.c: Likewise.
52859         * lib/unistr/u8-strmbtouc.c: Likewise.
52860         * lib/unistr/u8-strncat.c: Likewise.
52861         * lib/unistr/u8-strncmp.c: Likewise.
52862         * lib/unistr/u8-strncpy.c: Likewise.
52863         * lib/unistr/u8-strnlen.c: Likewise.
52864         * lib/unistr/u8-strpbrk.c: Likewise.
52865         * lib/unistr/u8-strrchr.c: Likewise.
52866         * lib/unistr/u8-strspn.c: Likewise.
52867         * lib/unistr/u8-strstr.c: Likewise.
52868         * lib/unistr/u8-strtok.c: Likewise.
52869         * lib/unistr/u8-to-u16.c: Likewise.
52870         * lib/unistr/u8-to-u32.c: Likewise.
52871         * lib/unistr/u8-uctomb-aux.c: Likewise.
52872         * lib/unistr/u8-uctomb.c: Likewise.
52873         * lib/unitypes.h: Likewise.
52874         * lib/uniwidth.h: Likewise.
52875         * lib/uniwidth/cjk.h: Likewise.
52876         * lib/uniwidth/u16-strwidth.c: Likewise.
52877         * lib/uniwidth/u16-width.c: Likewise.
52878         * lib/uniwidth/u32-strwidth.c: Likewise.
52879         * lib/uniwidth/u32-width.c: Likewise.
52880         * lib/uniwidth/u8-strwidth.c: Likewise.
52881         * lib/uniwidth/u8-width.c: Likewise.
52882         * lib/uniwidth/width.c: Likewise.
52883
52884 2007-10-07  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52887         The file is still under LGPL (see modules/inttypes).
52888
52889 2007-10-06  Bruno Haible  <bruno@clisp.org>
52890
52891         * modules/trunc (Dependencies): Add 'extensions'.
52892         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52893         Reported by Ben Pfaff <blp@gnu.org>.
52894
52895 2007-10-06  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/freopen-tests: New file.
52898         * tests/test-freopen.c: New file.
52899
52900         * modules/fopen-tests: New file.
52901         * tests/test-fopen.c: New file.
52902
52903         * modules/fopen: New file.
52904         * lib/fopen.c: New file.
52905         * m4/fopen.m4: New file.
52906         * modules/freopen: New file.
52907         * lib/freopen.c: New file.
52908         * m4/freopen.m4: New file.
52909         * lib/stdio.in.h (fopen, freopen): New declarations.
52910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52911         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52912         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52913         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52914         * doc/functions/fopen.texi: Mention the 'fopen' module.
52915         * doc/functions/freopen.texi: Mention the 'freopen' module.
52916
52917 2007-10-06  Bruno Haible  <bruno@clisp.org>
52918
52919         * modules/open-tests: New file.
52920         * tests/test-open.c: New file.
52921
52922         * modules/open: New file.
52923         * lib/open.c: New file.
52924         * m4/open.m4: New file.
52925         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52926         lib/open.c does.
52927         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52928         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52929         macros.
52930         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52931         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52932         REPLACE_OPEN.
52933         * doc/functions/open.texi: Mention the 'open' module.
52934
52935 2007-10-04  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/ceill-tests: New file.
52938         * tests/test-ceill.c: New file.
52939
52940         * modules/ceill: New file.
52941         * lib/ceill.c: Replace entire file.
52942         * m4/ceill.m4: New file.
52943         * lib/math.in.h (ceill): Replace declaration.
52944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52945         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52946         * doc/functions/ceill.texi: Mention the 'ceill' module.
52947         * modules/mathl (Files): Remove lib/ceill.c.
52948         (Depends-on): Add ceill.
52949
52950 2007-10-04  Bruno Haible  <bruno@clisp.org>
52951
52952         * modules/ceilf-tests: New file.
52953         * tests/test-ceilf.c: New file.
52954
52955         * modules/ceilf: New file.
52956         * lib/ceil.c: New file.
52957         * lib/ceilf.c: New file.
52958         * m4/ceilf.m4: New file.
52959         * lib/math.in.h (ceilf): New declaration.
52960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52961         HAVE_DECL_CEILF.
52962         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52963         HAVE_DECL_CEILF.
52964         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52965
52966 2007-10-04  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/floorl-tests: New file.
52969         * tests/test-floorl.c: New file.
52970
52971         * modules/floorl: New file.
52972         * lib/floorl.c: Replace entire file.
52973         * m4/floorl.m4: New file.
52974         * lib/math.in.h (floorl): Replace declaration.
52975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52976         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52977         * doc/functions/floorl.texi: Mention the 'floorl' module.
52978         * modules/mathl (Files): Remove lib/floorl.c.
52979         (Depends-on): Add floorl.
52980
52981 2007-10-04  Bruno Haible  <bruno@clisp.org>
52982
52983         * modules/floorf-tests: New file.
52984         * tests/test-floorf.c: New file.
52985
52986         * modules/floorf: New file.
52987         * lib/floor.c: New file.
52988         * lib/floorf.c: New file.
52989         * m4/floorf.m4: New file.
52990         * lib/math.in.h (floorf): New declaration.
52991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52992         HAVE_DECL_FLOORF.
52993         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52994         HAVE_DECL_FLOORF.
52995         * doc/functions/floorf.texi: Mention the 'floorf' module.
52996
52997 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52998             Bruno Haible  <bruno@clisp.org>
52999
53000         Advertise for the Git server instead of the CVS server.
53001         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53002         repository instead of the CVS one.
53003         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53004         about all VCS systems generically.
53005         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53006
53007 2007-10-04  Bruno Haible  <bruno@clisp.org>
53008
53009         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53010         means.
53011         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53012
53013 2007-10-04  Bruno Haible  <bruno@clisp.org>
53014
53015         * modules/truncl-tests: New file.
53016         * tests/test-truncl.c: New file.
53017
53018         * modules/truncl: New file.
53019         * lib/truncl.c: New file.
53020         * m4/truncl.m4: New file.
53021         * lib/math.in.h (truncl): New declaration.
53022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53023         HAVE_DECL_TRUNCL.
53024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53025         HAVE_DECL_TRUNCL.
53026         * doc/functions/truncl.texi: Mention the 'truncl' module.
53027
53028 2007-10-04  Bruno Haible  <bruno@clisp.org>
53029
53030         * modules/truncf-tests: New file.
53031         * tests/test-truncf.c: New file.
53032
53033         * modules/truncf: New file.
53034         * lib/trunc.c: Make paramerizable through USE_* macros.
53035         * lib/truncf.c: New file.
53036         * m4/truncf.m4: New file.
53037         * lib/math.in.h (truncf): New declaration.
53038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53039         HAVE_DECL_TRUNCF.
53040         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53041         HAVE_DECL_TRUNCF.
53042         * doc/functions/truncf.texi: Mention the 'truncf' module.
53043
53044 2007-10-03  Bruno Haible  <bruno@clisp.org>
53045
53046         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53047         augmentation also for tests modules.
53048         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53049         * modules/atexit-tests (Makefile.am): Likewise.
53050         * modules/binary-io-tests (Makefile.am): Likewise.
53051         * modules/c-strcase-tests (Makefile.am): Likewise.
53052         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53053         * modules/canonicalize-tests (Makefile.am): Likewise.
53054         * modules/closein-tests (Makefile.am): Likewise.
53055         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53056         * modules/freadahead-tests (Makefile.am): Likewise.
53057         * modules/fseek-tests (Makefile.am): Likewise.
53058         * modules/fseeko-tests (Makefile.am): Likewise.
53059         * modules/ftell-tests (Makefile.am): Likewise.
53060         * modules/ftello-tests (Makefile.am): Likewise.
53061         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53062         * modules/isnanl-tests (Makefile.am): Likewise.
53063         * modules/lseek-tests (Makefile.am): Likewise.
53064         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53065         * modules/mbscasestr-tests (Makefile.am): Likewise.
53066         * modules/mbschr-tests (Makefile.am): Likewise.
53067         * modules/mbscspn-tests (Makefile.am): Likewise.
53068         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53069         * modules/mbspbrk-tests (Makefile.am): Likewise.
53070         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53071         * modules/mbsrchr-tests (Makefile.am): Likewise.
53072         * modules/mbsspn-tests (Makefile.am): Likewise.
53073         * modules/mbsstr-tests (Makefile.am): Likewise.
53074         * modules/printf-posix-tests (Makefile.am): Likewise.
53075         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53076         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53077         * modules/tsearch-tests (Makefile.am): Likewise.
53078         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53079         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53080         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53081         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53082         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53083         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53084         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53085         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53086         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53087         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53088         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53089         * modules/xstrtol-tests (Makefile.am): Likewise.
53090         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53091         * modules/yesno-tests (Makefile.am): Likewise.
53092
53093 2007-10-03  Bruno Haible  <bruno@clisp.org>
53094
53095         * modules/trunc-tests: New file.
53096         * tests/test-trunc.c: New file.
53097
53098         * modules/trunc: New file.
53099         * lib/trunc.c: New file.
53100         * m4/trunc.m4: New file.
53101         * lib/math.in.h (trunc): New declaration.
53102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53103         HAVE_DECL_TRUNC.
53104         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53105         HAVE_DECL_TRUNC.
53106         * doc/functions/trunc.texi: Mention the 'trunc' module.
53107
53108 2007-10-03  Bruno Haible  <bruno@clisp.org>
53109
53110         * tests/test-fpending.c: New file, mostly copied
53111         from coreutils/lib/t-fpending.c.
53112         * modules/fpending-tests: New file.
53113
53114 2007-10-03  Bruno Haible  <bruno@clisp.org>
53115
53116         Port the stdio extensions to QNX (untested).
53117         * lib/fseterr.c (fseterr): Add support for QNX.
53118         * lib/fbufmode.c (fbufmode): Likewise.
53119         * lib/freadable.c (freadable): Likewise.
53120         * lib/fwritable.c (fwritable): Likewise.
53121         * lib/freading.c (freading): Likewise.
53122         * lib/fwriting.c (fwriting): Likewise.
53123         * lib/freadahead.c (freadahed): Likewise.
53124         * lib/fpurge.c (fpurge): Likewise.
53125         * lib/fseeko.c (rpl_fseeko): Likewise.
53126
53127 2007-10-03  Bruno Haible  <bruno@clisp.org>
53128             Jim Meyering  <jim@meyering.net>
53129             Eric Blake  <ebb9@byu.net>
53130
53131         * doc/relocatable.texi: Use @command instead of @program.
53132
53133 2007-10-02  Jim Meyering  <jim@meyering.net>
53134
53135         Perform one more "_.h" -> ".in.h" substitution.
53136         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53137         instead of unistd_.h here, too.
53138
53139 2007-10-01  Bruno Haible  <bruno@clisp.org>
53140
53141         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53142         Needed for the alloca-opt module.
53143
53144 2007-09-30  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53147         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53148         alloca_.h.
53149         * lib/argz.in.h: Renamed from lib/argz_.h.
53150         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53151         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53152         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53153         byteswap_.h.
53154         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53155         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53156         dirent_.h.
53157         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53158         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53159         fcntl_.h.
53160         * lib/float.in.h: Renamed from lib/float_.h.
53161         * modules/float (Files, Makefile.am): Use float.in.h instead of
53162         float_.h.
53163         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53164         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53165         fnmatch_.h.
53166         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53167         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53168         getopt_.h.
53169         * lib/glob.in.h: Renamed from lib/glob_.h.
53170         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53171         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53172         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53173         iconv_.h.
53174         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53175         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53176         inttypes_.h.
53177         * lib/locale.in.h: Renamed from lib/locale_.h.
53178         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53179         locale_.h.
53180         * lib/math.in.h: Renamed from lib/math_.h.
53181         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53182         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53183         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53184         of netinet_in_.h. Add dependency.
53185         * lib/poll.in.h: Renamed from lib/poll_.h.
53186         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53187         * lib/search.in.h: Renamed from lib/search_.h.
53188         * modules/search (Files, Makefile.am): Use search.in.h instead of
53189         search_.h.
53190         * lib/signal.in.h: Renamed from lib/signal_.h.
53191         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53192         _signal.h.
53193         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53194         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53195         stdbool_.h.
53196         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53197         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53198         stdint_.h.
53199         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53200         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53201         stdio_.h.
53202         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53203         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53204         stdlib_.h.
53205         * lib/string.in.h: Renamed from lib/string_.h.
53206         * modules/string (Files, Makefile.am): Use string.in.h instead of
53207         string_.h.
53208         * doc/gnulib-tool.texi (Initial import): Update.
53209         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53210         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53211         of sys_select_.h. Add dependency.
53212         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53213         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53214         of sys_socket_.h.
53215         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53216         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53217         sys_stat_.h.
53218         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53219         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53220         sys_time_.h.
53221         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53222         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53223         sysexits_.h.
53224         * lib/time.in.h: Renamed from lib/time_.h.
53225         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53226         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53227         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53228         unistd_.h.
53229         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53230         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53231         wchar_.h.
53232         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53233         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53234         wctype_.h.
53235         * build-aux/bootstrap (slurp): Update.
53236         * lib/.cppi-disable: Update.
53237
53238 2007-09-30  Bruno Haible  <bruno@clisp.org>
53239
53240         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53241         Needed on BeOS.
53242
53243 2007-09-30  Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53246
53247 2007-09-29  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53250
53251 2007-09-29  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53254         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53255         * build-aux/install-reloc: Compile also areadlink.c.
53256         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53257
53258 2007-09-29  Bruno Haible  <bruno@clisp.org>
53259
53260         * gnulib-tool (func_emit_initmacro_done): Indentation.
53261
53262 2007-09-29  Bruno Haible  <bruno@clisp.org>
53263
53264         * README: Add CVS checkout update instructions.
53265         Info from Bob Proulx <bob@proulx.com>.
53266
53267 2007-09-28  Eric Blake  <ebb9@byu.net>
53268
53269         Provide move-if-change.
53270         * build-aux/move-if-change: New file, based on best practice
53271         rather than any canonical upstream location.
53272
53273 2007-09-28  Jim Meyering  <jim@meyering.net>
53274
53275         Fix canonicalize loop-detection corner case.
53276         Do not attempt to stat the symlink values stored via seen_triple.
53277         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53278         on linux-2.6.18, (but not 2.6.22).
53279         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53280         triple_compare.  The former compares dev,ino,filename, while the latter
53281         would actually stat dirname(filename) when dev and ino were equal.
53282         * lib/hash-triple.c: Install <string.h>.
53283         (STREQ): Define.
53284         (triple_compare_ino_str): New function.
53285         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53286
53287 2007-09-28  Eric Blake  <ebb9@byu.net>
53288
53289         Enforce that AC_REPLACE_FUNCS files exist.
53290         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53291         override check for typos.
53292
53293         Fix test-closein on Solaris 10.
53294         * tests/test-closein.c (main): Don't assume stdin can be inherited
53295         closed on all systems.
53296         * tests/test-closein.sh: Likewise.
53297         Reported by Piotr Tarnowski.
53298
53299 2007-09-28  Jim Meyering  <jim@meyering.net>
53300
53301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53302
53303 2007-09-27  Jim Meyering  <jim@meyering.net>
53304
53305         canonicalize: Avoid a false-positive cycle failure.
53306         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53307         Sort.  Remove cycle-check.
53308         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53309         not cycle-check.h.
53310         (seen_triple): New function.
53311         (canonicalize_filename_mode): Use it instead of cycle-check.
53312         * tests/test-canonicalize.c: Add a test for this bug.
53313         * tests/test-canonicalize.sh: Set up and run the test.
53314
53315         New module, file-set, from coreutils.
53316         * modules/file-set: Define it.
53317         * lib/file-set.c, lib/file-set.h: Implement.
53318
53319         New module, hash-triple, from coreutils.
53320         * modules/hash-triple: Define it.
53321         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53322
53323 2007-09-25  Eric Blake  <ebb9@byu.net>
53324
53325         Fix strerror on Interix.
53326         * lib/string_.h (strerror): Declare replacement.
53327         * doc/functions/strerror.texi (strerror): Document the Interix
53328         shortcoming.
53329         * modules/string (Makefile.am): Support new hooks.
53330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53331         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53332         gl_FUNC_STRERROR_SEPARATE.
53333         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53334         * lib/strerror.c (rpl_strerror): Provide replacement.
53335         * modules/strerror (Depends-on): Add string.
53336         (configure.ac): Detect use of module.
53337         * tests/test-strerror.c: New file.
53338         * modules/strerror-tests: New test module.
53339         * modules/argp (Depends-on): Add strerror.
53340         * modules/error (Depends-on): Likewise.
53341         Reported by Martin Koeppe.
53342
53343 2007-09-24  Bruno Haible  <bruno@clisp.org>
53344
53345         * README: Update git instructions.
53346
53347 2007-09-24  Eric Blake  <ebb9@byu.net>
53348
53349         Revert fpending breakage from 2007-09-08.
53350         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53351         __fpending.c.
53352
53353 2007-09-24  Jim Meyering  <jim@meyering.net>
53354
53355         filenamecat.c: Add a test.
53356         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53357         showing how the function works when DIR is the empty string.
53358
53359 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53360
53361         * tests/test-canonicalize.sh: Turn on executable bit.
53362
53363 2007-09-19  Eric Blake  <ebb9@byu.net>
53364
53365         * README: Update CVS instructions.
53366
53367 2007-09-18  Bruno Haible  <bruno@clisp.org>
53368
53369         * modules/areadlink: New file.
53370         * lib/areadlink.h (areadlink): New declaration.
53371         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53372
53373 2007-09-17  Jim Meyering  <jim@meyering.net>
53374
53375         * lib/savewd.c (ESTALE) [!defined]: Define.
53376         Reported to be required on Interix by Martin Koeppe.
53377
53378 2007-09-17  Bruno Haible  <bruno@clisp.org>
53379
53380         * gnulib-tool (func_version): Use $version.
53381
53382 2007-09-16  Bruno Haible  <bruno@clisp.org>
53383
53384         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53385         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53386         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53387         Reported by Greg Schafer <gschafer@zip.com.au>.
53388
53389 2007-09-15  Bruno Haible  <bruno@clisp.org>
53390
53391         * gnulib-tool (sed): Try a little harder to make bash understand the
53392         alias.
53393         Reported by Bruce Korb <bruce.korb@gmail.com>.
53394
53395 2007-09-13  Eric Blake  <ebb9@byu.net>
53396
53397         * ChangeLog: Remove conflict markers.
53398
53399 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53400
53401         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53402         Reported by Bruno Haible <bruno@clisp.org>.
53403
53404 2007-09-12  Bruno Haible  <bruno@clisp.org>
53405
53406         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53407         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53408         is not defined.
53409
53410 2007-09-12  Eric Blake  <ebb9@byu.net>
53411
53412         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53414         Autoconf definition.
53415         * modules/euidaccess (Depends-on): Add extensions, for
53416         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53417         * modules/fnmatch (Depends-on): Likewise.
53418         * modules/getaddrinfo (Depends-on): Likewise.
53419         * modules/getdelim (Depends-on): Likewise.
53420         * modules/getline (Depends-on): Likewise.
53421         * modules/getsubopt (Depends-on): Likewise.
53422         * modules/gettext (Depends-on): Likewise.
53423         * modules/group-member (Depends-on): Likewise.
53424         * modules/mbchar (Depends-on): Likewise.
53425         * modules/memmem (Depends-on): Likewise.
53426         * modules/mempcpy (Depends-on): Likewise.
53427         * modules/memrchr (Depends-on): Likewise.
53428         * modules/pagealign_alloc (Depends-on): Likewise.
53429         * modules/readutmp (Depends-on): Likewise.
53430         * modules/stpcpy (Depends-on): Likewise.
53431         * modules/stpncpy (Depends-on): Likewise.
53432         * modules/strchrnul (Depends-on): Likewise.
53433         * modules/strndup (Depends-on): Likewise.
53434         * modules/strsep (Depends-on): Likewise.
53435         * modules/strverscmp (Depends-on): Likewise.
53436         * modules/vasprintf (Depends-on): Likewise.
53437         * modules/wcwidth (Depends-on): Likewise.
53438         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53439         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53440         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53442         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53443         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53444         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53445         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53446         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53447         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53448         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53449         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53450         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53451         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53452         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53453         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53454         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53455         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53456         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53458         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53459         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53460         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53461         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53462         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53464         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53465         so that lock.m4 can be used in gettext without extensions module.
53466
53467 2007-09-11  Bruno Haible  <bruno@clisp.org>
53468
53469         * m4/isc-posix.m4: Remove file.
53470         Suggested by Eric Blake.
53471
53472 2007-09-11  Eric Blake  <ebb9@byu.net>
53473
53474         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53475
53476 2007-09-10  Bruno Haible  <bruno@clisp.org>
53477
53478         * posix-modules: Fix typo in error message.
53479         Reported by Matt <mkraai@beckman.com>.
53480
53481 2007-09-09  Bruno Haible  <bruno@clisp.org>
53482
53483         * doc/functions/getdelim.texi: Update list of platforms lacking the
53484         function.
53485         * doc/functions/getline.texi: Likewise.
53486
53487 2007-09-09  Jim Meyering  <jim@meyering.net>
53488
53489         * lib/hash.c (hash_initialize): Detect calloc failure.
53490         Reported by Bruno Haible.
53491
53492 2007-09-09  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53495         malloc or realloc fails.
53496
53497 2007-09-09  Bruno Haible  <bruno@clisp.org>
53498
53499         * modules/getcwd (Depends-on): Add malloc-posix.
53500         * modules/glob (Depends-on): Likewise.
53501         * modules/putenv (Depends-on): Likewise.
53502         * modules/strdup (Depends-on): Likewise.
53503         * modules/getdelim (Depends-on): Add realloc-posix.
53504         * modules/read-file (Depends-on): Likewise.
53505
53506 2007-09-09  Bruno Haible  <bruno@clisp.org>
53507
53508         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53509         (gl_FUNC_MALLOC_POSIX): Require it.
53510         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53511         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53512         * modules/realloc (Files): Add m4/malloc.m4.
53513         * modules/calloc (Files): Likewise.
53514
53515 2007-09-09  Bruno Haible  <bruno@clisp.org>
53516
53517         * modules/malloc-posix: New file.
53518         * modules/malloc (Depends-on): Add malloc-posix.
53519         * lib/malloc.c: Include errno.h.
53520         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53521         and a POSIX-compatible malloc into a single function. Set ENOMEM
53522         when returning NULL.
53523         * m4/malloc.m4: New file.
53524         * doc/functions/malloc.texi: Mention the malloc-posix module.
53525         * lib/stdlib_.h (malloc): New declaration.
53526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53527         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53528         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53529         and HAVE_MALLOC_POSIX.
53530
53531 2007-09-09  Bruno Haible  <bruno@clisp.org>
53532
53533         * modules/realloc-posix: New file.
53534         * modules/realloc (Depends-on): Add realloc-posix.
53535         * lib/realloc.c: Include errno.h.
53536         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53537         and a POSIX-compatible realloc into a single function. Set ENOMEM
53538         when returning NULL.
53539         * m4/realloc.m4: New file.
53540         * doc/functions/realloc.texi: Mention the realloc-posix module.
53541         * lib/stdlib_.h (realloc): New declaration.
53542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53543         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53544         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53545         and HAVE_REALLOC_POSIX.
53546
53547 2007-09-09  Bruno Haible  <bruno@clisp.org>
53548
53549         * modules/calloc-posix: New file.
53550         * modules/calloc (Depends-on): Add calloc-posix.
53551         * lib/calloc.c: Include errno.h.
53552         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53553         and a POSIX-compatible calloc into a single function. Set ENOMEM
53554         when returning NULL.
53555         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53556         * doc/functions/calloc.texi: Mention the calloc-posix module.
53557         * lib/stdlib_.h (calloc): New declaration.
53558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53559         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53560         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53561         and HAVE_CALLOC_POSIX.
53562
53563 2007-09-09  Bruno Haible  <bruno@clisp.org>
53564
53565         Allow for modules to show an arbitrary notice.
53566         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53567         * gnulib-tool: New option --extract-notice.
53568         (func_usage): Document it.
53569         (sed_extract_prog): Update.
53570         (func_get_notice): New function.
53571         (func_modules_notice): New function.
53572         (func_import, func_create_testdir): Invoke it.
53573         Suggested by Jim Meyering.
53574
53575 2007-09-09  Bruno Haible  <bruno@clisp.org>
53576
53577         * gnulib-tool: New options --verbose, --quiet.
53578         (func_usage): Document them.
53579         (verbose): New variable.
53580         (func_execute_command): New function.
53581         (func_import): Don't show the module list and the file list if
53582         $verbose < 0.
53583         (func_create_testdir): Likewise. Use func_execute_command.
53584         (func_create_megatestdir): Use func_execute_command.
53585
53586 2007-09-08  Bruno Haible  <bruno@clisp.org>
53587
53588         * gnulib-tool (func_import): Prefer rsync over wget when available,
53589         for fetching the PO files.
53590
53591 2007-09-08  Bruno Haible  <bruno@clisp.org>
53592
53593         * posix-modules: New file. Portions copied from gnulib-tool.
53594         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53595
53596 2007-09-08  Jim Meyering  <jim@meyering.net>
53597
53598         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53599         * lib/fpending.h: Rename from __fpending.h.
53600         * lib/fpending.c: Rename from __fpending.c.
53601         Include "fpending.h", not "__fpending.h".
53602         * lib/__fpending.h, lib/__fpending.c: Remove files.
53603         * modules/fpending (Files): Reflect new file names.
53604         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53605
53606 2007-09-08  Bruno Haible  <bruno@clisp.org>
53607
53608         * m4/inttypes-h.m4: Remove stub file.
53609
53610 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53611
53612         * doc/headers/stdint.texi: Discuss #include_next issue.
53613
53614 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53617
53618 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53619
53620         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53621         in variable name.
53622
53623 2007-09-03  Jim Meyering  <jim@meyering.net>
53624
53625         New module: git-version-gen.
53626         * modules/git-version-gen: New file.
53627
53628         Import changes from coreutils for bootstrap script.
53629
53630         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53631
53632         bootstrap: uses rsync to download the .po files
53633         * build-aux/bootstrap (po_download_command_format): New global.
53634         (download_po_files): Use rsync.
53635         (update_po_files): Don't remove .po files after download,
53636         so future rsync runs can take advantage of the copies.
53637
53638         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53639
53640         Solve the unnecessary-.po-file-regeneration problem once and for all.
53641         * build-aux/bootstrap (download_po_files): New function, renamed from
53642         get_translations.  Now, downloads, but doesn't update LINGUAS.
53643         (update_po_files): New function.
53644
53645         bootstrap: Ignore more.
53646         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53647         uniwidth to e.g., lib/.gitignore.
53648         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53649
53650         * build-aux/bootstrap: New setting: vc_ignore.
53651         (insert_sorted_if_absent): Create $file if absent.
53652         Adapt to new, possibly empty, list: $vc_ignore.
53653
53654         bootstrap: generate more ignorable names
53655         * build-aux/bootstrap (slurp): When generating ignorable names,
53656         also map .sin to .sed, .gperf to .c, and .y to .c.
53657
53658 2007-09-03  Jim Meyering  <jim@meyering.net>
53659
53660         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53661         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53662
53663 2007-09-02  Bruno Haible  <bruno@clisp.org>
53664
53665         Fix mis-recognition of 'mcs' on QNX 6.
53666         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53667         output contains the string "Mono".
53668         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53669         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53670
53671 2007-09-01  Bruno Haible  <bruno@clisp.org>
53672
53673         Fix collision between uniwidth/* and linebreak modules.
53674         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53675         u32_width): Remove declarations.
53676         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53677         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53678         streq3, streq2, streq1, streq0): Remove functions.
53679         (STREQ): Remove macro.
53680         (is_cjk_encoding): Remove function.
53681         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53682         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53683         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53684         * NEWS: Document the change.
53685
53686 2007-09-01  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/streq.h: Add double-inclusion guard.
53689
53690 2007-09-01  Karl Berry  <karl@gnu.org>
53691
53692         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53693
53694 2007-08-28  Jim Meyering  <jim@meyering.net>
53695
53696         Rename mreadlink_with_size to areadlink_with_size.
53697         * NEWS: Document the change.
53698         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53699         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53700         * lib/mreadlink.h: Rename this to...
53701         * lib/areadlink.h: ...this.
53702         * modules/mreadlink-with-size: Rename this to...
53703         * modules/areadlink-with-size: ...this.
53704         * lib/canonicalize.c: Reflect the renaming.
53705         * modules/canonicalize: Likewise.
53706
53707 2007-08-26  Bruno Haible  <bruno@clisp.org>
53708
53709         * gnulib-tool (func_import): When deciding which files to remove,
53710         consider also dangling symbolic links.
53711         Reported by Eric Blake.
53712
53713 2007-08-26  Bruno Haible  <bruno@clisp.org>
53714
53715         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53716
53717 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53718
53719         * lib/readline.c: Don't include getline.h, the prototype is now
53720         found in stdio.h.
53721
53722 2007-08-23  Jim Meyering  <jim@meyering.net>
53723
53724         Getdelim touchup.
53725         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53726         around the funlockfile call, since funlockfile never sets errno.
53727         Don't set errno upon failed realloc.
53728
53729 2007-08-22  Eric Blake  <ebb9@byu.net>
53730
53731         Getline touchups.
53732         * lib/getdelim.c (getdelim): Revert regression that required *n to
53733         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53734         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53735         getdelim, rather than whether implementation is missing.
53736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53737         * lib/stdio_.h (getline): Also declare if replacement is
53738         required.
53739         * doc/functions/getdelim.texi: New file.
53740         * doc/functions/getline.texi: Likewise.
53741         * doc/gnulib.texi (Function Substitutes): Add new files.
53742         Reported by Bruno Haible.
53743
53744 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53745
53746         * users.txt: Add Guile.
53747
53748 2007-08-22  Eric Blake  <ebb9@byu.net>
53749
53750         * tests/test-getdelim.c (main): Use remove, not unlink.
53751         * tests/test-getline.c (main): Likewise.
53752
53753         Move getline and getdelim into stdio.h, per POSIX 200x.
53754         * modules/getline (Files): Remove getline.h.
53755         (Depends-on): Add stdio.
53756         (configure.ac): Add module indicator.
53757         * modules/getdelim (Files): Remove getdelim.h.
53758         (Depends-on): Add stdio.
53759         (configure.ac): Add module indicator.
53760         * modules/stdio (Makefile.am): Work with new indicators.
53761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53762         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53764         * lib/getdelim.h: Delete.
53765         * lib/getline.h: Delete.
53766         * lib/stdio_.h (getdelim, getline): Declare.
53767         * modules/getdelim-tests: New module.
53768         * modules/getline-tests: Likewise.
53769         * tests/test-getdelim.c: New file.
53770         * tests/test-getline.c: Likewise.
53771         * NEWS: Document the change.
53772         * lib/getline.c: Update choice of header.
53773         * lib/csharpcomp.c: Likewise.
53774         * lib/getpass.c: Likewise.
53775         * lib/javacomp.c: Likewise.
53776         * lib/javaversion.c: Likewise.
53777         * lib/yesno.c: Likewise.
53778         * lib/getdelim.c: Likewise.
53779         (getdelim): Set errno on failure, and avoid memory leak.
53780
53781 2007-08-19  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/closein (Depends-on): Add freadahead.
53784         * lib/closein.c: Include freadahead.h.
53785         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53786         is zero.
53787
53788 2007-08-19  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/freadahead-tests: New file.
53791         * tests/test-freadahead.sh: New file.
53792         * tests/test-freadahead.c: New file.
53793
53794         * modules/freadahead: New file.
53795         * lib/freadahead.h: New file.
53796         * lib/freadahead.c: New file.
53797         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53798         fbufmode, fpurge, freadable, fwritable.
53799
53800 2007-08-19  Eric Blake  <ebb9@byu.net>
53801
53802         Test yesno in combination with closein.
53803         * lib/yesno.c (yesno): Document use of stdin.
53804         * modules/yesno-tests (Files): New module.
53805         * tests/test-yesno.c (main): New file.
53806         * tests/test-yesno.sh: Likewise.
53807
53808 2007-08-19  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53811         * lib/fseeko.c (rpl_fseeko): Likewise.
53812         * lib/fseterr.c (fseterr): Likewise.
53813
53814 2007-08-19  Bruno Haible  <bruno@clisp.org>
53815
53816         * tests/test-lseek.c (main): Disable a test for BeOS.
53817         * doc/functions/lseek.texi: Document the BeOS bug.
53818
53819 2007-08-19  Bruno Haible  <bruno@clisp.org>
53820             Eric Blake  <ebb9@byu.net>
53821
53822         * lib/lseek.c: Include <sys/stat.h>.
53823         (rpl_lseek): Add workaround code also for Unix platforms.
53824         Needed for BeOS.
53825         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53826         * doc/functions/lseek.texi: Document BeOS definiency.
53827
53828 2007-08-18  Bruno Haible  <bruno@clisp.org>
53829
53830         * modules/fstrcmp-tests: New file.
53831         * tests/test-fstrcmp.c: New file.
53832
53833 2007-08-18  Bruno Haible  <bruno@clisp.org>
53834
53835         * modules/fstrcmp: New file, from GNU gettext with modifications.
53836         * lib/fstrcmp.h: New file, from GNU gettext.
53837         * lib/fstrcmp.c: New file, from GNU gettext.
53838         * MODULES.html.sh (String handling): Add fstrcmp.
53839
53840 2007-08-18  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53843         'bool'.
53844         (diag, compareseq): Remove const from the ctxt argument.
53845         (USE_HEURISTIC): Undefine at the end.
53846
53847 2007-08-18  Jim Meyering  <jim@meyering.net>
53848
53849         New file: lib/idcache.h
53850         * NEWS: Mention the addition.
53851         * modules/idcache (Files): Add lib/idcache.h
53852         * lib/idcache.c: Include "idcache.h".
53853         Don't include <sys/types.h>.
53854         Add a FIXME comment.
53855         Move file-scoped "static" declarations to the top.
53856         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53857
53858 2007-08-17  Bruno Haible  <bruno@clisp.org>
53859         and Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * MODULES.html.sh: Add diffseq.
53862         * modules/diffseq: New file.
53863         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53864         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53865
53866 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         Import changes from coreutils for bootstrap script.
53869
53870         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53871
53872         * build-aux/bootstrap (slurp): Work even in environments where
53873         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53874         current code does not slurp files whose names start with ".", and
53875         this looks like it might be a troublesome area.
53876
53877         2007-07-11  Jim Meyering  <jim@meyering.net>
53878
53879         If there's a GPL vN copyright comment, require that N == 3.
53880
53881         2007-07-08  Jim Meyering  <jim@meyering.net>
53882
53883         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53884         * build-aux/bootstrap (mam_template): Move definition out of loop.
53885
53886         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53887
53888         * build-aux/bootstrap (symlink_to_dir): Rename function from
53889         symlink_to_gnulib.  Add a directory parameter.  Update all
53890         callers.
53891         (cp_mark_as_generated): Also check for -- and link to -- files in
53892         gl/.
53893
53894         2007-07-08  Jim Meyering  <jim@meyering.net>
53895
53896         Adapt to deeper hierarchy in gnulib.
53897         * build-aux/bootstrap (symlink_to_dir): If the destination
53898         directory doesn't exist, create it. This is required at least for
53899         "lib/uniwidth/cjk.h".
53900
53901         2007-05-15  Jim Meyering  <jim@meyering.net>
53902
53903         * build-aux/bootstrap: Now that generated Makefile.am files
53904         are no longer under version control, they must be created at
53905         bootstrap time.
53906
53907 2007-08-14  Ben Pfaff  <blp@gnu.org>
53908
53909         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53910
53911 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53912
53913         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53914         given the changes below.
53915         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53916         even on hosts that have padding bits beyond the supported 64.
53917
53918 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53921         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53922         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53923         depends on it.
53924         (xstrtol_error): Remove.
53925         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53926         but with a different signature.
53927         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53928         * lib/xstrtol-error.c: Include exitfail.h.
53929         (xstrtol_fatal): New function, with a different signature from the
53930         old xstrtol_error, so that the caller need not worry about passing
53931         in an exit status, or about storage management of the option argument.
53932         (xstrtol_error): Now a static function.  Redo signature to
53933         implement xstrtol_fatal.  Output the correct number of hyphens in
53934         front of the option so that the caller need not worry about
53935         storage management.
53936         (N_): New macro.
53937         (_): Remove; not used now.
53938         * modules/xstrtol: Depend on getopt.
53939         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53940         of old STRTOL_FATAL_ERROR macro.
53941         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53942         of test program.
53943         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53944         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53945
53946 2007-08-08  Eric Blake  <ebb9@byu.net>
53947
53948         * lib/xstrtol-error.c: Add missing include.
53949
53950         Move xstrtol messages into gnulib domain, when --pobase is used.
53951         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53952         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53953         * modules/xstrtol (Files): Distribute new file.
53954         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53955         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53956         * tests/test-xstrtol.c: ...into new file.
53957         * tests/test-xstrtoul.c: Also test xstrtoul.
53958         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53959         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53960         * tests/test-xstrtol.sh: Drive the tests.
53961         * tests/test-xstrtoimax.sh: Likewise.
53962         * tests/test-xstrtoumax.sh: Likewise.
53963         * modules/xstrtol-tests: New module.
53964         * modules/xstrtoimax-tests: Likewise.
53965         * modules/xstrtoumax-tests: Likewise.
53966
53967 2007-08-08  Jim Meyering  <jim@meyering.net>
53968
53969         New function: mfile_name_concat.
53970         * lib/filenamecat.c (mfile_name_concat): New function, just like
53971         file_name_concat, but return NULL upon failure rather than exiting
53972         with a diagnostic.
53973         * lib/filenamecat.h: Declare it.
53974
53975 2007-08-07  Bruno Haible  <bruno@clisp.org>
53976
53977         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53978         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53979         warning from gcc.
53980         Reported by Eric Blake.
53981
53982 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53983
53984         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53985         * modules/crypto/arcfour (License): Likewise.
53986         * modules/crypto/des-tests (License): Likewise.
53987         * modules/crypto/gc-arctwo-tests (License): Likewise.
53988         * modules/crypto/gc-des-tests (License): Likewise.
53989         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53990         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53991         * modules/crypto/gc-md2-tests (License): Likewise.
53992         * modules/crypto/gc-md4-tests (License): Likewise.
53993         * modules/crypto/gc-md5-tests (License): Likewise.
53994         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53995         * modules/crypto/gc-rijndael-tests (License): Likewise.
53996         * modules/crypto/gc-sha1-tests (License): Likewise.
53997         * modules/crypto/gc-tests (License): Likewise.
53998         * modules/crypto/hmac-md5 (License): Likewise.
53999         * modules/crypto/hmac-sha1 (License): Likewise.
54000         * modules/crypto/md2-tests (License): Likewise.
54001         * modules/crypto/md4-tests (License): Likewise.
54002         * modules/crypto/md5 (License): Likewise.
54003         * modules/crypto/rijndael (License): Likewise.
54004         * modules/crypto/sha1 (License): Likewise.
54005         * modules/memxor (License): Likewise.
54006
54007 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54008         and Bruno Haible  <bruno@clisp.org>
54009
54010         * NEWS: Describe interface changes to human, xstrtol.
54011         * lib/human.h: Include <xstrtol.h>.
54012         (human_options): Return enum strtol_error, not int.  Remove
54013         bool arg; take int * instead.
54014         * lib/human.c: Don't include "gettext.h".
54015         (_): Remove; no longer used.
54016         Don't include <xstrtol.h>, since human.h does it.
54017         (human_options): Adjust to abovementioned interface changes.
54018         Do not report error to stderr; that's now the caller's
54019         responsibility.
54020         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54021         interface change.
54022         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54023         Str, Argument_type_string.  All uses changed.  Put " argument"
54024         in diagnostics to make them clearer.  Change wording of suffix
54025         message for clarity.
54026         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54027         Argument_type_string.
54028         (STRTOL_FATAL_WARN): Remove; no longer used.
54029         * modules/human (Depends-on): Remove gettext-h.
54030
54031 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54032
54033         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54034
54035 2007-07-31  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54038         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54039         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54040
54041 2007-07-31  Bruno Haible  <bruno@clisp.org>
54042
54043         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54044         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54045
54046 2007-07-30  Bruno Haible  <bruno@clisp.org>
54047
54048         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54049         * modules/c-ctype (License): Likewise.
54050         * modules/c-strcase (License): Likewise.
54051         * modules/check-version (License): Likewise.
54052         * modules/iconv (License): Likewise.
54053         * modules/iconv_open (License): Likewise.
54054         * modules/read-file (License): Likewise.
54055         * modules/striconv (License): Likewise.
54056         * modules/strverscmp (License): Likewise.
54057         * modules/vasprintf (License): Likewise.
54058         * modules/crypto/des (License): Likewise.
54059         * modules/crypto/gc (License): Likewise.
54060         * modules/crypto/gc-arcfour (License): Likewise.
54061         * modules/crypto/gc-arctwo (License): Likewise.
54062         * modules/crypto/gc-des (License): Likewise.
54063         * modules/crypto/gc-hmac-md5 (License): Likewise.
54064         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54065         * modules/crypto/gc-md2 (License): Likewise.
54066         * modules/crypto/gc-md4 (License): Likewise.
54067         * modules/crypto/gc-md5 (License): Likewise.
54068         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54069         * modules/crypto/gc-random (License): Likewise.
54070         * modules/crypto/gc-rijndael (License): Likewise.
54071         * modules/crypto/gc-sha1 (License): Likewise.
54072         * modules/crypto/md2 (License): Likewise.
54073         * modules/crypto/md4 (License): Likewise.
54074
54075 2007-07-30  Jim Meyering  <jim@meyering.net>
54076
54077         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54078         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54079         it has valid stat data.  This bug would cause du not to count the
54080         sizes of inaccessible directories.
54081         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54082         in <http://bugzilla.redhat.com/250077>.
54083
54084 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54085             Bruno Haible  <bruno@clisp.org>
54086
54087         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54088         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54089         #include_next, gives a diagnostic about it, but reports no error in
54090         the exit code.
54091         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54092
54093 2007-07-24  Ben Pfaff  <blp@gnu.org>
54094
54095         Improve name: "count-one-bits" is better than "popcount".
54096         * MODULES.html.sh: Update name.
54097         * lib/popcount.h: Renamed lib/count-one-bits.h.
54098         (popcount): Renamed count_one_bits.
54099         (popcountl): Renamed count_one_bits_l.
54100         (popcountll): Renamed count_one_bits_ll.
54101         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54102         * modules/popcount: Renamed module/count-one-bits.
54103         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54104         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54105
54106 2007-07-23  Ben Pfaff  <blp@gnu.org>
54107
54108         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54109         better code generation, and add U to large constants to avoid
54110         warnings, in non-GCC case.
54111         Suggested by Bruno Haible.
54112
54113 2007-07-23  Ben Pfaff  <blp@gnu.org>
54114
54115         * lib/popcount.h: Use verify_true instead of if...abort.
54116         * modules/popcount: Depend on verify module.
54117         Suggested by Jim Meyering.
54118
54119 2007-07-23  Bruno Haible  <bruno@clisp.org>
54120
54121         * gnulib-tool (func_import): Create a .cvsignore file also when the
54122         directory is not yet in CVS but the toplevel directory is. When
54123         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54124         Reported by Karl Berry.
54125
54126 2007-07-22  Ben Pfaff  <blp@gnu.org>
54127
54128         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54129         case.
54130         Suggested by Eric Blake.
54131
54132 2007-07-22  Ben Pfaff  <blp@gnu.org>
54133
54134         New module: popcount.
54135         * MODULES.html.sh: Add popcount.
54136         * modules/popcount: New file.
54137         * modules/popcount-tests: New file.
54138         * tests/test-popcount.c: New file.
54139         * lib/popcount.h: New file.
54140         * m4/popcount.m4: New file.
54141
54142 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * build-aux/announce-gen: Update to GPLv3.
54145
54146         * build-aux/config.guess: Update from config.
54147
54148 2007-07-21  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54151         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54152
54153 2007-07-20  Jim Meyering  <jim@meyering.net>
54154
54155         * check-module: Diagnose a self-dependency.
54156
54157 2007-07-19  Bruno Haible  <bruno@clisp.org>
54158
54159         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54160         empty.
54161         Reported by Eric Blake.
54162
54163 2007-07-18  Bruno Haible  <bruno@clisp.org>
54164
54165         * gnulib-tool: New options --po-base, --po-domain.
54166         (func_usage): Document them.
54167         (pobase, po_domain): New variables.
54168         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54169         DEFAULT_TEXT_DOMAIN.
54170         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54171         (func_import): Consider pobase and po_domain. Create a po/ directory.
54172         (func_create_testdir): Set pobase and po_domain to empty.
54173         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54174         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54175
54176 2007-07-18  Bruno Haible  <bruno@clisp.org>
54177
54178         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54179         EXTRA_DIST augmentation for files in build-aux/.
54180
54181 2007-07-16  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54184         * modules/getdelim (License): Likewise.
54185
54186 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54187
54188         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54189         * modules/d-type (License): Likewise.
54190         * modules/extensions (License): Likewise.
54191         * modules/fnmatch (License): Likewise.
54192         * modules/fseeko (License): Likewise.
54193         * modules/getaddrinfo (License): Likewise.
54194         * modules/getline (License): Likewise.
54195         * modules/getlogin_r (License): Likewise.
54196         * modules/getpass (License): Likewise.
54197         * modules/gettimeofday (License): Likewise.
54198         * modules/glob (License): Likewise.
54199         * modules/inet_ntop (License): Likewise.
54200         * modules/malloc (License): Likewise.
54201         * modules/malloca (License): Likewise.
54202         * modules/memmem (License): Likewise.
54203         * modules/mempcpy (License): Likewise.
54204         * modules/memset (License): Likewise.
54205         * modules/minmax (License): Likewise.
54206         * modules/mktime (License): Likewise.
54207         * modules/netinet_in (License): Likewise.
54208         * modules/pathmax (License): Likewise.
54209         * modules/poll (License): Likewise.
54210         * modules/regex (License): Likewise.
54211         * modules/snprintf (License): Likewise.
54212         * modules/stdbool (License): Likewise.
54213         * modules/stdint (License): Likewise.
54214         * modules/stdio (License): Likewise.
54215         * modules/strcase (License): Likewise.
54216         * modules/strcasestr (License): Likewise.
54217         * modules/strdup (License): Likewise.
54218         * modules/string (License): Likewise.
54219         * modules/strndup (License): Likewise.
54220         * modules/strnlen (License): Likewise.
54221         * modules/strpbrk (License): Likewise.
54222         * modules/strptime (License): Likewise.
54223         * modules/strsep (License): Likewise.
54224         * modules/sys_select (License): Likewise.
54225         * modules/sys_socket (License): Likewise.
54226         * modules/sys_stat (License): Likewise.
54227         * modules/sys_time (License): Likewise.
54228         * modules/time (License): Likewise.
54229         * modules/time_r (License): Likewise.
54230         * modules/timegm (License): Likewise.
54231         * modules/unistd (License): Likewise.
54232         * modules/vsnprintf (License): Likewise.
54233         * modules/wctype (License): Likewise.
54234
54235 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54236
54237         * modules/argz (License): LGPLv2+.
54238
54239 2007-07-15  Karl Berry  <karl@gnu.org>
54240
54241         * doc/gnulib.texi: revise node structure per new fdl.texi.
54242
54243 2007-07-14  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54246         the output file.
54247         * lib/uniname/uninames.h: Regenerated.
54248
54249 2007-07-14  Karl Berry  <karl@gnu.org>
54250
54251         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54252         omitting sectioning and index commands.
54253
54254 2007-07-13  Bruno Haible  <bruno@clisp.org>
54255
54256         New gnulib-tool option --more-symlinks.
54257         * gnulib-tool (func_usage): Document --more-symlinks.
54258         (do_copyrights): New variable.
54259         Recognize option --more-symlinks.
54260         (func_import): Don't add a copyright notice transform to
54261         sed_transform_lib_file if do_copyrights is empty.
54262
54263 2007-07-13  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/vasnprintf.c (decimal_point_char): Define also if
54266         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54267         && !NEED_PRINTF_DIRECTIVE_A.
54268         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54269         Gary V. Vaughan <gary@gnu.org>.
54270
54271 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * lib/inttypes_.h: Undo previous change, since it was fixed
54274         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54275
54276 2007-07-13  Bruno Haible  <bruno@clisp.org>
54277
54278         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54279         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54280
54281 2007-07-13  Jim Meyering  <jim@meyering.net>
54282
54283         df: Don't fail for Tru64's "file-on-file mount".
54284         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54285         so we fall through and use statfs instead.  Details here:
54286         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54287         Reported by Albert Chin.
54288
54289 2007-07-13  Bruno Haible  <bruno@clisp.org>
54290
54291         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54292         * modules/configmake (License): Likewise.
54293         * modules/gettext (License): Likewise.
54294         * modules/gettext-h (License): Likewise.
54295         * modules/include_next (License): Likewise.
54296         * modules/link-warning (License): Likewise.
54297         * modules/localcharset (License): Likewise.
54298         * modules/localename (License): Likewise.
54299         * modules/lock (License): Likewise.
54300         * modules/relocatable-lib-lgpl (License): Likewise.
54301         * modules/size_max (License): Likewise.
54302         * modules/vasnprintf (License): Likewise.
54303         * modules/wchar (License): Likewise.
54304         * modules/xsize (License): Likewise.
54305
54306 2007-07-13  Bruno Haible  <bruno@clisp.org>
54307
54308         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54309         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54310
54311 2007-07-12  Bruno Haible  <bruno@clisp.org>
54312
54313         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54314         in the modules files.
54315
54316 2007-07-11  Karl Berry  <karl@gnu.org>
54317
54318         * MODULES.html.sh (func_module): use
54319          sed -e '\|^'"${includefile}"'$|d'
54320          instead of /.../d, to avoid errors on $includefile's containing /.
54321
54322 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54323
54324         * gnulib-tool (func_import): Avoid duplication of --avoid
54325         statements
54326         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54327         names to `_' in variable names.
54328
54329 2007-07-10  Eric Blake  <ebb9@byu.net>
54330
54331         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54332         * NEWS: Document this change.
54333
54334 2007-07-08  Bruno Haible  <bruno@clisp.org>
54335
54336         Update to Unicode 5.0.
54337         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54338         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54339         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54340         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54341         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54342         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54343         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54344         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54345         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54346         U+10A3F, U+1D242..U+1D244.
54347         (nonspacing_table_ind): Update.
54348         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54349         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54350
54351 2007-07-08  Bruno Haible  <bruno@clisp.org>
54352
54353         Update to Unicode 5.0.
54354         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54355         code transform. Extend the name index field of unicode_name_to_code and
54356         unicode_code_to_name from 16 to 24 bits.
54357         * lib/uniname/uniname.c (unicode_character_name,
54358         unicode_name_character): Add the range 0x12xxx to the code transform.
54359         * lib/uniname/uninames.h: Regenerated.
54360         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54361
54362 2007-07-07  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/wcwidth-tests: New file.
54365         * tests/test-wcwidth.c: New file.
54366
54367         Work around MacOS X wcwidth() bug.
54368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54369         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54370         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54371         original wcwidth in non-UTF-8 locales.
54372         * modules/wcwidth (Depends-on): Add localcharset, streq,
54373         uniwidth/width.
54374         * doc/functions/wcwidth.texi: Update.
54375
54376 2007-07-07  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54379         (wcwidth): New declaration.
54380         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54381         macros.
54382         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54383         here. Prepare for creating <wchar.h> unconditionally.
54384         * modules/wchar (Depends-on): Add link-warning.
54385         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54386         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54387         * lib/wcwidth.h: Remove file.
54388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54389         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54390         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54391         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54392         (Include): Replace wcwidth.h with <wchar.h>.
54393         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54394         * lib/mbchar.h: Don't include wcwidth.h.
54395         * lib/mbswidth.c: Likewise.
54396         * NEWS: Mention the change.
54397
54398 2007-07-07  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54401         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54402         definition with an external declaration.
54403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54404         defined as a function. Remove AC_C_INLINE requirement.
54405         * modules/wcwidth (Files): Add lib/wcwidth.c.
54406         (Makefile.am): Remove redundant statement.
54407
54408 2007-07-07  Bruno Haible  <bruno@clisp.org>
54409
54410         * MODULES.html.sh (Unicode string functions): Add the new modules.
54411
54412         * tests/uniwidth/test-u32-strwidth.c: New file.
54413         * modules/uniwidth/u32-strwidth-tests: New file.
54414
54415         * lib/uniwidth/u32-strwidth.c: New file.
54416         * modules/uniwidth/u32-strwidth: New file.
54417
54418         * tests/uniwidth/test-u16-strwidth.c: New file.
54419         * modules/uniwidth/u16-strwidth-tests: New file.
54420
54421         * lib/uniwidth/u16-strwidth.c: New file.
54422         * modules/uniwidth/u16-strwidth: New file.
54423
54424         * tests/uniwidth/test-u8-strwidth.c: New file.
54425         * modules/uniwidth/u8-strwidth-tests: New file.
54426
54427         * lib/uniwidth/u8-strwidth.c: New file.
54428         * modules/uniwidth/u8-strwidth: New file.
54429
54430         * tests/uniwidth/test-u32-width.c: New file.
54431         * modules/uniwidth/u32-width-tests: New file.
54432
54433         * lib/uniwidth/u32-width.c: New file.
54434         * modules/uniwidth/u32-width: New file.
54435
54436         * tests/uniwidth/test-u16-width.c: New file.
54437         * modules/uniwidth/u16-width-tests: New file.
54438
54439         * lib/uniwidth/u16-width.c: New file.
54440         * modules/uniwidth/u16-width: New file.
54441
54442         * tests/uniwidth/test-u8-width.c: New file.
54443         * modules/uniwidth/u8-width-tests: New file.
54444
54445         * lib/uniwidth/u8-width.c: New file.
54446         * modules/uniwidth/u8-width: New file.
54447
54448         * tests/uniwidth/test-uc_width.c: New file.
54449         * modules/uniwidth/width-tests: New file.
54450
54451         * lib/uniwidth/width.c: New file, from GNU libiconv.
54452         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54453         * modules/uniwidth/width: New file.
54454
54455         * lib/uniwidth.h: New file, from GNU libiconv.
54456         * modules/uniwidth/base: New file.
54457
54458 2007-07-07  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/uniname.h: New file, from GNU gettext.
54461         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54462         * lib/uniname/uninames.h: New file, from GNU gettext.
54463         * lib/uniname/uniname.c: New file, from GNU gettext.
54464         * tests/uniname/test-uninames.sh: New file.
54465         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54466         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54467         * modules/uniname/base: New file.
54468         * modules/uniname/uniname: New file.
54469         * modules/uniname/uniname-tests: New file.
54470         * MODULES.html.sh (Unicode string functions): Add the new modules.
54471
54472 2007-07-06  Bruno Haible  <bruno@clisp.org>
54473
54474         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54475
54476 2007-07-06  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54479         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54480         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54481         include <sys/time.h>.
54482         Reported by Eric Blake.
54483
54484 2007-07-06  Eric Blake  <ebb9@byu.net>
54485
54486         Fix testing canonicalize on cygwin.
54487         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54488         Revert patch from 2007-06-19.
54489         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54490         canonicalize module is also in use.
54491         * tests/test-canonicalize.c: New file.
54492         * tests/test-canonicalize.sh: Likewise.
54493         * modules/canonicalize-tests: Likewise.
54494
54495 2007-07-06  Jim Meyering  <jim@meyering.net>
54496
54497         * lib/getugroups.c (getugroups): Detect getgrent failure.
54498         Adjust comment to reflect reality: this function may return -1.
54499
54500 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54501
54502         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54503         the new TP address.
54504         (usage): Fix typo
54505         (gnulib_mk): New variable.
54506
54507 2007-07-05  Jim Meyering  <jim@meyering.net>
54508
54509         Don't let endgrent clobber errno, no matter how improbable.
54510         * lib/getugroups.c (getugroups): Save and restore errno around
54511         endgrent call.
54512
54513         Close the group DB even when failing with 2^31 or more members.
54514         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54515
54516 2007-07-04  Jim Meyering  <jim@meyering.net>
54517
54518         * lib/getugroups.h: New file.
54519         * lib/getugroups.c: Include "getugroups.h".
54520         Remove uses of "register" keyword.
54521         Move local variable, "cp", down into scope where used.
54522         Give "username" parameter the "const" attribute.
54523         * modules/getugroups (Files): Add lib/getugroups.h
54524
54525 2007-07-04  Karl Berry  <karl@gnu.org>
54526
54527         * MODULES.html.sh (func_all_modules): Complete rename of
54528         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54529
54530 2007-07-02  Bruno Haible  <bruno@clisp.org>
54531
54532         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54533         mode, when inttypes.h comes from gnulib.
54534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54535
54536 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54537
54538         * NEWS: Mention lgpl module name change.
54539
54540         * modules/lgpl-2.1: Renamed from lgpl.
54541
54542         * NEWS: Mention gpl module name change.
54543
54544         * modules/gpl-3.0: New file, based on gpl-2.0.
54545
54546         * modules/gpl-2.0: Renamed from gpl.
54547
54548         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54549         doc/gpl-2.0.texi.
54550
54551 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54552
54553         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54554         #define __STDC_LIMIT_MACROS temporarily while including
54555         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54556         Problem reported by Joel E. Denny in
54557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54558
54559 2007-07-01  Bruno Haible  <bruno@clisp.org>
54560
54561         * lib/unistdio.h: New file.
54562         * lib/unistdio/u-asnprintf.h: New file.
54563         * lib/unistdio/u-asprintf.h: New file.
54564         * lib/unistdio/u-printf-args.c: New file.
54565         * lib/unistdio/u-printf-args.h: New file.
54566         * lib/unistdio/u-printf-parse.h: New file.
54567         * lib/unistdio/u-snprintf.h: New file.
54568         * lib/unistdio/u-sprintf.h: New file.
54569         * lib/unistdio/u-vasprintf.h: New file.
54570         * lib/unistdio/u-vsnprintf.h: New file.
54571         * lib/unistdio/u-vsprintf.h: New file.
54572         * lib/unistdio/ulc-asnprintf.c: New file.
54573         * lib/unistdio/ulc-asprintf.c: New file.
54574         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54575         * lib/unistdio/ulc-printf-parse.c: New file.
54576         * lib/unistdio/ulc-snprintf.c: New file.
54577         * lib/unistdio/ulc-sprintf.c: New file.
54578         * lib/unistdio/ulc-vasnprintf.c: New file.
54579         * lib/unistdio/ulc-vasprintf.c: New file.
54580         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54581         * lib/unistdio/ulc-vsnprintf.c: New file.
54582         * lib/unistdio/ulc-vsprintf.c: New file.
54583         * lib/unistdio/u8-asnprintf.c: New file.
54584         * lib/unistdio/u8-asprintf.c: New file.
54585         * lib/unistdio/u8-printf-parse.c: New file.
54586         * lib/unistdio/u8-snprintf.c: New file.
54587         * lib/unistdio/u8-sprintf.c: New file.
54588         * lib/unistdio/u8-vasnprintf.c: New file.
54589         * lib/unistdio/u8-vasprintf.c: New file.
54590         * lib/unistdio/u8-vsnprintf.c: New file.
54591         * lib/unistdio/u8-vsprintf.c: New file.
54592         * lib/unistdio/u8-u8-asnprintf.c: New file.
54593         * lib/unistdio/u8-u8-asprintf.c: New file.
54594         * lib/unistdio/u8-u8-snprintf.c: New file.
54595         * lib/unistdio/u8-u8-sprintf.c: New file.
54596         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54597         * lib/unistdio/u8-u8-vasprintf.c: New file.
54598         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54599         * lib/unistdio/u8-u8-vsprintf.c: New file.
54600         * lib/unistdio/u16-asnprintf.c: New file.
54601         * lib/unistdio/u16-asprintf.c: New file.
54602         * lib/unistdio/u16-printf-parse.c: New file.
54603         * lib/unistdio/u16-snprintf.c: New file.
54604         * lib/unistdio/u16-sprintf.c: New file.
54605         * lib/unistdio/u16-vasnprintf.c: New file.
54606         * lib/unistdio/u16-vasprintf.c: New file.
54607         * lib/unistdio/u16-vsnprintf.c: New file.
54608         * lib/unistdio/u16-vsprintf.c: New file.
54609         * lib/unistdio/u16-u16-asnprintf.c: New file.
54610         * lib/unistdio/u16-u16-asprintf.c: New file.
54611         * lib/unistdio/u16-u16-snprintf.c: New file.
54612         * lib/unistdio/u16-u16-sprintf.c: New file.
54613         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54614         * lib/unistdio/u16-u16-vasprintf.c: New file.
54615         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54616         * lib/unistdio/u16-u16-vsprintf.c: New file.
54617         * lib/unistdio/u32-asnprintf.c: New file.
54618         * lib/unistdio/u32-asprintf.c: New file.
54619         * lib/unistdio/u32-printf-parse.c: New file.
54620         * lib/unistdio/u32-snprintf.c: New file.
54621         * lib/unistdio/u32-sprintf.c: New file.
54622         * lib/unistdio/u32-vasnprintf.c: New file.
54623         * lib/unistdio/u32-vasprintf.c: New file.
54624         * lib/unistdio/u32-vsnprintf.c: New file.
54625         * lib/unistdio/u32-vsprintf.c: New file.
54626         * lib/unistdio/u32-u32-asnprintf.c: New file.
54627         * lib/unistdio/u32-u32-asprintf.c: New file.
54628         * lib/unistdio/u32-u32-snprintf.c: New file.
54629         * lib/unistdio/u32-u32-sprintf.c: New file.
54630         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54631         * lib/unistdio/u32-u32-vasprintf.c: New file.
54632         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54633         * lib/unistdio/u32-u32-vsprintf.c: New file.
54634         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54635         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54636         * tests/unistdio/test-ulc-printf1.h: New file.
54637         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54638         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54639         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54640         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54641         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54642         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54643         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54644         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54645         * tests/unistdio/test-u8-asnprintf1.c: New file.
54646         * tests/unistdio/test-u8-asnprintf1.h: New file.
54647         * tests/unistdio/test-u8-printf1.h: New file.
54648         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54649         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54650         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54651         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54652         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54653         * tests/unistdio/test-u8-vasprintf1.c: New file.
54654         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54655         * tests/unistdio/test-u8-vsprintf1.c: New file.
54656         * tests/unistdio/test-u16-asnprintf1.c: New file.
54657         * tests/unistdio/test-u16-asnprintf1.h: New file.
54658         * tests/unistdio/test-u16-printf1.h: New file.
54659         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54660         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54661         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54662         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54663         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54664         * tests/unistdio/test-u16-vasprintf1.c: New file.
54665         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54666         * tests/unistdio/test-u16-vsprintf1.c: New file.
54667         * tests/unistdio/test-u32-asnprintf1.c: New file.
54668         * tests/unistdio/test-u32-asnprintf1.h: New file.
54669         * tests/unistdio/test-u32-printf1.h: New file.
54670         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54671         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54672         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54673         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54674         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54675         * tests/unistdio/test-u32-vasprintf1.c: New file.
54676         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54677         * tests/unistdio/test-u32-vsprintf1.c: New file.
54678         * modules/unistdio/base: New file.
54679         * modules/unistdio/u-printf-args: New file.
54680         * modules/unistdio/ulc-asnprintf: New file.
54681         * modules/unistdio/ulc-asprintf: New file.
54682         * modules/unistdio/ulc-fprintf: New file.
54683         * modules/unistdio/ulc-printf-parse: New file.
54684         * modules/unistdio/ulc-snprintf: New file.
54685         * modules/unistdio/ulc-sprintf: New file.
54686         * modules/unistdio/ulc-vasnprintf: New file.
54687         * modules/unistdio/ulc-vasprintf: New file.
54688         * modules/unistdio/ulc-vfprintf: New file.
54689         * modules/unistdio/ulc-vsnprintf: New file.
54690         * modules/unistdio/ulc-vsprintf: New file.
54691         * modules/unistdio/u8-asnprintf: New file.
54692         * modules/unistdio/u8-asprintf: New file.
54693         * modules/unistdio/u8-printf-parse: New file.
54694         * modules/unistdio/u8-snprintf: New file.
54695         * modules/unistdio/u8-sprintf: New file.
54696         * modules/unistdio/u8-vasnprintf: New file.
54697         * modules/unistdio/u8-vasprintf: New file.
54698         * modules/unistdio/u8-vsnprintf: New file.
54699         * modules/unistdio/u8-vsprintf: New file.
54700         * modules/unistdio/u8-u8-asnprintf: New file.
54701         * modules/unistdio/u8-u8-asprintf: New file.
54702         * modules/unistdio/u8-u8-snprintf: New file.
54703         * modules/unistdio/u8-u8-sprintf: New file.
54704         * modules/unistdio/u8-u8-vasnprintf: New file.
54705         * modules/unistdio/u8-u8-vasprintf: New file.
54706         * modules/unistdio/u8-u8-vsnprintf: New file.
54707         * modules/unistdio/u8-u8-vsprintf: New file.
54708         * modules/unistdio/u16-asnprintf: New file.
54709         * modules/unistdio/u16-asprintf: New file.
54710         * modules/unistdio/u16-printf-parse: New file.
54711         * modules/unistdio/u16-snprintf: New file.
54712         * modules/unistdio/u16-sprintf: New file.
54713         * modules/unistdio/u16-vasnprintf: New file.
54714         * modules/unistdio/u16-vasprintf: New file.
54715         * modules/unistdio/u16-vsnprintf: New file.
54716         * modules/unistdio/u16-vsprintf: New file.
54717         * modules/unistdio/u16-u16-asnprintf: New file.
54718         * modules/unistdio/u16-u16-asprintf: New file.
54719         * modules/unistdio/u16-u16-snprintf: New file.
54720         * modules/unistdio/u16-u16-sprintf: New file.
54721         * modules/unistdio/u16-u16-vasnprintf: New file.
54722         * modules/unistdio/u16-u16-vasprintf: New file.
54723         * modules/unistdio/u16-u16-vsnprintf: New file.
54724         * modules/unistdio/u16-u16-vsprintf: New file.
54725         * modules/unistdio/u32-asnprintf: New file.
54726         * modules/unistdio/u32-asprintf: New file.
54727         * modules/unistdio/u32-printf-parse: New file.
54728         * modules/unistdio/u32-snprintf: New file.
54729         * modules/unistdio/u32-sprintf: New file.
54730         * modules/unistdio/u32-vasnprintf: New file.
54731         * modules/unistdio/u32-vasprintf: New file.
54732         * modules/unistdio/u32-vsnprintf: New file.
54733         * modules/unistdio/u32-vsprintf: New file.
54734         * modules/unistdio/u32-u32-asnprintf: New file.
54735         * modules/unistdio/u32-u32-asprintf: New file.
54736         * modules/unistdio/u32-u32-snprintf: New file.
54737         * modules/unistdio/u32-u32-sprintf: New file.
54738         * modules/unistdio/u32-u32-vasnprintf: New file.
54739         * modules/unistdio/u32-u32-vasprintf: New file.
54740         * modules/unistdio/u32-u32-vsnprintf: New file.
54741         * modules/unistdio/u32-u32-vsprintf: New file.
54742         * modules/unistdio/ulc-asnprintf-tests: New file.
54743         * modules/unistdio/ulc-vasnprintf-tests: New file.
54744         * modules/unistdio/ulc-vasprintf-tests: New file.
54745         * modules/unistdio/ulc-vsnprintf-tests: New file.
54746         * modules/unistdio/ulc-vsprintf-tests: New file.
54747         * modules/unistdio/u8-asnprintf-tests: New file.
54748         * modules/unistdio/u8-vasnprintf-tests: New file.
54749         * modules/unistdio/u8-vasprintf-tests: New file.
54750         * modules/unistdio/u8-vsnprintf-tests: New file.
54751         * modules/unistdio/u8-vsprintf-tests: New file.
54752         * modules/unistdio/u16-asnprintf-tests: New file.
54753         * modules/unistdio/u16-vasnprintf-tests: New file.
54754         * modules/unistdio/u16-vasprintf-tests: New file.
54755         * modules/unistdio/u16-vsnprintf-tests: New file.
54756         * modules/unistdio/u16-vsprintf-tests: New file.
54757         * modules/unistdio/u32-asnprintf-tests: New file.
54758         * modules/unistdio/u32-vasnprintf-tests: New file.
54759         * modules/unistdio/u32-vasprintf-tests: New file.
54760         * modules/unistdio/u32-vsnprintf-tests: New file.
54761         * modules/unistdio/u32-vsprintf-tests: New file.
54762         * MODULES.html.sh (Unicode string functions): Add the new modules.
54763
54764 2007-07-01  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/sprintf.c (sprintf): Limit the available length estimation,
54767         to avoid address wraparound.
54768         * lib/vsprintf.c (vsprintf): Likewise.
54769         * modules/sprintf-posix (Dependencies): Add stdint.
54770         * modules/vsprintf-posix (Dependencies): Likewise.
54771
54772 2007-07-01  Bruno Haible  <bruno@clisp.org>
54773
54774         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54775         Windows PATH as well. Conservative double-quoting. Comments.
54776
54777 2007-07-01  Bruno Haible  <bruno@clisp.org>
54778             Eric Blake  <ebb9@byu.net>
54779             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54780
54781         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54782         empty components in $PATH, denoting '.'.
54783
54784 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54785
54786         * gnulib-tool: Fix indentation.
54787         (func_create_megatestdir): Likewise.
54788         Report by Bruno Haible.
54789
54790 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54791
54792         Sync from Automake.
54793         * build-aux/gnupload: Fix shell portability issues with for loops.
54794         Report by Karl Berry.
54795
54796 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54797
54798         * build-aux/maint.mk (POURL): Use translationproject.org.
54799
54800 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54801             Bruno Haible  <bruno@clisp.org>
54802
54803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54804         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54805         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54806         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54807         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54808
54809 2007-06-27  Bruno Haible  <bruno@clisp.org>
54810
54811         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54812         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54813
54814 2007-06-26  Karl Berry  <karl@gnu.org>
54815
54816         * MODULES.html.sh: remove xreadlink-with-size.
54817
54818 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54821         method that I hope also handles the double-include problem noted
54822         by Bruno Haible in
54823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54824
54825 2007-06-23  Bruno Haible  <bruno@clisp.org>
54826
54827         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54828         Don't let the 'mostlyclean' target fail if the last subdirectory could
54829         not be removed.
54830         Reported by Karl Berry.
54831
54832 2007-06-23  Bruno Haible  <bruno@clisp.org>
54833
54834         * gnulib-tool (echo): Add a speedier workaround for ksh.
54835         * tests/test-echo.sh: Likewise.
54836
54837 2007-06-23  Bruno Haible  <bruno@clisp.org>
54838
54839         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54840         * tests/test-echo.sh: Likewise.
54841
54842 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54843
54844         * gnulib-tool (IFS): Initialize early, so we don't set it to
54845         empty later.
54846         (self_abspathname): Rewrite algorithm to set it, reindent.
54847         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54848         (func_create_megatestdir): Merge some sed scripts.
54849
54850 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54853         exposed by Sun Studio 11 cc on Solaris 8.
54854
54855 2007-06-22  Bruno Haible  <bruno@clisp.org>
54856
54857         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54858         backslashes.
54859         * tests/test-echo.sh: New file.
54860
54861 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54862
54863         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54864         simplify `sed_replace_build_aux' scripts, they are portable but
54865         echoing them with `echo' is not.
54866         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54867
54868 2007-06-21  Karl Berry  <karl@gnu.org>
54869
54870         * config/srclist.txt: guess we can't handle the licenses via
54871         srclist at the moment.
54872
54873 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * MODULES.html.sh: Add include_next.
54876         * modules/include_next: New file.
54877
54878 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54881         INCLUDE_NEXT.
54882         (gl_CHECK_NEXT_HEADERS): New macro.
54883         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54884         the obsolescent gl_ABSOLUTE_HEADER.
54885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54886         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54887         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54888         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54889         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54890         * m4/math_h.m4 (gl_MATH_H): Likewise.
54891         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54892         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54893         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54894         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54895         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54896         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54897         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54902         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54903         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54904         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54905         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54906         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54907         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54908         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54909         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54910         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54911         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54912         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54913         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54914         * lib/float_.h: Likewise.
54915         * lib/inttypes_.h: Likewise.
54916         * lib/math_.h: Likewise.
54917         * lib/search_.h: Likewise.
54918         * lib/signal_.h: Likewise.
54919         * lib/stdint_.h: Likewise.
54920         * lib/stdio_.h: Likewise.
54921         * lib/stdlib_.h: Likewise.
54922         * lib/string_.h: Likewise.
54923         * lib/sys_stat_.h: Likewise.
54924         * lib/sys_time_.h: Likewise.
54925         * lib/time_.h: Likewise.
54926         * lib/unistd_.h: Likewise.
54927         * lib/wchar_.h: Likewise.
54928         * lib/wctype_.h: Likewise.
54929         * lib/dirent_.h: Likewise.
54930         * lib/iconv_.h: Likewise.
54931         * lib/locale_.h: Likewise.
54932         * lib/netinet_in_.h: Likewise.
54933         * lib/sys_select_.h: Likewise.
54934         * lib/sys_socket_.h: Likewise.
54935         * lib/sysexits_.h: Likewise.
54936         * modules/fcntl (Depends-on): Depend on include_next, not
54937         absolute_header.
54938         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54939         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54940         * modules/fchdir: Likewise.
54941         * modules/float: Likewise.
54942         * modules/iconv_open: Likewise.
54943         * modules/inttypes: Likewise.
54944         * modules/locale: Likewise.
54945         * modules/math: Likewise.
54946         * modules/netinet_in: Likewise.
54947         * modules/search: Likewise.
54948         * modules/signal: Likewise.
54949         * modules/stdint: Likewise.
54950         * modules/stdio: Likewise.
54951         * modules/stdlib: Likewise.
54952         * modules/string: Likewise.
54953         * modules/sys_select: Likewise.
54954         * modules/sys_socket: Likewise.
54955         * modules/sys_stat: Likewise.
54956         * modules/sys_time: Likewise.
54957         * modules/sysexits: Likewise.
54958         * modules/time: Likewise.
54959         * modules/unistd: Likewise.
54960         * modules/wchar: Likewise.
54961         * modules/wctype: Likewise.
54962         * modules/sys_stat: Change maintainer to "all".
54963         * modules/unistd: Likewise.
54964
54965 2007-06-20  Karl Berry  <karl@gnu.org>
54966
54967         * config/srclist.txt: track www changes in license files.
54968
54969 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54970
54971         * build-aux/bootstrap: Remove stray dot.
54972         Make sure build_aux settings are honored when linking
54973         gnulib_extra_files.
54974
54975 2007-06-19  Eric Blake  <ebb9@byu.net>
54976
54977         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54978         Allow compilation on cygwin.
54979
54980 2007-06-19  Jim Meyering  <jim@meyering.net>
54981
54982         xreadlink-with-size: Remove module.  No longer used.
54983         Ex-callers now use xreadlink or mreadlink-with-size.
54984         * modules/xreadlink-with-size: Remove module.
54985         * lib/xreadlink-with-size.c: Remove file.
54986         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54987         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54988         just before the function definition *is* accurate.
54989
54990         Eliminate one way canonicalize_filename_mode could exit.
54991         * lib/canonicalize.c (canonicalize_filename_mode):
54992         Use mreadlink_with_size, not xreadlink_with_size.
54993
54994 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         Detect porting problems to FreeBSD/arm, which has time_t wider than
54997         long int.  Original problem reported for GNU diff by Xin Li in
54998         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54999         * modules/getdate (Depends-on): Add intprops, verify.
55000         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55001         is an integer type no wider than long int.
55002
55003 2007-06-18  Jim Meyering  <jim@meyering.net>
55004
55005         New module: mreadlink-with-size.
55006         * MODULES.html.sh: Add mreadlink-with-size.
55007         * modules/mreadlink-with-size: New module
55008         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55009         not xreadlink-with-size.
55010         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55011
55012 2007-06-16  Bruno Haible  <bruno@clisp.org>
55013
55014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55015         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55016         Reported by Gary V. Vaughan <gary@gnu.org>.
55017
55018 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         Revamp lchown so that it lives in unistd.h where it belongs.
55021         * lib/lchown.h: Remove.
55022         * lib/dirchownmod.c: Don't include lib/lchown.h.
55023         * lib/fchownat.c: Likewise.
55024         * lib/openat.c: Likewise.
55025         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55026         does not follow symlinks.
55027         (EOPNOTSUPP): Define if not defined.
55028         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55029         is defined to 0.
55030         (lchown): New decl.
55031         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55032         Do not check for lchown decl.
55033         Set REPLACE_LCHOWN.
55034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55035         REPLACE_LCHOWN.
55036         * modules/chown: Make it clear it follows symlinks.
55037         * modules/lchown: Make it clear it doesn't follow symlinks.
55038         (Files): Remove lib/lchown.h
55039         (Depends-on): Add unistd.
55040         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55041         (Include): Include <unistd.h>, not "lchown.h".
55042         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55043         REPLACE_LCHOWN.
55044
55045 2007-06-15  Jim Meyering  <jim@meyering.net>
55046
55047         Change license (GPL to LGPL) of fsusage and dependents.
55048         * modules/fsusage (License): Change to LGPL.
55049         * modules/full-read (License): Likewise.
55050         * modules/full-write (License): Likewise.
55051         * modules/safe-read (License): Likewise.
55052         * modules/safe-write (License): Likewise.
55053
55054 2007-06-14  Ben Pfaff  <blp@gnu.org>
55055
55056         Missing part of allocsa -> malloca transition.
55057         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55058         gl_MALLOCA.
55059
55060 2007-06-12  Bruno Haible  <bruno@clisp.org>
55061
55062         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55063         to ia64, x86_64, i386.
55064         Reported by Eric Blake.
55065
55066 2007-06-12  Bruno Haible  <bruno@clisp.org>
55067
55068         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55069         cross-compiling to x86_64.
55070
55071 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55074         glitch reported by Ralf Wildenhues in
55075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55076
55077         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55078         Vin Shelton.
55079
55080 2007-06-11  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55083         replacement string.
55084         Reported by Eric Blake.
55085
55086 2007-06-10  Bruno Haible  <bruno@clisp.org>
55087
55088         Prepare vasnprintf code for use with Unicode strings.
55089         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55090         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55091         TYPE_U32_STRING.
55092         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55093         a_u32_string variants.
55094         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55095         * lib/printf-args.c: Don't include config.h and the specification
55096         header if PRINTF_FETCHARGS is already defined.
55097         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55098         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55099         TYPE_U16_STRING, TYPE_U32_STRING.
55100         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55101         u16_directive, u16_directives, u32_directive, u32_directives): New
55102         types.
55103         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55104         New declarations.
55105         * lib/printf-parse.c: Don't include config.h and the specification
55106         header if PRINTF_PARSE is already defined. Eliminate the set of
55107         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55108         them now. Include c-ctype.h.
55109         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55110         directive and CHAR_T_ONLY_ASCII.
55111         * lib/vasnprintf.c: Don't include config.h and the specification header
55112         if VASNPRINTF is already defined.
55113         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55114         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55115         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55116         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55117         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55118         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55119         code accordingly.
55120         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55121         pad_ourselves also in this case, with the 'c' and 's' directives, and
55122         with a different notion of "width".
55123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55124
55125 2007-06-10  Bruno Haible  <bruno@clisp.org>
55126
55127         * modules/unistr/u32-mbsnlen: New file.
55128         * lib/unistr/u32-mbsnlen.c: New file.
55129
55130         * modules/unistr/u16-mbsnlen: New file.
55131         * lib/unistr/u16-mbsnlen.c: New file.
55132
55133         * modules/unistr/u8-mbsnlen: New file.
55134         * lib/unistr/u8-mbsnlen.c: New file.
55135
55136         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55137         declarations.
55138
55139 2007-06-10  Bruno Haible  <bruno@clisp.org>
55140
55141         * lib/string_.h (mbsnlen): New declaration.
55142         * lib/mbsnlen.c: New file.
55143         * m4/mbsnlen.m4: New file.
55144         * modules/mbsnlen: New file.
55145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55146         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55147         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55148
55149 2007-06-10  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55152
55153 2007-06-10  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55156         * lib/mbuiter.h: Likewise.
55157
55158 2007-06-10  Bruno Haible  <bruno@clisp.org>
55159
55160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55161         declaration.
55162
55163 2007-06-10  Karl Berry  <karl@gnu.org>
55164
55165         * config/srclist.txt: remove gettext entries, Bruno prefers
55166         to update individually.
55167
55168 2007-06-10  Bruno Haible  <bruno@clisp.org>
55169
55170         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55171         'maxlen'. Ensure only length + width bytes are allocated, not
55172         length + 1 + width.
55173
55174 2007-06-09  Bruno Haible  <bruno@clisp.org>
55175
55176         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55177         (CHAR_T): Remove macro.
55178         (VASNPRINTF): Update.
55179
55180 2007-06-09  Bruno Haible  <bruno@clisp.org>
55181
55182         * MODULES.html.sh (Unicode string functions): Add the new modules.
55183
55184         * modules/uniconv/u32-conv-to-enc: New file.
55185         * lib/uniconv/u32-conv-to-enc.c: New file.
55186         * modules/uniconv/u32-conv-to-enc-tests: New file.
55187         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55188
55189         * modules/uniconv/u16-conv-to-enc: New file.
55190         * lib/uniconv/u16-conv-to-enc.c: New file.
55191         * lib/uniconv/u-conv-to-enc.h: New file.
55192         * modules/uniconv/u16-conv-to-enc-tests: New file.
55193         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55194
55195         * modules/uniconv/u8-conv-to-enc: New file.
55196         * lib/uniconv/u8-conv-to-enc.c: New file.
55197         * modules/uniconv/u8-conv-to-enc-tests: New file.
55198         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55199
55200         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55201         u32_conv_to_encoding): New declarations.
55202
55203 2007-06-09  Bruno Haible  <bruno@clisp.org>
55204
55205         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55206
55207 2007-06-09  Bruno Haible  <bruno@clisp.org>
55208
55209         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55210         * modules/malloca: Renamed from modules/allocsa, updated.
55211         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55212         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55213         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55214         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55215         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55216         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55217         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55218         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55219         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55220         * modules/c-strcasestr (Depends-on): Update.
55221         * lib/c-strcasestr.c: Update.
55222         * modules/c-strstr (Depends-on): Update.
55223         * lib/c-strstr.c: Update.
55224         * modules/canonicalize-lgpl (Depends-on): Update.
55225         * lib/canonicalize-lgpl.c: Update.
55226         * modules/clean-temp (Depends-on): Update.
55227         * lib/clean-temp.c: Update.
55228         * modules/csharpcomp (Depends-on): Update.
55229         * lib/csharpcomp.c: Update.
55230         * modules/csharpexec (Depends-on): Update.
55231         * lib/csharpexec.c: Update.
55232         * modules/javacomp (Depends-on): Update.
55233         * lib/javacomp.c: Update.
55234         * modules/javaexec (Depends-on): Update.
55235         * lib/javaexec.c: Update.
55236         * modules/mbscasestr (Depends-on): Update.
55237         * lib/mbscasestr.c: Update.
55238         * modules/mbsstr (Depends-on): Update.
55239         * lib/mbsstr.c: Update.
55240         * modules/setenv (Depends-on): Update.
55241         * lib/setenv.c: Update.
55242         * modules/strcasestr (Depends-on): Update.
55243         * lib/strcasestr.c: Update.
55244         * modules/striconveha (Depends-on): Update.
55245         * lib/striconveha.c: Update.
55246         * modules/relocatable-prog-wrapper (Files): Update.
55247         * lib/relocwrapper.c: Update.
55248         * build-aux/install-reloc: Update.
55249         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55250
55251 2007-06-08  Bruno Haible  <bruno@clisp.org>
55252
55253         Port to uClibc.
55254         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55255         * lib/fpurge.c (fpurge): Likewise.
55256         * lib/freading.c (freading): Likewise.
55257         * lib/fseeko.c (rpl_fseeko): Likewise.
55258         * lib/fseterr.c (fseterr): Likewise.
55259         * lib/fwriting.c (fwriting): Likewise.
55260         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55261
55262 2007-06-08  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55265         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55266         * modules/gettext (Files): Add m4/intlmacosx.m4.
55267
55268 2007-06-07  Bruno Haible  <bruno@clisp.org>
55269
55270         * modules/localename-tests: New file.
55271         * tests/test-localename.c: New file.
55272
55273         New module 'localename'.
55274         * lib/localename.h: New file.
55275         * lib/localename.c: New file, from GNU gettext.
55276         * m4/localename.m4: New file.
55277         * modules/localename: New file.
55278
55279 2007-06-07  Bruno Haible  <bruno@clisp.org>
55280
55281         Work around the lack of <wchar.h> on some builds of uClibc.
55282         * doc/headers/wchar.texi: Update.
55283         * lib/wchar_.h: Include <wchar.h> only if it exists.
55284         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55285         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55286         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55287         doesn't exist.
55288         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55289         * modules/mbfile (Depends-on): Add wchar.
55290         * modules/mbiter (Depends-on): Likewise.
55291         * modules/mbuiter (Depends-on): Likewise.
55292         Reported by Simon Josefsson.
55293
55294 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55295
55296         Work around problem reported by Steven M. Schweda in
55297         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55298         Tru64 5.1B with the Compaq compiler environment installed declares
55299         an 'isblank' function but does not define it in the C library.
55300         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55301         * lib/regex_internal.h (isblank): Likewise.
55302         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55303         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55304
55305 2007-06-05  Bruno Haible  <bruno@clisp.org>
55306
55307         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55308         ia64.
55309         * modules/printf-safe: New file.
55310         * modules/fprintf-posix (Depends-on): Add printf-safe.
55311         * modules/printf-posix (Depends-on): Likewise.
55312         * modules/snprintf-posix (Depends-on): Likewise.
55313         * modules/sprintf-posix (Depends-on): Likewise.
55314         * modules/vasnprintf-posix (Depends-on): Likewise.
55315         * modules/vasprintf-posix (Depends-on): Likewise.
55316         * modules/vfprintf-posix (Depends-on): Likewise.
55317         * modules/vprintf-posix (Depends-on): Likewise.
55318         * modules/vsnprintf-posix (Depends-on): Likewise.
55319         * modules/vsprintf-posix (Depends-on): Likewise.
55320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55321         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55322         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55323         "no" on i386, x86_64, ia64.
55324         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55325         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55326         on i386, x86_64, ia64.
55327         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55328         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55329         on i386, x86_64, ia64.
55330         * tests/test-vasnprintf-posix.c: Include float.h.
55331         (LDBL80_WORDS): New macro.
55332         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55333         on i386, x86_64, ia64.
55334         * tests/test-vasprintf-posix.c: Include float.h.
55335         (LDBL80_WORDS): New macro.
55336         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55337         on i386, x86_64, ia64.
55338         * tests/test-snprintf-posix.c: Include float.h.
55339         * tests/test-sprintf-posix.c: Likewise.
55340         * tests/test-vsnprintf-posix.c: Likewise.
55341         * tests/test-vsprintf-posix.c: Likewise.
55342
55343 2007-06-05  Bruno Haible  <bruno@clisp.org>
55344
55345         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55346         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55347         non-IEEE numbers on i386, x86_64, ia64.
55348         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55349         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55350         * tests/test-isnanl.h: Include float.h.
55351         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55352
55353 2007-06-05  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55356         also the %a / %A. Handle the %a / %A code before this extra handling.
55357
55358 2007-06-05  Bruno Haible  <bruno@clisp.org>
55359
55360         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55361         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55362
55363 2007-06-05  Bruno Haible  <bruno@clisp.org>
55364
55365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55366         typo in variable name.
55367
55368 2007-06-05  Eric Blake  <ebb9@byu.net>
55369
55370         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55371         Reported by Simon Josefsson.
55372
55373 2007-06-04  Bruno Haible  <bruno@clisp.org>
55374
55375         Avoid test failures on some PowerPC platforms.
55376         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55377         Define differently for PowerPC.
55378         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55379         Reported by Gary V. Vaughan <gary@gnu.org>.
55380
55381 2007-06-02  Bruno Haible  <bruno@clisp.org>
55382
55383         Fix test-stdint failure on FreeBSD/ia64.
55384         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55385         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55386         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55387         * doc/headers/stdint.texi: Update.
55388
55389 2007-06-01  Bruno Haible  <bruno@clisp.org>
55390
55391         * tests/test-binary-io.c (main): Pass a third argument to open().
55392         Reported by Gary V. Vaughan <gary@gnu.org>.
55393
55394 2007-06-01  Bruno Haible  <bruno@clisp.org>
55395
55396         * doc/functions/frexpl.texi: Update for mingw.
55397
55398 2007-06-01  Bruno Haible  <bruno@clisp.org>
55399
55400         * tests/test-lseek.c (main): Disable test of errno for invalid third
55401         argument.
55402         * doc/functions/lseek.texi: Update.
55403         Reported by Gary V. Vaughan <gary@gnu.org>.
55404
55405 2007-05-28  Bruno Haible  <bruno@clisp.org>
55406
55407         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55408
55409 2007-05-31  Eric Blake  <ebb9@byu.net>
55410
55411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55412         cross compiling.
55413
55414 2007-05-30  Eric Blake  <ebb9@byu.net>
55415         and Bruno Haible  <bruno@clisp.org>
55416
55417         Work around mingw test failures exposed by m4-1.4.9b.
55418         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55419         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55420         moment.
55421
55422 2007-05-30  Bruno Haible  <bruno@clisp.org>
55423
55424         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55425         assuming that they are closed. Needed on HP-UX 11.
55426
55427 2007-05-29  Bruno Haible  <bruno@clisp.org>
55428
55429         Fix a problem with #include_next.
55430         * lib/dirent_.h: Split the double-inclusion guard.
55431         * lib/fcntl_.h: Likewise.
55432         * lib/float_.h: Likewise.
55433         * lib/iconv_.h: Likewise.
55434         * lib/inttypes_.h: Likewise.
55435         * lib/locale_.h: Likewise.
55436         * lib/math_.h: Likewise.
55437         * lib/netinet_in_.h: Likewise.
55438         * lib/search_.h: Likewise.
55439         * lib/signal_.h: Likewise.
55440         * lib/stdint_.h: Likewise.
55441         * lib/stdio_.h: Likewise.
55442         * lib/stdlib_.h: Likewise.
55443         * lib/string_.h: Likewise.
55444         * lib/sys_select_.h: Likewise.
55445         * lib/sys_socket_.h: Likewise.
55446         * lib/sys_stat_.h: Likewise.
55447         * lib/sys_time_.h: Likewise.
55448         * lib/sysexits_.h: Likewise.
55449         * lib/time_.h: Likewise.
55450         * lib/unistd_.h: Likewise.
55451         * lib/wchar_.h: Likewise.
55452         * lib/wctype_.h: Likewise.
55453
55454 2007-05-29  Bruno Haible  <bruno@clisp.org>
55455
55456         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55457         for the moment.
55458
55459 2007-05-29  Bruno Haible  <bruno@clisp.org>
55460
55461         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55462         invocation.
55463         Reported by Eric Blake.
55464
55465 2007-05-29  Bruno Haible  <bruno@clisp.org>
55466
55467         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55468         compiling case.
55469
55470 2007-05-29  Eric Blake  <ebb9@byu.net>
55471             Bruno Haible  <bruno@clisp.org>
55472
55473         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55474         cross compiles.
55475
55476 2007-05-28  Eric Blake  <ebb9@byu.net>
55477
55478         * modules/closein-tests (test_closein_LDADD): Support test on
55479         cygwin with libtool.
55480
55481 2007-05-28  Bruno Haible  <bruno@clisp.org>
55482
55483         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55484         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55485         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55486         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55487         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55488         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55489         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55490         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55491         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55492
55493 2007-05-28  Eric Blake  <ebb9@byu.net>
55494
55495         Unconditionally include <config.h> in unit tests.
55496         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55497         * tests/test-allocsa.c, tests/test-arcfour.c,
55498         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55499         tests/test-array_list.c, tests/test-array_oset.c,
55500         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55501         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55502         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55503         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55504         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55505         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55506         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55507         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55508         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55509         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55510         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55511         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55512         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55513         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55514         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55515         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55516         test-md5.c, test-memmem.c, test-printf-posix.c,
55517         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55518         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55519         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55520         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55521         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55522         test-vasnprintf-posix2.c, test-vasnprintf.c,
55523         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55524         test-vfprintf-posix.c, test-vprintf-posix.c,
55525         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55526         test-xvasprintf.c: Likewise.
55527
55528 2007-05-28  Bruno Haible  <bruno@clisp.org>
55529
55530         * gnulib-tool (func_import): Remember the --with-tests command-line
55531         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55532         Reported by Eric Blake.
55533
55534 2007-05-28  Bruno Haible  <bruno@clisp.org>
55535
55536         * modules/ftell-tests: New file.
55537         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55538         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55539
55540         * lib/ftell.c: New file.
55541         * modules/ftell: New file.
55542         * m4/ftell.m4: New file.
55543         * doc/functions/ftell.texi: Update.
55544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55545         REPLACE_FTELL.
55546         * lib/stdio_.h (rpl_ftell): New declaration.
55547         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55548         REPLACE_FTELL.
55549
55550 2007-05-28  Eric Blake  <ebb9@byu.net>
55551
55552         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55553
55554 2007-05-28  Bruno Haible  <bruno@clisp.org>
55555
55556         * modules/fseek-tests: New file.
55557         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55558         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55559
55560         * lib/fseek.c: New file.
55561         * modules/fseek: New file.
55562         * m4/fseek.m4: New file.
55563         * doc/functions/fseek.texi: Update.
55564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55565         REPLACE_FSEEK.
55566         * lib/stdio_.h (rpl_fseek): New declaration.
55567         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55568         REPLACE_FSEEK.
55569
55570 2007-05-28  Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/stdio_.h (fflush): More comments.
55573
55574 2007-05-28  Bruno Haible  <bruno@clisp.org>
55575
55576         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55577         runtime test.
55578
55579 2007-05-28  Eric Blake  <ebb9@byu.net>
55580
55581         Improve lseek module.
55582         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55583         * lib/unistd_.h (lseek): Scale back link warning message.
55584         * tests/test-lseek.c: Beef up test.
55585         * tests/test-lseek.sh: Exercise more facets of lseek.
55586         Reported by Bruno Haible.
55587
55588 2007-05-28  Bruno Haible  <bruno@clisp.org>
55589
55590         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55591         to define.
55592
55593 2007-05-27  Bruno Haible  <bruno@clisp.org>
55594
55595         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55596
55597 2007-05-27  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/openmp: New file.
55600         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55601         Noah Misch.
55602
55603 2007-05-26  Bruno Haible  <bruno@clisp.org>
55604
55605         * modules/chdir-long (Depends-on): Add fchdir.
55606         * modules/chdir-safer (Depends-on): Likewise.
55607         * modules/fts (Depends-on): Likewise.
55608         * modules/fts-lgpl (Depends-on): Likewise.
55609         * modules/openat (Depends-on): Likewise.
55610         * modules/savewd (Depends-on): Likewise.
55611
55612 2007-05-24  Eric Blake  <ebb9@byu.net>
55613
55614         Fix lseek on mingw.
55615         * modules/lseek: New module.
55616         * m4/lseek.m4: New file.
55617         * lib/lseek.c: New file.
55618         * modules/lseek-tests: New file.
55619         * tests/test-lseek.c: New file.
55620         * tests/test-lseek.sh: New file.
55621         * MODULES.html.sh: Document lseek module.
55622         * modules/fflush (Depends-on): Add lseek, fseeko.
55623         * modules/fseeko (Depends-on): Likewise.
55624         * modules/ftello (Depends-on): Likewise.
55625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55626         broken.
55627         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55628         broken.
55629         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55630         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55631         * lib/ftello.c (rpl_ftello): Likewise.
55632         * tests/test-fseeko.c (main): Test this.
55633         * tests/test-fseeko.sh: Likewise.
55634         * tests/test-ftello.c (main): Likewise.
55635         * tests/test-ftello.sh: Likewise.
55636         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55637         implies replacing fseek.
55638         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55639         HAVE_FTELLO.
55640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55641         * modules/unistd (Makefile.am): Likewise.
55642         * lib/unistd_.h (lseek): Declare a replacement.
55643         * doc/functions/lseek.texi (lseek): Document this fix.
55644         * doc/functions/fseek.texi (fseek): Likewise.
55645         * doc/functions/ftell.texi (ftell): Likewise.
55646
55647 2007-05-24  Bruno Haible  <bruno@clisp.org>
55648
55649         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55650         in the printed representation of a NaN.
55651         * tests/test-vasprintf-posix.c (test_function): Likewise.
55652         * tests/test-snprintf-posix.h (test_function): Likewise.
55653         * tests/test-sprintf-posix.h (test_function): Likewise.
55654         Reported by Eric Blake.
55655
55656 2007-05-23  Eric Blake  <ebb9@byu.net>
55657
55658         Fix fseeko/ftello on cygwin 1.5.24.
55659         * doc/functions/fseeko.texi (fseeko): Document the fix.
55660         * doc/functions/ftello.texi (ftello): Document the fix.
55661         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55662         * doc/functions/stdout.text (stdout): New file.
55663         * doc/functions/stderr.text (stderr): New file.
55664         * doc/gnulib.texi (Function Substitutes): Use new files.
55665         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55666         prior to 1.7.0.
55667         * tests/test-ftello.c (main): Likewise for ftello.
55668         * tests/test-fseeko.sh: New file.
55669         * tests/test-ftello.sh: New file.
55670         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55671         with seekable stdin.
55672         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55674         (gl_REPLACE_FSEEKO): New macro.
55675         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55676         * modules/fseeko (Files): Distribute fseeko.c.
55677         * modules/ftello (Files): Distribute ftello.c.
55678         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55679         mode.
55680         * lib/ftello.c (rpl_ftello): New file.
55681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55682         fseeko, ftello.
55683         (gl_STDIN_LARGE_OFFSET): New macro.
55684         * modules/stdio (Makefile.am): Perform the replacement.
55685         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55686
55687 2007-05-23  Bruno Haible  <bruno@clisp.org>
55688
55689         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55690         GNULIB_POSIXCHECK is defined.
55691
55692 2007-05-21  Bruno Haible  <bruno@clisp.org>
55693
55694         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55695         Check also the output for NaN arguments. When cross-compiling, guess
55696         no on IRIX.
55697         * lib/vasnprintf.c: Update comments.
55698         * tests/test-vasnprintf-posix.c (strisnan): New function.
55699         (test_function): Use it.
55700         * tests/test-vasprintf-posix.c (strisnan): New function.
55701         (test_function): Use it.
55702         * tests/test-snprintf-posix.h (strisnan): New function.
55703         (test_function): Use it.
55704         * tests/test-sprintf-posix.h (strisnan): New function.
55705         (test_function): Use it.
55706         Reported by Eric Blake.
55707
55708 2007-05-20  Bruno Haible  <bruno@clisp.org>
55709
55710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55711         numbers that fails on BeOS.
55712         * doc/functions/frexpl.texi: Update.
55713
55714 2007-05-20  Jim Meyering  <jim@meyering.net>
55715
55716         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55717         forced upon us by glibc-2.6.
55718
55719 2007-05-20  Bruno Haible  <bruno@clisp.org>
55720
55721         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55722         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55723         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55724         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55725         NEED_PRINTF_INFINITE.
55726         (is_infinitel): New function.
55727         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55729         gl_PREREQ_VASNPRINTF_INFINITE.
55730         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55732         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55733         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55734         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55735         gl_PREREQ_VASNPRINTF_INFINITE.
55736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55743         * doc/functions/fprintf.texi: Update.
55744         * doc/functions/printf.texi: Update.
55745         * doc/functions/snprintf.texi: Update.
55746         * doc/functions/sprintf.texi: Update.
55747         * doc/functions/vfprintf.texi: Update.
55748         * doc/functions/vprintf.texi: Update.
55749         * doc/functions/vsnprintf.texi: Update.
55750         * doc/functions/vsprintf.texi: Update.
55751
55752 2007-05-20  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55755         was not found in libc.
55756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55757
55758 2007-05-20  Bruno Haible  <bruno@clisp.org>
55759
55760         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55761         printed as "-nan" instead of "nan".
55762         * tests/test-vasprintf-posix.c (test_function): Likewise.
55763         * tests/test-snprintf-posix.h (test_function): Likewise.
55764         * tests/test-sprintf-posix.h (test_function): Likewise.
55765         Needed for HP-UX 11.
55766
55767 2007-05-20  Jim Meyering  <jim@meyering.net>
55768
55769         Fix buggy test for the fchownat-deref bug.
55770         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55771         symlink required for the run-test.  Without it, this test would
55772         always declare that fchownat doesn't work, and client code would
55773         unnecessarily use the replacement function with fixed libc.
55774         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55775         Reported by Greg Schafer.
55776
55777 2007-05-19  Bruno Haible  <bruno@clisp.org>
55778
55779         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55780         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55781         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55782         Needed for IRIX 6.5 and Solaris 2.5.1.
55783
55784 2007-05-19  Bruno Haible  <bruno@clisp.org>
55785
55786         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55787         (test_function): Skip tests involving -0.0 on platforms where
55788         -0.0 = 0.0.
55789         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55790         (test_function): Skip tests involving -0.0 on platforms where
55791         -0.0 = 0.0.
55792         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55793         (test_function): Skip tests involving -0.0 on platforms where
55794         -0.0 = 0.0.
55795         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55796         (test_function): Skip tests involving -0.0 on platforms where
55797         -0.0 = 0.0.
55798         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55799         tests.
55800         * tests/test-printf-posix.h (test_function): Likewise.
55801         * tests/test-printf-posix.output: Remove all -0.0 related results.
55802         Needed for IRIX 6.5.
55803
55804 2007-05-19  Bruno Haible  <bruno@clisp.org>
55805
55806         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55807         printed as "nan0x7fffffff" instead of "nan".
55808         * tests/test-vasprintf-posix.c (test_function): Likewise.
55809         * tests/test-snprintf-posix.h (test_function): Likewise.
55810         * tests/test-sprintf-posix.h (test_function): Likewise.
55811         * tests/test-fprintf-posix.h (NaN): Remove macro.
55812         (test_function): Remove all NaN related tests.
55813         * tests/test-printf-posix.h (NaN): Remove macro.
55814         (test_function): Remove all NaN related tests.
55815         * tests/test-printf-posix.output: Remove all NaN related results.
55816         Needed for IRIX 6.5.
55817
55818 2007-05-19  Bruno Haible  <bruno@clisp.org>
55819
55820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55822
55823 2007-05-19  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/float_.h: New file.
55826         * m4/float_h.m4: New file.
55827         * modules/float: New file.
55828         * modules/isnanl (Dependencies): Add float.
55829         * modules/isnanl-nolibm (Dependencies): Likewise.
55830         * modules/mathl (Dependencies): Likewise.
55831         * modules/printf-frexpl (Dependencies): Likewise.
55832         * modules/signbit (Dependencies): Likewise.
55833         * modules/vasnprintf (Dependencies): Likewise.
55834         * doc/headers/float.texi: Update.
55835
55836 2007-05-19  Jim Meyering  <jim@meyering.net>
55837
55838         * lib/utimens.c (gl_futimens): Rename from futimens,
55839         now that glibc-2.6 declares futimens.
55840         * lib/utimens.h: Likewise.
55841
55842 2007-05-19  Bruno Haible  <bruno@clisp.org>
55843
55844         Avoid test failures on mingw.
55845         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55846         * tests/test-printf-posix.sh: Likewise.
55847         * tests/test-vfprintf-posix.sh: Likewise.
55848         * tests/test-vprintf-posix.sh: Likewise.
55849
55850 2007-05-19  Bruno Haible  <bruno@clisp.org>
55851
55852         Fix *printf result for NaN, Inf, -0.0 on mingw.
55853         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55854         * lib/vasnprintf.c: Include math.h and isnan.h.
55855         (is_infinite_or_zero): New function.
55856         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55857         values in the %f, %F, %e, %E, %g, %G directives.
55858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55860         gl_PRINTF_INFINITE and test its result. Invoke
55861         gl_PREREQ_VASNPRINTF_INFINITE.
55862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55863         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55865         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55869         * doc/functions/fprintf.texi: Update.
55870         * doc/functions/printf.texi: Update.
55871         * doc/functions/snprintf.texi: Update.
55872         * doc/functions/sprintf.texi: Update.
55873         * doc/functions/vfprintf.texi: Update.
55874         * doc/functions/vprintf.texi: Update.
55875         * doc/functions/vsnprintf.texi: Update.
55876         * doc/functions/vsprintf.texi: Update.
55877
55878 2007-05-19  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55881         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55882         Instead of multiplying with 10^k, set extra_zeroes to k.
55883         (scale10_round_long_double): Remove function.
55884
55885 2007-05-18  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55888         introduced on 2007-05-06.
55889
55890 2007-05-18  Bruno Haible  <bruno@clisp.org>
55891
55892         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55893         %g directives.
55894         * tests/test-vasprintf-posix.c (test_function): Likewise.
55895         * tests/test-snprintf-posix.h (test_function): Likewise.
55896         * tests/test-sprintf-posix.h (test_function): Likewise.
55897
55898 2007-05-18  Bruno Haible  <bruno@clisp.org>
55899
55900         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55901         (strmatch): New function.
55902         (test_function): Test the %f directive on numbers of various exponents.
55903         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55904         (strmatch): New function.
55905         (test_function): Test the %f directive on numbers of various exponents.
55906         * tests/test-snprintf-posix.h (strmatch): New function.
55907         (test_function): Test the %f directive on numbers of various exponents.
55908         * tests/test-sprintf-posix.h (strmatch): New function.
55909         (test_function): Test the %f directive on numbers of various exponents.
55910         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55911         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55912         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55913         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55914
55915 2007-05-18  Bruno Haible  <bruno@clisp.org>
55916
55917         Add support for 'long double' number output.
55918         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55919         * lib/vasnprintf.c: Include math.h and float+.h.
55920         (mp_limb_t): New type.
55921         (GMP_LIMB_BITS): New macro.
55922         (mp_twolimb_t): New type.
55923         (GMP_TWOLIMB_BITS): New macro.
55924         (mpn_t): New type.
55925         (multiply, divide, convert_to_decimal, decode_long_double,
55926         scale10_round_long_double, scale10_round_decimal_long_double,
55927         floorlog10l): New functions.
55928         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55929         for the %f, %F, %e, %E, %g, %G directives.
55930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55932         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55933         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55941         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55942         * modules/snprintf-posix (Depends-on): Likewise.
55943         * modules/sprintf-posix (Depends-on): Likewise.
55944         * modules/vasnprintf-posix (Depends-on): Likewise.
55945         * modules/vasprintf-posix (Depends-on): Likewise.
55946         * modules/vfprintf-posix (Depends-on): Likewise.
55947         * modules/vsnprintf-posix (Depends-on): Likewise.
55948         * modules/vsprintf-posix (Depends-on): Likewise.
55949         * modules/vasnprintf (Files): Add lib/float+.h.
55950         * doc/functions/fprintf.texi: Update.
55951         * doc/functions/printf.texi: Update.
55952         * doc/functions/snprintf.texi: Update.
55953         * doc/functions/sprintf.texi: Update.
55954         * doc/functions/vfprintf.texi: Update.
55955         * doc/functions/vprintf.texi: Update.
55956         * doc/functions/vsnprintf.texi: Update.
55957         * doc/functions/vsprintf.texi: Update.
55958
55959 2007-05-18  Bruno Haible  <bruno@clisp.org>
55960
55961         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55962
55963 2007-05-18  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55966         for printing 64-bit integers. Needed for mingw.
55967
55968 2007-05-18  Bruno Haible  <bruno@clisp.org>
55969
55970         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55971         gl_FUNC_FREXPL_WORKS.
55972         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55973
55974 2007-05-18  Bruno Haible  <bruno@clisp.org>
55975
55976         * modules/frexpl-nolibm-tests: New file.
55977
55978         * modules/frexpl-nolibm: New file.
55979         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55980
55981 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55984         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55985         GCC 4.2, which otherwise issues a lot of warnings.
55986         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55987         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55988         Likewise.
55989         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55990         * modules/iconv_open (iconv.h): Likewise.
55991         * modules/locale (locale.h): Likewise.
55992         * modules/netinet_in (netinet/in.h): Likewise.
55993         * modules/sys_select (sys_select.h): Likewise.
55994         * modules/sys_socket (sys/socket.h): Likewise.
55995         * modules/sys_stat (sys/stat.h): Likewise.
55996         * modules/sysexits (sysexits.h): Likewise.
55997         * modules/unistd (unistd.h): Likewise.
55998
55999 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56000
56001         * modules/closein-tests (Makefile.am): Distribute
56002         `test-closein.sh'.
56003
56004 2007-05-17  Bruno Haible  <bruno@clisp.org>
56005
56006         * tests/test-printf-posix.output: Renamed from
56007         tests/test-fprintf-posix.out.
56008         * modules/fprintf-posix-tests: Update.
56009         * modules/printf-posix-tests: Update.
56010         * modules/vfprintf-posix-tests: Update.
56011         * modules/vprintf-posix-tests: Update.
56012         * tests/test-fprintf-posix.sh: Update.
56013         * tests/test-printf-posix.sh: Update.
56014         * tests/test-vfprintf-posix.sh: Update.
56015         * tests/test-vprintf-posix.sh: Update.
56016         Reported by Ralf Wildenhues.
56017
56018 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56019
56020         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56021         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56022         GCC 4.2, which otherwise issues a lot of warnings.
56023         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56024         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56025         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56026         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56027         it should no longer be needed.
56028         * lib/string_.h: Likewise.
56029         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56030         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56031         * modules/inttypes (inttypes.h): Likewise.
56032         * modules/math (math.h): Likewise.
56033         * modules/search (search.h): Likewise.
56034         * modules/signal (signal.h): Likewise.
56035         * modules/stdint (stdint.h): Likewise.
56036         * modules/stdio (stdio.h): Likewise.
56037         * modules/stdlib (stdlib.h): Likewise.
56038         * modules/string (string.h): Likewise.
56039         * modules/sys_time (sys/time.h): Likewise.
56040         * modules/time (time.h): Likewise.
56041         * modules/wchar (wchar.h): Likewise.
56042         * modules/wctype (wtype.h): Likewise.
56043
56044 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56045
56046         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56047
56048 2007-05-13  Bruno Haible  <bruno@clisp.org>
56049
56050         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56051         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56052         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56053         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56054         (gl_PREREQ_STRTOK_R): Don't require it here.
56055
56056 2007-05-13  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56059         when used in C++ mode.
56060
56061 2007-05-12  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/linebuffer.h: Tweak doc.
56064         * lib/linebuffer.c: Likewise.
56065
56066 2007-05-12  James Youngman  <jay@gnu.org>
56067
56068         * lib/linebuffer.c (readlinebuffer_delim): New function,
56069         like readlinebuffer, but use a caller-specified delimiter.
56070         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56071         as the delimiter.
56072         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56073
56074 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56075
56076         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56077         * modules/openat (Files): Remove openat-die.c.
56078         (Depends-on): Add openat-die.
56079         * modules/openat-die: New module.
56080
56081 2007-05-06  Bruno Haible  <bruno@clisp.org>
56082
56083         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56084         Update with info about Cygwin.
56085         * doc/functions/fprintf.texi: Update.
56086         * doc/functions/printf.texi: Update.
56087         * doc/functions/snprintf.texi: Update.
56088         * doc/functions/sprintf.texi: Update.
56089         * doc/functions/vfprintf.texi: Update.
56090         * doc/functions/vprintf.texi: Update.
56091         * doc/functions/vsnprintf.texi: Update.
56092         * doc/functions/vsprintf.texi: Update.
56093         Reported by Eric Blake.
56094
56095 2007-05-06  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56098         padding ourselves for the floating-point directives.
56099         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56102         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56103         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56111         * tests/test-snprintf-posix.h (test_function): Also check the width
56112         and some flags in the %f directive.
56113         * tests/test-sprintf-posix.h (test_function): Likewise.
56114         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56115         * tests/test-vasprintf-posix.c (test_function): Likewise.
56116         * doc/functions/fprintf.texi: Update.
56117         * doc/functions/printf.texi: Update.
56118         * doc/functions/snprintf.texi: Update.
56119         * doc/functions/sprintf.texi: Update.
56120         * doc/functions/vfprintf.texi: Update.
56121         * doc/functions/vprintf.texi: Update.
56122         * doc/functions/vsnprintf.texi: Update.
56123         * doc/functions/vsprintf.texi: Update.
56124
56125 2007-05-06  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56128         pass the ' flag character to sprintf or snprintf.
56129         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56132         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56133         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56138         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56141         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56142         flag.
56143         * tests/test-sprintf-posix.h (test_function): Likewise.
56144         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56145         * tests/test-vasprintf-posix.c (test_function): Likewise.
56146         * doc/functions/fprintf.texi: Update.
56147         * doc/functions/printf.texi: Update.
56148         * doc/functions/snprintf.texi: Update.
56149         * doc/functions/sprintf.texi: Update.
56150         * doc/functions/vfprintf.texi: Update.
56151         * doc/functions/vprintf.texi: Update.
56152         * doc/functions/vsnprintf.texi: Update.
56153         * doc/functions/vsprintf.texi: Update.
56154
56155 2007-05-01  Bruno Haible  <bruno@clisp.org>
56156
56157         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56158
56159 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56162         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56163
56164 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56167         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56169
56170 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56171
56172         * lib/argp-help.c (struct hol_entry): New member `ord'.
56173         (HOL_ENTRY_PTRCMP): Use ord for comparison
56174         (hol_sort): Initialize ord.
56175
56176 2007-05-01  Bruno Haible  <bruno@clisp.org>
56177
56178         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56179         Reported by Eric Blake.
56180         * doc/gnulib.texi (Function Substitutes): Update.
56181
56182 2007-05-01  Bruno Haible  <bruno@clisp.org>
56183
56184         * doc/functions.texi: Remove file, now redundant through
56185         doc/functions/*.texi.
56186
56187 2007-05-01  Bruno Haible  <bruno@clisp.org>
56188
56189         * modules/argp (Depends-on): Add sleep.
56190
56191 2007-05-01  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/sleep-tests: New file.
56194         * tests/test-sleep.c: New file.
56195
56196         * modules/sleep: New file.
56197         * lib/sleep.c: New file.
56198         * m4/sleep.m4: New file.
56199         * lib/unistd_.h (sleep): New declaration.
56200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56201         HAVE_SLEEP.
56202         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56203         * doc/functions/sleep.texi: Document the sleep module.
56204
56205 2007-05-01  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/sigprocmask.h: Remove file.
56208         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56209         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56211         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56212         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56213         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56214         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56215         HAVE_SIGSET_T as a shell variable.
56216         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56217         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56218         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56219         (Depends-on): Add signal. Remove verify.
56220         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56221         (Include): Mention <signal.h> instead of sigprocmask.h.
56222         * NEWS: Mention the change.
56223         * lib/fatal-signal.c: Don't include sigprocmask.h.
56224
56225 2007-05-01  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/signal: New file.
56228         * lib/signal_.h: New file.
56229         * m4/signal_h.m4: New file.
56230
56231 2007-05-01  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56234         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56235         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56236         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56237
56238 2007-05-01  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56241         configure time.
56242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56243         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56244         * modules/sys_stat (Makefile.am): Substitute their values into
56245         sys/stat.h.
56246
56247 2007-05-01  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56250         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56251         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56252
56253 2007-05-01  Bruno Haible  <bruno@clisp.org>
56254
56255         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56256         'assert' module here.
56257
56258 2007-05-01  Bruno Haible  <bruno@clisp.org>
56259
56260         * doc/functions/*.texi: New files.
56261         * doc/functions/google-ranking.txt: New file.
56262         * doc/gnulib.texi (Function Substitutes): New chapter.
56263         (ctime, inet_ntoa): Remove sections.
56264         * doc/ctime.texi: Remove file.
56265         * doc/inet_ntoa.texi: Remove file.
56266         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56267         dependencies.
56268         (%.info): New rule, specifying a --reference-limit.
56269
56270 2007-05-01  Bruno Haible  <bruno@clisp.org>
56271
56272         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56273
56274 2007-05-01  Bruno Haible  <bruno@clisp.org>
56275
56276         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56277         the portability of 'mkdir' to mingw systems.
56278
56279 2007-05-01  Bruno Haible  <bruno@clisp.org>
56280
56281         * doc/headers/google-ranking.txt: New file.
56282
56283 2007-04-30  Eric Blake  <ebb9@byu.net>
56284
56285         Prefer fseeko to fseek.
56286         * modules/getpass (Depends-on): Add fseeko.
56287         * lib/getpass.c (getpass): Use fseeko, not fseek.
56288
56289 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56290
56291         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56292         assumes the sorting is stable, while most qsort implementations
56293         are not.  Use argument addresses to ensure they never compare as
56294         equal.
56295
56296         * tests/test-argp-2.sh (usage-indent test): Fix output
56297         (func_compare): Restore diff options
56298         * tests/test-argp.c: Restore #include "progname.h"
56299
56300 2007-04-29  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56304         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56306         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56307         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56308         (TESTS, check_PROGRAMS): Add test-snprintf.
56309         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56310         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56311         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56312         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56313         assertions that fail on HP-UX, OSF/1, or IRIX.
56314         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56315
56316 2007-04-29  Bruno Haible  <bruno@clisp.org>
56317
56318         * MODULES.html.sh (posix_functions): Remove 'contents'.
56319
56320 2007-04-29  Karl Berry  <karl@gnu.org>
56321
56322         * config/srclist.txt (gendocs_template_min): new entry.
56323
56324 2007-04-29  Bruno Haible  <bruno@clisp.org>
56325
56326         Work around fpurge bug on BSD systems.
56327         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56328         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56329         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56330         fpurge to rpl_fpurge if the system already has this function.
56331         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56332         the case where the system already has this function. Correct invariants
56333         on BSD systems.
56334         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56335         BSD systems.
56336
56337 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56338
56339         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56340         proposed by Sven Verdoolaege.
56341
56342         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56343         options.
56344         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56345         (usage and help tests): Update
56346
56347 2007-04-29  Bruno Haible  <bruno@clisp.org>
56348
56349         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56350         Print more information in case of failure. Disable a test on BeOS.
56351
56352 2007-04-29  Bruno Haible  <bruno@clisp.org>
56353
56354         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56355         This helps debugging on systems on which no gdb is available.
56356
56357 2007-04-29  Bruno Haible  <bruno@clisp.org>
56358
56359         * lib/freading.h: Improve comments.
56360         * lib/fwriting.h: Likewise.
56361         * tests/test-freading.c (main): Don't check freading immediately after
56362         repositioning. Needed for glibc.
56363
56364 2007-04-29  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/freading.c (freading): Trivial simplification.
56367
56368 2007-04-28  Bruno Haible  <bruno@clisp.org>
56369
56370         * tests/test-fwriting.c (main): Also test the interaction between
56371         fflush and fwriting.
56372         * modules/fwriting-tests (Depends-on): Add fflush.
56373
56374         * tests/test-freading.c (main): Also test the interaction between
56375         fflush and freading.
56376         * modules/freading-tests (Depends-on): Add fflush.
56377
56378 2007-04-28  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56381         fseeko and ftello.
56382         Suggested by Eric Blake.
56383
56384 2007-04-28  Jim Meyering  <jim@meyering.net>
56385
56386         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56387         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56388         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56389
56390 2007-04-27  Eric Blake  <ebb9@byu.net>
56391
56392         * doc/headers/assert.texi (assert.h): Document assert module use.
56393
56394 2007-04-27  Bruno Haible  <bruno@clisp.org>
56395
56396         * doc/headers/*.texi: New files.
56397         * doc/gnulib.texi (Header File Substitutes): New chapter.
56398         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56399         dependencies.
56400         (standards.info ,standards.html, standards.dvi): Update dependencies.
56401         (mostlyclean, clean): New targets.
56402
56403 2007-04-27  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56406         * modules/sysexits (Files, Makefile.am): Update.
56407
56408         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56409         * modules/sys_socket (Files, Makefile.am): Update.
56410
56411         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56412         * modules/sys_stat (Files, Makefile.am): Update.
56413
56414 2007-04-27  Eric Blake  <ebb9@byu.net>
56415
56416         * lib/freading.h: Improve comments.
56417         * lib/fwriting.h: Likewise.
56418         * lib/fflush.c: Likewise.
56419
56420         Fix closein for mingw.
56421         * modules/closein-tests: Add tests for closein.
56422         * tests/test-closein.c: New file.
56423         * tests/test-closein.sh: Likewise.
56424         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56425         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56426
56427 2007-04-27  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56430         version is < 6.
56431         * lib/math_.h [__DECC]: Likewise.
56432         * lib/stdio_.h [__DECC]: Likewise.
56433         * lib/stdlib_.h [__DECC]: Likewise.
56434         * lib/string_.h [__DECC]: Likewise.
56435         * lib/time_.h [__DECC]: Likewise.
56436         * lib/wchar_.h [__DECC]: Likewise.
56437         * lib/wctype_.h [__DECC]: Likewise.
56438
56439 2007-04-27  Bruno Haible  <bruno@clisp.org>
56440
56441         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56442
56443 2007-04-27  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/fflush.c: Add comments.
56446         * modules/fpurge-tests (Depends-on): Add fflush.
56447         * modules/freadable-tests (Depends-on): Likewise.
56448         * modules/fwritable-tests (Depends-on): Likewise.
56449
56450 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56451
56452         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56453         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56454         Report by Bruno Haible <bruno@clisp.org>.
56455
56456 2007-04-26  Eric Blake  <ebb9@byu.net>
56457
56458         Fix fflush on mingw.
56459         * modules/fflush (Depends-on): Add freading.
56460         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56461         but unread data.
56462
56463 2007-04-26  Eric Blake  <ebb9@byu.net>
56464         and Bruno Haible  <bruno@clisp.org>
56465
56466         Implement freading and fwriting.
56467         * lib/freading.c: New file.
56468         * lib/freading.h: Likewise.
56469         * m4/freading.m4: Likewise.
56470         * modules/freading: Likewise.
56471         * modules/freading-tests: Likewise.
56472         * tests/test-freading.c: Likewise.
56473         * lib/fwriting.c: New file.
56474         * lib/fwriting.h: Likewise.
56475         * m4/fwriting.m4: Likewise.
56476         * modules/fwriting: Likewise.
56477         * modules/fwriting-tests: Likewise.
56478         * tests/test-fwriting.c: Likewise.
56479         * MODULES.html.sh (File stream based Input/Output): Mention them.
56480
56481 2007-04-26  Bruno Haible  <bruno@clisp.org>
56482
56483         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56484         'long' when we assume it.
56485         Suggested by Eric Blake.
56486
56487 2007-04-26  Bruno Haible  <bruno@clisp.org>
56488
56489         Ensure fseeko, ftello are declared on glibc systems.
56490         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56491         * modules/fseeko (configure.ac-early): Likewise.
56492         * modules/ftello (configure.ac-early): Likewise.
56493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56494         AC_FUNC_FSEEKO for this.
56495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56496         (gl_CHECK_FSEEKO): Remove macro.
56497
56498 2007-04-26  Bruno Haible  <bruno@clisp.org>
56499
56500         * tests/test-fflush.c (main): Also check the ftell result after
56501         fflush and fseek/fseeko.
56502         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56503         file descriptor position cache in the stream.
56504         * lib/fseeko.c (rpl_fseeko): Likewise.
56505
56506 2007-04-26  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/fflush-tests (Depends-on): Add fseeko.
56509
56510 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56511             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56512
56513         * lib/argz_.h: ensure error_t definition is obtained in same
56514         mechanism system argz.h would have.
56515         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56516         argz facilities are known bad.  Err on the side of caution if
56517         cross-compiling.
56518
56519 2007-04-25  Eric Blake  <ebb9@byu.net>
56520
56521         * lib/fpurge.c (includes): Use stdlib.h for free.
56522         * tests/test-fflush.c (main): Also test fflush-fseeko.
56523
56524 2007-04-25  Bruno Haible  <bruno@clisp.org>
56525
56526         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56527         * lib/fseeko.c: New file.
56528         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56529         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56530         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56531         gl_FUNC_FSEEKO.
56532         (gl_FUNC_FSEEKO): Invoke it.
56533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56534         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56535         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56536
56537 2007-04-25  Bruno Haible  <bruno@clisp.org>
56538
56539         * modules/fflush (Depends-on): Add ftello.
56540
56541 2007-04-25  Bruno Haible  <bruno@clisp.org>
56542
56543         * modules/ftello-tests: New file.
56544         * tests/test-ftello.c: New file.
56545
56546         * modules/ftello: New file.
56547         * m4/ftello.m4: New file.
56548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56549         HAVE_FTELLO.
56550         * lib/stdio_.h (ftello): New declaration.
56551         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56552         HAVE_FTELLO.
56553
56554 2007-04-25  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/fseeko-tests: New file.
56557         * tests/test-fseeko.c: New file.
56558
56559         * modules/fseeko: New file.
56560         * m4/fseeko.m4: New file.
56561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56562         HAVE_FSEEKO.
56563         * lib/stdio_.h (fseeko): New declaration.
56564         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56565         HAVE_FSEEKO.
56566
56567 2007-04-25  Bruno Haible  <bruno@clisp.org>
56568
56569         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56570
56571 2007-04-25  Bruno Haible  <bruno@clisp.org>
56572
56573         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56574         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56575         * tests/test-unistd.c: Likewise.
56576         * tests/test-fcntl.c: Likewise.
56577
56578 2007-04-23  Eric Blake  <ebb9@byu.net>
56579
56580         * lib/fflush.c: Fix missing include.
56581         Reported by Bruno Haible.
56582
56583 2007-04-23  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56586         Reported by Eric Blake.
56587
56588 2007-04-23  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56591
56592 2007-04-23  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56595
56596 2007-04-23  Bruno Haible  <bruno@clisp.org>
56597
56598         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56599         Needed on HP-UX 11.
56600
56601 2007-04-16  Eric Blake  <ebb9@byu.net>
56602
56603         Make fflush rely on fpurge.
56604         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56605         open coding all variants.
56606         * modules/fflush (Depends-on): Add fpurge and unistd.
56607         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56609
56610         Fix --with-tests compilation on cygwin.
56611         * modules/argmatch-tests (Makefile.am): List gnulib library first
56612         in LDADD.
56613         * modules/argp-tests (Makefile.am): Likewise.
56614         * modules/array-list-tests (Makefile.am): Likewise.
56615         * modules/array-oset-tests (Makefile.am): Likewise.
56616         * modules/avltree-list-tests (Makefile.am): Likewise.
56617         * modules/avltree-oset-tests (Makefile.am): Likewise.
56618         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56619         * modules/carray-list-tests (Makefile.am): Likewise.
56620         * modules/dirname-tests (Makefile.am): Likewise.
56621         * modules/frexp-tests (Makefile.am): Likewise.
56622         * modules/isnanl-tests (Makefile.am): Likewise.
56623         * modules/linked-list-tests (Makefile.am): Likewise.
56624         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56625         * modules/lock-tests (Makefile.am): Likewise.
56626         * modules/rbtree-list-tests (Makefile.am): Likewise.
56627         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56628         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56629         * modules/tls-tests (Makefile.am): Likewise.
56630         * modules/tsearch-tests (Makefile.am): Likewise.
56631         * modules/xvasprintf-tests (Makefile.am): Likewise.
56632
56633         Fix fpurge for cygwin.
56634         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56635         value.
56636         * modules/fpurge-tests (Depends-on): Clean up trash.
56637
56638 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56639
56640         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56641
56642         * m4/autobuild.m4: Re-indent.
56643
56644 2007-04-13  Bruno Haible  <bruno@clisp.org>
56645
56646         * modules/fpurge-tests: New file.
56647         * tests/test-fpurge.c: New file.
56648
56649         * modules/fpurge: New file.
56650         * lib/fpurge.h: New file.
56651         * lib/fpurge.c: New file.
56652         * m4/fpurge.m4: New file.
56653
56654 2007-04-13  Bruno Haible  <bruno@clisp.org>
56655
56656         * modules/fbufmode-tests: New file.
56657         * tests/test-fbufmode.c: New file.
56658
56659         * modules/fbufmode: New file.
56660         * lib/fbufmode.h: New file.
56661         * lib/fbufmode.c: New file.
56662         * m4/fbufmode.m4: New file.
56663
56664 2007-04-13  Bruno Haible  <bruno@clisp.org>
56665
56666         * modules/fwritable-tests: New file.
56667         * tests/test-fwritable.c: New file.
56668
56669         * modules/fwritable: New file.
56670         * lib/fwritable.h: New file.
56671         * lib/fwritable.c: New file.
56672         * m4/fwritable.m4: New file.
56673
56674 2007-04-13  Bruno Haible  <bruno@clisp.org>
56675
56676         * modules/freadable-tests: New file.
56677         * tests/test-freadable.c: New file.
56678
56679         * modules/freadable: New file.
56680         * lib/freadable.h: New file.
56681         * lib/freadable.c: New file.
56682         * m4/freadable.m4: New file.
56683
56684 2007-04-13  Bruno Haible  <bruno@clisp.org>
56685
56686         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56687         MOSTLYCLEANFILES.
56688
56689 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56690
56691         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56692         gzip bootstrap.conf to avoid dragging in i18n machinery.
56693         (gnulib_tool_option): Use it.
56694
56695 2007-04-13  Bruno Haible  <bruno@clisp.org>
56696
56697         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56698         %F directives.
56699         * tests/test-vasprintf-posix.c (test_function): Likewise.
56700         * tests/test-snprintf-posix.h (test_function): Likewise.
56701         * tests/test-sprintf-posix.h (test_function): Likewise.
56702         * tests/test-fprintf-posix.h (test_function): Likewise.
56703         * tests/test-printf-posix.h (test_function): Likewise.
56704         * tests/test-fprintf-posix.out: Likewise.
56705
56706 2007-04-13  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56709         * modules/tls-tests (configure.ac): Likewise.
56710         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56711
56712 2007-04-13  Bruno Haible  <bruno@clisp.org>
56713
56714         * lib/tls.c (glthread_tls_get): Fix return type.
56715         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56716
56717 2007-04-12  Eric Blake  <ebb9@byu.net>
56718
56719         * modules/gettime (Depends-on): Remove gettime.
56720         Reported by Dmitry V. Levin.
56721
56722 2007-04-12  Bruno Haible  <bruno@clisp.org>
56723
56724         * modules/fflush (Include): Mention <stdio.h>.
56725         * modules/strtoimax (Include): Mention <inttypes.h>.
56726         * modules/strtoumax (Include): Likewise.
56727
56728 2007-04-12  Eric Blake  <ebb9@byu.net>
56729
56730         * .cvsignore: New file.
56731         * .gitignore: Likewise.
56732
56733 2007-04-12  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56736         not before, since $(LDADD) often contains libgnu.a.
56737         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56738         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56739         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56740         Needed on Cygwin.
56741
56742 2007-04-12  Eric Blake  <ebb9@byu.net>
56743
56744         Work around glibc's failure to flush stdin on fclose.
56745         * lib/closein.c (close_stdin): Flush stdin before closing.
56746
56747         Work around glibc's failure to reset seekable stdin on exit.
56748         * modules/closein: New module.
56749         * lib/closein.c: New file.
56750         * lib/closein.h: Likewise.
56751         * m4/closein.m4: Likewise.
56752         * MODULES.html.sh (File stream based Input/Output): Document it.
56753
56754 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56755
56756         * gnulib-tool: Rename generated 'autobuild' script to
56757         'do-autobuild' in --create-megatestdir output.
56758
56759         * doc/gnulib.texi (Build robot for gnulib): Fix.
56760
56761 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56762
56763         * modules/sysexits (Depends-on): Add absolute-header.
56764
56765 2007-04-12  Eric Blake  <ebb9@byu.net>
56766
56767         No need to preserve errno on success.
56768         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56769         Reported by Bruno Haible.
56770
56771 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56772
56773         * MODULES.html.sh (Support for maintaining and releasing
56774         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56775
56776 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56777
56778         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56779
56780 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56781
56782         * modules/autobuild: New module.
56783
56784         * m4/autobuild.m4: New file.
56785
56786 2007-04-11  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56789         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56796         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56797         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56799         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56800         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56802         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56803         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56805         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56806         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56808         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56809         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56811         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56812         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56813         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56814         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56815         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56816         Reported by Eric Blake.
56817
56818 2007-04-11  Bruno Haible  <bruno@clisp.org>
56819
56820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56821
56822 2007-04-10  Bruno Haible  <bruno@clisp.org>
56823
56824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56825         for NaN and Infinity. Needed on FreeBSD 6.1.
56826         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56827         regarding results for "%010a" of Infinity and NaN.
56828         * tests/test-vasprintf-posix.c (test_function): Likewise.
56829         * tests/test-snprintf-posix.h (test_function): Likewise.
56830         * tests/test-sprintf-posix.h (test_function): Likewise.
56831         * tests/test-fprintf-posix.h (test_function): Likewise.
56832         * tests/test-printf-posix.h (test_function): Likewise.
56833         * tests/test-fprintf-posix.out: Likewise.
56834
56835 2007-04-10  Bruno Haible  <bruno@clisp.org>
56836
56837         * modules/locale-tests: New file.
56838         * tests/test-locale.c: New file.
56839
56840         * modules/locale: New file.
56841         * lib/locale_.h: New file.
56842         * m4/locale_h.m4: New file.
56843
56844 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56845             Bruno Haible  <bruno@clisp.org>
56846
56847         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56848         be determined, test for availability of the copysignf, copysign,
56849         copysignl functions.
56850         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56851         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56852         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56853
56854 2007-04-09  Eric Blake  <ebb9@byu.net>
56855
56856         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56857         * modules/stdio (Makefile.am): Support fflush.
56858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56859         * modules/fflush: New file.
56860         * lib/fflush.c: Likewise.
56861         * m4/fflush.m4: Likewise.
56862         * modules/fflush-tests: New test.
56863         * tests/test-fflush.c: Likewise.
56864         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56865
56866 2007-04-06  Bruno Haible  <bruno@clisp.org>
56867
56868         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56869         (VASNPRINTF): Use signbit for faster determination whether to print a
56870         minus sign.
56871         * modules/vasnprintf (Files): Remove lib/float+.h.
56872         * modules/fprintf-posix (Depends-on): Add signbit.
56873         * modules/snprintf-posix (Depends-on): Likewise.
56874         * modules/sprintf-posix (Depends-on): Likewise.
56875         * modules/vasnprintf-posix (Depends-on): Likewise.
56876         * modules/vasprintf-posix (Depends-on): Likewise.
56877         * modules/vfprintf-posix (Depends-on): Likewise.
56878         * modules/vsnprintf-posix (Depends-on): Likewise.
56879         * modules/vsprintf-posix (Depends-on): Likewise.
56880
56881 2007-04-06  Bruno Haible  <bruno@clisp.org>
56882
56883         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56884         * tests/test-frexpl.c (main): Likewise.
56885         * tests/test-ldexpl.c (main): Likewise.
56886         * modules/frexp-tests (Depends-on): Add signbit.
56887         * modules/frexpl-tests (Depdends-on): Likewise.
56888         * modules/ldexpl-tests (Depdends-on): Likewise.
56889
56890 2007-04-06  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/signbit-tests: New file.
56893         * tests/test-signbit.c: New file.
56894
56895         * modules/signbit: New file.
56896         * lib/signbitf.c: New file.
56897         * lib/signbitd.c: New file.
56898         * lib/signbitl.c: New file.
56899         * m4/signbit.m4: New file.
56900         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56901         (signbit): New macro.
56902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56903         REPLACE_SIGNBIT.
56904         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56905         REPLACE_FREXPL into math.h.
56906
56907 2007-04-06  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/isnanf-nolibm-tests: New file.
56910         * tests/test-isnanf.c: New file.
56911
56912         * modules/isnanf-nolibm: New file.
56913         * lib/isnanf.h: New file.
56914         * lib/isnanf.c: New file.
56915         * lib/isnan.c: Consider the USE_FLOAT macro.
56916         * m4/isnanf.m4: New file.
56917
56918 2007-04-06  Bruno Haible  <bruno@clisp.org>
56919
56920         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56921         (Link): New section.
56922
56923         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56924
56925 2007-04-06  Bruno Haible  <bruno@clisp.org>
56926
56927         Assume the 'long double' type.
56928         * m4/longdouble.m4: Remove file.
56929         * config/srclist.txt: Don't mention longdouble.m4.
56930         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56931         * lib/float+.h: Likewise.
56932         * lib/frexp.c: Likewise.
56933         * lib/printf-args.h: Likewise.
56934         * lib/printf-args.c: Likewise.
56935         * lib/printf-frexp.c: Likewise.
56936         * lib/printf-parse.c: Likewise.
56937         * lib/vasnprintf.c: Likewise.
56938         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56939         * m4/intl.m4: Likewise.
56940         * m4/isnanl.m4: Likewise.
56941         * m4/printf.m4: Likewise.
56942         * m4/printf-frexpl.m4: Likewise.
56943         * m4/vasnprintf.m4: Likewise.
56944         * modules/allocsa (Files): Remove m4/longdouble.m4.
56945         * modules/gettext (Files): Likewise.
56946         * modules/relocatable-prog-wrapper (Files): Likewise.
56947         * modules/vasnprintf (Files): Likewise.
56948         * modules/isnanl (Files): Likewise.
56949         (Include): Simplify.
56950         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56951         (Include): Simplify.
56952         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56953         (Include): Simplify.
56954         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56955         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56956         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56958         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56960         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56961         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56962         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56963         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56964         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56965         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56966         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56967         * tests/test-isnanl.c: Likewise.
56968         * tests/test-snprintf-posix.h: Likewise.
56969         * tests/test-sprintf-posix.h: Likewise.
56970         * tests/test-vasnprintf-posix.c: Likewise.
56971         * tests/test-vasnprintf-posix2.c: Likewise.
56972         * tests/test-vasprintf-posix.c: Likewise.
56973
56974 2007-04-06  Bruno Haible  <bruno@clisp.org>
56975
56976         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56977         * lib/math_.h [__DECC]: Include the overridden include file through
56978         #include_next, outside the double-inclusion guard.
56979         * lib/stdio_.h [__DECC]: Likewise.
56980         * lib/stdlib_.h [__DECC]: Likewise.
56981         * lib/string_.h [__DECC]: Likewise.
56982         * lib/time_.h [__DECC]: Likewise.
56983         * lib/wchar_.h [__DECC]: Likewise.
56984         * lib/wctype_.h [__DECC]: Likewise.
56985         * lib/inttypes_.h [__DECC]: Likewise.
56986         Reported by Albert Chin <china@thewrittenword.com> in
56987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56988
56989 2007-04-04  Eric Blake  <ebb9@byu.net>
56990
56991         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56992         1.5.x.
56993
56994 2007-04-04  Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56997         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56998
56999 2007-04-04  Bruno Haible  <bruno@clisp.org>
57000
57001         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57002         results for "%010a" of Infinity and NaN.
57003         * tests/test-vasprintf-posix.c (test_function): Likewise.
57004         * tests/test-snprintf-posix.h (test_function): Likewise.
57005         * tests/test-sprintf-posix.h (test_function): Likewise.
57006         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57007         * tests/test-printf-posix.h (test_function): Likewise.
57008         * tests/test-fprintf-posix.out: Update.
57009         Needed for FreeBSD 6.1.
57010
57011 2007-04-04  Bruno Haible  <bruno@clisp.org>
57012
57013         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57014         directly used by the gnulib modules nor by gnulib-tool.
57015
57016 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         * DEPENDENCIES: Give overall description of version dependency
57019         desirability.  Use more-typical names for apps.
57020         Add shell, coreutils, diffutils, grep, tar, gzip.
57021
57022 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57023
57024         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57025
57026 2007-04-04  Karl Berry  <karl@gnu.org>
57027
57028         * MODULES.html.sh (func_module): missing '.
57029
57030 2007-04-03  Bruno Haible  <bruno@clisp.org>
57031
57032         * modules/argmatch-tests (Makefile.am): New variable
57033         test_argmatch_LDADD.
57034         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57035         * modules/array-list-tests (Makefile.am): New variable
57036         test_array_list_LDADD.
57037         * modules/array-oset-tests (Makefile.am): New variable
57038         test_array_oset_LDADD.
57039         * modules/avltree-list-tests (Makefile.am): New variable
57040         test_avltree_list_LDADD.
57041         * modules/avltree-oset-tests (Makefile.am): New variable
57042         test_avltree_oset_LDADD.
57043         * modules/avltreehash-list-tests (Makefile.am): New variable
57044         test_avltreehash_list_LDADD.
57045         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57046         test_canonicalize_lgpl_LDADD.
57047         * modules/carray-list-tests (Makefile.am): New variable
57048         test_carray_list_LDADD.
57049         * modules/dirname-tests (Makefile.am): New variable
57050         test_dirname_LDADD.
57051         * modules/linked-list-tests (Makefile.am): New variable
57052         test_linked_list_LDADD.
57053         * modules/linkedhash-list-tests (Makefile.am): New variable
57054         test_linkedhash_list_LDADD.
57055         * modules/rbtree-list-tests (Makefile.am): New variable
57056         test_rbtree_list_LDADD.
57057         * modules/rbtree-oset-tests (Makefile.am): New variable
57058         test_rbtree_oset_LDADD.
57059         * modules/rbtreehash-list-tests (Makefile.am): New variable
57060         test_rbtreehash_list_LDADD.
57061         * modules/xvasprintf-tests (Makefile.am): New variable
57062         test_xvasprintf_LDADD.
57063         Reported by Eric Blake.
57064
57065 2007-04-03  Eric Blake  <ebb9@byu.net>
57066
57067         * DEPENDENCIES: Weaken m4 requirements.
57068
57069 2007-04-03  Bruno Haible  <bruno@clisp.org>
57070
57071         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57072         * modules/isnanl-tests (configure.ac): Likewise.
57073
57074 2007-04-03  Ben Pfaff  <blp@gnu.org>
57075
57076         * modules/iconv_open: Add $(srcdir)/ to source directory
57077         references in Makefile fragments that call gperf, to fix VPATH
57078         builds.
57079
57080 2007-04-03  Bruno Haible  <bruno@clisp.org>
57081
57082         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57083         * lib/ldexpl.c: Undo last change.
57084
57085 2007-04-03  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/printf-frexpl (Depends-on): Undo last change.
57088         (Files): Add m4/ldexpl.m4.
57089
57090 2007-04-03  Bruno Haible  <bruno@clisp.org>
57091
57092         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57093         * modules/isnanl (Link): New section.
57094
57095         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57096         * modules/frexp (Link): New section.
57097
57098         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57099         * modules/frexpl (Link): New section.
57100
57101         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57102         * modules/ldexpl (Link): New section.
57103
57104 2007-04-03  Bruno Haible  <bruno@clisp.org>
57105
57106         * modules/TEMPLATE-EXTENDED: New file.
57107         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57108
57109 2007-04-03  Bruno Haible  <bruno@clisp.org>
57110
57111         * DEPENDENCIES: New file.
57112         Suggested by Simon Josefsson.
57113
57114 2007-04-03  Bruno Haible  <bruno@clisp.org>
57115
57116         * doc/gnulib.texi: Escape @.
57117
57118 2007-04-03  James Youngman  <jay@gnu.org>
57119         and Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57122         birthtime on all systems that have birthtime, not just those which
57123         use st_birthtimensec rather than st_birthtim.  Putting zero in
57124         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57125         that the birth time is not available for files on an NFS mount.
57126
57127 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57128
57129         * modules/memxor: Move back from crypto/, suggested by Bruno.
57130         * modules/crypto/hmac-sha1: Fix memxor dependency.
57131
57132         * modules/crypto/gc: Moved from ../.
57133
57134 2007-04-02  Eric Blake  <ebb9@byu.net>
57135
57136         * lib/ldexpl.c (includes): Avoid libm.
57137
57138         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57139
57140 2007-04-02  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57143         on IRIX.
57144
57145 2007-04-02  Bruno Haible  <bruno@clisp.org>
57146
57147         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57148         x86 or x86_64 platforms running MacOS X.
57149         Reported by Ryan Schmidt <@ryandesign.com>.
57150
57151 2007-04-02  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57154         i386.
57155
57156 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57157
57158         * modules/crypto/arcfour: Moved from ../.
57159         * modules/crypto/arcfour-tests: Moved from ../.
57160         * modules/crypto/arctwo: Moved from ../.
57161         * modules/crypto/arctwo-tests: Moved from ../.
57162         * modules/crypto/des: Moved from ../.
57163         * modules/crypto/des-tests: Moved from ../.
57164         * modules/crypto/gc-arcfour: Moved from ../.
57165         * modules/crypto/gc-arcfour-tests: Moved from ../.
57166         * modules/crypto/gc-arctwo: Moved from ../.
57167         * modules/crypto/gc-arctwo-tests: Moved from ../.
57168         * modules/crypto/gc-des: Moved from ../.
57169         * modules/crypto/gc-des-tests: Moved from ../.
57170         * modules/crypto/gc-hmac-md5: Moved from ../.
57171         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57172         * modules/crypto/gc-hmac-sha1: Moved from ../.
57173         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57174         * modules/crypto/gc-md2: Moved from ../.
57175         * modules/crypto/gc-md2-tests: Moved from ../.
57176         * modules/crypto/gc-md4: Moved from ../.
57177         * modules/crypto/gc-md4-tests: Moved from ../.
57178         * modules/crypto/gc-md5: Moved from ../.
57179         * modules/crypto/gc-md5-tests: Moved from ../.
57180         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57181         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57182         * modules/crypto/gc-random: Moved from ../.
57183         * modules/crypto/gc-rijndael: Moved from ../.
57184         * modules/crypto/gc-rijndael-tests: Moved from ../.
57185         * modules/crypto/gc-sha1: Moved from ../.
57186         * modules/crypto/gc-sha1-tests: Moved from ../.
57187         * modules/crypto/gc-tests: Moved from ../.
57188         * modules/crypto/hmac-md5: Moved from ../.
57189         * modules/crypto/hmac-md5-tests: Moved from ../.
57190         * modules/crypto/hmac-sha1: Moved from ../.
57191         * modules/crypto/hmac-sha1-tests: Moved from ../.
57192         * modules/crypto/md2: Moved from ../.
57193         * modules/crypto/md2-tests: Moved from ../.
57194         * modules/crypto/md4: Moved from ../.
57195         * modules/crypto/md4-tests: Moved from ../.
57196         * modules/crypto/md5: Moved from ../.
57197         * modules/crypto/md5-tests: Moved from ../.
57198         * modules/crypto/memxor: Moved from ../.
57199         * modules/crypto/rijndael: Moved from ../.
57200         * modules/crypto/rijndael-tests: Moved from ../.
57201         * modules/crypto/sha1: Moved from ../.
57202
57203 2007-03-30  James Youngman  <jay@gnu.org>
57204
57205         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57206         rename() to change the ctime of a file (because ctime is unaffected
57207         by rename on jfs2 on AIX 5.1).
57208         (main): Start by doing cleanup, in case a previous run failed leaving
57209         test files behind.
57210
57211 2007-03-31  Bruno Haible  <bruno@clisp.org>
57212
57213         Support old proprietary implementations of iconv.
57214         * modules/iconv_open: New file.
57215         * lib/iconv_.h: New file.
57216         * m4/iconv_h.m4: New file.
57217         * lib/iconv_open.c: New file.
57218         * lib/iconv_open-aix.gperf: New file.
57219         * lib/iconv_open-hpux.gperf: New file.
57220         * lib/iconv_open-irix.gperf: New file.
57221         * lib/iconv_open-osf.gperf: New file.
57222         * m4/iconv_open.m4: New file.
57223         * modules/linebreak (Depends-on): Add iconv_open.
57224         * modules/striconv (Depends-on): Likewise.
57225         * modules/striconveh (Depends-on): Likewise.
57226         * modules/unicodeio (Depends-on): Likewise.
57227         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57228         (iconv_t)(-1).
57229         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57230         conversion if cd is (iconv_t)(-1).
57231         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57232         is not possible.
57233
57234 2007-03-31  Bruno Haible  <bruno@clisp.org>
57235
57236         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57237         work on Solaris either. Protect also second use of "autodetect_jp".
57238
57239 2007-03-31  Bruno Haible  <bruno@clisp.org>
57240
57241         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57242         the function is not present.
57243
57244 2007-03-31  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57247         the function is not present.
57248
57249 2007-03-31  Bruno Haible  <bruno@clisp.org>
57250
57251         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57252         a bug in HP-UX iconv_open().
57253
57254 2007-03-31  Bruno Haible  <bruno@clisp.org>
57255
57256         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57257         (Mathematics <math.h>): New section, add fpieee.
57258         (Input/output <stdio.h>): Add fseterr.
57259         (Mathematics <math.h>): New section, add printf-frexp.
57260         (Container data structures): Add sublist.
57261         (Core language properties): Add fpucw, inline.
57262         (Functions for greatest-width integer types <inttypes.h>): Add
57263         imaxabs, imaxdiv, inttypes.
57264         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57265         isnanl-nolibm, ldexp.
57266         (Mathematics <math.h>): New section, add printf-frexpl.
57267         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57268         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57269         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57270         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57271         (Unicode string functions): Add unistr/u*-mbtoucr.
57272         (Java): Add javacomp-script, javaexec-script.
57273         (C#): Add csharpcomp-script, csharpexec-script.
57274         (Support for building libraries and executables): Add havelib,
57275         relocatable-*.
57276         (Support for maintaining and releasing projects): Renamed from
57277         'Support for maintaining and release projects'. Add announce-gen.
57278
57279 2007-03-31  Bruno Haible  <bruno@clisp.org>
57280
57281         * README: Talk primarily about git.
57282         (git and CVS): Renamed from CVS.
57283         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57284         gnulib is available through git.
57285         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57286
57287 2007-03-30  Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57290         * lib/poll_.h: Likewise.
57291         * lib/stat_.h: Likewise.
57292         * lib/sys_time_.h: Likewise.
57293         * lib/sysexit_.h: Likewise.
57294         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57295         * lib/stdbool_.h: Likewise.
57296         * lib/byteswap_.h: Add double-inclusion guard.
57297
57298 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57299
57300         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57301
57302 2007-03-30  Karl Berry  <karl@gnu.org>
57303
57304         * config/srclist-update: double space after USA in the license
57305         substitution, since that's how it's usually (?) written.
57306
57307 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57308
57309         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57310         reported by Bruno Haible.
57311
57312 2007-03-29  Bruno Haible  <bruno@clisp.org>
57313
57314         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57315         a bug in AIX iconv().
57316
57317 2007-03-29  Bruno Haible  <bruno@clisp.org>
57318
57319         * modules/ldexpl-tests: New file.
57320         * tests/test-ldexpl.c: New file.
57321
57322 2007-03-29  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/ldexpl.c: Include fpucw.h.
57325         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57326         multiplication.
57327         * modules/ldexpl (Depends-on): Add fpucw.
57328
57329 2007-03-29  Bruno Haible  <bruno@clisp.org>
57330
57331         * modules/ldexpl: New file.
57332         * m4/ldexpl.m4: New file.
57333         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57334         set.
57335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57336         REPLACE_LDEXPL.
57337         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57338         REPLACE_LDEXPL.
57339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57340         gl_FUNC_LDEXPL_WORKS.
57341         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57342         * modules/mathl (Files): Remove lib/ldexpl.c.
57343         (Depends-on): Add ldexpl.
57344
57345 2007-03-29  Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57348
57349 2007-03-29  Bruno Haible  <bruno@clisp.org>
57350
57351         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57352         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57353         and possibly also HP-UX.
57354         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57355         work on AIX, IRIX, HP-UX, OSF/1.
57356         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57357         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57358         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57359         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57360         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57361         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57362
57363 2007-03-29  Bruno Haible  <bruno@clisp.org>
57364
57365         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57366
57367 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57368
57369         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57370         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57371
57372 2007-03-29  Eric Blake  <ebb9@byu.net>
57373
57374         * lib/acl-internal.h: Remove redundant include.
57375         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57376         Cygwin when a file is locked.
57377
57378 2007-03-29  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57381         file.
57382         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57383
57384 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57385
57386         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57387         try to remove a parent directory if the child couldn't be removed
57388         (except for the first rmdir, which could fail because the child
57389         doesn't exist).  Problem reported by Jeff Blaine in
57390         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57391
57392 2007-03-28  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/striconveh.c (utf8conv_carefully): New function.
57395         (mem_cd_iconveh_internal): Invoke it.
57396
57397 2007-03-28  Bruno Haible  <bruno@clisp.org>
57398
57399         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57400         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57401         input.
57402         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57403         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57404         unistr/u8-uctomb.
57405
57406 2007-03-28  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/unistr/u8-mbtoucr: New file.
57409         * lib/unistr/u8-mbtoucr.c: New file.
57410         * modules/unistr/u16-mbtoucr: New file.
57411         * lib/unistr/u16-mbtoucr.c: New file.
57412         * modules/unistr/u16-mbtoucr: New file.
57413         * lib/unistr/u16-mbtoucr.c: New file.
57414         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57415
57416 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57417             Bruno Haible  <bruno@clisp.org>
57418
57419         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57420         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57421         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57422
57423         * m4/stdio_h.m4: Add stubs for vasprintf too.
57424
57425         * modules/stdio: Support vasprintf in sed command.
57426
57427         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57428         vasprintf.h.  Add stdio module indicator.
57429
57430         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57431         vasprintf.h.
57432
57433         * lib/vasprintf.h: File removed.
57434
57435         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57436         * lib/vasprintf.c: Ditto.
57437         * lib/xvasprintf.c: Ditto.
57438         * tests/test-vasprintf-posix.c: Ditto.
57439         * tests/test-vasprintf.c: Ditto.
57440
57441 2007-03-27  Bruno Haible  <bruno@clisp.org>
57442
57443         Make vasnprintf multithread-safe.
57444         * lib/vasnprintf.c (decimal_point_char): New function.
57445         (VASNPRINTF): Use it.
57446         Suggested by Simon Josefsson.
57447
57448 2007-03-27  Eric Blake  <ebb9@byu.net>
57449
57450         Support sub-second birthtime on cygwin.
57451         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57452         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57453         (get_stat_birthtime): Also work with st_birthtim.
57454
57455 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57458         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57459         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57460         (get_stat_birthtime_ns): Simplify compile-time tests.
57461         (get_stat_birthtime): Change the API to look like
57462         get_stat_mtime etc., except return a negative tv_nsec on error.
57463         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57464         Don't check for "spare" fields.
57465         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57466         or for struct stat.st_birthtime, as these tests aren't used.
57467         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57468
57469 2007-03-27  Bruno Haible  <bruno@clisp.org>
57470
57471         * lib/stat-time.h: Include <sys/stat.h>.
57472
57473 2007-03-27  James Youngman  <jay@gnu.org>
57474
57475         * lib/stat-time.h (get_stat_birthtime): New function for
57476           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57477         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57478           and its variants.
57479         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57480         * modules/stat-time-test: New file.
57481         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57482
57483 2007-03-26  Bruno Haible  <bruno@clisp.org>
57484
57485         Better support of signalling NaNs.
57486         * lib/atanl.c: Include isnanl.h.
57487         (atanl): Perform test for NaN at the beginning of the function and
57488         through a call to isnanl.
57489         * lib/cosl.c: Include isnanl.h.
57490         (cosl): Perform test for NaN at the beginning of the function and
57491         through a call to isnanl.
57492         * lib/ldexpl.c: Include isnanl.h.
57493         (ldexpl): Perform test for NaN through a call to isnanl.
57494         * lib/logl.c: Include isnanl.h.
57495         (logl): Perform test for NaN at the beginning of the function and
57496         through a call to isnanl.
57497         * lib/sinl.c: Include isnanl.h.
57498         (sinl): Perform test for NaN at the beginning of the function and
57499         through a call to isnanl.
57500         * lib/sqrtl.c: Include isnanl.h.
57501         (sqrtl): Perform test for NaN at the beginning of the function and
57502         through a call to isnanl.
57503         * lib/tanl.c: Include isnanl.h.
57504         (tanl): Perform test for NaN at the beginning of the function and
57505         through a call to isnanl.
57506         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57507         * modules/mathl (Depends-on): Add isnanl.
57508
57509 2007-03-26  Eric Blake  <ebb9@byu.net>
57510
57511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57512         regression in logic sense of previous patch.
57513
57514 2007-03-26  Bruno Haible  <bruno@clisp.org>
57515
57516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57517         unportable shell command "if ! ...".
57518         Reported by Ralf Wildenhues.
57519
57520 2007-03-25  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57523         <sysexits.h> file, and only add EX_CONFIG.
57524         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57525         absolute file name and whether it is sufficient. Substitute also
57526         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57527         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57528         ABSOLUTE_SYSEXITS_H into sysexits.h.
57529
57530 2007-03-25  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57533         hints is NULL.
57534
57535 2007-03-25  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57538         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57539
57540 2007-03-25  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/vasnprintf.c: Include langinfo.h.
57543         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57544         multithread-safe.
57545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57554         Reported by Simon Josefsson.
57555
57556 2007-03-25  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57559         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57560         * modules/vasnprintf (Depends-on): Add stdint.
57561
57562 2007-03-25  Bruno Haible  <bruno@clisp.org>
57563
57564         * modules/fpieee: New file.
57565         * m4/fpieee.m4: New file.
57566         * modules/isnan-nolibm (Depends-on): Add fpieee.
57567         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57568         * modules/isnanl (Depends-on): Add fpieee.
57569
57570 2007-03-25  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57573
57574 2007-03-25  Bruno Haible  <bruno@clisp.org>
57575
57576         Avoid test failures on IRIX 6.5.
57577         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57578         (main): Use it.
57579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57580         macros.
57581         (main): Use them.
57582
57583 2007-03-25  Bruno Haible  <bruno@clisp.org>
57584
57585         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57586         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57587         exists but doesn't work.
57588         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57589         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57591         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57592         math.h.
57593
57594 2007-03-25  Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57597         returns inf. Needed on IRIX 6.5.
57598
57599 2007-03-25  Bruno Haible  <bruno@clisp.org>
57600
57601         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57602         (main): Use isnanl instead of x != x idiom.
57603         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57604
57605         * tests/test-frexp.c: Include isnan.h.
57606         (main): Use isnan instead of x != x idiom.
57607         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57608
57609 2007-03-25  Bruno Haible  <bruno@clisp.org>
57610
57611         * tests/test-frexp.c (NaN): New function/macro.
57612         (main): Use it instead of 0.0 / 0.0.
57613         * tests/test-isnan.c (NaN): New function/macro.
57614         (main): Use it instead of 0.0 / 0.0.
57615         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57616         (test_function): Use it instead of 0.0 / 0.0.
57617         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57618         (test_function): Use it instead of 0.0 / 0.0.
57619         * tests/test-snprintf-posix.h (NaN): New function/macro.
57620         (test_function): Use it instead of 0.0 / 0.0.
57621         * tests/test-sprintf-posix.h (NaN): New function/macro.
57622         (test_function): Use it instead of 0.0 / 0.0.
57623         * tests/test-fprintf-posix.h (NaN): New function/macro.
57624         (test_function): Use it instead of 0.0 / 0.0.
57625         * tests/test-printf-posix.h (NaN): New function/macro.
57626         (test_function): Use it instead of 0.0 / 0.0.
57627
57628         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57629
57630 2007-03-25  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57633
57634 2007-03-25  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/regexec.c (merge_state_with_log): Make static.
57637
57638 2007-03-25  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/trigl.c (kernel_rem_pio2): Make static.
57641
57642 2007-03-25  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/sincosl.c (sincosl_table): Make static.
57645
57646 2007-03-25  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57649         if the compiler does not support C99.
57650
57651 2007-03-25  Bruno Haible  <bruno@clisp.org>
57652
57653         * modules/time (Makefile.am): Ensure all rule action lines start with a
57654         tab.
57655
57656 2007-03-24  Bruno Haible  <bruno@clisp.org>
57657
57658         * modules/tsearch-tests: New file.
57659         * tests/test-tsearch.sh: New file.
57660         * tests/test-tsearch.c: New file, mostly copied from glibc.
57661
57662         * modules/search-tests: New file.
57663         * tests/test-search.c: New file.
57664
57665         * modules/search: New file.
57666         * lib/search_.h: New file, incorporating lib/tsearch.h.
57667         * m4/search_h.m4: New file.
57668         * lib/tsearch.h: Remove file.
57669         * lib/tsearch.c: Include search.h instead of tsearch.h.
57670         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57671         HAVE_TSEARCH.
57672         * modules/tsearch (Files): Remove lib/tsearch.h.
57673         (Depends-on): Add search.
57674         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57675         (Include): Change tsearch.h into search.h.
57676
57677 2007-03-24  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/fpucw: New file.
57680         * lib/fpucw.h: New file.
57681         * lib/frexp.c: Include fpucw.h.
57682         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57683         (FUNC): Use them.
57684         * lib/printf-frexp.c: Include fpucw.h.
57685         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57686         (FUNC): Use them.
57687         * lib/vasnprintf.c: Include fpucw.h.
57688         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57689         'long double' calculations.
57690         * tests/test-frexpl.c: Include fpucw.h.
57691         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57692         * tests/test-printf-frexpl.c: Include fpucw.h.
57693         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57694         * modules/frexpl (Depends-on): Add fpucw.
57695         * modules/printf-frexpl (Depends-on): Likewise.
57696         * modules/fprintf-posix (Depends-on): Likewise.
57697         * modules/snprintf-posix (Depends-on): Likewise.
57698         * modules/sprintf-posix (Depends-on): Likewise.
57699         * modules/vasnprintf-posix (Depends-on): Likewise.
57700         * modules/vasprintf-posix (Depends-on): Likewise.
57701         * modules/vfprintf-posix (Depends-on): Likewise.
57702         * modules/vsnprintf-posix (Depends-on): Likewise.
57703         * modules/vsprintf-posix (Depends-on): Likewise.
57704         * modules/frexpl-tests (Depends-on): Likewise.
57705         * modules/printf-frexpl-tests (Depends-on): Likewise.
57706
57707 2007-03-24  Bruno Haible  <bruno@clisp.org>
57708
57709         * lib/float+.h: New file.
57710         * lib/isnan.c: Include float+.h.
57711         (SIZE): New macro.
57712         (FUNC): Compare only SIZE bytes of the value.
57713         * lib/vasnprintf.c: Include float+.h.
57714         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57715         SIZEOF_LDBL or SIZEOF_DBL bytes.
57716         * modules/isnan-nolibm (Files): Add lib/float+.h.
57717         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57718         * modules/isnanl (Files): Add lib/float+.h.
57719         * modules/vasnprintf (Files): Add lib/float+.h.
57720
57721 2007-03-24  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57724         include isnanl-nolibm.h.
57725
57726 2007-03-24  Bruno Haible  <bruno@clisp.org>
57727
57728         * tests/test-read-file.c (main): Don't produce spurious output for
57729         expected situations. Make the test fail if it encountered unexpected
57730         results.
57731
57732 2007-03-24  Bruno Haible  <bruno@clisp.org>
57733
57734         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57735         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57736
57737 2007-03-24  Bruno Haible  <bruno@clisp.org>
57738
57739         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57740
57741 2007-03-24  Bruno Haible  <bruno@clisp.org>
57742
57743         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57744         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57745
57746         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57747         * modules/utf8-ucs4: Turn into a symbolic link to module
57748         unistr/u8-mbtouc.
57749
57750         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57751         utf8-ucs4-unsafe.
57752         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57753         unistr/u8-mbtouc-unsafe.
57754
57755         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57756         * modules/utf16-ucs4: Turn into a symbolic link to module
57757         unistr/u16-mbtouc.
57758
57759         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57760         utf16-ucs4-unsafe.
57761         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57762         unistr/u16-mbtouc-unsafe.
57763
57764         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57765         * modules/ucs4-utf8: Turn into a symbolic link to module
57766         unistr/u8-ubtomb.
57767
57768         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57769         * modules/ucs4-utf16: Turn into a symbolic link to module
57770         unistr/u16-ubtomb.
57771
57772 2007-03-24  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57775         Enable the function only if HAVE_INLINE.
57776         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57777         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57778         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57779         Enable the function only if HAVE_INLINE.
57780         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57781         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57782         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57783         Enable the function only if HAVE_INLINE.
57784         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57785         Enable the function only if HAVE_INLINE.
57786         * modules/utf8-ucs4: Update.
57787         * modules/utf8-ucs4-unsafe: Update.
57788         * modules/utf16-ucs4: Update.
57789         * modules/utf16-ucs4-unsafe: Update.
57790         * modules/ucs4-utf8: Update.
57791         * modules/ucs4-utf16: Update.
57792
57793 2007-03-24  Bruno Haible  <bruno@clisp.org>
57794
57795         * lib/utf8-ucs4.h: Remove file.
57796         * lib/utf8-ucs4-unsafe.h: Remove file.
57797         * lib/utf16-ucs4.h: Remove file.
57798         * lib/utf16-ucs4-unsafe.h: Remove file.
57799         * lib/ucs4-utf8.h: Remove file.
57800         * lib/ucs4-utf16.h: Remove file.
57801         * lib/unistr.h: Include their previous contents.
57802         * m4/utf-ucs4.m4: Remove file.
57803         * m4/ucs4-utf.m4: Remove file.
57804         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57805         (Depends-on): Add unistr/base.
57806         (configure.ac): Remove gl_UTF_UCS4.
57807         (Makefile.am): Update.
57808         (Include): Change to unistr.h.
57809         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57810         (Depends-on): Add unistr/base.
57811         (configure.ac): Remove gl_UTF_UCS4.
57812         (Makefile.am): Update.
57813         (Include): Change to unistr.h.
57814         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57815         (Depends-on): Add unistr/base.
57816         (configure.ac): Remove gl_UTF_UCS4.
57817         (Makefile.am): Update.
57818         (Include): Change to unistr.h.
57819         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57820         (Depends-on): Add unistr/base.
57821         (configure.ac): Remove gl_UTF_UCS4.
57822         (Makefile.am): Update.
57823         (Include): Change to unistr.h.
57824         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57825         (Depends-on): Add unistr/base.
57826         (configure.ac): Remove gl_UCS4_UTF.
57827         (Makefile.am): Update.
57828         (Include): Change to unistr.h.
57829         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57830         (Depends-on): Add unistr/base.
57831         (configure.ac): Remove gl_UCS4_UTF.
57832         (Makefile.am): Update.
57833         (Include): Change to unistr.h.
57834         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57835         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57836         utf8-ucs4-unsafe.h.
57837         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57838         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57839         utf16-ucs4-unsafe.h.
57840         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57841         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57842         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57843         * lib/unistr/u8-strchr.c: Likewise.
57844         * lib/unistr/u8-strrchr.c: Likewise.
57845         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57846         * lib/unistr/u16-strchr.c: Likewise.
57847         * lib/unistr/u16-strrchr.c: Likewise.
57848         * lib/striconveh.c: Update.
57849         * lib/linebreak.c: Update.
57850
57851 2007-03-24  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57854         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57855
57856 2007-03-22  Bruno Haible  <bruno@clisp.org>
57857
57858         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57859
57860 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * MODULES.html.sh (File system functions): New module write-any-file.
57863         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57864         * m4/write-any-file.m4: New files.
57865
57866 2007-03-23  Eric Blake  <ebb9@byu.net>
57867
57868         * gnulib-tool: Rearrange space-tab sequences, since some editors
57869         like to eat them.
57870
57871 2007-03-23  Eric Blake  <ebb9@byu.net>
57872
57873         * lib/version-etc.c (version_etc_va): Update license wording to
57874         be more concise.  Recommended by Richard Stallman.
57875
57876 2007-03-22  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/poll.c (MSG_PEEK): New fallback definition.
57879
57880 2007-03-22  Bruno Haible  <bruno@clisp.org>
57881
57882         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57883         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57884         (main): Update.
57885         Fixes a compilation error on BeOS.
57886
57887 2007-03-22  Bruno Haible  <bruno@clisp.org>
57888
57889         * modules/frexpl-tests: New file.
57890         * tests/test-frexpl.c: New file.
57891
57892         * modules/frexpl: New file.
57893         * m4/frexpl.m4: New file.
57894         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57895         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57897         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57898         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57899         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57900
57901 2007-03-22  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/frexpl.c: Share code with lib/frexp.c.
57904         * modules/mathl (Files): Add lib/frexp.c.
57905         (Depends-on): Add isnanl-nolibm.
57906
57907 2007-03-22  Bruno Haible  <bruno@clisp.org>
57908
57909         * modules/printf-frexp (Files): Add m4/frexp.m4.
57910         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57911         only if the found frexp function actually works.
57912
57913 2007-03-22  Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/frexp.c: Remove older implementation that uses divisions.
57916
57917 2007-03-21  Bruno Haible  <bruno@clisp.org>
57918
57919         * modules/frexp-tests: New file.
57920         * tests/test-frexp.c: New file.
57921
57922         * modules/frexp: New file.
57923         * lib/frexp.c: New file.
57924         * m4/frexp.m4: New file.
57925         * lib/math_.h (frexp): New declaration.
57926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57927         REPLACE_FREXP.
57928         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57929
57930 2007-03-21  Bruno Haible  <bruno@clisp.org>
57931
57932         * modules/isnanl-tests: New file.
57933         * tests/test-isnanl.c: New file.
57934
57935         * modules/isnanl: New file.
57936         * lib/isnanl.h: New file.
57937         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57938         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57939         gl_FUNC_ISNANL_WORKS.
57940         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57941         New macros.
57942
57943 2007-03-21  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57946         lib/isnanl.h.
57947         (Include): Update.
57948         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57949         * lib/vasnprintf.c: Update.
57950         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57951         tests/test-isnanl.h, remove tests/test-isnanl.c.
57952         (Makefile.am): Update.
57953         * tests/test-isnanl-nolibm.c: New file.
57954         * tests/test-isnanl.h: New file.
57955         * tests/test-isnanl.c: Remove file.
57956
57957 2007-03-21  Jim Meyering  <jim@meyering.net>
57958
57959         When trying to open ".", treat ESTALE like EACCES.
57960         * lib/savewd.c (savewd_save): Resort to forking not just upon
57961         failure with EACCES, but also when errno is ESTALE.
57962
57963 2007-03-20  Bruno Haible  <bruno@clisp.org>
57964
57965         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57966         Needed on AIX 5.1. Reported by Matthew Woehlke.
57967
57968 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57969
57970         Suggestions by Bruno Haible:
57971         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57972         our own.
57973         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57974         * modules/acl (Depends-on): Add gettext.
57975
57976 2007-03-19  Bruno Haible  <bruno@clisp.org>
57977
57978         * modules/iconvme: Remove file.
57979         * lib/iconvme.h: Remove file.
57980         * lib/iconvme.c: Remove file.
57981         * m4/iconvme.m4: Remove file.
57982
57983 2007-03-19  Bruno Haible  <bruno@clisp.org>
57984
57985         * doc/relocatable-maint.texi: Break long shell script line.
57986         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57987
57988 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57991         handle file_has_acl.
57992         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57993         * lib/acl.c: Move header inclusions and related macro defns into
57994         lib/acl-internal.h.
57995         (S_ISLNK): Remove defn, since that's now done for us.
57996         (file_has_acl): Move to lib/file-has-acl.c.
57997         Call acl_trivial if available.  This is the crucial part of the fix.
57998         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57999         shared within the library.  Rewrite a bit, partly to make it compatible
58000         with the GNU coding style.
58001         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58002         Remove unnecessary double-quotes.
58003         Don't test for acl_to_text; the build will catch that.
58004         Replace acl_entries if it doesn't exist and it is needed.
58005         Check for -lsec and acl_trivial (as used on Solaris 10).
58006         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58007         lib/file-has-acl.c.
58008         (Depends-on): Add sys_stat, for S_ISLNK.
58009
58010 2007-03-19  Ben Pfaff  <blp@gnu.org>
58011
58012         * doc/gnulib.texi: Fix typos.
58013         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58014
58015 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58018         If size is zero here, buf must be zero.
58019
58020 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58021
58022         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58023         <bruno@clisp.org>.
58024
58025 2007-03-18  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58028         Suggested by Eric Blake.
58029
58030 2007-03-18  Ben Pfaff  <blp@gnu.org>
58031
58032         * doc/relocatable.texi: Recommend using as prefix a directory
58033         that does not exist and will never be created.  Based on
58034         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58035         and others.
58036
58037 2007-03-17  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/fchownat.c: Include lchown.h.
58040
58041 2007-03-17  Bruno Haible  <bruno@clisp.org>
58042
58043         Fix endless loop when the given allocated size was > INT_MAX.
58044         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58045         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58046         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58047         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58048         * lib/sprintf.c (sprintf): Likewise.
58049
58050 2007-03-17  Bruno Haible  <bruno@clisp.org>
58051
58052         * tests/test-argp-2.sh (func_compare): Output a context diff.
58053
58054 2007-03-17  Bruno Haible  <bruno@clisp.org>
58055
58056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58057         locale's decimal-point character.
58058
58059 2007-03-17  Bruno Haible  <bruno@clisp.org>
58060
58061         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58062         before comparing it. Needed because on some platforms (e.g. x86) a
58063         'long double' occupies less bytes than sizeof (long double).
58064
58065 2007-03-17  Bruno Haible  <bruno@clisp.org>
58066
58067         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58068         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58069         * tests/test-getaddrinfo.c (simple): Likewise.
58070         * tests/test-read-file.c (main): Likewise.
58071
58072 2007-03-17  Bruno Haible  <bruno@clisp.org>
58073
58074         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58075
58076 2007-03-17  Bruno Haible  <bruno@clisp.org>
58077
58078         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58079         unused variable.
58080
58081 2007-03-17  Bruno Haible  <bruno@clisp.org>
58082
58083         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58084         * tests/test-c-strncasecmp.c: Likewise.
58085
58086 2007-03-17  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/stdlib (Depends-on): Add unistd.
58089         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58090         Needed for MacOS X 10.3.
58091
58092 2007-03-17  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58095
58096 2007-03-17  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58099
58100 2007-03-17  Bruno Haible  <bruno@clisp.org>
58101
58102         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58103         to reflect files copied from gnulib (with or without modifications).
58104         Suggested by Jim Meyering.
58105
58106 2007-03-17  Eric Blake  <ebb9@byu.net>
58107
58108         * NEWS: Document stdlib change from 2007-02-18.
58109
58110 2007-03-17  Jim Meyering  <jim@meyering.net>
58111
58112         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58113         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58114         someone uses a name containing shell meta-characters.
58115         Reported by Alfred M. Szmidt.
58116
58117         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58118
58119 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58120
58121         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58122         and copy gettext configuration files only if configure.ac contains
58123         a use of AM_GNU_GETTEXT_VERSION.
58124
58125 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58126
58127         * build-aux/bootstrap (gnulib_name): New variable.
58128         (gnulib_tool_options): Use it.
58129
58130 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58131
58132         * tests/test-des.c: Use new namespace.
58133
58134 2007-03-15  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58137         Reported by James Youngman <jay@gnu.org>.
58138
58139 2007-03-15  Bruno Haible  <bruno@clisp.org>
58140
58141         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58142         declared prototype. Needed with cc on OSF/1 5.1.
58143
58144 2007-03-15  Bruno Haible  <bruno@clisp.org>
58145
58146         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58147         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58148         (struct gl_list_implementation): Add dispose_fn argument to the
58149         'create_empty', 'create' methods.
58150         (struct gl_list_impl_base): Add field 'dispose_fn'.
58151         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58152         argument.
58153         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58154         dispose_fn argument.
58155         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58156         dispose_fn on the dropped values.
58157         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58158         dispose_fn argument.
58159         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58160         dropped values.
58161         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58162         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58163         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58164         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58165         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58166         argument.
58167         (gl_tree_list_free): Call dispose_fn on the dropped values.
58168         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58169         the dropped values.
58170         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58171         Add dispose_fn argument.
58172         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58173         Call dispose_fn on the dropped values.
58174         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58175         Add dispose_fn argument.
58176         (gl_sublist_create): Initialize the 'dispose_fn' field.
58177         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58178         * tests/test-array_list.c (main): Update.
58179         * tests/test-carray_list.c (main): Update.
58180         * tests/test-avltree_list.c (main): Update.
58181         * tests/test-rbtree_list.c (main): Update.
58182         * tests/test-avltreehash_list.c (main): Update.
58183         * tests/test-rbtreehash_list.c (main): Update.
58184         * tests/test-linked_list.c (main): Update.
58185         * tests/test-linkedhash_list.c (main): Update.
58186         * tests/test-array_oset.c (main): Update.
58187
58188 2007-03-15  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58191         (gl_oset_create_empty): Add dispose_fn argument.
58192         (struct gl_oset_implementation): Add dispose_fn argument to
58193         'create_empty' method.
58194         (struct gl_oset_impl_base): Add dispose_fn field.
58195         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58196         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58197         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58198         values.
58199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58200         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58201         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58202         dropped value.
58203         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58204         dropped value.
58205         * tests/test-array_oset.c (main): Update.
58206         * tests/test-avltree_oset.c (main): Update.
58207         * tests/test-rbtree_oset.c (main): Update.
58208         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58209
58210 2007-03-13  Bruno Haible  <bruno@clisp.org>
58211
58212         * tests/test-stdbool.c (i): Update after last patch.
58213
58214 2007-03-12  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58217         the iswprint macro. Needed on Solaris 2.5.1.
58218
58219 2007-03-12  Bruno Haible  <bruno@clisp.org>
58220
58221         * tests/test-printf-frexp.c (main): Declare x as volatile.
58222
58223 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58224
58225         * doc/gnulib.texi (Build robot for gnulib): New section.
58226
58227 2007-03-12  Jim Meyering  <jim@meyering.net>
58228
58229         * build-aux/bootstrap: New file.
58230         * build-aux/bootstrap.conf: New file, from coreutils.
58231
58232 2007-03-11  Bruno Haible  <bruno@clisp.org>
58233
58234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58235
58236 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58237
58238         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58239         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58240         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58241
58242 2007-03-11  Bruno Haible  <bruno@clisp.org>
58243
58244         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58245         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58246
58247 2007-03-11  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58250         formula. Needed for SunPRO C 5.0.
58251
58252 2007-03-11  Bruno Haible  <bruno@clisp.org>
58253
58254         * modules/long-options (Depends-on): Add getopt.
58255
58256 2007-03-11  Bruno Haible  <bruno@clisp.org>
58257
58258         * modules/modechange (Depends-on): Add stdbool.
58259
58260 2007-03-11  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/i-ring (Depends-on): Add stdbool.
58263
58264 2007-03-11  Bruno Haible  <bruno@clisp.org>
58265
58266         * modules/gc-des (Depends-on): Add stdbool.
58267
58268 2007-03-11  Bruno Haible  <bruno@clisp.org>
58269
58270         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58271
58272 2007-03-11  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58275
58276 2007-03-11  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58279
58280 2007-03-11  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/vasnprintf.c (sprintf): Undefine.
58283
58284 2007-03-11  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58287         initializers in SunPRO C and Compaq C compilers.
58288
58289 2007-03-11  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58292         decrementing code ANSI C compliant.
58293
58294 2007-03-11  Bruno Haible  <bruno@clisp.org>
58295
58296         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58297         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58298
58299 2007-03-11  Bruno Haible  <bruno@clisp.org>
58300
58301         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58302         <stdbool.h> substitute doesn't pass.
58303
58304 2007-03-11  Bruno Haible  <bruno@clisp.org>
58305
58306         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58307
58308 2007-03-11  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58311         script, for submission to autobuild.josefsson.org.
58312
58313 2007-03-10  Bruno Haible  <bruno@clisp.org>
58314
58315         * modules/canonicalize-lgpl-tests: New file.
58316         * tests/test-canonicalize-lgpl.sh: New file.
58317         * tests/test-canonicalize-lgpl.c: New file.
58318
58319         * modules/c-strcase-tests: New file.
58320         * tests/test-c-strcase.sh: New file.
58321         * tests/test-c-strcasecmp.c: New file.
58322         * tests/test-c-strncasecmp.c: New file.
58323
58324         * modules/atexit-tests: New file.
58325         * tests/test-atexit.sh: New file.
58326         * tests/test-atexit.c: New file.
58327
58328 2007-03-10  Bruno Haible  <bruno@clisp.org>
58329
58330         * tests/test-binary-io.sh: Use temporary filenames that are not so
58331         likely to clash with those of other tests (in a parallel make).
58332         * tests/test-binary-io.c: Likewise.
58333
58334 2007-03-10  Bruno Haible  <bruno@clisp.org>
58335
58336         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58337         fallback; use #error instead.
58338         Suggested by Simon Josefsson.
58339
58340 2007-03-10  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58343         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58344         first and the last.
58345
58346 2007-03-10  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58349
58350 2007-03-10  Bruno Haible  <bruno@clisp.org>
58351
58352         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58353         "make distcheck".
58354         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58355         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58356         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58357
58358 2007-03-10  Bruno Haible  <bruno@clisp.org>
58359
58360         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58361         variable.
58362         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58363         variable.
58364
58365 2007-03-09  Eric Blake  <ebb9@byu.net>
58366         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58367
58368         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58369         types are not being provided by gnulib.
58370         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58371         types are supported.
58372
58373 2007-03-10  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/stdio_.h (__attribute__): New macro.
58376         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58377         vsprintf): Specify __attribute__ __format__ for GCC.
58378         Suggested by Eric Blake.
58379
58380 2007-03-09  Bruno Haible  <bruno@clisp.org>
58381
58382         * modules/printf-posix-tests: New file.
58383         * tests/test-printf-posix.sh: New file.
58384         * tests/test-printf-posix.c: New file.
58385
58386         * modules/printf-posix: New file.
58387         * lib/printf.c: New file.
58388         * m4/printf-posix-rpl.m4: New file.
58389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58390         REPLACE_PRINTF.
58391         * lib/stdio_.h (printf): New declaration.
58392         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58393         ____strfmon____): New macros.
58394         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58395         REPLACE_PRINTF.
58396
58397 2007-03-09  Bruno Haible  <bruno@clisp.org>
58398
58399         * tests/test-vasnprintf-posix2.sh: New file.
58400         * tests/test-vasnprintf-posix2.c: New file.
58401         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58402         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58403         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58404
58405         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58406         a locale dependent decimal point, rather than always '.'.
58407
58408 2007-03-09  Eric Blake  <ebb9@byu.net>
58409
58410         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58411         spite of platforms like Tandem/NSK that define it to -1.
58412
58413 2007-03-08  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/vprintf-posix-tests: New file.
58416         * tests/test-vprintf-posix.sh: New file.
58417         * tests/test-vprintf-posix.c: New file.
58418         * tests/test-printf-posix.h: New file.
58419
58420         * modules/vprintf-posix: New file.
58421         * lib/vprintf.c: New file.
58422         * m4/vprintf-posix.m4: New file.
58423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58424         REPLACE_VPRINTF.
58425         * lib/stdio_.h (vprintf): New declaration.
58426         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58427         REPLACE_VPRINTF.
58428
58429 2007-03-08  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/fprintf-posix-tests: New file.
58432         * tests/test-fprintf-posix.sh: New file.
58433         * tests/test-fprintf-posix.c: New file.
58434
58435         * modules/fprintf-posix: New file.
58436         * lib/fprintf.c: New file.
58437         * m4/fprintf-posix.m4: New file.
58438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58439         REPLACE_FPRINTF.
58440         * lib/stdio_.h (fprintf): New declaration.
58441         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58442         REPLACE_FPRINTF.
58443
58444 2007-03-08  Bruno Haible  <bruno@clisp.org>
58445
58446         * modules/vfprintf-posix-tests: New file.
58447         * tests/test-vfprintf-posix.sh: New file.
58448         * tests/test-vfprintf-posix.c: New file.
58449         * tests/test-fprintf-posix.h: New file.
58450         * tests/test-fprintf-posix.out: New file.
58451
58452         * modules/vfprintf-posix: New file.
58453         * lib/vfprintf.c: New file.
58454         * m4/vfprintf-posix.m4: New file.
58455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58456         REPLACE_VFPRINTF.
58457         * lib/stdio_.h (vfprintf): New declaration.
58458         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58459         REPLACE_VFPRINTF.
58460
58461 2007-03-08  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58464
58465 2007-03-08  Bruno Haible  <bruno@clisp.org>
58466
58467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58468         instead of 'expr' invocations.
58469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58474         Suggested by Paul Eggert.
58475
58476 2007-03-08  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/fseterr-tests: New file.
58479         * tests/test-fseterr.c: New file.
58480
58481         * modules/fseterr: New file.
58482         * lib/fseterr.h: New file.
58483         * lib/fseterr.c: New file.
58484
58485 2007-03-08  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58488         * lib/getopt_.h: Likewise.
58489         * lib/mbswidth.h: Likewise.
58490         * lib/setenv.h: Likewise.
58491         * lib/vasnprintf.h: Likewise.
58492         * lib/vasprintf.h: Likewise.
58493         * lib/verror.h: Likewise.
58494         * lib/xsetenv.h: Likewise.
58495         * lib/xvasprintf.h: Likewise.
58496
58497 2007-03-08  Jim Meyering  <jim@meyering.net>
58498
58499         * users.txt: Add parted.
58500
58501         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58502
58503 2007-03-07  Bruno Haible  <bruno@clisp.org>
58504
58505         * m4/printf.m4: Make the shell script snippets copy&pastable.
58506
58507 2007-03-02  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/netinet_in_.h: New file.
58510         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58511         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58512         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58513         (Depends-on): Add absolute-header.
58514         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58515         into netinet/in.h.
58516
58517 2007-03-03  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/sys_select_.h: New file.
58520         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58521         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58522         * modules/sys_select (Files): Add lib/sys_select_.h.
58523         (Depends-on): Add absolute-header.
58524         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58525         into sys/select.h.
58526
58527 2007-03-02  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58530         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58531         values.
58532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58533         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58534         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58535         * modules/sys_socket (Depends-on): Add absolute-header.
58536         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58537         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58538         (Include): Remove requirement of inclusion of <sys/types.h>.
58539
58540 2007-03-02  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/byteswap_.h (bswap_32): Fix formula.
58543
58544 2007-03-06  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/sprintf-posix-tests: New file.
58547         * tests/test-sprintf-posix.c: New file.
58548
58549         * modules/sprintf-posix: New file.
58550         * lib/sprintf.c: New file.
58551         * m4/sprintf-posix.m4: New file.
58552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58553         REPLACE_SPRINTF.
58554         * lib/stdio_.h (sprintf): New declaration.
58555         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58556         REPLACE_SPRINTF.
58557
58558 2007-03-06  Bruno Haible  <bruno@clisp.org>
58559
58560         * modules/vsprintf-posix-tests: New file.
58561         * tests/test-vsprintf-posix.c: New file.
58562         * tests/test-sprintf-posix.h: New file.
58563
58564         * modules/vsprintf-posix: New file.
58565         * lib/vsprintf.c: New file.
58566         * m4/vsprintf-posix.m4: New file.
58567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58568         REPLACE_VSPRINTF.
58569         * lib/stdio_.h (vsprintf): New declaration.
58570         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58571         REPLACE_VSPRINTF.
58572
58573 2007-03-06  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/vsnprintf (Depend-on): Remove minmax.
58576
58577 2007-03-06  Bruno Haible  <bruno@clisp.org>
58578
58579         * modules/snprintf-posix-tests: New file.
58580         * tests/test-snprintf-posix.c: New file.
58581
58582         * modules/snprintf-posix: New file.
58583         * m4/snprintf-posix.m4: New file.
58584         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58585         gl_FUNC_SNPRINTF.
58586         (gl_FUNC_SNPRINTF): Invoke it.
58587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58588         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58589         is set.
58590         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58591
58592 2007-03-06  Bruno Haible  <bruno@clisp.org>
58593
58594         * modules/vsnprintf-posix-tests: New file.
58595         * tests/test-vsnprintf-posix.c: New file.
58596         * tests/test-snprintf-posix.h: New file.
58597
58598         * modules/vsnprintf-posix: New file.
58599         * m4/vsnprintf-posix.m4: New file.
58600         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58601         gl_FUNC_VSNPRINTF.
58602         (gl_FUNC_VSNPRINTF): Invoke it.
58603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58604         * lib/stdio_.h (vsnprintf): Define as a replacement if
58605         REPLACE_VSNPRINTF is set.
58606         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58607
58608 2007-03-06  Bruno Haible  <bruno@clisp.org>
58609
58610         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58612
58613 2007-03-06  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58616         (asinl): Declare also if HAVE_DECL_ASINL is set.
58617         (atanl): Declare also if HAVE_DECL_ATANL is set.
58618         (ceill): Declare also if HAVE_DECL_CEILL is set.
58619         (cosl): Declare also if HAVE_DECL_COSL is set.
58620         (expl): Declare also if HAVE_DECL_EXPL is set.
58621         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58622         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58623         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58624         (logl): Declare also if HAVE_DECL_LOGL is set.
58625         (sinl): Declare also if HAVE_DECL_SINL is set.
58626         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58627         (tanl): Declare also if HAVE_DECL_TANL is set.
58628         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58631         declaration of frexpl, ldexpl.
58632         * modules/printf-frexpl (Depends-on): Add math.
58633         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58634
58635 2007-03-05  Bruno Haible  <bruno@clisp.org>
58636
58637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58638         frexpl and ldexpl are declared.
58639         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58640
58641 2007-03-05  Bruno Haible  <bruno@clisp.org>
58642
58643         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58644         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58645
58646 2007-03-05  Bruno Haible  <bruno@clisp.org>
58647
58648         * lib/stdio_.h: Include <stddef.h>.
58649
58650 2007-03-05  Bruno Haible  <bruno@clisp.org>
58651
58652         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58653
58654 2007-03-05  Bruno Haible  <bruno@clisp.org>
58655
58656         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58657         NetBSD 4, from Ralf Wildenhues.
58658
58659 2007-03-04  Bruno Haible  <bruno@clisp.org>
58660
58661         * lib/vasprintf.h: Update #if logic for the case when the functions
58662         exist but are overridden.
58663
58664 2007-03-04  Bruno Haible  <bruno@clisp.org>
58665
58666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58667         implementations: glibc-2.4 and MacOS X 10.3.
58668         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58669         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58670         * tests/test-vasprintf-posix.c (test_function): Likewise.
58671
58672 2007-03-04  Bruno Haible  <bruno@clisp.org>
58673
58674         * modules/vasprintf-posix-tests: New file.
58675         * tests/test-vasprintf-posix.c: New file.
58676
58677         * modules/vasprintf-posix: New file.
58678         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58679         defined.
58680         * m4/vasprintf-posix.m4: New file.
58681         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58682         gl_FUNC_VASPRINTF.
58683         (gl_FUNC_VASPRINTF): Invoke it.
58684         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58685         here.
58686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58687
58688 2007-03-04  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58691         REPLACE_GETTIMEOFDAY.
58692         * modules/sys_time (Makefile.am): Likewise.
58693         * m4/sys_time_h.m4: Likewise.
58694         * m4/gettimeofday.m4: Likewise.
58695
58696 2007-03-04  Bruno Haible  <bruno@clisp.org>
58697
58698         * modules/vasnprintf-posix-tests: New file.
58699         * tests/test-vasnprintf-posix.c: New file.
58700
58701         * modules/vasnprintf-posix: New file.
58702         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58703         printf-frexpl.h.
58704         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58705         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58706         REPLACE_VASNPRINTF is defined.
58707         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58708         gl_FUNC_VASNPRINTF.
58709         (gl_FUNC_VASNPRINTF): Invoke it.
58710         * m4/vasnprintf-posix.m4: New file.
58711         * m4/printf.m4: New file.
58712
58713 2007-03-04  Bruno Haible  <bruno@clisp.org>
58714
58715         Compile progreloc.c only if --enable-relocatable is specified.
58716         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58717         if --enable-relocatable was specified.
58718         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58719         lib_SOURCES.
58720
58721 2007-03-04  Jim Meyering  <jim@meyering.net>
58722
58723         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58724         Use it consistently, rather than enumerating errno constants.
58725
58726 2007-03-04  Bruno Haible  <bruno@clisp.org>
58727
58728         * modules/xvasprintf-tests: New file.
58729         * tests/test-xvasprintf.c: New file.
58730
58731         * modules/vasprintf-tests: New file.
58732         * tests/test-vasprintf.c: New file.
58733
58734         * modules/vasnprintf-tests: New file.
58735         * tests/test-vasnprintf.c: New file.
58736
58737         * modules/vsnprintf-tests: New file.
58738         * tests/test-vsnprintf.c: New file.
58739
58740         * modules/snprintf-tests: New file.
58741         * tests/test-snprintf.c: New file.
58742
58743 2007-03-04  Bruno Haible  <bruno@clisp.org>
58744
58745         Compile relocatable.c only if --enable-relocatable is specified.
58746         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58747         gl_RELOCATABLE_LIBRARY.
58748         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58749         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58750         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58751         gl_RELOCATABLE_LIBRARY.
58752         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58753         (Makefile.am): Remove lib_SOURCES.
58754         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58755         gl_RELOCATABLE_LIBRARY.
58756         (Makefile.am): Remove lib_SOURCES.
58757         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58758         always.
58759         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58760         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58761
58762 2007-03-04  Bruno Haible  <bruno@clisp.org>
58763
58764         * modules/argmatch-tests: New file.
58765         * tests/test-argmatch.c: New file.
58766
58767         * tests/test-allocsa.c (main): Halve the number of loop runs.
58768
58769         * modules/alloca-opt-tests: New file.
58770         * tests/test-alloca-opt.c: New file.
58771
58772 2007-03-04  Jim Meyering  <jim@meyering.net>
58773
58774         Work around difference between Linux ACLs and Solaris 10 ZFS.
58775         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58776         for EINVAL.
58777
58778 2007-03-03  Bruno Haible  <bruno@clisp.org>
58779
58780         * modules/relocatable-prog (Depends-on): Add back progreloc's
58781         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58782
58783 2007-03-03  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58786         * modules/relocatable-lib: New file.
58787
58788 2007-03-03  Bruno Haible  <bruno@clisp.org>
58789
58790         * modules/relocatable-prog: Renamed from modules/relocatable.
58791         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58792
58793 2007-03-03  Bruno Haible  <bruno@clisp.org>
58794
58795         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58796         m4/relocatable-lib.m4.
58797         (Depends-on): Remove 'relocatable'.
58798         (configure.ac): Add gl_RELOCATABLE_NOP.
58799
58800 2007-03-03  Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/relocatable-prog-wrapper: New file.
58803         * modules/relocatable (Depends-on): Add it. Remove all other
58804         dependencies except progname.
58805         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58806
58807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58808         (gl_FUNC_STRERROR): Nop.
58809         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58810
58811         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58812         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58813
58814         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58815         (gl_FUNC_READLINK): Update.
58816
58817         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58818
58819 2007-03-03  Bruno Haible  <bruno@clisp.org>
58820
58821         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58822         * modules/xreadlink (Depends-on): Add unistd.
58823         * modules/xreadlink-with-size (Depends-on): Likewise.
58824
58825 2007-03-03  Bruno Haible  <bruno@clisp.org>
58826
58827         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58828         extracted from gt_FUNC_SETENV.
58829         (gt_FUNC_SETENV): Remove macro.
58830         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58831         remove gt_FUNC_SETENV.
58832
58833 2007-03-03  Bruno Haible  <bruno@clisp.org>
58834
58835         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58836         ENABLE_RELOCATABLE here.
58837         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58838
58839 2007-03-03  Bruno Haible  <bruno@clisp.org>
58840
58841         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58842         * tests/test-rbtreehash_list.c: Include progname.h.
58843         (main): Call set_program_name.
58844
58845         * modules/rbtree-oset-tests (Depends-on): Add progname.
58846         * tests/test-rbtree_oset.c: Include progname.h.
58847         (main): Call set_program_name.
58848
58849         * modules/rbtree-list-tests (Depends-on): Add progname.
58850         * tests/test-rbtree_list.c: Include progname.h.
58851         (main): Call set_program_name.
58852
58853         * modules/linked-list-tests (Depends-on): Add progname.
58854         * tests/test-linked_list.c: Include progname.h.
58855         (main): Call set_program_name.
58856
58857 2007-03-03  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58860         All uses of __restrict changed to _Restrict_.
58861         * lib/glob_.h (__restrict): Remove macro.
58862
58863 2007-03-02  Bruno Haible  <bruno@clisp.org>
58864
58865         * modules/gettext (configure.ac): Require gettext infrastructure
58866         from version 0.16.1.
58867
58868 2007-03-02  Bruno Haible  <bruno@clisp.org>
58869
58870         * modules/linkedhash-list-tests (Depends-on): Add progname.
58871         * tests/test-linkedhash_list.c: Include progname.h.
58872         (main): Call set_program_name.
58873
58874         * modules/carray-list-tests (Depends-on): Add progname.
58875         * tests/test-carray_list.c: Include progname.h.
58876         (main): Call set_program_name.
58877
58878         * modules/avltreehash-list-tests (Depends-on): Add progname.
58879         * tests/test-avltreehash_list.c: Include progname.h.
58880         (main): Call set_program_name.
58881
58882         * modules/avltree-oset-tests (Depends-on): Add progname.
58883         * tests/test-avltree_oset.c: Include progname.h.
58884         (main): Call set_program_name.
58885
58886         * modules/avltree-list-tests (Depends-on): Add progname.
58887         * tests/test-avltree_list.c: Include progname.h.
58888         (main): Call set_program_name.
58889
58890         * modules/array-oset-tests (Depends-on): Add progname.
58891         * tests/test-array_oset.c: Include progname.h.
58892         (main): Call set_program_name.
58893
58894         * modules/array-list-tests (Depends-on): Add progname.
58895         * tests/test-array_list.c: Include progname.h.
58896         (main): Call set_program_name.
58897
58898         * modules/argp-tests (Depends-on): Add progname.
58899         * tests/test-argp.c: Include argp.h first. Include progname.h.
58900         (main): Call set_program_name.
58901
58902 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         * doc/gnulib-tool.texi (Initial import): Reword description of
58905         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58906         limited effect even if defined after the first system include.
58907
58908 2007-03-01  Bruno Haible  <bruno@clisp.org>
58909
58910         * build-aux/config.libpath: Update to libtool-1.5.22.
58911         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58912
58913 2007-03-01  Bruno Haible  <bruno@clisp.org>
58914
58915         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58916         foo_CFLAGS.
58917         Reported by Ralf Wildenhues.
58918
58919 2007-03-01  Bruno Haible  <bruno@clisp.org>
58920
58921         * build-aux/install-reloc: Remove object files left over by some
58922         compilers.
58923         Reported by Ralf Wildenhues.
58924
58925 2007-03-01  Bruno Haible  <bruno@clisp.org>
58926
58927         * build-aux/install-reloc: Break long lines.
58928
58929 2007-03-01  Bruno Haible  <bruno@clisp.org>
58930
58931         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58932         Reported by Ralf Wildenhues.
58933
58934 2007-03-01  Bruno Haible  <bruno@clisp.org>
58935
58936         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58937         include ordering constraints.
58938
58939 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58943         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58944         as another example.
58945         * lib/time_.h: Fix misspelling.
58946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58947         Require gl_HEADER_TIME_H_DEFAULTS.
58948         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58949         * m4/time_r.m4 (gl_TIME_R): Likewise.
58950         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58951
58952 2007-03-01  Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58955         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58956
58957 2007-03-01  Jim Meyering  <jim@meyering.net>
58958
58959         * modules/xreadlink (Maintainer): Add my name.
58960         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58961
58962 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58963             Bruno Haible  <bruno@clisp.org>
58964
58965         * build-aux/install-reloc: Compile also c-ctype.c.
58966         * build-aux/relocatable.sh.in: New file.
58967         * doc/relocatable.texi: New file.
58968         * doc/relocatable-maint.texi: New file.
58969         * doc/gnulib.texi: Include relocatable-maint.texi.
58970         * lib/progreloc.c: Include unistd.h unconditionally.
58971         * lib/relocwrapper.c: Include unistd.h unconditionally.
58972         Include c-ctype.h.
58973         (add_dotbin): Use c_tolower.
58974         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58975         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58976         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58977         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58978         to m4/relocatable-lib.m4.
58979         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58980         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58981         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58982         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58983         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58984         * modules/relocatable: New file.
58985         * modules/relocatable-lib: New file.
58986         * modules/relocatable-script: New file.
58987
58988 2007-02-28  Bruno Haible  <bruno@clisp.org>
58989
58990         Import --enable-relocatable infrastructure.
58991         * build-aux/config.libpath: New file, from GNU gettext.
58992         * build-aux/install-reloc: New file, from GNU gettext.
58993         * build-aux/reloc-ldflags: New file, from GNU gettext.
58994         * lib/relocatable.h: New file, from GNU gettext.
58995         * lib/relocatable.c: New file, from GNU gettext.
58996         * lib/relocwrapper.c: New file, from GNU gettext.
58997         * m4/relocatable.m4: New file, from GNU gettext.
58998
58999 2007-02-28  Bruno Haible  <bruno@clisp.org>
59000
59001         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59002
59003         * modules/xreadlink: New file, from GNU gettext with modifications.
59004         * lib/xreadlink.c: New file, from GNU gettext.
59005         * lib/xreadlink.h: Add comments.
59006         (xreadlink): New declaration.
59007
59008         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59009         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59010         lib/xreadlink-with-size.c.
59011         (configure.ac): Remove gl_XREADLINK invocation.
59012         (Makefile.am): Augment lib_SOURCES.
59013         * m4/xreadlink.m4: Remove file.
59014         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59015         (xreadlink_with_size): Renamed from xreadink.
59016         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59017         * modules/canonicalize (Depends-on): Replace xreadlink with
59018         xreadlink-with-size.
59019         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59020
59021 2007-02-25  Jim Meyering  <jim@meyering.net>
59022
59023         * build-aux/announce-gen: When complaining about excess arguments,
59024         list them.
59025
59026 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59027
59028         * README: Document signed integer overflow situation more
59029         accurately.
59030
59031 2007-02-25  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59034         'a' or 'A' conversion.
59035
59036 2007-02-25  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/filename: Renamed from modules/pathname.
59039         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59040         lib/concatpath.c with lib/concat-filename.c.
59041         (Makefile.am): Update.
59042         (Include): Replace pathname.h with filename.h.
59043         * lib/filename.h: Renamed from lib/pathname.h.
59044         (concatenated_filename): Renamed from concatenated_pathname.
59045         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59046         (concatenated_filename): Renamed from concatenated_pathname.
59047         * lib/findprog.c: Include filename.h instead of pathname.h.
59048         (find_in_path): Update.
59049         * lib/javacomp.c: Include filename.h instead of pathname.h.
59050         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59051         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59052         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59053         is_oldgcj_14_13_usable, is_javac_usable): Update.
59054         * lib/javaexec.c: Include filename.h instead of pathname.h.
59055         (execute_java_class): Update.
59056         * modules/findprog: Update.
59057         * modules/javacomp: Update.
59058         * modules/javaexec: Update.
59059         * MODULES.html.sh (File system functions): Add 'filename', remove
59060         'pathname'.
59061
59062 2007-02-25  Bruno Haible  <bruno@clisp.org>
59063
59064         * modules/printf-frexpl-tests: New file.
59065         * tests/test-printf-frexpl.c: New file.
59066
59067         * modules/printf-frexpl: New file.
59068         * lib/printf-frexpl.h: New file.
59069         * lib/printf-frexpl.c: New file.
59070         * m4/printf-frexpl.m4: New file.
59071
59072 2007-02-25  Bruno Haible  <bruno@clisp.org>
59073
59074         * modules/printf-frexp-tests: New file.
59075         * tests/test-printf-frexp.c: New file.
59076
59077         * modules/printf-frexp: New file.
59078         * lib/printf-frexp.h: New file.
59079         * lib/printf-frexp.c: New file.
59080         * m4/printf-frexp.m4: New file.
59081
59082 2007-02-25  Bruno Haible  <bruno@clisp.org>
59083
59084         Assume automake >= 1.10 for the tests.
59085         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59086         * modules/arctwo-tests: Likewise.
59087         * modules/argp-tests: Likewise.
59088         * modules/avltree-list-tests: Likewise.
59089         * modules/avltree-oset-tests: Likewise.
59090         * modules/avltreehash-list-tests: Likewise.
59091         * modules/carray-list-tests: Likewise.
59092         * modules/crc-tests: Likewise.
59093         * modules/des-tests: Likewise.
59094         * modules/gc-arcfour-tests: Likewise.
59095         * modules/gc-arctwo-tests: Likewise.
59096         * modules/gc-des-tests: Likewise.
59097         * modules/gc-hmac-md5-tests: Likewise.
59098         * modules/gc-hmac-sha1-tests: Likewise.
59099         * modules/gc-md2-tests: Likewise.
59100         * modules/gc-md4-tests: Likewise.
59101         * modules/gc-md5-tests: Likewise.
59102         * modules/gc-pbkdf2-sha1-tests: Likewise.
59103         * modules/gc-rijndael-tests: Likewise.
59104         * modules/gc-sha1-tests: Likewise.
59105         * modules/gc-tests: Likewise.
59106         * modules/getaddrinfo-tests: Likewise.
59107         * modules/hmac-md5-tests: Likewise.
59108         * modules/hmac-sha1-tests: Likewise.
59109         * modules/linked-list-tests: Likewise.
59110         * modules/linkedhash-list-tests: Likewise.
59111         * modules/lock-tests: Likewise.
59112         * modules/md2-tests: Likewise.
59113         * modules/md4-tests: Likewise.
59114         * modules/md5-tests: Likewise.
59115         * modules/rbtree-list-tests: Likewise.
59116         * modules/rbtree-oset-tests: Likewise.
59117         * modules/rbtreehash-list-tests: Likewise.
59118         * modules/read-file-tests: Likewise.
59119         * modules/rijndael-tests: Likewise.
59120         * modules/stdint-tests: Likewise.
59121         * modules/tls-tests: Likewise.
59122
59123 2007-02-24  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59126         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59127         function; instead check whether isnan with a double argument links.
59128         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59129         function; instead check whether isnan with a 'long double' argument
59130         links.
59131         Reported by Eric Blake <ebb9@byu.net>.
59132
59133 2007-02-24  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59136         defined.
59137         * lib/isnanl.c: Remove all code. Just include isnan.c.
59138         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59139
59140 2007-02-25  Jim Meyering  <jim@meyering.net>
59141
59142         Avoid conflicting types for 'unsetenv' on FreeBSD.
59143         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59144         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59145         in stdlib.h.
59146
59147 2007-02-24  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/isnanl-nolibm-tests: New file.
59150         * tests/test-isnanl.c: New file.
59151
59152         * modules/isnanl-nolibm: New file.
59153         * lib/isnanl.h: New file.
59154         * lib/isnanl.c: New file.
59155         * m4/isnanl.m4: New file.
59156
59157 2007-02-24  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/isnan-nolibm-tests: New file.
59160         * tests/test-isnan.c: New file.
59161
59162         * modules/isnan-nolibm: New file.
59163         * lib/isnan.h: New file.
59164         * lib/isnan.c: New file.
59165         * m4/isnan.m4: New file.
59166
59167 2007-02-24  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59170         assume that an exponent fits in 20 bits.
59171
59172 2007-02-24  Jim Meyering  <jim@meyering.net>
59173
59174         * m4/regex.m4: Update the description of the configure-time option,
59175         --without-included-regex, to state accurately what the defaults are,
59176         and perhaps to give people an idea why using this option is risky.
59177
59178 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59179
59180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59181         loops on small arguments.  This attempts to avoid the problem
59182         Bruno Haible reported for AIX 4.3.2 in
59183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59184
59185 2007-02-23  Bruno Haible  <bruno@clisp.org>
59186
59187         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59188         Needed for help2man.
59189
59190 2007-02-23  Karl Berry  <karl@gnu.org>
59191
59192         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59193         exists, foo.h should be cvs-ignored, not committed.
59194
59195 2007-02-23  Eric Blake  <ebb9@byu.net>
59196
59197         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59198         * lib/stat-time.h (includes): Likewise.
59199         * lib/utimecmp.c (includes): Likewise.
59200         * lib/utimens.h (includes): Likewise.
59201         * lib/getdate.y (includes): Also include "timespec.h" for use
59202         internal to the module.
59203         * modules/utimens (Depends-on): Revert yesterday's patch.
59204         * modules/nanosleep (Depends-on): Add missing dependency.
59205
59206 2007-02-22  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/glob.c: Don't include getlogin_r.h.
59209
59210 2007-02-22  Jim Meyering  <jim@meyering.net>
59211
59212         * modules/utimens (Depends-on): Add timespec, required for
59213         utimens.h's inclusion of timespec.h.
59214
59215 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59218         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59219         Schwab in
59220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59221         I'll try to think of a better way to fix the Solaris problem.
59222
59223         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59224         like glibc; on Solaris 10, it fails with errno == EINVAL.
59225         POSIX says the behavior is unspecified if the first argument is NULL,
59226         so play it safe and never pass NULL to the system getcwd.
59227
59228 2007-02-21  Jim Meyering  <jim@meyering.net>
59229
59230         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59231         of gettimeofday.  It would conflict with the one now always
59232         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59233         an IRIX 6.5 build failure.
59234
59235 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59236
59237         Minor fixups to port to Solaris 10 with Sun C 5.8.
59238         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59239         * modules/getcwd (Depends-on): Add dirfd.
59240         * lib/putenv.c (putenv): #undef it.
59241         (rpl_putenv): New decl.
59242         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59243
59244 2007-02-20  Bruno Haible  <bruno@clisp.org>
59245
59246         * modules/stdio-tests: New file.
59247         * tests/test-stdio.c: New file.
59248
59249         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59250         (Depends-on): Add stdio.
59251         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59252         (Include): Use <stdio.h> instead of vsnprintf.h.
59253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59254         HAVE_DECL_VSNPRINTF.
59255         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59256
59257         * modules/snprintf (Files): Remove lib/snprintf.h.
59258         (Depends-on): Add stdio.
59259         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59260         (Include): Use <stdio.h> instead of snprintf.h.
59261         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59262         HAVE_DECL_SNPRINTF.
59263         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59264         * lib/getaddrinfo.c: Likewise.
59265
59266         * modules/stdio: New file.
59267         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59268         * lib/snprintf.h: Remove file.
59269         * lib/vsnprintf.h: Remove file.
59270         * lib/.cppi-disable: Remove snprintf.h.
59271         * m4/stdio_h.m4: New file.
59272         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59273
59274 2007-02-20  Jim Meyering  <jim@meyering.net>
59275
59276         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59277         used by e.g., mingw.  From Bruno Haible.
59278
59279 2007-02-19  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59282         warnings.
59283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59284
59285 2007-02-19  Bruno Haible  <bruno@clisp.org>
59286
59287         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59288         from mingw users.
59289
59290 2007-02-19  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59293         warnings.
59294         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59295
59296 2007-02-19  Jim Meyering  <jim@meyering.net>
59297
59298         Don't use FD after a successful "fdopendir (fd)".
59299         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59300         Reset it by calling dirfd on the just-obtained DIR*.
59301
59302         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59303         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59304
59305 2007-02-18  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/readlink.c: Include <unistd.h>.
59308         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59309         HAVE_READLINK.
59310         * modules/readlink (Depends-on): Add unistd.
59311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59312         (Include): Add <unistd.h>.
59313
59314         * lib/getlogin_r.h: Remove file.
59315         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59316         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59317         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59318         HAVE_DECL_GETLOGIN_R.
59319         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59321         (Include): Use <unistd.h> instead of getlogin_r.h.
59322
59323         * lib/getcwd.h: Remove file.
59324         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59325         * lib/xgetcwd.c: Likewise.
59326         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59327         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59328         * modules/getcwd (Files): Remove lib/getcwd.h.
59329         (Depends-on): Add unistd.
59330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59331         (Include): Use <unistd.h> instad of getcwd.h.
59332
59333         * lib/ftruncate.c: Include <unistd.h> first.
59334         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59335         Set HAVE_FTRUNCATE.
59336         * modules/ftruncate (Depends-on): Add unistd.
59337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59338
59339         * lib/fchdir.c: Include <unistd.h> first.
59340         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59342         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59343         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59344         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59345
59346         * lib/dup2.c: Include <unistd.h> first.
59347         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59348         HAVE_DUP2.
59349         * modules/dup2 (Depends-on): Add unistd.
59350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59351
59352         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59353         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59354         REPLACE_CHOWN. Don't define chown as a macro here.
59355         * modules/chown (Depends-on): Add unistd.
59356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59357
59358         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59359         Add definition for GL_LINK_WARNING.
59360         (chown, dup2): New declarations.
59361         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59362         link warning.
59363         (ftruncate): New declaration.
59364         (getcwd): New declaration, taken from old getcwd.h.
59365         (getlogin_r): New declaration, taken from old getlogin_r.h.
59366         (readlink): New declaration.
59367         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59368         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59369         (gl_PREREQ_UNISTD): Remove macro.
59370         (gl_UNISTD_MODULE_INDICATOR): New macro.
59371         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59372         many new variables. Don't set UNISTD_H.
59373         * modules/unistd (Description): Change.
59374         (Depends-on): Add link-warning.
59375         (configure.ac): Update.
59376         (Makefile.am): Create unistd.h always. Substitute many new variables
59377         into it.
59378
59379 2007-02-18  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59382         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59383         HAVE_GETSUBOPT.
59384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59385         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59386         * lib/getsubopt.h: Remove file.
59387         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59388         (Depends-on): Add stdlib.
59389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59390         (Includes): Use <stdlib.h> instead of getsubopt.h.
59391         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59392         Set HAVE_GETSUBOPT.
59393         * lib/getsubopt.c: Don't include getsubopt.h.
59394
59395 2007-02-18  Bruno Haible  <bruno@clisp.org>
59396
59397         * modules/fchdir (Depends-on): Add dup2.
59398
59399 2007-02-18  Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/stdlib_.h: Handle glibc's special invocation convention
59402         specially.
59403
59404 2007-02-18  Bruno Haible  <bruno@clisp.org>
59405
59406         * modules/stdlib-tests: New file.
59407         * tests/test-stdlib.c: New file.
59408
59409         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59410         (Depends-on): Add stdlib.
59411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59412         (Includes): Use <stdlib.h> instead of mkstemp.h.
59413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59414         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59415         * lib/mkstemp.c: Don't include mkstemp.h.
59416         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59417         * lib/stdlib--.h: Don't include mkstemp.h.
59418
59419         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59420         (Depends-on): Add stdlib.
59421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59422         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59423         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59424         HAVE_MKDTEMP.
59425         * lib/mkdtemp.c: Don't include mkdtemp.h.
59426         * lib/clean-temp.c: Don't include mkdtemp.h.
59427
59428         * modules/exit (Files): Remove lib/exit.h.
59429         (Depends-on): Add stdlib.
59430         (Makefile.am): Remove lib_SOURCES.
59431         (Include): Use <stdlib.h> instead of exit.h.
59432         * lib/argmatch.c: Don't include exit.h.
59433         * lib/execute.c: Likewise.
59434         * lib/pagealign_alloc.c: Likewise.
59435         * lib/pipe.c: Likewise.
59436         * lib/wait-process.c: Likewise.
59437         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59438         * lib/exitfail.c: Likewise.
59439         * lib/savewd.c: Likewise.
59440         * lib/xsetenv.c: Likewise.
59441
59442         * modules/stdlib: New file.
59443         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59444         and extra comments about mkstemp().
59445         * lib/exit.h: Remove file.
59446         * lib/mkdtemp.h: Remove file.
59447         * lib/mkstemp.h: Remove file.
59448         * m4/stdlib_h.m4: New file.
59449         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59450
59451 2007-02-18  Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/math-tests: New file.
59454         * tests/test-math.c: New file.
59455
59456         * modules/math: New file.
59457         * modules/mathl (Files): Remove lib/mathl.h.
59458         (Depends-on): Add math.
59459         (Makefile.am): Don't mention mathl.h.
59460         (Include): Use <math.h> instead of mathl.h.
59461         * lib/math_.h: New file.
59462         * lib/mathl.h: Remove file.
59463         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59464         mathl.h.
59465         * lib/asinl.c: Likewise.
59466         * lib/atanl.c: Likewise.
59467         * lib/ceill.c: Likewise.
59468         * lib/cosl.c: Likewise.
59469         * lib/expl.c: Likewise.
59470         * lib/floorl.c: Likewise.
59471         * lib/frexpl.c: Likewise.
59472         * lib/ldexpl.c: Likewise.
59473         * lib/logl.c: Likewise.
59474         * lib/sincosl.c: Likewise.
59475         * lib/sinl.c: Likewise.
59476         * lib/sqrtl.c: Likewise.
59477         * lib/tanl.c: Likewise.
59478         * lib/trigl.c: Likewise.
59479         * m4/math_h.m4: New file.
59480         * MODULES.html.sh (Mathematics): Add math.
59481
59482 2007-02-17  Bruno Haible  <bruno@clisp.org>
59483
59484         * modules/wctype-tests: New file.
59485         * tests/test-wctype.c: New file.
59486
59487         * modules/wchar-tests: New file.
59488         * tests/test-wchar.c: New file.
59489
59490         * modules/unistd-tests: New file.
59491         * tests/test-unistd.c: New file.
59492
59493         * modules/time-tests: New file.
59494         * tests/test-time.c: New file.
59495
59496         * modules/sysexits-tests: New file.
59497         * tests/test-sysexits.c: New file.
59498
59499         * modules/sys_time-tests: New file.
59500         * tests/test-sys_time.c: New file.
59501
59502         * modules/sys_stat-tests: New file.
59503         * tests/test-sys_stat.c: New file.
59504
59505         * modules/sys_socket-tests: New file.
59506         * tests/test-sys_socket.c: New file.
59507
59508         * modules/sys_select-tests: New file.
59509         * tests/test-sys_select.c: New file.
59510
59511         * modules/string-tests: New file.
59512         * tests/test-string.c: New file.
59513
59514         * modules/stdbool-tests: New file.
59515         * tests/test-stdbool.c: New file.
59516
59517         * modules/netinet_in-tests: New file.
59518         * tests/test-netinet_in.c: New file.
59519
59520         * modules/inttypes-tests: New file.
59521         * tests/test-inttypes.c: New file.
59522
59523         * modules/fcntl-tests: New file.
59524         * tests/test-fcntl.c: New file.
59525
59526         * modules/byteswap-tests: New file.
59527         * tests/test-byteswap.c: New file.
59528
59529         * modules/arpa_inet-tests: New file.
59530         * tests/test-arpa_inet.c: New file.
59531
59532 2007-02-17  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59535         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59536         if the corresponding module is not enabled. Emit link warnings if
59537         the function is used nevertheless.
59538         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59539         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59540         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59541         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59542         * modules/inttypes (Depends-on): Add link-warning.
59543         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59544         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59545         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59546         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59547         * modules/imaxdiv (configure.ac): Likewise.
59548         * modules/strtoimax (configure.ac): Likewise.
59549         * modules/strtoumax (configure.ac): Likewise.
59550
59551 2007-02-17  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59554         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59555         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59556         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59557
59558 2007-02-17  Bruno Haible  <bruno@clisp.org>
59559
59560         * modules/link-warning: New file.
59561         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59562         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59563         * modules/string (Depends-on): Add link-warning.
59564         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59565         string.h.
59566         * MODULES.html.sh (Support for building libraries and executables): Add
59567         link-warning.
59568
59569 2007-02-17  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59572         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59573         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59574         long lines.
59575
59576 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59577             Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/tmpfile: New file.
59580         * lib/tmpfile.c: New file.
59581         * m4/tmpfile.m4: New file.
59582         * MODULES.html.sh (func_all_modules): New section "Input/output".
59583
59584 2007-02-15  Bruno Haible  <bruno@clisp.org>
59585
59586         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59587         (supports_delete_on_close): New function.
59588         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59589
59590 2007-02-14  Bruno Haible  <bruno@clisp.org>
59591
59592         * modules/mbspcasecmp-tests: New file.
59593         * tests/test-mbspcasecmp.sh: New file.
59594         * tests/test-mbspcasecmp.c: New file.
59595
59596         New module mbspcasecmp.
59597         * modules/mbspcasecmp: New file.
59598         * lib/mbspcasecmp.c: New file.
59599         * lib/string_.h (strncasecmp): Change warning message.
59600         (mbspcasecmp): New declaration.
59601         * m4/mbspcasecmp.m4: New file.
59602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59603         GNULIB_MBSPCASECMP.
59604         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59605         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59606
59607 2007-02-14  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/mbsncasecmp-tests: New file.
59610         * tests/test-mbsncasecmp.sh: New file.
59611         * tests/test-mbsncasecmp.c: New file.
59612
59613         New module mbsncasecmp.
59614         * modules/mbsncasecmp: New file.
59615         * lib/mbsncasecmp.c: New file.
59616         * lib/string_.h (mbsncasecmp): New declaration.
59617         * m4/mbsncasecmp.m4: New file.
59618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59619         GNULIB_MBSNCASECMP.
59620         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59621         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59622
59623 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59626         Verify that it doesn't overlap with our flags.
59627         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59628         do not have the desired effect in multibyte locales; instead, use
59629         mbscasecmp.
59630         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59631         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59632         we don't require GNU fnmatch ourselves (if our users require it, they
59633         should do so explicitly).
59634
59635         Fix regex code so it doesn't rely on strcasecmp.
59636         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59637         Otherwise, include gnulib's langinfo.h.
59638         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59639         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59640         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59641         * modules/regex (FILES): Remove m4/codeset.m4.
59642         (Depends-on): Add localcharset.  Remove strcase.
59643
59644 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59645
59646         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59647         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59648
59649 2007-02-13  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59653
59654 2007-02-12  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59657         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59658         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59659         time warning rather than a link error.
59660
59661 2007-02-12  Bruno Haible  <bruno@clisp.org>
59662
59663         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59666
59667 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59670         args, not 2.
59671
59672 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59673
59674         New module 'time', so that apps can include <time.h> as per
59675         POSIX and GNU instead of separate include files like time_r.h
59676         and timegm.h.  This implementation tries out a simpler approach
59677         for replacing decls in standard include files (as compared to
59678         the string module), somewhat as an experiment.
59679
59680         * config/srclist.txt: Comment out mktime.c for now.
59681         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59682         since it doesn't apply any more.  Use generic wording instead.
59683         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59684         'time'.
59685         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59686         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59687         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59688         Don't include <sys/types.h>; no longer needed since we assume C89.
59689         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59690         * lib/strftime.c: Likewise.
59691         * lib/time_r.c: Likewise.
59692         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59693         * lib/nanosleep.c: Include <time.h> first, to check interface.
59694         * lib/strptime.c: Likewise.
59695         * lib/time_r.c: Likewise.
59696         * lib/timegm.c: Likewise.
59697         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59698         needed.
59699         * lib/timegm.c: Don't include timegm.h; no longer needed.
59700         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59701         time.h now handles any problems in that area.
59702         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59703         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59704         that time.h defines struct timespec.
59705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59706         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59707         handles that.
59708         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59709         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59710         needed.  Set REPLACE_LOCALTIME.
59711         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59712         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59713         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59714         nanosleep; time_h.m4 now does that.  Don't require
59715         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59716         module handles this now.
59717         * modules/getdate (Depends-on): Remove timespec.  Add time.
59718         * modules/nanosleep (Depends-on): Likewise.
59719         * modules/stat-time (Depends-on): Likewise.
59720         * modules/nanosleep (Include): Include time.h, not timespec.h.
59721         * modules/strptime (Files): Remove lib/strptime.h.
59722         (Depends-on): Add extensions, time.
59723         (Include): Include time.h, not strptime.h.
59724         * modules/time_r (Files): Remove lib/time_r.h.
59725         (Depends-on): Add time.
59726         (Include): Include time.h, not time_r.h.
59727         * modules/timegm: Likewise.
59728         * modules/timespec (Description): Now does timespec-related decls
59729         of our own, instead of struct timespec itself.
59730         (Depends-on): Add time; remove extensions.
59731         (Maintainer): Add self.
59732         * modules/utimecmp (Depends-on): Add time; remove timespec.
59733         * modules/utimens (Depends-on): Likewise.
59734         * modules/xnanosleep (Depends-on): Likewise.
59735
59736 2007-02-11  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/c-strstr.c: Include allocsa.h.
59739         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59740         * lib/c-strcasestr.c: Include allocsa.h.
59741         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59742         * lib/strcasestr.c: Include allocsa.h.
59743         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59744         * lib/mbsstr.c: Include allocsa.h.
59745         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59746         allocsa/freesa instead of malloc/free.
59747         * lib/mbscasestr.c: Include allocsa.h.
59748         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59749         allocsa/freesa instead of malloc/free.
59750         * modules/c-strstr (Depends-on): Add allocsa.
59751         * modules/c-strcasestr (Depends-on): Likewise.
59752         * modules/strcasestr (Depends-on): Likewise.
59753         * modules/mbsstr (Depends-on): Likewise.
59754         * modules/mbscasestr (Depends-on): Likewise.
59755
59756 2007-02-11  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59759
59760         * modules/mbsspn-tests: New file.
59761         * tests/test-mbsspn.sh: New file.
59762         * tests/test-mbsspn.c: New file.
59763
59764 2007-02-11  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59767
59768         * modules/mbspbrk-tests: New file.
59769         * tests/test-mbspbrk.sh: New file.
59770         * tests/test-mbspbrk.c: New file.
59771
59772 2007-02-11  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59775         unneeded cast.
59776
59777         * modules/mbscspn-tests: New file.
59778         * tests/test-mbscspn.sh: New file.
59779         * tests/test-mbscspn.c: New file.
59780
59781 2007-02-11  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/mbscasecmp-tests: New file.
59784         * tests/test-mbscasecmp.sh: New file.
59785         * tests/test-mbscasecmp.c: New file.
59786
59787 2007-02-11  Bruno Haible  <bruno@clisp.org>
59788
59789         Ensure O(n) worst-case complexity of mbscasestr.
59790         * lib/mbscasestr.c: Include stdbool.h.
59791         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59792         functions.
59793         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59794         the bookkeeping indicates that it's worth it.
59795         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59796
59797         * modules/mbscasestr-tests: New file.
59798         * tests/test-mbscasestr1.c: New file.
59799         * tests/test-mbscasestr2.sh: New file.
59800         * tests/test-mbscasestr2.c: New file.
59801         * tests/test-mbscasestr3.sh: New file.
59802         * tests/test-mbscasestr3.c: New file.
59803         * tests/test-mbscasestr4.sh: New file.
59804         * tests/test-mbscasestr4.c: New file.
59805         * m4/locale-tr.m4: New file.
59806
59807 2007-02-11  Bruno Haible  <bruno@clisp.org>
59808
59809         Ensure O(n) worst-case complexity of mbsstr.
59810         * lib/mbsstr.c: Include stdbool.h.
59811         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59812         functions.
59813         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59814         bookkeeping indicates that it's worth it.
59815         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59816
59817         * modules/mbsstr-tests: New file.
59818         * tests/test-mbsstr1.c: New file.
59819         * tests/test-mbsstr2.sh: New file.
59820         * tests/test-mbsstr2.c: New file.
59821         * tests/test-mbsstr3.sh: New file.
59822         * tests/test-mbsstr3.c: New file.
59823         * m4/locale-fr.m4: New file.
59824
59825 2007-02-11  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/mbsrchr.c (mbsrchr): Fix bug.
59828
59829         * modules/mbsrchr-tests: New file.
59830         * tests/test-mbsrchr.sh: New file.
59831         * tests/test-mbsrchr.c: New file.
59832
59833 2007-02-11  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/mbschr.c (mbschr): Fix bug.
59836
59837         * modules/mbschr-tests: New file.
59838         * tests/test-mbschr.sh: New file.
59839         * tests/test-mbschr.c: New file.
59840         * m4/locale-zh.m4: New file.
59841
59842 2007-02-11  Bruno Haible  <bruno@clisp.org>
59843
59844         Support for copying multibyte string iterators.
59845         * lib/mbiter.h: Include <string.h>.
59846         (mbiter_multi_copy): New function.
59847         (mbi_copy): New macro.
59848         * lib/mbuiter.h: Include <string.h>.
59849         (mbuiter_multi_copy): New function.
59850         (mbui_copy): New macro.
59851
59852 2007-02-11  Bruno Haible  <bruno@clisp.org>
59853
59854         New module mbslen.
59855         * modules/mbslen: New file.
59856         * lib/mbslen.c: New file.
59857         * lib/string_.h (mbslen): New declaration.
59858         * m4/mbslen.m4: New file.
59859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59860         GNULIB_MBSLEN.
59861         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59862         * MODULES.html.sh (Internationalization functions): Add mbslen.
59863
59864 2007-02-11  Bruno Haible  <bruno@clisp.org>
59865
59866         Ensure O(n) worst-case complexity of strcasestr substitute.
59867         * lib/strcasestr.c: Include stdbool.h.
59868         (knuth_morris_pratt): New function.
59869         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59870         bookkeeping indicates that it's worth it.
59871         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59872
59873         * modules/strcasestr-tests: New file.
59874         * tests/test-strcasestr.c: New file.
59875
59876 2007-02-11  Bruno Haible  <bruno@clisp.org>
59877
59878         Ensure O(n) worst-case complexity of c_strcasestr.
59879         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59880         (knuth_morris_pratt): New function.
59881         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59882         the bookkeeping indicates that it's worth it.
59883         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59884
59885         * modules/c-strcasestr-tests: New file.
59886         * tests/test-c-strcasestr.c: New file.
59887
59888 2007-02-11  Bruno Haible  <bruno@clisp.org>
59889
59890         Ensure O(n) worst-case complexity of c_strstr.
59891         * lib/c-strstr.c: Include stdbool.h, string.h.
59892         (knuth_morris_pratt): New function.
59893         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59894         bookkeeping indicates that it's worth it.
59895         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59896
59897         * lib/c-strstr.c: Complete rewrite for maintainability.
59898
59899         * modules/c-strstr-tests: New file.
59900         * tests/test-c-strstr.c: New file.
59901
59902 2007-02-11  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59905         5.2.1 and earlier, whereby \055 was treated just like the range
59906         delimiter '-'.
59907         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59908
59909 2007-02-08  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/regex (Depends-on): Add stdbool.
59912         Reported by Dalibor Topic <robilad@kaffe.org>.
59913
59914 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59917         Prefer returning from main to exiting from it.
59918         Remove unnecessary parens after sizeof.
59919
59920 2007-02-05  Bruno Haible  <bruno@clisp.org>
59921
59922         New module mbssep.
59923         * modules/mbssep: New file.
59924         * lib/mbssep.c: New file.
59925         * lib/string_.h (strsep): Add a conditional link warning.
59926         (mbssep): New declaration.
59927         * m4/mbssep.m4: New file.
59928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59929         GNULIB_MBSSEP.
59930         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59931         * MODULES.html.sh (Internationalization functions): Add mbssep.
59932
59933 2007-02-05  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59936         Optimize search in case of 1 delimiter.
59937
59938 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59939
59940         * lib/acl.h: Include sys/types.h before sys/acl.h.
59941
59942 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59943
59944         Merge upstream fix for glibc bugzilla #3957:
59945
59946         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59947
59948         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59949         bit for RE_HAT_LISTS_NOT_NEWLINE.
59950         (build_charclass_op): Remove bogus comment.
59951
59952 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59953
59954         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59955
59956 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59959         * lib/memmem.c [!defined _LIBC]: Include config.h.
59960
59961 2007-02-04  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59964         warning message.
59965
59966 2007-02-04  Bruno Haible  <bruno@clisp.org>
59967
59968         New module mbstok_r.
59969         * modules/mbstok_r: New file.
59970         * lib/mbstok_r.c: New file.
59971         * lib/string_.h (strtok_r): Change argument names to match the
59972         comments. Add a conditional link warning.
59973         (mbstok_r): New declaration.
59974         * m4/mbstok_r.m4: New file.
59975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59976         GNULIB_MBSTOK_R.
59977         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59978         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59979
59980 2007-02-04  Bruno Haible  <bruno@clisp.org>
59981
59982         New module mbsspn.
59983         * modules/mbsspn: New file.
59984         * lib/mbsspn.c: New file.
59985         * lib/string_.h (strspn): Add a conditional link warning.
59986         (mbsspn): New declaration.
59987         * m4/mbsspn.m4: New file.
59988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59989         GNULIB_MBSSPN.
59990         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59991         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59992
59993 2007-02-04  Bruno Haible  <bruno@clisp.org>
59994
59995         New module mbspbrk.
59996         * modules/mbspbrk: New file.
59997         * lib/mbspbrk.c: New file.
59998         * lib/string_.h (strpbrk): Add a conditional link warning.
59999         (mbspbrk): New declaration.
60000         * m4/mbspbrk.m4: New file.
60001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60002         GNULIB_MBSPBRK.
60003         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60004         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60005
60006 2007-02-04  Bruno Haible  <bruno@clisp.org>
60007
60008         New module mbscspn.
60009         * modules/mbscspn: New file.
60010         * lib/mbscspn.c: New file.
60011         * lib/string_.h (strcspn): Add a conditional link warning.
60012         (mbscspn): New declaration.
60013         * m4/mbscspn.m4: New file.
60014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60015         GNULIB_MBSCSPN.
60016         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60017         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60018
60019 2007-02-04  Bruno Haible  <bruno@clisp.org>
60020
60021         New module mbscasestr, reduced goal of strcasestr.
60022         * modules/mbscasestr: New file.
60023         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60024         (mbscasestr): Renamed from strcasestr.
60025         * lib/strcasestr.c: Don't include mbuiter.h.
60026         (strcasestr): Remove support for multibyte locales.
60027         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60028         Change the conditional link warning.
60029         (mbscasestr): New declaration.
60030         * m4/mbscasestr.m4: New file.
60031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60032         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60033         REPLACE_STRCASESTR.
60034         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60036         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60037         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60038         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60039         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60040         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60041         (Depends-on): Remove mbuiter.
60042         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60043
60044 2007-02-04  Bruno Haible  <bruno@clisp.org>
60045
60046         Simplify handling of strncasecmp.
60047         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60048         the conditional link warning.
60049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60050         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60051         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60052         * modules/strcase (configure.ac): Don't invoke
60053         gl_STRING_MODULE_INDICATOR.
60054         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60055
60056 2007-02-04  Bruno Haible  <bruno@clisp.org>
60057
60058         New module mbscasecmp, reduced goal of strcasecmp.
60059         * modules/mbscasecmp: New file.
60060         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60061         (mbscasecmp): Renamed from strcasecmp.
60062         * lib/strcasecmp.c: Don't include mbuiter.h.
60063         (strcasecmp): Remove support for multibyte locales.
60064         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60065         Change the conditional link warning.
60066         (mbscasecmp): New declaration.
60067         * m4/mbscasecmp.m4: New file.
60068         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60069         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60070         REPLACE_STRCASECMP.
60071         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60073         GNULIB_MBSCASECMP.
60074         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60075         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60076         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60077         (Depends-on): Remove mbuiter.
60078         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60079
60080 2007-02-04  Bruno Haible  <bruno@clisp.org>
60081
60082         New module mbsstr. Remove module strstr.
60083         * modules/mbsstr: New file.
60084         * modules/strstr: Remove file.
60085         * lib/mbsstr.c: Renamed from lib/strstr.c.
60086         (mbsstr): Renamed from strstr.
60087         * lib/string_.h (strstr): Remove declaration. Change the conditional
60088         link warning.
60089         (mbsstr): New declaration.
60090         * m4/mbsstr.m4: New file.
60091         * m4/strstr.m4: Remove file.
60092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60093         REPLACE_STRSTR.
60094         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60095         Don't initialize GNULIB_STRSTR.
60096         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60097         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60098         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60099         (Support for systems lacking ANSI C 89): Remove strstr.
60100
60101 2007-02-04  Bruno Haible  <bruno@clisp.org>
60102
60103         New module mbsrchr.
60104         * modules/mbsrchr: New file.
60105         * lib/mbsrchr.c: New file.
60106         * lib/string_.h (strrchr): Add a conditional link warning.
60107         (mbsrchr): New declaration.
60108         * m4/mbsrchr.m4: New file.
60109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60110         GNULIB_MBSRCHR.
60111         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60112         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60113
60114 2007-02-04  Bruno Haible  <bruno@clisp.org>
60115
60116         New module mbschr.
60117         * modules/mbschr: New file.
60118         * lib/mbschr.c: New file.
60119         * lib/string_.h (strchr): Add a conditional link warning.
60120         (mbschr): New declaration.
60121         * m4/mbschr.m4: New file.
60122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60123         GNULIB_MBSCHR.
60124         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60125         * MODULES.html.sh (Internationalization functions): Add mbschr.
60126
60127 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60130
60131         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60132
60133 2007-02-04  Bruno Haible  <bruno@clisp.org>
60134
60135         New module description section 'configure.ac-early'.
60136         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60137         (func_get_autoconf_early_snippet): New function.
60138         (func_import, func_create_testdir): Use it. Remove special cases for
60139         modules 'extensions' and 'lock'.
60140         * modules/extensions (configure.ac-early): Require
60141         gl_USE_SYSTEM_EXTENSIONS.
60142         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60143
60144 2007-02-04  Bruno Haible  <bruno@clisp.org>
60145
60146         Make use of gcj-4.3's -fsource and -ftarget option.
60147         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60148         and if so try the options -fsource and -ftarget.
60149         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60150         source_version, ftarget_option, target_version arguments.
60151         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60152         (is_envjavac_oldgcj_14_14_usable): Renamed from
60153         is_envjavac_gcj_14_14_usable.
60154         (is_envjavac_oldgcj_14_13_usable): Renamed from
60155         is_envjavac_gcj_14_13_usable.
60156         (is_gcj_present): Update.
60157         (is_gcj_43, is_gcj43_usable): New functions.
60158         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60159         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60160         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60161         try the options -fsource and -ftarget.
60162
60163 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60166         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60167         larger value.
60168
60169 2007-02-03  Jim Meyering  <jim@meyering.net>
60170
60171         Give tools a better chance to allocate space for very large buffers.
60172         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60173
60174         Make pwd and readlink work also when run with an unreadable parent dir
60175         on systems with openat support.
60176         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60177         provided getcwd function, even when we have openat support.
60178         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60179
60180 2007-02-02  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60183         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60184         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60185         portability problems if one of these functions is only used on specific
60186         platforms.
60187         Reported by Paul Eggert.
60188
60189 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60192         is causing more trouble than it's curing.
60193         * lib/regex_internal.h (__mempcpy): Remove.
60194         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60195         (and make the code a tad smaller to boot).
60196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60197
60198 2007-02-02  Jim Meyering  <jim@meyering.net>
60199
60200         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60201         section, not in the Makefile.am: one.
60202
60203 2007-02-02  Eric Blake  <ebb9@byu.net>
60204
60205         * lib/strchrnul.c: Always include config.h first.
60206
60207         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60208         gnulib strstr is not necessary here.
60209
60210 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60211
60212         * m4/socklen.m4: Fix typo.
60213
60214 2007-02-02  Eric Blake  <ebb9@byu.net>
60215
60216         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60217         * modules/netinet_in (Makefile.am): Likewise.
60218
60219 2007-02-01  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/string_.h (GL_LINK_WARNING): New macro.
60222         (strcasecmp, strstr, strcasestr): If provided by the system,
60223         conditionally define as a macro that leads to a warning instead of to
60224         an error.
60225         (strncasecmp): Conditionally define as a macro that leads to a warning.
60226
60227 2007-02-01  Karl Berry  <karl@gnu.org>
60228
60229         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60230
60231 2007-02-01  Bruno Haible  <bruno@clisp.org>
60232
60233         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60234         renamings.
60235
60236 2007-02-01  Eric Blake  <ebb9@byu.net>
60237
60238         * modules/regex (Depends-on): Revert dependence on mempcpy.
60239         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60240         module's definition of mempcpy.
60241         Reported by Paul Eggert.
60242
60243 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60246         the symbol XYZ before redefining it.  This fixes a problem with
60247         programs that don't use XYZ, when compiled on systems that define
60248         XYZ to something else.
60249
60250 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60253         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60254         writeable to group or other and (2) is intended to have a special
60255         mode bit that is set or cleared.  In such a case, the directory
60256         should be neither group- nor other-writeable until the special
60257         mode bits are right.
60258
60259 2007-01-31  Eric Blake  <ebb9@byu.net>
60260
60261         * modules/mountlist (Depends-on): Add strstr.
60262
60263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60264         bug.
60265         * modules/string (Makefile.am): Remove redundant replacement.
60266         * modules/regex (Depends-on): Add mempcpy.
60267
60268 2007-01-31  Bruno Haible  <bruno@clisp.org>
60269
60270         New module description field 'Link'.
60271         * gnulib-tool (func_usage): Document --extract-link-directive.
60272         (sed_extract_prog): Recognize 'Link' directive.
60273         (func_get_link_directive): New function.
60274         (func_import): Show summary of link directives.
60275         Handle --extract-link-directive option.
60276         * modules/acl (Link): New section.
60277         * modules/clock-time (Link): New section.
60278         * modules/euidaccess (Link): New section.
60279         * modules/gettext (Link): New section.
60280         * modules/iconv (Link): New section.
60281         * modules/lock (Link): New section.
60282         * modules/nanosleep (Link): New section.
60283         * modules/readline (Link): New section.
60284
60285 2007-01-27  Bruno Haible  <bruno@clisp.org>
60286
60287         Enforce the use of gnulib modules for unportable <string.h> functions.
60288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60289         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60290         (gl_HEADER_STRING_H_BODY): Require it.
60291         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60292         the symbol XYZ to one that gives a link error.
60293         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60294         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60295         * modules/mempcpy (configure.ac): Likewise.
60296         * modules/memrchr (configure.ac): Likewise.
60297         * modules/stpcpy (configure.ac): Likewise.
60298         * modules/stpncpy (configure.ac): Likewise.
60299         * modules/strcase (configure.ac): Likewise.
60300         * modules/strcasestr (configure.ac): Likewise.
60301         * modules/strchrnul (configure.ac): Likewise.
60302         * modules/strdup (configure.ac): Likewise.
60303         * modules/strndup (configure.ac): Likewise.
60304         * modules/strnlen (configure.ac): Likewise.
60305         * modules/strpbrk (configure.ac): Likewise.
60306         * modules/strsep (configure.ac): Likewise.
60307         * modules/strstr (configure.ac): Likewise.
60308         * modules/strtok_r (configure.ac): Likewise.
60309
60310 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60311
60312         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60313
60314 2007-01-30  Jim Meyering  <jim@meyering.net>
60315
60316         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60317
60318 2007-01-29  Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60321         * lib/execute.c: Likewise.
60322         * lib/pipe.c: Likewise.
60323         * lib/printf-args.h: Likewise.
60324         * lib/printf-args.c: Likewise.
60325         * lib/printf-parse.c: Likewise.
60326         * lib/vasnprintf.c: Likewise.
60327
60328 2007-01-29  Eric Blake  <ebb9@byu.net>
60329
60330         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60331         declaration.
60332
60333 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * lib/strptime.h (strptime): Use 'restrict' for args where
60336         POSIX requires this.
60337         * lib/strptime.c (strptime): Likewise.
60338         Change license notice from LGPL to GPL, since gnulib-tool will
60339         change this as needed.
60340         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60341         defined.
60342         Include "strptime.h" first, to check interface.
60343         Do not #undef _LIBC and _NL_CURRENT.
60344         Do not include <stdlib.h>; no longer needed.
60345         Include "time_r.h" and declare ptime_locale_status
60346         only if _LIBC is not defined.
60347         (__P): Remove unused macro.
60348         (match_string): Bring back glibc version, but use it only if _LIBC
60349         is defined.
60350         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60351         Remove unnecessary assertion and abort() call.
60352         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60353         * m4/strptime.m4: Fix serial number comment.
60354         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60355         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60356         (Depends-on): Add time_r.
60357
60358 2007-01-29  Bruno Haible  <bruno@clisp.org>
60359
60360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60361         strptime.
60362         * modules/strptime (Depends-on): Add stdbool.
60363         * lib/strptime.h: Include <time.h> always. Add comments.
60364
60365 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60366
60367         * modules/strptime: New file.
60368         * lib/strptime.h: New file.
60369         * lib/strptime.c: New file.
60370         * m4/strptime.m4: New file.
60371
60372 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         * MODULES.html.sh: New module mpsort.
60375         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60376
60377         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60378         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60380         All uses changed.
60381         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60382         All uses changed.
60383         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60384         to _Restrict_.
60385         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60386         the parameter matches the prototype.
60387
60388 2007-01-28  Jim Meyering  <jim@meyering.net>
60389
60390         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60391         sys/time.h here, reverting that part of the previous patch:
60392         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60393
60394 2007-01-28  Bruno Haible  <bruno@clisp.org>
60395
60396         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60397         value of $(SYS_TIME_H).
60398         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60399         remove it conditionally, too. [added by Jim Meyering]
60400         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60402         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60403         GETTIMEOFDAY_REPLACEMENT to 1.
60404
60405 2007-01-28  Bruno Haible  <bruno@clisp.org>
60406
60407         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60408         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60410         Set UNISTD_H instead of UNISTD_H2.
60411         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60412
60413 2007-01-28  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60416         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60417
60418 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60419
60420         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60421         (func_create_testdir): Ensure C locale for `grep' and `tr'
60422         character ranges.
60423         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60424         ACLOCAL_AMFLAGS parsing state machine.
60425
60426 2007-01-27  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/unistr/base: Update.
60429
60430 2007-01-27  Bruno Haible  <bruno@clisp.org>
60431
60432         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60433         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60434         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60435         modules/unistr/u32-mbtouc.
60436         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60437         * lib/unistr.h: Update.
60438         * lib/linebreak.c: Update.
60439         * modules/unistr/u32-mbtouc: Renamed from
60440         modules/unistr/u32-mbtouc-safe.
60441         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60442         * lib/unistr.h: Update.
60443         * lib/unistr/u32-to-u8.c: Update.
60444         * lib/unistr/u32-to-u16.c: Update.
60445
60446 2007-01-27  Bruno Haible  <bruno@clisp.org>
60447
60448         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60449         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60450         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60451         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60452         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60453         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60454         modules/unistr/u16-mbtouc.
60455         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60456         * lib/unistr.h: Update.
60457         * lib/linebreak.c: Update.
60458         * modules/linebreak: Update.
60459         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60460         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60461         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60462         * modules/unistr/u16-mbtouc: Renamed from
60463         modules/unistr/u16-mbtouc-safe.
60464         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60465         * lib/unistr.h: Update.
60466         * lib/unistr/u16-to-u8.c: Update.
60467         * modules/unistr/u16-to-u8: Update.
60468         * lib/unistr/u16-to-u32.c: Update.
60469         * modules/unistr/u16-to-u32: Update.
60470
60471 2007-01-27  Bruno Haible  <bruno@clisp.org>
60472
60473         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60474         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60475         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60476         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60477         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60478         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60479         modules/unistr/u8-mbtouc.
60480         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60481         * lib/unistr.h: Update.
60482         * lib/striconveh.c: Update.
60483         * modules/striconveh: Update.
60484         * lib/linebreak.c: Update.
60485         * modules/linebreak: Update.
60486         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60487         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60488         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60489         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60490         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60491         * lib/unistr.h: Update.
60492         * lib/striconveh.c: Update.
60493         * modules/striconveh: Update.
60494         * lib/unistr/u8-to-u16.c: Update.
60495         * modules/unistr/u8-to-u16: Update.
60496         * lib/unistr/u8-to-u32.c: Update.
60497         * modules/unistr/u8-to-u32: Update.
60498
60499 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60500
60501         Sync from Libtool.
60502         * lib/argz.c: Do not include strings.h nor memory.h, include
60503         string.h unconditionally.  Patch by Simon Josefsson.
60504
60505 2007-01-27  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60508         from gl_HEADER_STRING_H_BODY.
60509         (gl_HEADER_STRING_H_BODY): Require it.
60510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60511         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60513         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60515         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60518         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60520         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60521         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60522         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60524         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60525
60526 2007-01-27  Bruno Haible  <bruno@clisp.org>
60527
60528         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60529         check_PROGRAMS into noinst_PROGRAMS.
60530         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60531         check_PROGRAMS in this case.
60532         (func_import): Set for_test to false.
60533         (func_create_testdir): Set for_test to true.
60534
60535 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60536             Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60539         (Depends-on): Add string.
60540         (Includes): Use <string.h> instead of strcasestr.h.
60541         * modules/string (Makefile.am): Also substitute the value of
60542         REPLACE_STRCASESTR.
60543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60544         assume strcasestr is declared in <string.h> not <strings.h>. Also
60545         set REPLACE_STRCASESTR.
60546         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60547         REPLACE_STRCASESTR.
60548         * lib/strcasestr.h: Remove file.
60549         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60550         * lib/string_.h (strcasestr): New declaration.
60551
60552 2007-01-27  Bruno Haible  <bruno@clisp.org>
60553
60554         * lib/string_.h: Use 'extern'.
60555
60556 2007-01-27  Jim Meyering  <jim@meyering.net>
60557
60558         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60559         of set-but-not-used local, "q".
60560
60561         * lib/mempcpy.c: Include <config.h> before <string.h>.
60562         This fixes a compilation error on HP-UX, due to the system's
60563         "restrict"-using mempcpy prototype.
60564
60565 2007-01-26  Bruno Haible  <bruno@clisp.org>
60566
60567         Small optimization.
60568         * lib/javacomp.c: Include c-strstr.h.
60569          (is_envjavac_gcj): Use c_strstr instead of strstr.
60570         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60571
60572 2007-01-26  Bruno Haible  <bruno@clisp.org>
60573
60574         * MODULES.html.sh (Unicode string functions): Add the new modules.
60575
60576         * modules/uniconv/u32-strconv-to-locale: New file.
60577         * lib/uniconv/u32-strconv-to-locale.c: New file.
60578
60579         * modules/uniconv/u16-strconv-to-locale: New file.
60580         * lib/uniconv/u16-strconv-to-locale.c: New file.
60581
60582         * modules/uniconv/u8-strconv-to-locale: New file.
60583         * lib/uniconv/u8-strconv-to-locale.c: New file.
60584
60585         * modules/uniconv/u32-strconv-from-locale: New file.
60586         * lib/uniconv/u32-strconv-from-locale.c: New file.
60587
60588         * modules/uniconv/u16-strconv-from-locale: New file.
60589         * lib/uniconv/u16-strconv-from-locale.c: New file.
60590
60591         * modules/uniconv/u8-strconv-from-locale: New file.
60592         * lib/uniconv/u8-strconv-from-locale.c: New file.
60593
60594         * modules/uniconv/u32-strconv-to-enc: New file.
60595         * lib/uniconv/u32-strconv-to-enc.c: New file.
60596         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60597         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60598
60599         * modules/uniconv/u16-strconv-to-enc: New file.
60600         * lib/uniconv/u16-strconv-to-enc.c: New file.
60601         * lib/uniconv/u-strconv-to-enc.h: New file.
60602         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60603         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60604
60605         * modules/uniconv/u8-strconv-to-enc: New file.
60606         * lib/uniconv/u8-strconv-to-enc.c: New file.
60607         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60608         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60609
60610         * modules/uniconv/u32-strconv-from-enc: New file.
60611         * lib/uniconv/u32-strconv-from-enc.c: New file.
60612         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60613         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60614
60615         * modules/uniconv/u16-strconv-from-enc: New file.
60616         * lib/uniconv/u16-strconv-from-enc.c: New file.
60617         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60618         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60619
60620         * modules/uniconv/u8-strconv-from-enc: New file.
60621         * lib/uniconv/u8-strconv-from-enc.c: New file.
60622         * lib/uniconv/u-strconv-from-enc.h: New file.
60623         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60624         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60625
60626         * modules/uniconv/u32-conv-from-enc: New file.
60627         * lib/uniconv/u32-conv-from-enc.c: New file.
60628         * modules/uniconv/u32-conv-from-enc-tests: New file.
60629         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60630
60631         * modules/uniconv/u16-conv-from-enc: New file.
60632         * lib/uniconv/u16-conv-from-enc.c: New file.
60633         * lib/uniconv/u-conv-from-enc.h: New file.
60634         * modules/uniconv/u16-conv-from-enc-tests: New file.
60635         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60636
60637         * modules/uniconv/u8-conv-from-enc: New file.
60638         * lib/uniconv/u8-conv-from-enc.c: New file.
60639         * modules/uniconv/u8-conv-from-enc-tests: New file.
60640         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60641
60642         * modules/uniconv/base: New file.
60643         * lib/uniconv.h: New file.
60644
60645 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * doc/gnulib-tool.texi (Initial import): Update to match current
60648         behavior with strdup module.
60649         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60650         * lib/memmem.h: Remove; all uses removed.  This is now done
60651         by <string.h>.
60652         * lib/mempcpy.h: Likewise.
60653         * lib/memrchr.h: Likewise.
60654         * lib/stpcpy.h: Likewise.
60655         * lib/stpncpy.h: Likewise.
60656         * lib/strcase.h: Likewise.
60657         * lib/strchrnul.h: Likewise.
60658         * lib/strdup.h: Likewise.
60659         * lib/strndup.h: Likewise.
60660         * lib/strnlen.h: Likewise.
60661         * lib/strpbrk.h: Likewise.
60662         * lib/strsep.h: Likewise.
60663         * lib/strstr.h: Likewise.
60664         * lib/strtok_r.h: Likewise.
60665         * lib/string_.h: New file.
60666         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60667         Rely on <string.h> instead.
60668         * lib/canon-host.c: Likewise.
60669         * lib/chdir-long.c: Likewise.
60670         * lib/concatpath.c: Likewise.
60671         * lib/exclude.c: Likewise.
60672         * lib/fchdir.c: Likewise.
60673         * lib/getaddrinfo.c: Likewise.
60674         * lib/getcwd.c: Likewise.
60675         * lib/getsubopt.c: Likewise.
60676         * lib/glob.c: Likewise.
60677         * lib/hard-locale.c: Likewise.
60678         * lib/iconvme.c: Likewise.
60679         * lib/javacomp.c: Likewise.
60680         * lib/mempcpy.c: Likewise.
60681         * lib/memrchr.c: Likewise.
60682         * lib/regex_internal.h: Likewise.
60683         * lib/stpncpy.c: Likewise.
60684         * lib/strcasecmp.c: Likewise.
60685         * lib/strchrnul.c: Likewise.
60686         * lib/strdup.c: Likewise.
60687         * lib/striconv.c: Likewise.
60688         * lib/striconveh.c: Likewise.
60689         * lib/striconveha.c: Likewise.
60690         * lib/strncasecmp.c: Likewise.
60691         * lib/strndup.c: Likewise.
60692         * lib/strnlen.c: Likewise.
60693         * lib/strsep.c: Likewise.
60694         * lib/strstr.c: Likewise.
60695         * lib/strtok_r.c: Likewise.
60696         * lib/userspec.c: Likewise.
60697         * lib/w32spawn.h: Likewise.
60698         * lib/xstrndup.c: Likewise.
60699         * lib/mountlist.c (strstr): Remove decl.
60700         * m4/string_h.m4: New file.
60701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60702         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60704         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60705         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60706         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60707         Set REPLACE_STRCASECMP if necessary.
60708         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60709         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60710         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60712         HAVE_DECL_STRDUP if necessary.
60713         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60714         since gl_FUNC_STRNDUP does that now.
60715         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60716         Check for decl here...
60717         (gl_PREREQ_STRNLEN): ... not here.
60718         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60719         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60720         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60722         necessary.
60723         * modules/string: New file.
60724         * modules/memmem (Files): Remove special-purpose include file.
60725         (Depends-on): Add string.
60726         (Include): Include <string.h>, not the removed file.
60727         * modules/mempcpy: Likewise.
60728         * modules/memrchr: Likewise.
60729         * modules/stpcpy: Likewise.
60730         * modules/stpncpy: Likewise.
60731         * modules/strcase: Likewise.
60732         * modules/strchrnul: Likewise.
60733         * modules/strdup: Likewise.
60734         * modules/strndup: Likewise.
60735         * modules/strnlen: Likewise.
60736         * modules/strpbrk: Likewise.
60737         * modules/strsep: Likewise.
60738         * modules/strstr: Likewise.
60739         * modules/strtok_r: Likewise.
60740         * tests/test-dirname.c: Don't include "strdup.h", since
60741         <string.h> now suffices.
60742         * tests/test-memmem.c: Don't include "memmem.h", since
60743         <string.h> now suffices.
60744
60745 2007-01-25  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60748         *resultp is 0.
60749
60750         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60751         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60752         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60753         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60754
60755         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60756         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60757         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60758         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60759         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60760         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60761
60762 2007-01-24  Bruno Haible  <bruno@clisp.org>
60763
60764         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60766         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60767         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60768         gl_FUNC_FTS_CORE.
60769         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60770         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60771         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60772         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60773         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60774         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60775         gl_FUNC_FCHOWNAT.
60776         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60777         gl_FUNC_STRFTIME.
60778         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60779         Reported by Ralf Wildenhues.
60780
60781 2007-01-24  Bruno Haible  <bruno@clisp.org>
60782
60783         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60784         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60785         gl_GETADDRINFO.
60786         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60787         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60788         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60789
60790 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60793         Don't use 'exit'; just return from 'main'.
60794         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60795
60796         * lib/fnmatch_.h: Readjust white space and comments to match
60797         glibc, to avoid spurious diffs.
60798
60799 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60800
60801         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60802         2004-12-01 change by Jakub Jelinek, since this code won't compile
60803         if !LIBC.  Problem reported by Bob Proulx.
60804
60805 2007-01-23  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/striconveh.c: Include c-strcaseeq.h.
60808         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60809         * modules/striconveh (Depends-on): Add c-strcaseeq.
60810
60811 2007-01-23  Bruno Haible  <bruno@clisp.org>
60812
60813         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60814
60815         * modules/c-strcaseeq: New file.
60816         * lib/c-strcaseeq.h: New file.
60817
60818         * modules/streq: New file.
60819         * lib/streq.h: New file.
60820
60821 2007-01-23  Bruno Haible  <bruno@clisp.org>
60822
60823         * modules/striconveha-tests: New file.
60824         * tests/test-striconveha.c: New file.
60825
60826         * lib/striconveha.h: Include <stdbool.h>.
60827         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60828         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60829         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60830         (mem_iconveha): New function.
60831         (str_iconveha_notranslit): Renamed from str_iconveha.
60832         (str_iconveha): New function.
60833         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60834         c-strcase.
60835
60836 2007-01-23  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60839         encodings without forgiving before trying any encoding with handler.
60840         (str_iconveha): Try all encodings without forgiving before trying any
60841         encoding with handler.
60842
60843 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60844
60845         Import the following changes from libc.
60846
60847         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60848
60849         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60850
60851         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60852
60853         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60854         normal_bracket label.
60855
60856         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60857
60858         [BZ #361]
60859         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60860         to normal_bracket after fetching the next character.
60861
60862 2007-01-22  Bruno Haible  <bruno@clisp.org>
60863
60864         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60865         argument.
60866         * lib/striconveh.c (iconv_carefully_1): New function.
60867         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60868         argument.
60869         (str_cd_iconveh): Update.
60870         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60871         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60872         * tests/test-striconveh.c (MAGIC): New macro.
60873         (new_offsets): New function.
60874         (main): Test call with and without offsets.
60875
60876 2007-01-22  Bruno Haible  <bruno@clisp.org>
60877
60878         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60879         * modules/sys_select (Makefile.am): Likewise.
60880         * modules/sys_socket (Makefile.am): Likewise.
60881         * modules/sys_time (Makefile.am): Likewise.
60882
60883 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         * modules/gettimeofday (License): Change from GPL to LGPL, since
60886         gettimeofday is a library function.
60887
60888 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60889
60890         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60891
60892 2007-01-21  Bruno Haible  <bruno@clisp.org>
60893
60894         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60895
60896 2007-01-21  Bruno Haible  <bruno@clisp.org>
60897
60898         * modules/striconveha: New file.
60899         * lib/striconveha.h: New file.
60900         * lib/striconveha.c: New file.
60901         * MODULES.html.sh (Internationalization functions): Add striconveha.
60902         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60903         string.
60904         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60905
60906 2007-01-21  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60909         * lib/striconveh.c (str_iconveh): Likewise.
60910
60911 2007-01-21  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/striconveh.h (mem_iconveh): New declaration.
60914         * lib/striconveh.c (mem_iconveh): New function.
60915         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60916
60917 2007-01-21  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60920
60921         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60922         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60923         original result buffer.
60924         (str_cd_iconveh): Update.
60925         * tests/test-striconveh.c (main): Update.
60926
60927         * lib/striconv.h (mem_cd_iconv): Change specification.
60928         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60929         result buffer.
60930         (str_cd_iconv): Update.
60931         * tests/test-striconv.c (main): Update.
60932
60933 2007-01-21  Bruno Haible  <bruno@clisp.org>
60934
60935         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60936
60937 2007-01-20  Jim Meyering  <jim@meyering.net>
60938
60939         * lib/userspec.c (parse_with_separator): If a user or group string
60940         starts with "+", skip the corresponding name-to-ID look-up, since
60941         such a look-up must fail: user and group names may not include "+".
60942
60943 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60946         since we now assume the sys_time module.
60947         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60948         check for sys/time.h; no longer needed.
60949         * modules/poll (Depends-on): Depend on sys_time.
60950
60951 2007-01-18  Bruno Haible  <bruno@clisp.org>
60952
60953         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60954         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60955
60956         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60957         gettimeofday.
60958
60959         * tests/test-gettimeofday.c: Include <time.h>.
60960         (dummy): Remove variable.
60961
60962         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60963         gl_HEADER_SYS_TIME_H.
60964         (gl_HEADER_SYS_TIME_H): New macro.
60965
60966         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60967         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60969         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60970         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60971         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60972         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60973         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60974         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60975         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60976         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60977
60978         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60979         last change; it caused a compilation error when cross-compiling to
60980         Cygwin.
60981
60982 2007-01-18  Jim Meyering  <jim@meyering.net>
60983
60984         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60985         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60986         than the race-prone "test -d sys || mkdir sys".
60987         (configure.ac): Use AC_PROG_MKDIR_P.
60988         * modules/sys_select: Likewise.
60989         * modules/sys_socket: Likewise.
60990         * modules/sys_time: Likewise.
60991
60992 2007-01-18  Eric Blake  <ebb9@byu.net>
60993
60994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60995         replace gettimeofday.
60996         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60997         name, to avoid infinite recursion.
60998
60999 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61002         module sys_time.
61003         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61004         assume timespec.h defines struct timeval.
61005         * lib/settime.c: Likewise.
61006         * lib/utimens.c: Likewise.
61007         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61008         since we now assume the gettimeofday module.
61009         * lib/tempname.c (__gen_tempname): Likewise.
61010         * lib/gettimeofday.h: Remove.
61011         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61012         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61013         Include <time.h>, for 'time()'.
61014         (localtime_buffer_addr): Also use this workaround if
61015         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61016         to simplify the uses.  All uses changed.
61017         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61018         that #undef is inside {}, and 'const' follows type name consistently.
61019         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61020         (gettimeofday): Do not use the maximum possible value for
61021         tv->tv_usec, since that might break usages other than ls.c.
61022         Instead, we'll leave ls.c alone.  This undoes today's patch
61023         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61024         we've never observed the problem but might as well keep the
61025         canary.
61026         * lib/nanosleep.c: Include timespec.h first, for interface check.
61027         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61028         now assume the sys_time module.
61029         * lib/tempname.c: Likewise.
61030         * lib/timespec.h: Likewise.
61031         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61032         needed.
61033         * lib/strftime.c: Likewise.
61034         * lib/timespec.h: Likewise.
61035         * lib/posixtm.c: Include posixtm.h first, for interface check.
61036         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61037         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61038         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61039         * lib/sys_time_.h: New file.
61040         * lib/timespec.h (struct timespec): Use long int, not long.
61041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61042         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61043         Remove obsolescent call to AC_HEADER_TIME.
61044         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61046         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61047         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61048         Likewise.
61049         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61050         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61052         into the sys_time module.  Check for gettimeofday just once.
61053         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61054         for gettimeofday signature to just check the signature.  Merely
61055         compile it, since linking doesn't test signature.  Improve test for
61056         whether gettimeofday.o is actually needed.
61057         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61058         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61059         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61060         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61061         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61062         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61063         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61064         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61065         than worrying about sys/time.h.
61066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61067         Don't bother worrying about TIME_WITH_SYS_TIME.
61068         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61069         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61070         * m4/sys_time_h.m4: New file.
61071         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61072         Don't include sys/time.h.  Return from main rather than exiting.
61073         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61074         all uses changed.
61075         * modules/gethrxtime (Depends-on): Add sys_time.
61076         * modules/gettime (Depends-on): Likewise.
61077         * modules/gettimeofday (Depends-on): Likewise.
61078         * modules/nanosleep (Depends-on): Likewise.
61079         * modules/settime (Depends-on): Likewise.
61080         * modules/tempname (Depends-on): Likewise.
61081         * modules/utimens (Depends-on): Likewise.
61082         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61083         (Include): Change back to <sys/time.h>.
61084         (Maintainer): Add self.
61085         * modules/sys_time: New file.
61086         * modules/tempname (Depends-on): Add gettimeofday.
61087         * tests/test-gettimeofday.c: Include <sys/time.h>
61088         rather than gettimeofday.h.
61089
61090 2007-01-17  Bruno Haible  <bruno@clisp.org>
61091
61092         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61093         the license default to GPL.
61094         (func_create_testdir): Don't complain if a module is LGPL and its
61095         tests module depends on GPLed modules.
61096
61097 2007-01-17  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/gettimeofday.c (gettimeofday): Add code for the case
61100         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61101         maximum possible value for tv->tv_usec, rather than the minimum one.
61102
61103 2005-10-08  Martin Lambers  <marlam@marlam.de>
61104 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61105 2007-01-16  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61108         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61109         gl_FUNC_GETTIMEOFDAY.
61110         (Include): Add gettimeofday.h.
61111         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61112         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61113         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61114         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61115         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61116         * lib/gettimeofday.h: New file.
61117         * lib/gettimeofday.c: Include <sys/timeb.h>.
61118         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61119         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61120         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61121         fall back on time().
61122
61123         * tests/test-gettimeofday.c: New file.
61124         * modules/gettimeofday-tests: New file.
61125
61126 2007-01-16  Eric Blake  <ebb9@byu.net>
61127
61128         * modules/fnmatch (Depends-on): Depend on wchar.
61129         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61130         * m4/fnmatch.m4: Likewise.
61131         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61132         * m4/mbchar.m4: Likewise.
61133         * modules/mbswidth (Depends-on): Depend on wchar.
61134         * lib/mbswidth.c: Assume <wchar.h>.
61135         * m4/mbswidth.m4: Likewise.
61136         * modules/quotearg (Depends-on): Depend on wchar.
61137         * lib/quotearg.c: Assume <wchar.h>.
61138         * m4/quotearg.m4: Likewise.
61139         * modules/regex (Depends-on): Depend on wchar.
61140         * lib/regex_internal.h: Assume <wchar.h>.
61141         * m4/regex.m4: Likewise.
61142         * modules/stdint (Depends-on): Depend on wchar.
61143         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61144         * m4/stdint.m4: Likewise.
61145         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61146         * modules/strftime (Depends-on): Depend on wchar.
61147         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61148         * modules/strtol (Depends-on): Depend on wchar.
61149         * lib/strtol.c: Assume <wchar.h>.
61150         * modules/wcwidth (Depends-on): Depend on wchar.
61151         * lib/wcwidth.h: Assume <wchar.h>.
61152         * m4/wcwidth.m4: Likewise.
61153
61154 2007-01-16  Bruno Haible  <bruno@clisp.org>
61155
61156         * modules/csharpexec-script: New, created from...
61157         * modules/csharpexec: ... this.
61158
61159 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61160
61161         * modules/javaexec-script: New, created from...
61162         * modules/javaexec: ... this.
61163
61164 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61165
61166         * modules/poll (Dependencies): Add sys_select.
61167
61168 2007-01-15  Jim Meyering  <jim@meyering.net>
61169
61170         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61171         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61172         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61173         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61174
61175 2007-01-15  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/striconveh: New file.
61178         * lib/striconveh.h: New file.
61179         * lib/striconveh.c: New file.
61180         * MODULES.html.sh (Internationalization functions): Add striconveh.
61181
61182         * modules/striconveh-tests: New file.
61183         * tests/test-striconveh.c: New file.
61184
61185 2007-01-15  Bruno Haible  <bruno@clisp.org>
61186
61187         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61188         not from GNU libiconv or GNU libc.
61189
61190 2007-01-15  Bruno Haible  <bruno@clisp.org>
61191
61192         * doc/gnulib-intro.texi (Copyright): Explain the different license
61193         terms for module descriptions, autoconf macros, tests, documentation.
61194
61195 2007-01-14  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/striconv-tests: New file.
61198         * tests/test-striconv.c: New file.
61199
61200 2007-01-14  Bruno Haible  <bruno@clisp.org>
61201
61202         * modules/iconv-tests: New file.
61203         * tests/test-iconv.c: New file.
61204
61205 2007-01-14  Bruno Haible  <bruno@clisp.org>
61206
61207         * gnulib-tool (func_get_license): For test modules, use the license of
61208         the main module.
61209
61210 2007-01-14  Bruno Haible  <bruno@clisp.org>
61211
61212         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61213         if iconv is found to exist.
61214
61215 2007-01-14  Bruno Haible  <bruno@clisp.org>
61216
61217         * modules/c-ctype-tests: New file.
61218         * tests/test-c-ctype.c: New file.
61219
61220 2007-01-14  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/binary-io-tests: New file.
61223         * tests/test-binary-io.sh: New file.
61224         * tests/test-binary-io.c: New file.
61225
61226 2007-01-14  Bruno Haible  <bruno@clisp.org>
61227
61228         * modules/array-oset-tests: New file.
61229         * tests/test-array_oset.c: New file.
61230
61231 2007-01-14  Bruno Haible  <bruno@clisp.org>
61232
61233         * modules/array-list-tests: New file.
61234         * tests/test-array_list.c: New file.
61235
61236 2007-01-14  Bruno Haible  <bruno@clisp.org>
61237
61238         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61239         and make.
61240         Reported by Simon Josefsson in
61241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61242
61243 2007-01-14  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/allocsa-tests: New file.
61246         * tests/test-allocsa.c: New file.
61247
61248 2007-01-14  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/fchdir (Depends-on): Add absolute-header.
61251         * modules/unistd (Depends-on): Likewise.
61252
61253 2006-12-30  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/fchdir: New file.
61256         * modules/unistd (Files): Add lib/unistd_.h.
61257         (Makefile.am): Generate unistd.h from unistd_.h.
61258         * lib/fchdir.c: New file.
61259         * lib/dirent_.h: New file.
61260         * lib/unistd_.h: New file.
61261         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61262         * m4/fchdir.m4: New file.
61263         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61264         (gl_HEADER_UNISTD): Invoke it.
61265         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61266         function.
61267         * lib/backupfile.c (opendir, closedir): Undefine.
61268         * lib/chown.c (open, close): Undefine.
61269         * lib/clean-temp.c (open, close): Undefine.
61270         * lib/copy-file.c (open, close): Undefine.
61271         * lib/execute.c (open, close): Undefine.
61272         * lib/fsusage.c (open, close): Undefine.
61273         * lib/gc-gnulib.c (open, close): Undefine.
61274         * lib/getcwd.c (opendir, closedir): Undefine.
61275         * lib/glob.c (opendir, closedir): Undefine.
61276         * lib/javacomp.c (open, close): Undefine.
61277         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61278         * lib/openat-proc.c (open, close): Undefine.
61279         * lib/pagealign_alloc.c (open, close): Undefine.
61280         * lib/pipe.c (open, close): Undefine.
61281         * lib/progreloc.c (open, close): Undefine.
61282         * lib/savedir.c (opendir, closedir): Undefine.
61283         * lib/utime.c (open, close): Undefine.
61284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61285
61286 2007-01-10  Bruno Haible  <bruno@clisp.org>
61287
61288         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61289
61290 2007-01-12  Eric Blake  <ebb9@byu.net>
61291
61292         Provide a robust <wchar.h>.  Further simplifications are now
61293         possible in other modules, but not included here.
61294         * modules/wchar: New module.
61295         * m4/wchar.m4: New file.
61296         * lib/wchar_.h: Likewise.
61297         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61298         of the new module.
61299         * MODULES.html.sh (Extended multibyte and wide character utilities):
61300         New section.
61301
61302 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61305         to a reasonable default for memory allocation.
61306         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61307         file system that reports garbage st_size values for symlinks.
61308         Problem reported by Liyang Hu.
61309
61310 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61311
61312         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61313         Emacs .#* auto-save files).
61314
61315 2007-01-11  Bruno Haible  <bruno@clisp.org>
61316
61317         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61318         directory.
61319
61320 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61321
61322         Use @...@ consistently in lib/wctype_.h.
61323         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61324         on it being set to 1 or 0.
61325         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61326         go back to AC_SUBSTing it.
61327         * modules/wctype (Makefile.am): Undo previous change.
61328
61329 2007-01-10  Eric Blake  <ebb9@byu.net>
61330
61331         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61332         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61333         * modules/wctype (Makefile.am): Likewise.
61334         Reported by Chris McGuire.
61335
61336 2007-01-10  Jim Meyering  <jim@meyering.net>
61337
61338         fts.c: a small readability/maintainability improvement
61339         * lib/fts.c (fts_read): Make this code slightly more readable and
61340         maintainable by hoisting the "sp->fts_cur = p" assignments to
61341         immediately follow the statements that set P.  Derived from
61342         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61343
61344 2007-01-10  Eric Blake  <ebb9@byu.net>
61345
61346         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61347         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61349         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61350         Reported by Chris McGuire.
61351
61352 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61353
61354         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61355         in sed script.
61356
61357 2007-01-09  Bruno Haible  <bruno@clisp.org>
61358
61359         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61360         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61361         variables.
61362         (func_module): Use them.
61363
61364 2007-01-09  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/unistr/base: New file.
61367         * lib/unistr.h: New file.
61368
61369         * modules/unistr/u8-to-u16: New file.
61370         * lib/unistr/u8-to-u16.c: New file.
61371
61372         * modules/unistr/u8-to-u32: New file.
61373         * lib/unistr/u8-to-u32.c: New file.
61374
61375         * modules/unistr/u16-to-u8: New file.
61376         * lib/unistr/u16-to-u8.c: New file.
61377
61378         * modules/unistr/u16-to-u32: New file.
61379         * lib/unistr/u16-to-u32.c: New file.
61380
61381         * modules/unistr/u32-to-u8: New file.
61382         * lib/unistr/u32-to-u8.c: New file.
61383
61384         * modules/unistr/u32-to-u16: New file.
61385         * lib/unistr/u32-to-u16.c: New file.
61386
61387         * modules/unistr/u8-check: New file.
61388         * modules/unistr/u16-check: New file.
61389         * modules/unistr/u32-check: New file.
61390         * lib/unistr/u8-check.c: New file.
61391         * lib/unistr/u16-check.c: New file.
61392         * lib/unistr/u32-check.c: New file.
61393
61394         * modules/unistr/u8-chr: New file.
61395         * modules/unistr/u16-chr: New file.
61396         * modules/unistr/u32-chr: New file.
61397         * lib/unistr/u8-chr.c: New file.
61398         * lib/unistr/u16-chr.c: New file.
61399         * lib/unistr/u32-chr.c: New file.
61400
61401         * modules/unistr/u8-cmp: New file.
61402         * modules/unistr/u16-cmp: New file.
61403         * modules/unistr/u32-cmp: New file.
61404         * lib/unistr/u8-cmp.c: New file.
61405         * lib/unistr/u16-cmp.c: New file.
61406         * lib/unistr/u32-cmp.c: New file.
61407
61408         * modules/unistr/u8-cpy: New file.
61409         * modules/unistr/u16-cpy: New file.
61410         * modules/unistr/u32-cpy: New file.
61411         * lib/unistr/u8-cpy.c: New file.
61412         * lib/unistr/u16-cpy.c: New file.
61413         * lib/unistr/u32-cpy.c: New file.
61414         * lib/unistr/u-cpy.h: New file.
61415
61416         * modules/unistr/u8-cpy-alloc: New file.
61417         * modules/unistr/u16-cpy-alloc: New file.
61418         * modules/unistr/u32-cpy-alloc: New file.
61419         * lib/unistr/u8-cpy-alloc.c: New file.
61420         * lib/unistr/u16-cpy-alloc.c: New file.
61421         * lib/unistr/u32-cpy-alloc.c: New file.
61422         * lib/unistr/u-cpy-alloc.h: New file.
61423
61424         * modules/unistr/u8-endswith: New file.
61425         * modules/unistr/u16-endswith: New file.
61426         * modules/unistr/u32-endswith: New file.
61427         * lib/unistr/u8-endswith.c: New file.
61428         * lib/unistr/u16-endswith.c: New file.
61429         * lib/unistr/u32-endswith.c: New file.
61430         * lib/unistr/u-endswith.h: New file.
61431
61432         * modules/unistr/u8-mblen: New file.
61433         * modules/unistr/u16-mblen: New file.
61434         * modules/unistr/u32-mblen: New file.
61435         * lib/unistr/u8-mblen.c: New file.
61436         * lib/unistr/u16-mblen.c: New file.
61437         * lib/unistr/u32-mblen.c: New file.
61438
61439         * modules/unistr/u8-mbtouc: New file.
61440         * modules/unistr/u16-mbtouc: New file.
61441         * modules/unistr/u32-mbtouc: New file.
61442         * lib/unistr/u8-mbtouc.c: New file.
61443         * lib/unistr/u16-mbtouc.c: New file.
61444         * lib/unistr/u32-mbtouc.c: New file.
61445
61446         * modules/unistr/u8-mbtouc-safe: New file.
61447         * modules/unistr/u16-mbtouc-safe: New file.
61448         * modules/unistr/u32-mbtouc-safe: New file.
61449         * lib/unistr/u8-mbtouc-safe.c: New file.
61450         * lib/unistr/u16-mbtouc-safe.c: New file.
61451         * lib/unistr/u32-mbtouc-safe.c: New file.
61452
61453         * modules/unistr/u8-move: New file.
61454         * modules/unistr/u16-move: New file.
61455         * modules/unistr/u32-move: New file.
61456         * lib/unistr/u8-move.c: New file.
61457         * lib/unistr/u16-move.c: New file.
61458         * lib/unistr/u32-move.c: New file.
61459         * lib/unistr/u-move.h: New file.
61460
61461         * modules/unistr/u8-next: New file.
61462         * modules/unistr/u16-next: New file.
61463         * modules/unistr/u32-next: New file.
61464         * lib/unistr/u8-next.c: New file.
61465         * lib/unistr/u16-next.c: New file.
61466         * lib/unistr/u32-next.c: New file.
61467
61468         * modules/unistr/u8-prev: New file.
61469         * modules/unistr/u16-prev: New file.
61470         * modules/unistr/u32-prev: New file.
61471         * lib/unistr/u8-prev.c: New file.
61472         * lib/unistr/u16-prev.c: New file.
61473         * lib/unistr/u32-prev.c: New file.
61474
61475         * modules/unistr/u8-set: New file.
61476         * modules/unistr/u16-set: New file.
61477         * modules/unistr/u32-set: New file.
61478         * lib/unistr/u8-set.c: New file.
61479         * lib/unistr/u16-set.c: New file.
61480         * lib/unistr/u32-set.c: New file.
61481         * lib/unistr/u-set.h: New file.
61482
61483         * modules/unistr/u8-startswith: New file.
61484         * modules/unistr/u16-startswith: New file.
61485         * modules/unistr/u32-startswith: New file.
61486         * lib/unistr/u8-startswith.c: New file.
61487         * lib/unistr/u16-startswith.c: New file.
61488         * lib/unistr/u32-startswith.c: New file.
61489         * lib/unistr/u-startswith.h: New file.
61490
61491         * modules/unistr/u8-stpcpy: New file.
61492         * modules/unistr/u16-stpcpy: New file.
61493         * modules/unistr/u32-stpcpy: New file.
61494         * lib/unistr/u8-stpcpy.c: New file.
61495         * lib/unistr/u16-stpcpy.c: New file.
61496         * lib/unistr/u32-stpcpy.c: New file.
61497         * lib/unistr/u-stpcpy.h: New file.
61498
61499         * modules/unistr/u8-stpncpy: New file.
61500         * modules/unistr/u16-stpncpy: New file.
61501         * modules/unistr/u32-stpncpy: New file.
61502         * lib/unistr/u8-stpncpy.c: New file.
61503         * lib/unistr/u16-stpncpy.c: New file.
61504         * lib/unistr/u32-stpncpy.c: New file.
61505         * lib/unistr/u-stpncpy.h: New file.
61506
61507         * modules/unistr/u8-strcat: New file.
61508         * modules/unistr/u16-strcat: New file.
61509         * modules/unistr/u32-strcat: New file.
61510         * lib/unistr/u8-strcat.c: New file.
61511         * lib/unistr/u16-strcat.c: New file.
61512         * lib/unistr/u32-strcat.c: New file.
61513         * lib/unistr/u-strcat.h: New file.
61514
61515         * modules/unistr/u8-strchr: New file.
61516         * modules/unistr/u16-strchr: New file.
61517         * modules/unistr/u32-strchr: New file.
61518         * lib/unistr/u8-strchr.c: New file.
61519         * lib/unistr/u16-strchr.c: New file.
61520         * lib/unistr/u32-strchr.c: New file.
61521
61522         * modules/unistr/u8-strcmp: New file.
61523         * modules/unistr/u16-strcmp: New file.
61524         * modules/unistr/u32-strcmp: New file.
61525         * lib/unistr/u8-strcmp.c: New file.
61526         * lib/unistr/u16-strcmp.c: New file.
61527         * lib/unistr/u32-strcmp.c: New file.
61528
61529         * modules/unistr/u8-strcpy: New file.
61530         * modules/unistr/u16-strcpy: New file.
61531         * modules/unistr/u32-strcpy: New file.
61532         * lib/unistr/u8-strcpy.c: New file.
61533         * lib/unistr/u16-strcpy.c: New file.
61534         * lib/unistr/u32-strcpy.c: New file.
61535         * lib/unistr/u-strcpy.h: New file.
61536
61537         * modules/unistr/u8-strcspn: New file.
61538         * modules/unistr/u16-strcspn: New file.
61539         * modules/unistr/u32-strcspn: New file.
61540         * lib/unistr/u8-strcspn.c: New file.
61541         * lib/unistr/u16-strcspn.c: New file.
61542         * lib/unistr/u32-strcspn.c: New file.
61543         * lib/unistr/u-strcspn.h: New file.
61544
61545         * modules/unistr/u8-strdup: New file.
61546         * modules/unistr/u16-strdup: New file.
61547         * modules/unistr/u32-strdup: New file.
61548         * lib/unistr/u8-strdup.c: New file.
61549         * lib/unistr/u16-strdup.c: New file.
61550         * lib/unistr/u32-strdup.c: New file.
61551         * lib/unistr/u-strdup.h: New file.
61552
61553         * modules/unistr/u8-strlen: New file.
61554         * modules/unistr/u16-strlen: New file.
61555         * modules/unistr/u32-strlen: New file.
61556         * lib/unistr/u8-strlen.c: New file.
61557         * lib/unistr/u16-strlen.c: New file.
61558         * lib/unistr/u32-strlen.c: New file.
61559         * lib/unistr/u-strlen.h: New file.
61560
61561         * modules/unistr/u8-strmblen: New file.
61562         * modules/unistr/u16-strmblen: New file.
61563         * modules/unistr/u32-strmblen: New file.
61564         * lib/unistr/u8-strmblen.c: New file.
61565         * lib/unistr/u16-strmblen.c: New file.
61566         * lib/unistr/u32-strmblen.c: New file.
61567
61568         * modules/unistr/u8-strmbtouc: New file.
61569         * modules/unistr/u16-strmbtouc: New file.
61570         * modules/unistr/u32-strmbtouc: New file.
61571         * lib/unistr/u8-strmbtouc.c: New file.
61572         * lib/unistr/u16-strmbtouc.c: New file.
61573         * lib/unistr/u32-strmbtouc.c: New file.
61574
61575         * modules/unistr/u8-strncat: New file.
61576         * modules/unistr/u16-strncat: New file.
61577         * modules/unistr/u32-strncat: New file.
61578         * lib/unistr/u8-strncat.c: New file.
61579         * lib/unistr/u16-strncat.c: New file.
61580         * lib/unistr/u32-strncat.c: New file.
61581         * lib/unistr/u-strncat.h: New file.
61582
61583         * modules/unistr/u8-strncmp: New file.
61584         * modules/unistr/u16-strncmp: New file.
61585         * modules/unistr/u32-strncmp: New file.
61586         * lib/unistr/u8-strncmp.c: New file.
61587         * lib/unistr/u16-strncmp.c: New file.
61588         * lib/unistr/u32-strncmp.c: New file.
61589
61590         * modules/unistr/u8-strncpy: New file.
61591         * modules/unistr/u16-strncpy: New file.
61592         * modules/unistr/u32-strncpy: New file.
61593         * lib/unistr/u8-strncpy.c: New file.
61594         * lib/unistr/u16-strncpy.c: New file.
61595         * lib/unistr/u32-strncpy.c: New file.
61596         * lib/unistr/u-strncpy.h: New file.
61597
61598         * modules/unistr/u8-strnlen: New file.
61599         * modules/unistr/u16-strnlen: New file.
61600         * modules/unistr/u32-strnlen: New file.
61601         * lib/unistr/u8-strnlen.c: New file.
61602         * lib/unistr/u16-strnlen.c: New file.
61603         * lib/unistr/u32-strnlen.c: New file.
61604         * lib/unistr/u-strnlen.h: New file.
61605
61606         * modules/unistr/u8-strpbrk: New file.
61607         * modules/unistr/u16-strpbrk: New file.
61608         * modules/unistr/u32-strpbrk: New file.
61609         * lib/unistr/u8-strpbrk.c: New file.
61610         * lib/unistr/u16-strpbrk.c: New file.
61611         * lib/unistr/u32-strpbrk.c: New file.
61612         * lib/unistr/u-strpbrk.h: New file.
61613
61614         * modules/unistr/u8-strrchr: New file.
61615         * modules/unistr/u16-strrchr: New file.
61616         * modules/unistr/u32-strrchr: New file.
61617         * lib/unistr/u8-strrchr.c: New file.
61618         * lib/unistr/u16-strrchr.c: New file.
61619         * lib/unistr/u32-strrchr.c: New file.
61620
61621         * modules/unistr/u8-strspn: New file.
61622         * modules/unistr/u16-strspn: New file.
61623         * modules/unistr/u32-strspn: New file.
61624         * lib/unistr/u8-strspn.c: New file.
61625         * lib/unistr/u16-strspn.c: New file.
61626         * lib/unistr/u32-strspn.c: New file.
61627         * lib/unistr/u-strspn.h: New file.
61628
61629         * modules/unistr/u8-strstr: New file.
61630         * modules/unistr/u16-strstr: New file.
61631         * modules/unistr/u32-strstr: New file.
61632         * lib/unistr/u8-strstr.c: New file.
61633         * lib/unistr/u16-strstr.c: New file.
61634         * lib/unistr/u32-strstr.c: New file.
61635         * lib/unistr/u-strstr.h: New file.
61636
61637         * modules/unistr/u8-strtok: New file.
61638         * modules/unistr/u16-strtok: New file.
61639         * modules/unistr/u32-strtok: New file.
61640         * lib/unistr/u8-strtok.c: New file.
61641         * lib/unistr/u16-strtok.c: New file.
61642         * lib/unistr/u32-strtok.c: New file.
61643         * lib/unistr/u-strtok.h: New file.
61644
61645         * modules/unistr/u8-uctomb: New file.
61646         * modules/unistr/u16-uctomb: New file.
61647         * modules/unistr/u32-uctomb: New file.
61648         * lib/unistr/u8-uctomb.c: New file.
61649         * lib/unistr/u16-uctomb.c: New file.
61650         * lib/unistr/u32-uctomb.c: New file.
61651
61652         * MODULES.html.sh (Unicode string functions): Add the new modules.
61653
61654 2007-01-08  Bruno Haible  <bruno@clisp.org>
61655
61656         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61657         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61658         subdirectories.
61659
61660 2007-01-08  Karl Berry  <karl@gnu.org>
61661
61662         * doc/error.texi: mention that main() fns must set program_name
61663         when progname is used.
61664
61665 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61668         WCTYPE_H is empty, for the benefit of builds from non-distclean
61669         directories.  Problem reported by Eric Blake in
61670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61671
61672 2007-01-08  Bruno Haible  <bruno@clisp.org>
61673
61674         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61675         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61676         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61677         PROVIDE_CANONICALIZE_FILENAME_MODE.
61678         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61679
61680 2007-01-08  Bruno Haible  <bruno@clisp.org>
61681
61682         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61683         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61684         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61685         * lib/fts.c: Likewise.
61686         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61687
61688 2006-12-25  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/utf8-ucs4-safe: New file.
61691         * lib/utf8-ucs4-safe.h: New file.
61692         * lib/unistr/utf8-ucs4-safe.c: New file.
61693
61694         * modules/utf16-ucs4-safe: New file.
61695         * lib/utf16-ucs4-safe.h: New file.
61696         * lib/unistr/utf16-ucs4-safe.c: New file.
61697
61698         * MODULES.html.sh (Unicode string functions): Add the new modules.
61699
61700 2007-01-08  Bruno Haible  <bruno@clisp.org>
61701
61702         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61703         (Depends-on): Add unitypes.
61704         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61705         (u8_mbtouc_aux): Move out to separate file.
61706         (u8_mbtouc): Use ucs4_t, uint8_t types.
61707         * lib/unistr/utf8-ucs4.c: New file.
61708
61709         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61710         (Depends-on): Add unitypes.
61711         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61712         (u16_mbtouc_aux): Move out to separate file.
61713         (u16_mbtouc): Use ucs4_t, uint16_t types.
61714         * lib/unistr/utf16-ucs4.c: New file.
61715
61716         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61717         (Depends-on): Add unitypes.
61718         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61719         (u8_uctomb_aux): Move out to separate file.
61720         (u8_uctomb): Use ucs4_t, uint8_t types.
61721         * lib/unistr/ucs4-utf8.c: New file.
61722
61723         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61724         (Depends-on): Add unitypes.
61725         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61726         (u16_uctomb_aux): Move out to separate file.
61727         (u16_uctomb): Use ucs4_t, uint16_t types.
61728         * lib/unistr/ucs4-utf16.c: New file.
61729
61730 2006-12-25  Bruno Haible  <bruno@clisp.org>
61731
61732         * modules/unitypes: New file.
61733         * lib/unitypes.h: New file.
61734         * MODULES.html.sh (func_all_modules): New section "Unicode string
61735         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61736         this section. Add unitypes.
61737
61738 2007-01-08  Bruno Haible  <bruno@clisp.org>
61739
61740         Avoid variable names that conflict with those from libtool.
61741         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61742         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61743         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61744         library_names_spec to acl_library_names_spec, hardcode_* to
61745         acl_hardcode_*.
61746         Reported by Ralf Wildenhues.
61747
61748 2007-01-08  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61751         definition.
61752         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61753         definition.
61754         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61755         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61756         definition.
61757         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61758         definition.
61759         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61760         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61761         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61762         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61763         definition.
61764         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61765         definition.
61766         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61767         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61768         GC_USE_<algorithm>.
61769         * lib/gc-libgcrypt.c: Likewise.
61770         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61771         * modules/gc-arctwo (configure.ac): Likewise.
61772         * modules/gc-des (configure.ac): Likewise.
61773         * modules/gc-hmac-md5 (configure.ac): Likewise.
61774         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61775         * modules/gc-md2 (configure.ac): Likewise.
61776         * modules/gc-md4 (configure.ac): Likewise.
61777         * modules/gc-md5 (configure.ac): Likewise.
61778         * modules/gc-random (configure.ac): Likewise.
61779         * modules/gc-rijndael (configure.ac): Likewise.
61780         * modules/gc-sha1 (configure.ac): Likewise.
61781
61782 2007-01-08  Bruno Haible  <bruno@clisp.org>
61783
61784         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61785         macro definition.
61786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61787         definition.
61788         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61789         definition.
61790         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61791         * modules/fcntl-safer (configure.ac): Likewise.
61792         * modules/fopen-safer (configure.ac): Likewise.
61793         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61794         GNULIB_FWRITEERROR macro definition.
61795
61796 2007-01-08  Bruno Haible  <bruno@clisp.org>
61797
61798         * m4/gnulib-common.m4: New file.
61799         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61800         (func_get_filelist): Add m4/gnulib-common.m4.
61801
61802 2007-01-08  Bruno Haible  <bruno@clisp.org>
61803
61804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61805         command.
61806
61807 2007-01-08  Jim Meyering  <jim@meyering.net>
61808
61809         Use a more robust test for a "can't happen" condition.
61810         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61811         narrowed the st_size value.  Presuming the "can't happen" condition
61812         is true, that narrowing could conceivably convert an invalid st_size
61813         value into a valid one.  Instead, use a change based on Matthew
61814         Woehlke's original patch.
61815
61816         Slight readability improvement: use an assert-like macro
61817         in place of literal "abort ()" uses.
61818         * lib/fts.c (fts_assert): Define.
61819         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61820         Use this macro instead of a bare 'abort'.
61821
61822 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61825         simply work around them.
61826         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61827         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61828         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61829         declaring.
61830         Don't bother to define as macros, since the standard doesn't require it.
61831         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61832         longer worry about IRIX 5.3.
61833         (HAVE_WCTYPE_CTMP_BUG): Remove.
61834
61835 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61838         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61839         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61840         Problems reported by Georg Schwarz for IRIX 5.3.
61841
61842         * gnulib-tool (autoconf_minversion): Take the maximum version number
61843         found, not the minimum.  Problem reported by James Youngman.
61844
61845 2007-01-03  Karl Berry  <karl@gnu.org>
61846
61847         * doc/error.texi: new file, explaining interaction with progname.
61848         * doc/gnulib.texi: include it.  Update copyright.
61849
61850 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61851
61852         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61853         AC_CANONICAL_HOST, to improve autobuild outputs.
61854
61855 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61856             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61857
61858         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61859         sockets, server sockets, and other file descriptors.  Count errors
61860         to compute the return value.  Reorder the code a bit to be easier
61861         to follow.  Don't set event bits that were not requested (except
61862         POLLERR and POLLHUP).
61863
61864 2007-01-01  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61867
61868 2007-01-03  Jim Meyering  <jim@meyering.net>
61869
61870         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61871
61872 2007-01-02  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/settime (Include): Require timespec.h.
61875         * modules/nanosleep (Include): Likewise.
61876
61877 2007-01-01  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool (func_emit_copyright_notice): Bump year.
61880         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61881
61882 2007-01-01  Bruno Haible  <bruno@clisp.org>
61883
61884         Improve support for OpenBSD.
61885         * build-aux/config.rpath (libname_spec): Export.
61886         (library_names_spec): New variable. Export.
61887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61888         library_names_spec from the config.rpath output. Locate shared library
61889         through the name pattern in library_names_spec.
61890
61891 2007-01-01  Eric Blake  <ebb9@byu.net>
61892
61893         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61894
61895 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61898         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61899         assume the C locale, and avoid an "eval" that could cause trouble.
61900         Problem with SORT reported by Bob Proulx.
61901
61902         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61903         Define.  Trivial patch from Henning Nielsen Lund, originally
61904         sent to bug-grep@gnu.org today.
61905
61906 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61909         struct stat.  Problem reported by Henning Nielsen Lund.
61910         * lib/acl.c: Include acl.h first, to check interface.  Don't
61911         bother to include sys/types.h and sys/stat.h again.
61912
61913 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61914
61915         Import the following change from libc; problem reported by
61916         Sven Verdoolaege.
61917
61918         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61919
61920         [BZ #1373]
61921         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61922
61923 2006-12-28  Jim Meyering  <jim@meyering.net>
61924
61925         * build-aux/announce-gen: Do not assume that the package
61926         builds any of tar.gz, tar.bz2, and .xdelta files.
61927         Suggestion from Simon Josefsson.
61928
61929 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61930
61931         * modules/announce-gen: New file.
61932
61933 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61936         handles its gotchas now.
61937         * lib/mbswidth.c: Likewise.
61938         * lib/wcwidth.h: Likewise.
61939         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61940         and iswcntrl; the wctype module does this stuff now.
61941         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61943         * modules/mbchar (Depends-on): Add wctype.
61944         * modules/mbswidth (Depends-on): Likewise.
61945         * modules/wcwidth (Depends-on): Likewise.
61946
61947 2006-12-27  Eric Blake  <ebb9@byu.net>
61948
61949         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61950         module uses more than what <wctype.h> is required to provide.
61951
61952 2006-12-26  Eric Blake  <ebb9@byu.net>
61953
61954         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61955
61956 2006-12-26  Eric Blake  <ebb9@byu.net>
61957
61958         * modules/absolute-header: New module.
61959         * modules/fcntl (Depends-on): Depend on it.
61960         * modules/inttypes (Depends-on): Likewise.
61961         * modules/stdint (Depends-on): Likewise.
61962         * modules/sys_stat (Depends-on): Likewise.
61963         * modules/wctype (Depends-on): Likewise.
61964         * MODULES.html.sh (Support for building libraries and
61965         executables): Document it.
61966
61967 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         * gnulib-tool (SED): Remove, undoing previous change.
61970         The problem was that it broke coreutils on Solaris, because
61971         "sed --posix" leaked into a makefile.
61972         (sed): New alias, if 'alias' and GNU sed.
61973
61974 2006-12-24  Jim Meyering  <jim@meyering.net>
61975
61976         Work around an fchownat bug in glibc-2.4:
61977         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61978         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61979         in spite of the -P option.
61980         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61981         New macros.
61982         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61983         * modules/openat (Files): Add lib/fchownat.c.
61984         * lib/openat.c (fchownat): Don't define here.  Move to...
61985         * lib/fchownat.c: ...this new file.
61986
61987 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         Fix bug reported by Bruno Haible in
61990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61991         where quotearg.c didn't compile on Mac OS X 10.2 because it
61992         lacks <wchar.h> and wint_t.
61993         * lib/wctype_.h (__wctype_wint_t): New type.
61994         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61995         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61996         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61997         Arg is now of type __wctype_wint_t, not wint_t.
61998         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61999         substitute HAVE_WINT_T.
62000         * modules/wctype (Files): Add m4/wint_t.m4.
62001         (wctype.h): Substitute HAVE_WINT_T.
62002
62003 2006-12-23  Bruno Haible  <bruno@clisp.org>
62004
62005         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62006
62007 2006-12-23  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62010         S_ISLNK.
62011         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62012         mingw.
62013
62014 2006-12-22  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/copy-file.c: Include acl.h.
62017         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62018         Close the file descriptors only after being done with copy_acl.
62019         * modules/copy-file (Depends-on): Add acl.
62020
62021 2006-12-22  Bruno Haible  <bruno@clisp.org>
62022
62023         * gnulib-tool (SED): New variable.
62024         Use $SED instead of sed everywhere.
62025
62026 2006-12-22  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/no-c++: New file.
62029         * m4/no-c++.m4: New file.
62030         * MODULES.html.sh (Support for building libraries and executables):
62031         Add no-c++.
62032
62033 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62036         Include <limits.h>, and use its INT_MAX to rewrite the
62037         j loop so that it does not overflow 'int'.  Problem reported by
62038         Ralf Wildenhues in
62039         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62040         Play it safe by shifting left by 1 rather than multiplying by 2,
62041         as GCC is less likely to optimize this away when the value
62042         is signed (when it assumes overflow leads to undefined behavior).
62043         Also, don't assume time_t uses two's complement.
62044
62045 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62046
62047         * MODULES.html.sh: New module wctype.
62048         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62049         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62050         <wctype.h>, since the new wctype module should fix this.
62051         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62052         the wctype module should arrange for it.
62053         * lib/regex_internal.h: Likewise.
62054         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62055         since the wctype module should handle this now.
62056         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62057         * modules/fnmatch (Depends-on): Add wctype.
62058         * modules/quotearg (Depends-on): Likewise.
62059         * modules/regex (Depends-on): Likewise.
62060
62061 2006-12-19  Bruno Haible  <bruno@clisp.org>
62062
62063         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62064         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62065
62066 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62067
62068         * modules/savewd (Depends-on): Fix dependency on fcntl.
62069
62070 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62073         conforms to C99, rather than relying on the user's environment
62074         setting of STDINT_H.
62075
62076 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62077         and Eric Blake  <ebb9@byu.net>
62078
62079         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62080         This is more consistent with the other defines here.
62081         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62082         Port to z/OS.  Problem reported by Paul Gilmartin.
62083         Change local vars to use gl_ prefix rather than ac_.
62084         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62085         with other defines.
62086         * modules/double-slash-root: New module.
62087         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62088         (Depends-on): Add double-slash-root.
62089         * MODULES.html.sh (File system functions): Mention new module.
62090
62091 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62094         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62095         This is for the benefit of gzip, which doesn't do i18n.
62096
62097 2006-12-12  Jim Meyering  <jim@meyering.net>
62098
62099         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62100         Reported by Andreas Schwab <schwab@suse.de>.
62101
62102 2006-12-12  Bruno Haible  <bruno@clisp.org>
62103
62104         Merge these changes.
62105         2006-09-05  Bruno Haible  <bruno@clisp.org>
62106         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62107         iconv_alloc succeeded.
62108         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62109         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62110         test for " && dest " at the end - dest is always != NULL there. Call
62111         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62112         with 2xNULL arguments, also to flush the state storage. Handle the
62113         IRIX iconv behaviour. Realloc the final result, to throw away unused
62114         memory.
62115
62116 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62119         and fchmodat unconditionally, since glibc 2.4 has them.
62120         Problem reported by Arkadiusz Miskiewicz.
62121
62122 2006-12-10  Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool (func_import): Show the include files only for those
62125         modules that are copied and specified.
62126         Reported by Karl Berry.
62127
62128 2006-12-08  Jim Meyering  <jim@meyering.net>
62129
62130         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62131         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62132
62133         * build-aux/announce-gen: Add two new options, both optional:
62134         --bootstrap-tools=TOOL_LIST
62135               a comma-separated list of tools, e.g.,
62136               autoconf,automake,bison,gnulib
62137         --gnulib-snapshot-date=DATE
62138               if gnulib is in the bootstrap tool list,
62139               then report this as the snapshot date.
62140               If not specified, use the current date/time.
62141               If you specify a date here, be sure it's UTC.
62142
62143 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62144
62145         * tests/test-argp-2.sh: Fix test to match actual output.
62146         (func_compare): Fix sed script to be portable.
62147
62148 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62151         workaround for this case.  It is not autoconfigured now; offhand
62152         it's hard to see how to autoconfigure it.
62153
62154 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62157         a directory that is about to be chowned.  Such a directory's
62158         initial file permissions should permit the owner only and this
62159         should not be changed until after the chown, since the group and
62160         other bits would be incorrect if they granted permission before
62161         the chown.
62162
62163         Fix porting problem for iswctype reported by Georg Schwarz in:
62164         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62165         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62166         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62167         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62168         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62169
62170 2006-12-03  Jim Meyering  <jim@meyering.net>
62171
62172         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62173         p->fts_statp may not yet be defined.
62174         (fts_read): Instead, set it in the caller, once p->fts_statp is
62175         sure to be defined, and corresponds to a top-level directory.
62176         This bug made du -x fail.  Here's the coreutils test case:
62177         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62178         Reported by Mike Frysinger.
62179
62180 2006-12-01  Jim Meyering  <jim@meyering.net>
62181
62182         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62183         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62184         Reported by Simon Josefsson.
62185
62186 2006-11-30  Jim Meyering  <jim@meyering.net>
62187
62188         * m4/warning.m4: Use the all-permissive copyright notice
62189         recommended by RMS (rather than LGPL).
62190         * m4/vararrays.m4: Likewise.
62191         * m4/flexmember.m4: Likewise.
62192
62193 2006-11-29  Bruno Haible  <bruno@clisp.org>
62194
62195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62196         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62197         using +=.
62198         Reported by Simon Josefsson <simon@josefsson.org>.
62199
62200 2006-11-28  James Youngman <jay@gnu.org>
62201
62202         * README: Advise users that they might find the bug-gnulib@gnu.org
62203         and autotools-announce@gnu.org mailing lists useful.
62204
62205 2006-11-28  Bruno Haible  <bruno@clisp.org>
62206
62207         * m4/ptrdiff_max.m4: Remove file.
62208
62209 2006-11-21  Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62212         _AC_COMPUTE_INT.
62213         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62214         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62215         _AC_COMPUTE_INT.
62216         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62217         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62218         _AC_COMPUTE_INT.
62219         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62220
62221 2006-11-28  Jim Meyering  <jim@meyering.net>
62222
62223         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62224         warning from "gcc -Wshadow" about shadowing the builtin.
62225
62226 2006-11-27  Bruno Haible  <bruno@clisp.org>
62227
62228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62229         _AC_COMPUTE_INT.
62230         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62231
62232 2006-11-27  Bruno Haible  <bruno@clisp.org>
62233             Paul Eggert  <eggert@cs.ucla.edu>
62234
62235         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62236
62237 2006-11-26  Bruno Haible  <bruno@clisp.org>
62238
62239         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62240         noinst_LTLIBRARIES.
62241
62242 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62243             Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62246         if compiling with "gcc -ansi".
62247
62248 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62249
62250         Fix some incompatibilities with gcc -ansi -pedantic.
62251         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62252         if compiling pedantically with GCC, unless it's C99 or later.
62253         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62254         it mishandles gcc -ansi -pedantic as well.
62255         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62256         if gcc -pedantic.
62257         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62258         initializers for struct if -pedantic, unless it's C99 or later.
62259
62260 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62261
62262         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62263         Don't close an fd more than once. Identical atimes indicate
62264         success, not failure.
62265
62266 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62267
62268         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62269
62270 2006-11-23  Jim Meyering  <jim@meyering.net>
62271
62272         * build-aux/announce-gen: New file.  From coreutils.
62273
62274 2006-11-22  Jim Meyering  <jim@meyering.net>
62275
62276         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62277         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62278         (fts_read): Use a temporary to narrow the overused st_size member
62279         before using it in a switch statement.  Reported by Matthew Woehlke.
62280
62281         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62282         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62283
62284 2006-11-20  Bruno Haible  <bruno@clisp.org>
62285
62286         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62287         changequote instead of pairs of brackets.
62288         Reported by Andreas Schwab <schwab@suse.de>.
62289
62290 2006-11-21  Jim Meyering  <jim@meyering.net>
62291
62292         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62293         so as to remain compatible with older compilers.
62294         Patch from Michael Deutschmann.
62295
62296 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * MODULES.html.sh (File system functions): Add openat.
62299
62300         * lib/openat.h (rpl_fstatat): New macro, if
62301         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62302         (fstatat): Define to rpl_fstatat under the same conditions,
62303         unless COMPILING_FSTATAT.
62304         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62305         seems to have the bug.
62306         * lib/fstatat.c: New file.
62307         * modules/openat (Files): Add it.
62308
62309 2006-11-20  Bruno Haible  <bruno@clisp.org>
62310
62311         * Makefile: New file.
62312
62313 2006-11-20  Jim Meyering  <jim@meyering.net>
62314
62315         The beginnings of syntax-related checks for gnulib.
62316         * lib/Makefile: New file.
62317         * lib/t-idcache: New script.  Ensure that the two halves of
62318         idcache.c stay in sync.
62319
62320         * lib/idcache.c: Adjust comments in user- and group- portions to
62321         be more accurate, and to be consistent with one another.
62322
62323 2006-11-20  Jim Meyering  <jim@meyering.net>
62324
62325         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62326         continue using the flexible array member (thus, this module performs
62327         half as many malloc calls), with the addition that...
62328         (getgroup, getuser): Consistently record a non-match via an empty
62329         "name" string, and map an empty string match to a NULL return value.
62330         * modules/idcache (Depends-on): Re-add flexmember.
62331
62332         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62333         (getuidbyname, getgroup, getgidbyname): Likewise.
62334
62335         Use cleaner syntax: NULL rather than 0.
62336         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62337
62338 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62341         It mishandled the case where the group was missing.
62342         Problem reported by Greg Schafer.
62343         * modules/idcache: Likewise.
62344
62345 2006-11-18  Jim Meyering  <jim@meyering.net>
62346
62347         * check-module (%exempt_header): Add exception for some
62348         conditionally-included headers.
62349
62350         * modules/i-ring (Depends-on): Add verify.
62351         (License): Change to LGPL.
62352
62353 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62356         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62357         and inttostr.h.  Use snprintf rather than uinttostr, so that
62358         LGPLed code doesn't depend on GPLed.
62359
62360 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62361
62362         * modules/inline (License): Change from GPL to LGPL.
62363
62364 2006-11-17  Jim Meyering  <jim@meyering.net>
62365
62366         * modules/d-type (License): Switch to LGPL.
62367
62368 2006-11-15  Bruno Haible  <bruno@clisp.org>
62369
62370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62371
62372 2006-11-15  Eric Blake  <ebb9@byu.net>
62373
62374         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62375         the module dependency.
62376
62377 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62378             Bruno Haible  <bruno@clisp.org>
62379
62380         * gnulib-tool (func_create_testdir): Add license consistency check.
62381
62382 2006-11-15  Eric Blake  <ebb9@byu.net>
62383
62384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62385         random "(cached)" in configure output.
62386
62387 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62388
62389         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62390         test for conforming inttypes.h is both announced and cached.
62391
62392         * MODULES.html.sh (seen_modules, seen_files): New variables.
62393         (func_module): Rewrite to use a few less gnulib-tool and sed
62394         invocations.  Avoid a couple of quadratic algorithms for ...
62395         (missed_modules, missed_files): ... these, with ...
62396         (func_append, func_tmpdir): ... these new functions, from
62397         gnulib-tool.  Analogously, install traps for cleanup.
62398
62399         * tests/test-gc.c (main): Remove unused variables.
62400         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62401
62402 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62403
62404         * modules/inttostr (License): Change to LGPL.
62405
62406 2006-11-14  Eric Blake  <ebb9@byu.net>
62407
62408         * modules/tempname (License): Change to LGPL.
62409
62410 2006-11-14  Eric Blake  <ebb9@byu.net>
62411
62412         * doc/functions.texi (Function Portability): *printf functions on
62413         Cygwin now understand all POSIX size specifiers.
62414
62415 2006-11-14  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/c-ctype (License): Change to LGPL.
62418
62419 2006-11-12  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62422         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62423         for GNOME libraries, for which the include files are installed in
62424         subdirectories of $prefix/include.
62425
62426 2006-11-12  Bruno Haible  <bruno@clisp.org>
62427
62428         * m4/lib-link.m4: Require at least autoconf-2.54.
62429         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62430         name to underscores for the --with option.
62431
62432 2006-11-13  Bruno Haible  <bruno@clisp.org>
62433
62434         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62435         the tests directory.
62436         Reported by Ralf Wildenhues.
62437
62438 2006-11-13  Bruno Haible  <bruno@clisp.org>
62439
62440         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62441         (func_emit_initmacro_end): Undo the override here.
62442         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62443         Works around the famous automake error in coreutils.
62444
62445 2006-11-13  Eric Blake  <ebb9@byu.net>
62446
62447         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62448         element, not its node.
62449
62450 2006-11-12  Bruno Haible  <bruno@clisp.org>
62451
62452         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62453         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62454
62455 2006-11-12  Bruno Haible  <bruno@clisp.org>
62456
62457         * gnulib-tool: New option --local-symlink.
62458         (func_usage): Document it.
62459         (lsymbolic): New variable.
62460         (func_import, func_create_testdir): If --symlink was not specified,
62461         test whether --local-symlink was specified and the file comes from
62462         the local_gnulib_dir.
62463
62464 2006-11-12  Bruno Haible  <bruno@clisp.org>
62465
62466         * gnulib-tool (func_ln): New function.
62467         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62468
62469 2006-11-12  Bruno Haible  <bruno@clisp.org>
62470
62471         Finish support for source files in subdirectories.
62472         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62473         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62474         AUTOMAKE_OPTIONS.
62475         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62476
62477 2006-11-12  Bruno Haible  <bruno@clisp.org>
62478
62479         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62480         EXTRA_lib_SOURCES augmentation.
62481         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62482
62483 2006-11-12  Jim Meyering  <jim@meyering.net>
62484
62485         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62486         file descriptors.  This also averts a failure on systems with
62487         native openat support when a traversed directory lacks "x" access.
62488         * lib/fts_.h: Include "i-ring.h"
62489         (struct FTS) [fts_fd_ring]: New member.
62490         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62491         (FCHDIR): Add parentheses.
62492         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62493         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62494         When descending, rather than simply closing the previous
62495         fts_cwd_fd value, push that file descriptor onto the ring.
62496         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62497         (fts_open): Initialize the new fd_ring member.
62498         (fts_close): Clear the ring.
62499         (fts_safe_changedir): When possible, use our new fd_ring to skip
62500         the diropen and fstat and dev/ino comparison that would normally
62501         accompany a virtual `chdir ("..")'.
62502
62503         * modules/fts (Depends-on): Add i-ring.
62504         * modules/i-ring: New module.
62505         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62506         * m4/i-ring.m4: New file.
62507
62508 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62509
62510         * gnulib-tool (func_create_testdir): Fix replacement of
62511         `build-aux' in configure.ac.  Run autotools in gltests
62512         subdirectory.
62513         (func_create_testdir, func_create_megatestdir, test): There is
62514         no need for '--force' in most autotool invocations in a new
62515         tree.  Actually fail the whole test if any of the tools, or the
62516         configure or make stages fail.
62517
62518         Sync from Automake.
62519         * build-aux/gnupload: Revert last change.  Add pointer to upload
62520         instructions of the GNU Maintenance Instructions.
62521         Suggestion by Karl Berry.
62522
62523 2006-11-10  Jim Meyering  <jim@meyering.net>
62524
62525         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62526
62527 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62530         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62531         (bind_textdomain_codeset) [! ENABLE_NLS]:
62532         Evaluate all the arguments.  That way, callers get compatible behavior
62533         if the arguments have side effects.  Also, it avoids some GCC
62534         diagnostics in some cases; Joel E. Denny reported problems when Bison
62535         was configured with --enable-gcc-warnigs.
62536
62537 2006-11-10  Jim Meyering  <jim@meyering.net>
62538
62539         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62540         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62541         account.
62542
62543 2006-11-10  Jim Meyering  <jim@meyering.net>
62544
62545         * modules/inline: New file/module.
62546         * modules/xalloc (Files): Remove m4/inline.m4.
62547         (Depends-on): Add inline, instead.
62548         * modules/oset: Likewise.
62549         * modules/list: Likewise.
62550
62551 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62554         Problem reported by Matthew Woehlke.
62555
62556 2006-11-09  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/tempname.c (gen_tempname): Remove variant that invokes
62559         __gen_tempname.
62560         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62561         __gen_tempname.
62562
62563 2006-11-08  Bruno Haible  <bruno@clisp.org>
62564
62565         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62566         to 'yes' instead of 'cross-compiling'.
62567
62568 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * lib/quotearg.h (quotearg_free): New decl.
62571         * lib/quotearg.c (quotearg_free): New function.
62572         (slot0, nslots, slotvec0, slotvec):
62573         Now file-scope so that quotearg_free can get at them.
62574
62575 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62576
62577         Sync from Automake.
62578         * build-aux/gnupload: Add missing 'gnu' to example URL.
62579         Report by Karl Berry.
62580
62581 2006-11-08  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62584         Suggested by Paul Eggert.
62585
62586 2006-11-08  Jim Meyering  <jim@meyering.net>
62587
62588         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62589         It's already included if !_LIBC.
62590         (fts_safe_changedir): Add a comment.
62591
62592 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62595         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62596         Matthew Woehlke.
62597
62598         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62599         definitions up, to avoid colliding with change below.
62600         (static_inline) [HAVE_INLINE]: New macro.
62601         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62602         Provide extern decls when !HAVE_INLINE.  Do not define unless
62603         static_inline is defined, either by us or by xmalloc.c.  Use
62604         static_inline rather than static inline.
62605         (XCALLOC): Optimize sizeof(T) = 1 case.
62606         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62607
62608 2006-11-07  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62611         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62612         AC_C_INLINE.
62613         * modules/xalloc (Files): Add m4/inline.m4.
62614
62615 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62616
62617         * README: Fix typo.
62618         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62619         (Miscellanous Notes): ...from this.
62620
62621 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62624         Mention that offsetof should be used instead of sizeof.
62625         From Bruno Haible.
62626
62627 2006-11-07  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62630
62631 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62634         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62635         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62636         (gl_tree_add_before, gl_tree_add_after):
62637         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62638         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62639         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62640         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62641         (gl_linked_add_after, gl_linked_add_at): Likewise.
62642         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62643         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62644         (gl_tree_add_before, gl_tree_add_after): Likewise.
62645         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62646         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62647         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62648
62649 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62650
62651         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62652
62653 2006-11-06  Bruno Haible  <bruno@clisp.org>
62654
62655         * m4/inline.m4: New file.
62656         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62657         * modules/list (Files): Add m4/inline.m4.
62658         * modules/oset (Files): Likewise.
62659
62660 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * lib/idcache.c: Include <stddef.h>, for offsetof.
62663         (struct userid.name): Change from char * to a flexible array member.
62664         All uses changed.
62665         * modules/idcache (Depends-on): Add flexmember.
62666
62667         * MODULES.html.sh (Core language properties): New module flexmember.
62668         * modules/flexmember, m4/flexmember.m4: New files.
62669
62670         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62671         inline functions that are identical with the old xnmalloc_inline,
62672         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62673         that we can avoid some unnecessary integer multiplications and
62674         divisions in the common case where the element size is known at
62675         compile time.
62676         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62677         needed.
62678         (xnboundedmalloc): Remove.
62679         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62680         arguments, for consistency with rest of this header.
62681         (xcharalloc): Rewrite using XNMALLOC.
62682         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62683         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62684         versions have been moved to lib/xalloc.h and renamed to be the
62685         non-*_inline versions.
62686         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62687         and xnrealloc functions, since those functions are now inline and
62688         now call us.
62689         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62690         renaming described above.
62691         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62692         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62693         captures the dependency in AC_C_INLINE.
62694
62695         New module canonicalize-lgpl, proposed by Charles Wilson in
62696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62697         with a few small changes afterwards.
62698         * MODULES.html.sh (File system functions): New module
62699         canonicalize-lgpl.
62700         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62701         and canonicalize_file_name.
62702         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62703         * modules/canonicalize-lgpl: New files.
62704
62705 2006-11-05  Bruno Haible  <bruno@clisp.org>
62706
62707         * gnulib-tool (func_import, func_create_testdir): Create directories
62708         also for files in subdirectories of lib/.
62709
62710 2006-11-05  Bruno Haible  <bruno@clisp.org>
62711
62712         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62713         ANSI C compliant.
62714
62715 2006-11-03  Bruno Haible  <bruno@clisp.org>
62716
62717         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62718         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62719         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62720         (xnboundedmalloc): New inline function.
62721         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62722         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62723         xmalloc.
62724         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62725         xmalloc.
62726         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62727         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62728         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62729         xmalloc.
62730         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62731         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62732         xmalloc.
62733         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62734         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62735         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62736         xmalloc.
62737         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62738         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62739         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62740         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62741         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62742         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62743         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62744
62745 2006-11-03  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/c-ctype.h [C++]: Define functions without name mangling.
62748         * lib/fwriteerror.h [C++]: Likewise.
62749         * lib/gcd.h [C++]: Likewise.
62750         * lib/linebreak.h [C++]: Likewise.
62751
62752 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62755         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62756         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62757         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62758         Check for functions and headers just once.
62759         Check for declaration of canonicalize_file_name.
62760         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62761
62762 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62763
62764         * gnulib-tool (func_import): Fix typo in actioncmd.
62765
62766 2006-11-02  Bruno Haible  <bruno@clisp.org>
62767
62768         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62769         newline sequence in the Makefile.am snippet as a space, like "make"
62770         does.
62771         Reported by Roger Persson <perrog@gmail.com>.
62772
62773 2006-11-01  Bruno Haible  <bruno@clisp.org>
62774
62775         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62776         already declared in <string.h>.
62777         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62778
62779 2006-11-01  Bruno Haible  <bruno@clisp.org>
62780
62781         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62782         * lib/strcase.h: Include <string.h>.
62783         (strcasecmp): Define to rpl_strcasecmp here.
62784
62785 2006-11-01  Bruno Haible  <bruno@clisp.org>
62786
62787         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62788
62789 2006-11-01  Eric Blake  <ebb9@byu.net>
62790
62791         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62792
62793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62794
62795 2006-10-29  Bruno Haible  <bruno@clisp.org>
62796
62797         Make it compile in C++ mode.
62798         * lib/full-write.c (full_rw): Add a cast.
62799
62800 2006-11-01  Bruno Haible  <bruno@clisp.org>
62801
62802         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62803         be POSIX compliant.
62804         Reported by Roger Persson <perrog@gmail.com>.
62805
62806 2006-11-01  Eric Blake  <ebb9@byu.net>
62807
62808         * lib/getopt_.h: Fix comments.
62809
62810 2006-10-31  Eric Blake  <ebb9@byu.net>
62811
62812         * modules/tmpdir (Depends-on): Add sys_stat.
62813         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62814         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62815         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62816         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62817         tempname.
62818
62819 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         Avoid some C++ diagnostics reported by Bruno Haible.
62822         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62823         xmalloc.
62824         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62825         (struct slotvec): Move to top level.
62826         (quotearg_n_options): Rewrite to avoid xmalloc.
62827         * lib/xalloc.h (xcharalloc): New function.
62828         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62829         [defined __cplusplus]: Add function template that provides result
62830         type propagation.  This part of the change is from Bruno Haible.
62831
62832 2006-10-29  Bruno Haible  <bruno@clisp.org>
62833
62834         Make it compile in C++ mode.
62835         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62836         * lib/strnlen1.c (strnlen1): Cast memchr result.
62837         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62838         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62839         (create_temp_dir): Rename local variable 'template'.
62840         (compile_csharp_using_sscli): Add cast.
62841         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62842         * lib/findprog.c (find_in_path): Likewise.
62843         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62844         * lib/wait-process.c (register_slave_subprocess): Likewise.
62845
62846 2006-10-22  Bruno Haible  <bruno@clisp.org>
62847
62848         * modules/tsearch: New file.
62849         * lib/tsearch.h: New file.
62850         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62851         * m4/tsearch.m4: New file.
62852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62853
62854 2006-10-29  Eric Blake  <ebb9@byu.net>
62855
62856         * lib/arcfour.c: Assume config.h.
62857         * lib/arctwo.c: Likewise.
62858         * lib/base64.c: Likewise.
62859         * lib/check-version.c: Likewise.
62860         * lib/crc.c: Likewise.
62861         * lib/des.c: Likewise.
62862         * lib/gc-gnulib.c: Likewise.
62863         * lib/gc-libgcrypt.c: Likewise.
62864         * lib/gc-pbkdf2-sha1.c: Likewise.
62865         * lib/getaddrinfo.c: Likewise.
62866         * lib/getdelim.c: Likewise.
62867         * lib/getline.c: Likewise.
62868         * lib/hmac-md5.c: Likewise.
62869         * lib/hmac-sha1.c: Likewise.
62870         * lib/iconvme.c: Likewise.
62871         * lib/md2.c: Likewise.
62872         * lib/md4.c: Likewise.
62873         * lib/memxor.c: Likewise.
62874         * lib/read-file.c: Likewise.
62875         * lib/readline.c: Likewise.
62876         * lib/rijndael-alg-fst.c: Likewise.
62877         * lib/rijndael-api-fst.c: Likewise.
62878         * lib/xgetdomainname.c: Likewise.
62879
62880 2006-10-28  Eric Blake  <ebb9@byu.net>
62881
62882         * lib/xstrndup.c: Assume config.h.
62883
62884 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62887         stat-macros.h is now for our own macros, whereas stat_h is for
62888         macros in the <sys/stat.h> name space.
62889         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62890         (STAT_MACROS_H): Remove.
62891         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62892         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62893         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62894         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62895         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62896         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62897         Move these macros to ...
62898         * lib/stat_.h: here.  Don't include stat-macros.h.
62899         * lib/canonicalize.c: Don't include stat-macros.h.
62900         * lib/chown.c: Likewise.
62901         * lib/euidaccess.c: Likewise.
62902         * lib/file-type.c: Likewise.
62903         * lib/filemode.c: Likewise.
62904         * lib/glob.c: Likewise.
62905         * lib/isapipe.c: Likewise.
62906         * lib/lchown.c: Likewise.
62907         * lib/lstat.c: Likewise.
62908         * lib/mkdir-p.c: Likewise.
62909         * lib/rmdir.c: Likewise.
62910         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62912         unless mkdir isn't declared, to speed up 'configure'.
62913         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62914         would define all the S_* symbols.
62915         * modules/canonicalize (Depends-on):
62916         Depend on sys_stat, not stat-macros.
62917         * modules/chown: Likewise.
62918         * modules/euidaccess: Likewise.
62919         * modules/filemode: Likewise.
62920         * modules/file-type: Likewise.
62921         * modules/glob: Likewise.
62922         * modules/isapipe: Likewise.
62923         * modules/lchown: Likewise.
62924         * modules/lstat: Likewise.
62925         * modules/mkancesdirs: Likewise.
62926         * modules/rmdir: Likewise.
62927         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62928         * modules/modechange: Likewise.
62929         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62930         (configure.ac): Remove gl_STAT_MACROS.
62931         * modules/sys_stat (Depends-on): Remove stat-macros.
62932
62933 2006-10-27  Bruno Haible  <bruno@clisp.org>
62934
62935         * m4/signed.m4: Remove file.
62936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62937         invocation.
62938         * modules/vasnprintf (Files): Remove m4/signed.m4.
62939
62940 2006-10-27  Bruno Haible  <bruno@clisp.org>
62941
62942         Update to GNU gettext 0.16.
62943         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62944         m4/inttypes-h.m4, m4/signed.m4.
62945         * m4/gettext.m4: Update to GNU gettext 0.16.
62946         * m4/intl.m4: New file, from GNU gettext.
62947         * m4/intldir.m4: New file, from GNU gettext.
62948         * config/srclist.txt: Update
62949
62950 2006-10-27  Eric Blake  <ebb9@byu.net>
62951
62952         * MODULES.html.sh: Document tempname.
62953         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62954         dependencies.
62955         (Files): Move lib/tempname.c...
62956         * modules/tempname: ...to this new module.
62957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62958         (gl_PREREQ_TEMPNAME): Move...
62959         * m4/tempname.m4: ...to this new file.
62960         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62961         * modules/sys_stat (Depends-on): Add stat-macros.
62962         * lib/stat_.h (includes): Pick up stat macros.
62963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62964         if stat macros are broken.
62965         * lib/tempname.c (includes): No need to include "stat-macros.h".
62966         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62967         (direxists, __path_search) [!_LIBC]: Don't compile these in
62968         gnulib; the tmpdir module covers that.
62969         * lib/tempname.h: New file.
62970
62971 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * COPYING: Explain how gnulib-tool converts licence headers.
62974         Almost all wording by Eric Blake.
62975
62976 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * lib/mbchar.h (is_basic_table): Make read-only.
62979         * lib/mbchar.c (is_basic_table): Likewise.
62980         Reported by John Darrington.
62981
62982 2006-10-25  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/progname.h (set_program_name): Undefine before defining.
62985
62986 2006-10-25  Bruno Haible  <bruno@clisp.org>
62987
62988         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62989         false for non-gcc C++ compilers.
62990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62991
62992 2006-10-24  Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62995         iconv implementations like Irix iconv.
62996
62997 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62998
62999         * modules/vararrays: New file.
63000         * m4/vararrays.m4: New file, taken from diffutils.
63001         * MODULES.html.sh: New module vararrays.
63002
63003 2006-10-24  Karl Berry  <karl@gnu.org>
63004
63005         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63006         Don't call GNU Unix.
63007
63008 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63009
63010         * users.txt: Add Libtool.
63011
63012         Sync from Libtool:
63013
63014         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63017         to gnulib's policy of including config.h unconditionally.
63018
63019 2006-10-24  Bruno Haible  <bruno@clisp.org>
63020
63021         * modules/wcwidth (Files): Add m4/wint_t.m4.
63022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63023         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63024
63025 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63028         to pacify GCC with some -W flags enabled.  Problem reported by
63029         Bruno Haible.
63030
63031 2006-10-24  Jim Meyering  <jim@meyering.net>
63032
63033         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63034         Reported by Karl Berry.
63035
63036 2006-10-23  Bruno Haible  <bruno@clisp.org>
63037
63038         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63039
63040 2006-10-24  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/gl_list.h: Use C comment style, not C++ comment style.
63043
63044 2006-10-23  Eric Blake  <ebb9@byu.net>
63045
63046         * lib/getaddrinfo.c (includes): Add missing include.
63047
63048 2006-10-23  Bruno Haible  <bruno@clisp.org>
63049             Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         Ability to rename obstack_free.
63052         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63053         obstack_free.
63054         (obstack_free): Invoke the __obstack_free macro.
63055         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63056
63057 2006-10-23  Bruno Haible  <bruno@clisp.org>
63058             Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63061         __argc, __argv from the declaration. (They are defined as macros on
63062         mingw.)
63063
63064 2006-10-22  Bruno Haible  <bruno@clisp.org>
63065
63066         * doc/gnulib-intro.texi: New file.
63067         * doc/gnulib.texi: Include it.
63068
63069 2006-10-21  Bruno Haible  <bruno@clisp.org>
63070
63071         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63072         "Introduction", "Miscellanous Notes", "Particular Modules".
63073
63074 2006-10-21  Bruno Haible  <bruno@clisp.org>
63075
63076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63077         Change mostlyclean-local rule to avoid sh syntax error from bash
63078         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63079
63080 2006-10-23  Jim Meyering  <jim@meyering.net>
63081
63082         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63083         in place of snprintf.
63084
63085         * modules/inttostr (Files): Add lib/uinttostr.c.
63086         * lib/uinttostr.c (inttostr): New file/function.
63087         * lib/inttostr.h (uinttostr): Declare.
63088         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63089         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63090         Add uinttostr.
63091         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63092
63093 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         * lib/canonicalize.c (ELOOP): Define if not already defined.
63096         Problem reported by Bruno Haible in
63097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63098
63099 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63102         Problem reported by Perry Smith and Ville Laurikari.
63103
63104         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63105         uses.
63106
63107 2006-10-19  Bruno Haible  <bruno@clisp.org>
63108
63109         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63110         for mingw.
63111
63112 2006-10-19  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63115         Needed for mingw.
63116
63117 2006-10-19  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63120
63121 2006-10-19  Bruno Haible  <bruno@clisp.org>
63122
63123         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63124         it.
63125
63126 2006-10-19  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63129         invocation.
63130
63131 2006-10-19  Bruno Haible  <bruno@clisp.org>
63132
63133         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63134         mountlist by default.
63135
63136 2006-10-16  Bruno Haible  <bruno@clisp.org>
63137
63138         * lib/c-strstr.c: Include c-strstr.h.
63139
63140 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63141
63142         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63143         in a slash.
63144
63145 2006-10-18  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/lock.h [C++]: Wrap definitions in extern "C".
63148
63149 2006-10-18  Bruno Haible  <bruno@clisp.org>
63150
63151         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63152         gl_LIBOBJS list.
63153
63154 2006-10-18  Bruno Haible  <bruno@clisp.org>
63155
63156         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63157
63158 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         * lib/xstrtol.h: Include gettext.h.
63161         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63162         Problem reported by Eric Blake.
63163         * modules/xstrtol (Depends-on): Add gettext-h.
63164
63165 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63166
63167         * lib/strftime.c (advance): New macro.
63168         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63169         incomplete type, so you can't add 0 to it.  Problem and patch
63170         reported by Eelco Dolstra for dietlibc.
63171
63172 2006-10-18  Jim Meyering  <jim@meyering.net>
63173
63174         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63175         type for a local, and rename it: s/up/user_proc/.
63176
63177 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63178
63179         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63180         READ_UTMP_USER_PROCESS.
63181         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63182
63183 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63186         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63187
63188 2006-10-17  Eric Blake  <ebb9@byu.net>
63189
63190         * lib/sigprocmask.c (sigprocmask): Fix typo.
63191
63192         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63193
63194         * modules/clean-temp (Makefile.am): Don't add to make output...
63195         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63196         config.h.
63197
63198 2006-10-17  Bruno Haible  <bruno@clisp.org>
63199
63200         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63201         differently if DEFAULT_TEXT_DOMAIN is set.
63202
63203 2006-10-16  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/clean-temp.c: Include fwriteerror.h.
63206
63207 2006-10-16  Bruno Haible  <bruno@clisp.org>
63208
63209         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63210
63211 2006-10-16  Bruno Haible  <bruno@clisp.org>
63212
63213         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63214         * lib/sigprocmask.h: Include <sys/types.h>.
63215         (sigset_t): Use the system's definition if present.
63216
63217 2006-10-17  Eric Blake  <ebb9@byu.net>
63218
63219         * lib/xvasprintf.c (includes): Assume config.h.
63220         * lib/xasprintf.c (includes): Likewise.
63221
63222 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63223
63224         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63225         at least as wide as intmax_t.
63226
63227 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63228
63229         (Imported from Automake.)
63230         * build-aux/gnupload: Update to version 1.1 of directive file.
63231
63232 2006-10-16  Eric Blake  <ebb9@byu.net>
63233
63234         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63235         match Automake 1.10a.
63236
63237 2006-10-14  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/sigprocmask: New file.
63240         * lib/sigprocmask.h: New file.
63241         * lib/sigprocmask.c: New file.
63242         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63243         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63244         request sigprocmask.o.
63245         (gl_PREREQ_SIGPROCMASK): New macro.
63246         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63247         (Depends-on): Add sigprocmask.
63248         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63249         gt_SIGNALBLOCKING. Test for 'raise' only once.
63250         * lib/fatal-signal.c: Include sigprocmask.h.
63251         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63252         unblock_fatal_signals): Define always.
63253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63254         sigprocmask.
63255
63256 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         Sync from Automake.
63259         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63260         which incorrectly sets the mode of an existing destination
63261         directory.  In some cases the unpatched install-sh could do the
63262         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63263         system.  We hope this is rare in practice, but it's clearly worth
63264         fixing.  Problem reported by Alex Unleashed in
63265         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63266         Also, don't bother to check for -m bugs unless we're using -m;
63267         suggested by Stepan Kasal.
63268
63269 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63270
63271         Sync from Automake.
63272         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63273         `-c' flag, so they appear at the same position as in %FASTDEP%
63274         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63275         which ignores unknown options only after the first non-option.
63276         Bug report against M4 by Nelson H. F. Beebe.
63277
63278 2006-10-13  Jim Meyering  <jim@meyering.net>
63279
63280         Fix a bug in yesterday's change.
63281         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63282         p->fts_statp->st_dev would be used uninitialized.
63283         Ensures that we always call fts_stat on the very first entry.
63284         Miklos Szeredi reported that find -xdev stopped working.
63285
63286 2006-10-12  Bruno Haible  <bruno@clisp.org>
63287
63288         * gnulib-tool (func_get_automake_snippet): Append an automatically
63289         computed EXTRA_DIST augmentation.
63290         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63291         * modules/alloca-opt (Makefile.am): Likewise.
63292         * modules/allocsa (Makefile.am): Likewise.
63293         * modules/arcfour (Makefile.am): Likewise.
63294         * modules/arctwo (Makefile.am): Likewise.
63295         * modules/argmatch (Makefile.am): Likewise.
63296         * modules/argz (Makefile.am): Likewise.
63297         * modules/atexit (Makefile.am): Likewise.
63298         * modules/backupfile (Makefile.am): Likewise.
63299         * modules/byteswap (Makefile.am): Likewise.
63300         * modules/c-strtod (Makefile.am): Likewise.
63301         * modules/c-strtold (Makefile.am): Likewise.
63302         * modules/calloc (Makefile.am): Likewise.
63303         * modules/canon-host (Makefile.am): Likewise.
63304         * modules/canonicalize (Makefile.am): Likewise.
63305         * modules/chdir-long (Makefile.am): Likewise.
63306         * modules/chdir-safer (Makefile.am): Likewise.
63307         * modules/check-version (Makefile.am): Likewise.
63308         * modules/chown (Makefile.am): Likewise.
63309         * modules/cloexec (Makefile.am): Likewise.
63310         * modules/close-stream (Makefile.am): Likewise.
63311         * modules/closeout (Makefile.am): Likewise.
63312         * modules/crc (Makefile.am): Likewise.
63313         * modules/csharpexec (Makefile.am): Likewise.
63314         * modules/cycle-check (Makefile.am): Likewise.
63315         * modules/des (Makefile.am): Likewise.
63316         * modules/dev-ino (Makefile.am): Likewise.
63317         * modules/dirfd (Makefile.am): Likewise.
63318         * modules/dirname (Makefile.am): Likewise.
63319         * modules/dup2 (Makefile.am): Likewise.
63320         * modules/eealloc (Makefile.am): Likewise.
63321         * modules/error (Makefile.am): Likewise.
63322         * modules/euidaccess (Makefile.am): Likewise.
63323         * modules/exclude (Makefile.am): Likewise.
63324         * modules/exitfail (Makefile.am): Likewise.
63325         * modules/fcntl-safer (Makefile.am): Likewise.
63326         * modules/fcntl (Makefile.am): Likewise.
63327         * modules/file-type (Makefile.am): Likewise.
63328         * modules/fileblocks (Makefile.am): Likewise.
63329         * modules/filemode (Makefile.am): Likewise.
63330         * modules/filenamecat (Makefile.am): Likewise.
63331         * modules/fnmatch (Makefile.am): Likewise.
63332         * modules/fopen-safer (Makefile.am): Likewise.
63333         * modules/fpending (Makefile.am): Likewise.
63334         * modules/fprintftime (Makefile.am): Likewise.
63335         * modules/free (Makefile.am): Likewise.
63336         * modules/fsusage (Makefile.am): Likewise.
63337         * modules/ftruncate (Makefile.am): Likewise.
63338         * modules/fts (Makefile.am): Likewise.
63339         * modules/gc-arcfour (Makefile.am): Likewise.
63340         * modules/gc-des (Makefile.am): Likewise.
63341         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63342         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63343         * modules/gc-md4 (Makefile.am): Likewise.
63344         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63345         * modules/gc-sha1 (Makefile.am): Likewise.
63346         * modules/gc (Makefile.am): Likewise.
63347         * modules/getaddrinfo (Makefile.am): Likewise.
63348         * modules/getcwd (Makefile.am): Likewise.
63349         * modules/getdelim (Makefile.am): Likewise.
63350         * modules/getdomainname (Makefile.am): Likewise.
63351         * modules/getgroups (Makefile.am): Likewise.
63352         * modules/gethostname (Makefile.am): Likewise.
63353         * modules/gethrxtime (Makefile.am): Likewise.
63354         * modules/getline (Makefile.am): Likewise.
63355         * modules/getloadavg (Makefile.am): Likewise.
63356         * modules/getlogin_r (Makefile.am): Likewise.
63357         * modules/getndelim2 (Makefile.am): Likewise.
63358         * modules/getopt (Makefile.am): Likewise.
63359         * modules/getpagesize (Makefile.am): Likewise.
63360         * modules/getpass-gnu (Makefile.am): Likewise.
63361         * modules/getpass (Makefile.am): Likewise.
63362         * modules/getsubopt (Makefile.am): Likewise.
63363         * modules/gettime (Makefile.am): Likewise.
63364         * modules/gettimeofday (Makefile.am): Likewise.
63365         * modules/getugroups (Makefile.am): Likewise.
63366         * modules/getusershell (Makefile.am): Likewise.
63367         * modules/glob (Makefile.am): Likewise.
63368         * modules/group-member (Makefile.am): Likewise.
63369         * modules/hard-locale (Makefile.am): Likewise.
63370         * modules/hash (Makefile.am): Likewise.
63371         * modules/hmac-md5 (Makefile.am): Likewise.
63372         * modules/hmac-sha1 (Makefile.am): Likewise.
63373         * modules/human (Makefile.am): Likewise.
63374         * modules/idcache (Makefile.am): Likewise.
63375         * modules/imaxabs (Makefile.am): Likewise.
63376         * modules/imaxdiv (Makefile.am): Likewise.
63377         * modules/inet_ntop (Makefile.am): Likewise.
63378         * modules/inet_pton (Makefile.am): Likewise.
63379         * modules/intprops (Makefile.am): Likewise.
63380         * modules/inttostr (Makefile.am): Likewise.
63381         * modules/inttypes (Makefile.am): Likewise.
63382         * modules/isapipe (Makefile.am): Likewise.
63383         * modules/javaversion (Makefile.am): Likewise.
63384         * modules/lchmod (Makefile.am): Likewise.
63385         * modules/lchown (Makefile.am): Likewise.
63386         * modules/localcharset (Makefile.am): Likewise.
63387         * modules/long-options (Makefile.am): Likewise.
63388         * modules/lstat (Makefile.am): Likewise.
63389         * modules/malloc (Makefile.am): Likewise.
63390         * modules/mathl (Makefile.am): Likewise.
63391         * modules/mbchar (Makefile.am): Likewise.
63392         * modules/md2 (Makefile.am): Likewise.
63393         * modules/md4 (Makefile.am): Likewise.
63394         * modules/md5 (Makefile.am): Likewise.
63395         * modules/memcasecmp (Makefile.am): Likewise.
63396         * modules/memchr (Makefile.am): Likewise.
63397         * modules/memcmp (Makefile.am): Likewise.
63398         * modules/memcoll (Makefile.am): Likewise.
63399         * modules/memcpy (Makefile.am): Likewise.
63400         * modules/memmem (Makefile.am): Likewise.
63401         * modules/memmove (Makefile.am): Likewise.
63402         * modules/mempcpy (Makefile.am): Likewise.
63403         * modules/memrchr (Makefile.am): Likewise.
63404         * modules/memset (Makefile.am): Likewise.
63405         * modules/memxor (Makefile.am): Likewise.
63406         * modules/mkancesdirs (Makefile.am): Likewise.
63407         * modules/mkdir-p (Makefile.am): Likewise.
63408         * modules/mkdir (Makefile.am): Likewise.
63409         * modules/mkdtemp (Makefile.am): Likewise.
63410         * modules/mkstemp (Makefile.am): Likewise.
63411         * modules/mktime (Makefile.am): Likewise.
63412         * modules/modechange (Makefile.am): Likewise.
63413         * modules/mountlist (Makefile.am): Likewise.
63414         * modules/nanosleep (Makefile.am): Likewise.
63415         * modules/obstack (Makefile.am): Likewise.
63416         * modules/openat (Makefile.am): Likewise.
63417         * modules/pagealign_alloc (Makefile.am): Likewise.
63418         * modules/pathmax (Makefile.am): Likewise.
63419         * modules/physmem (Makefile.am): Likewise.
63420         * modules/poll (Makefile.am): Likewise.
63421         * modules/posixtm (Makefile.am): Likewise.
63422         * modules/posixver (Makefile.am): Likewise.
63423         * modules/putenv (Makefile.am): Likewise.
63424         * modules/quote (Makefile.am): Likewise.
63425         * modules/quotearg (Makefile.am): Likewise.
63426         * modules/raise (Makefile.am): Likewise.
63427         * modules/read-file (Makefile.am): Likewise.
63428         * modules/readline (Makefile.am): Likewise.
63429         * modules/readlink (Makefile.am): Likewise.
63430         * modules/readtokens (Makefile.am): Likewise.
63431         * modules/readutmp (Makefile.am): Likewise.
63432         * modules/realloc (Makefile.am): Likewise.
63433         * modules/regex (Makefile.am): Likewise.
63434         * modules/rename-dest-slash (Makefile.am): Likewise.
63435         * modules/rename (Makefile.am): Likewise.
63436         * modules/rijndael (Makefile.am): Likewise.
63437         * modules/rmdir (Makefile.am): Likewise.
63438         * modules/rpmatch (Makefile.am): Likewise.
63439         * modules/safe-read (Makefile.am): Likewise.
63440         * modules/safe-write (Makefile.am): Likewise.
63441         * modules/same-inode (Makefile.am): Likewise.
63442         * modules/same (Makefile.am): Likewise.
63443         * modules/save-cwd (Makefile.am): Likewise.
63444         * modules/savedir (Makefile.am): Likewise.
63445         * modules/setenv (Makefile.am): Likewise.
63446         * modules/settime (Makefile.am): Likewise.
63447         * modules/sha1 (Makefile.am): Likewise.
63448         * modules/sig2str (Makefile.am): Likewise.
63449         * modules/snprintf (Makefile.am): Likewise.
63450         * modules/stat-macros (Makefile.am): Likewise.
63451         * modules/stat-time (Makefile.am): Likewise.
63452         * modules/stdbool (Makefile.am): Likewise.
63453         * modules/stdint (Makefile.am): Likewise.
63454         * modules/stdlib-safer (Makefile.am): Likewise.
63455         * modules/stpcpy (Makefile.am): Likewise.
63456         * modules/stpncpy (Makefile.am): Likewise.
63457         * modules/strcase (Makefile.am): Likewise.
63458         * modules/strcasestr (Makefile.am): Likewise.
63459         * modules/strchrnul (Makefile.am): Likewise.
63460         * modules/strcspn (Makefile.am): Likewise.
63461         * modules/strdup (Makefile.am): Likewise.
63462         * modules/strerror (Makefile.am): Likewise.
63463         * modules/strftime (Makefile.am): Likewise.
63464         * modules/strndup (Makefile.am): Likewise.
63465         * modules/strnlen (Makefile.am): Likewise.
63466         * modules/strpbrk (Makefile.am): Likewise.
63467         * modules/strsep (Makefile.am): Likewise.
63468         * modules/strstr (Makefile.am): Likewise.
63469         * modules/strtod (Makefile.am): Likewise.
63470         * modules/strtoimax (Makefile.am): Likewise.
63471         * modules/strtok_r (Makefile.am): Likewise.
63472         * modules/strtol (Makefile.am): Likewise.
63473         * modules/strtoll (Makefile.am): Likewise.
63474         * modules/strtoul (Makefile.am): Likewise.
63475         * modules/strtoull (Makefile.am): Likewise.
63476         * modules/strtoumax (Makefile.am): Likewise.
63477         * modules/strverscmp (Makefile.am): Likewise.
63478         * modules/sys_socket (Makefile.am): Likewise.
63479         * modules/sys_stat (Makefile.am): Likewise.
63480         * modules/sysexits (Makefile.am): Likewise.
63481         * modules/time_r (Makefile.am): Likewise.
63482         * modules/timegm (Makefile.am): Likewise.
63483         * modules/timespec (Makefile.am): Likewise.
63484         * modules/tmpfile-safer (Makefile.am): Likewise.
63485         * modules/trim (Makefile.am): Likewise.
63486         * modules/unistd-safer (Makefile.am): Likewise.
63487         * modules/unlinkdir (Makefile.am): Likewise.
63488         * modules/unlocked-io (Makefile.am): Likewise.
63489         * modules/userspec (Makefile.am): Likewise.
63490         * modules/utime (Makefile.am): Likewise.
63491         * modules/utimecmp (Makefile.am): Likewise.
63492         * modules/utimens (Makefile.am): Likewise.
63493         * modules/vasnprintf (Makefile.am): Likewise.
63494         * modules/vasprintf (Makefile.am): Likewise.
63495         * modules/vsnprintf (Makefile.am): Likewise.
63496         * modules/xalloc (Makefile.am): Likewise.
63497         * modules/xgetcwd (Makefile.am): Likewise.
63498         * modules/xnanosleep (Makefile.am): Likewise.
63499         * modules/xreadlink (Makefile.am): Likewise.
63500         * modules/xstrtod (Makefile.am): Likewise.
63501         * modules/xstrtol (Makefile.am): Likewise.
63502         * modules/xstrtold (Makefile.am): Likewise.
63503         * modules/yesno (Makefile.am): Likewise.
63504         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63505
63506 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63507
63508         * modules/error (Makefile.am): Distribute files through
63509         EXTRA_DIST, not lib_SOURCES.
63510
63511 2006-10-12  Eric Blake  <ebb9@byu.net>
63512
63513         * modules/error (Makefile.am): Distribute files in /lib.
63514         * modules/obstack (Makefile.am): Likewise.
63515
63516 2006-10-12  Bruno Haible  <bruno@clisp.org>
63517
63518         * modules/acl (Makefile.am): Distribute all files in lib/ through
63519         EXTRA_DIST.
63520         * modules/arcfour (Makefile.am): Likewise.
63521         * modules/arctwo (Makefile.am): Likewise.
63522         * modules/argmatch (Makefile.am): Likewise.
63523         * modules/argz (Makefile.am): Likewise.
63524         * modules/atexit (Makefile.am): Likewise.
63525         * modules/backupfile (Makefile.am): Likewise.
63526         * modules/c-strtod (Makefile.am): Likewise.
63527         * modules/c-strtold (Makefile.am): Likewise.
63528         * modules/calloc (Makefile.am): Likewise.
63529         * modules/canon-host (Makefile.am): Likewise.
63530         * modules/canonicalize (Makefile.am): Likewise.
63531         * modules/chdir-long (Makefile.am): Likewise.
63532         * modules/chdir-safer (Makefile.am): Likewise.
63533         * modules/check-version (Makefile.am): Likewise.
63534         * modules/chown (Makefile.am): Likewise.
63535         * modules/cloexec (Makefile.am): Likewise.
63536         * modules/close-stream (Makefile.am): Likewise.
63537         * modules/closeout (Makefile.am): Likewise.
63538         * modules/crc (Makefile.am): Likewise.
63539         * modules/cycle-check (Makefile.am): Likewise.
63540         * modules/des (Makefile.am): Likewise.
63541         * modules/dirfd (Makefile.am): Likewise.
63542         * modules/dirname (Makefile.am): Likewise.
63543         * modules/dup2 (Makefile.am): Likewise.
63544         * modules/euidaccess (Makefile.am): Likewise.
63545         * modules/exclude (Makefile.am): Likewise.
63546         * modules/exitfail (Makefile.am): Likewise.
63547         * modules/fcntl-safer (Makefile.am): Likewise.
63548         * modules/file-type (Makefile.am): Likewise.
63549         * modules/fileblocks (Makefile.am): Likewise.
63550         * modules/filemode (Makefile.am): Likewise.
63551         * modules/filenamecat (Makefile.am): Likewise.
63552         * modules/fnmatch (Makefile.am): Likewise.
63553         * modules/fopen-safer (Makefile.am): Likewise.
63554         * modules/fpending (Makefile.am): Likewise.
63555         * modules/fprintftime (Makefile.am): Likewise.
63556         * modules/free (Makefile.am): Likewise.
63557         * modules/fsusage (Makefile.am): Likewise.
63558         * modules/ftruncate (Makefile.am): Likewise.
63559         * modules/fts (Makefile.am): Likewise.
63560         * modules/gc (Makefile.am): Likewise.
63561         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63562         * modules/getaddrinfo (Makefile.am): Likewise.
63563         * modules/getcwd (Makefile.am): Likewise.
63564         * modules/getdelim (Makefile.am): Likewise.
63565         * modules/getdomainname (Makefile.am): Likewise.
63566         * modules/getgroups (Makefile.am): Likewise.
63567         * modules/gethostname (Makefile.am): Likewise.
63568         * modules/gethrxtime (Makefile.am): Likewise.
63569         * modules/getline (Makefile.am): Likewise.
63570         * modules/getloadavg (Makefile.am): Likewise.
63571         * modules/getlogin_r (Makefile.am): Likewise.
63572         * modules/getopt (Makefile.am): Likewise.
63573         * modules/getpass (Makefile.am): Likewise.
63574         * modules/getpass-gnu (Makefile.am): Likewise.
63575         * modules/getsubopt (Makefile.am): Likewise.
63576         * modules/gettime (Makefile.am): Likewise.
63577         * modules/gettimeofday (Makefile.am): Likewise.
63578         * modules/getugroups (Makefile.am): Likewise.
63579         * modules/getusershell (Makefile.am): Likewise.
63580         * modules/glob (Makefile.am): Likewise.
63581         * modules/group-member (Makefile.am): Likewise.
63582         * modules/hard-locale (Makefile.am): Likewise.
63583         * modules/hash (Makefile.am): Likewise.
63584         * modules/hmac-md5 (Makefile.am): Likewise.
63585         * modules/hmac-sha1 (Makefile.am): Likewise.
63586         * modules/human (Makefile.am): Likewise.
63587         * modules/idcache (Makefile.am): Likewise.
63588         * modules/imaxabs (Makefile.am): Likewise.
63589         * modules/imaxdiv (Makefile.am): Likewise.
63590         * modules/inet_ntop (Makefile.am): Likewise.
63591         * modules/inet_pton (Makefile.am): Likewise.
63592         * modules/inttostr (Makefile.am): Likewise.
63593         * modules/isapipe (Makefile.am): Likewise.
63594         * modules/lchown (Makefile.am): Likewise.
63595         * modules/long-options (Makefile.am): Likewise.
63596         * modules/lstat (Makefile.am): Likewise.
63597         * modules/malloc (Makefile.am): Likewise.
63598         * modules/mathl (Makefile.am): Likewise.
63599         * modules/mbchar (Makefile.am): Likewise.
63600         * modules/md2 (Makefile.am): Likewise.
63601         * modules/md4 (Makefile.am): Likewise.
63602         * modules/md5 (Makefile.am): Likewise.
63603         * modules/memcasecmp (Makefile.am): Likewise.
63604         * modules/memchr (Makefile.am): Likewise.
63605         * modules/memcmp (Makefile.am): Likewise.
63606         * modules/memcoll (Makefile.am): Likewise.
63607         * modules/memcpy (Makefile.am): Likewise.
63608         * modules/memmem (Makefile.am): Likewise.
63609         * modules/memmove (Makefile.am): Likewise.
63610         * modules/mempcpy (Makefile.am): Likewise.
63611         * modules/memrchr (Makefile.am): Likewise.
63612         * modules/memset (Makefile.am): Likewise.
63613         * modules/memxor (Makefile.am): Likewise.
63614         * modules/mkancesdirs (Makefile.am): Likewise.
63615         * modules/mkdir (Makefile.am): Likewise.
63616         * modules/mkdir-p (Makefile.am): Likewise.
63617         * modules/mkdtemp (Makefile.am): Likewise.
63618         * modules/mkstemp (Makefile.am): Likewise.
63619         * modules/mktime (Makefile.am): Likewise.
63620         * modules/modechange (Makefile.am): Likewise.
63621         * modules/mountlist (Makefile.am): Likewise.
63622         * modules/nanosleep (Makefile.am): Likewise.
63623         * modules/openat (Makefile.am): Likewise.
63624         * modules/pagealign_alloc (Makefile.am): Likewise.
63625         * modules/physmem (Makefile.am): Likewise.
63626         * modules/poll (Makefile.am): Likewise.
63627         * modules/posixtm (Makefile.am): Likewise.
63628         * modules/posixver (Makefile.am): Likewise.
63629         * modules/putenv (Makefile.am): Likewise.
63630         * modules/quote (Makefile.am): Likewise.
63631         * modules/quotearg (Makefile.am): Likewise.
63632         * modules/raise (Makefile.am): Likewise.
63633         * modules/read-file (Makefile.am): Likewise.
63634         * modules/readline (Makefile.am): Likewise.
63635         * modules/readlink (Makefile.am): Likewise.
63636         * modules/readtokens (Makefile.am): Likewise.
63637         * modules/readutmp (Makefile.am): Likewise.
63638         * modules/realloc (Makefile.am): Likewise.
63639         * modules/regex (Makefile.am): Likewise.
63640         * modules/rename (Makefile.am): Likewise.
63641         * modules/rename-dest-slash (Makefile.am): Likewise.
63642         * modules/rijndael (Makefile.am): Likewise.
63643         * modules/rmdir (Makefile.am): Likewise.
63644         * modules/rpmatch (Makefile.am): Likewise.
63645         * modules/safe-read (Makefile.am): Likewise.
63646         * modules/safe-write (Makefile.am): Likewise.
63647         * modules/same (Makefile.am): Likewise.
63648         * modules/save-cwd (Makefile.am): Likewise.
63649         * modules/savedir (Makefile.am): Likewise.
63650         * modules/setenv (Makefile.am): Likewise.
63651         * modules/settime (Makefile.am): Likewise.
63652         * modules/sha1 (Makefile.am): Likewise.
63653         * modules/sig2str (Makefile.am): Likewise.
63654         * modules/snprintf (Makefile.am): Likewise.
63655         * modules/stdlib-safer (Makefile.am): Likewise.
63656         * modules/stpcpy (Makefile.am): Likewise.
63657         * modules/stpncpy (Makefile.am): Likewise.
63658         * modules/strcase (Makefile.am): Likewise.
63659         * modules/strcasestr (Makefile.am): Likewise.
63660         * modules/strchrnul (Makefile.am): Likewise.
63661         * modules/strcspn (Makefile.am): Likewise.
63662         * modules/strdup (Makefile.am): Likewise.
63663         * modules/strerror (Makefile.am): Likewise.
63664         * modules/strftime (Makefile.am): Likewise.
63665         * modules/strndup (Makefile.am): Likewise.
63666         * modules/strnlen (Makefile.am): Likewise.
63667         * modules/strpbrk (Makefile.am): Likewise.
63668         * modules/strsep (Makefile.am): Likewise.
63669         * modules/strstr (Makefile.am): Likewise.
63670         * modules/strtod (Makefile.am): Likewise.
63671         * modules/strtoimax (Makefile.am): Likewise.
63672         * modules/strtok_r (Makefile.am): Likewise.
63673         * modules/strtol (Makefile.am): Likewise.
63674         * modules/strtoll (Makefile.am): Likewise.
63675         * modules/strtoul (Makefile.am): Likewise.
63676         * modules/strtoull (Makefile.am): Likewise.
63677         * modules/strtoumax (Makefile.am): Likewise.
63678         * modules/strverscmp (Makefile.am): Likewise.
63679         * modules/time_r (Makefile.am): Likewise.
63680         * modules/timegm (Makefile.am): Likewise.
63681         * modules/tmpfile-safer (Makefile.am): Likewise.
63682         * modules/unistd-safer (Makefile.am): Likewise.
63683         * modules/unlinkdir (Makefile.am): Likewise.
63684         * modules/userspec (Makefile.am): Likewise.
63685         * modules/utime (Makefile.am): Likewise.
63686         * modules/utimecmp (Makefile.am): Likewise.
63687         * modules/utimens (Makefile.am): Likewise.
63688         * modules/vasnprintf (Makefile.am): Likewise.
63689         * modules/vasprintf (Makefile.am): Likewise.
63690         * modules/vsnprintf (Makefile.am): Likewise.
63691         * modules/xalloc (Makefile.am): Likewise.
63692         * modules/xgetcwd (Makefile.am): Likewise.
63693         * modules/xnanosleep (Makefile.am): Likewise.
63694         * modules/xreadlink (Makefile.am): Likewise.
63695         * modules/xstrtod (Makefile.am): Likewise.
63696         * modules/xstrtol (Makefile.am): Likewise.
63697         * modules/xstrtold (Makefile.am): Likewise.
63698         * modules/yesno (Makefile.am): Likewise.
63699
63700 2006-10-12  Jim Meyering  <jim@meyering.net>
63701
63702         * m4/getloadavg.m4: Revert the change below.
63703
63704         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63705         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63706         fail with a symlink, which is what coreutils' ./bootstrap now
63707         creates by default.
63708
63709 2006-10-12  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63712         mingw.
63713         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63714         MSVC and mingw explicitly.
63715
63716 2006-10-11  Simon Josefsson  <jas@extundo.com>
63717             Bruno Haible  <bruno@clisp.org>
63718
63719         Add support for multiple gnulib-tool invocations in the scope of a
63720         single configure.ac file.
63721         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63722         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63723         with the same contents as the _LIBADD variable.
63724         (func_emit_initmacro_start, func_emit_initmacro_end,
63725         func_emit_initmacro_done): New functions.
63726         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63727         gl_LIBOBJS and gl_LTLIBOBJS.
63728
63729 2006-10-11  Bruno Haible  <bruno@clisp.org>
63730
63731         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63732         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63733         autoreconf. Instead, invoke autopoint explicitly but move back the
63734         *.m4 files from gnulib.
63735
63736 2006-10-11  Bruno Haible  <bruno@clisp.org>
63737
63738         * gnulib-tool (func_usage): Make module names after --create-testdir
63739         optional.
63740         (func_create_testdir): If no module was specified, use nearly all
63741         modules.
63742
63743 2006-10-12  Jim Meyering  <jim@meyering.net>
63744
63745         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63746         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63747         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63748         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63749         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63750         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63751         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63752         (fts_set_stat_required): New function.
63753         (fts_open): Defer the calls to fts_stat, if possible or requested.
63754         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63755         into fts_stat itself.
63756         (fts_read): Perform any required (deferred) fts_stat call.
63757         (fts_build): Likewise, for the directory we're about to open and read.
63758         In the readdir loop, carefully decide whether each entry will require
63759         an eventual call to fts_stat, using dirent.d_type info if available.
63760         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63761         a command line argument into this function.  Update all callers.
63762         Map a return value of FTS_DOT to FTS_D for a command line argument.
63763         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63764         Thanks to Miklos Szeredi for his tenacity and for the initial
63765         bug report about "find" failing on a FUSE-based file system.
63766
63767         * lib/fts.c (fts_open): Use consistent indentation.
63768
63769 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63772         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63773         reported by Jim Meyering.  All uses of cache variables renamed
63774         to match Autoconf's.
63775         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63776         the other one.
63777
63778         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63779         Fix misspelling in diagnostic.
63780
63781 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63784         defined.  Problem reported by Matthew Woehlke.
63785
63786         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63787         Add support for Tandem NonStop R series.
63788         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63789         Use new macro.
63790
63791         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63792         (has_trailing_slash): Omit size arg; all callers changed.
63793         Omit 'inline', since it doesn't help performance and we'd
63794         need to configure it.
63795         Don't count //, ///, etc. as having a trailing slash.
63796         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63797         (rpl_rename_dest_slash): On failure, use rename's errno rather
63798         than (in some cases) an incorrect or junk errno.
63799         Simplify code by removing need to compute length; this does
63800         cause it to make two passes instead of one over the file name,
63801         but it's worth it.
63802
63803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63804         change, since Autoconf's version may no longer be appropriate now
63805         that we are using CVS Autoconf's version.  Add support for Tandem.
63806
63807 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63808             Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63811         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63812         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63813         gl_AC_TYPE_LONG_LONG.
63814
63815         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63816         instead of HAVE_LONG_LONG.
63817         * lib/printf-args.c (printf_fetchargs): Likewise.
63818         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63819         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63821         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63822         gl_AC_TYPE_LONG_LONG.
63823
63824 2006-10-11  Bruno Haible  <bruno@clisp.org>
63825
63826         * m4/longlong.m4: Add comments.
63827         * m4/ulonglong.m4: Likewise.
63828
63829 2006-10-10  Bruno Haible  <bruno@clisp.org>
63830
63831         Make it possible to #define stpcpy, strdup to aliases.
63832         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63833         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63834
63835 2006-10-10  Bruno Haible  <bruno@clisp.org>
63836
63837         Make it possible to #define gcd to an alias.
63838         * lib/gcd.c: Include config.h.
63839
63840 2006-10-10  Bruno Haible  <bruno@clisp.org>
63841
63842         Make it possible to #define c_isascii to an alias.
63843         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63844         defined. Undefine the macros before defining them, to avoid gcc
63845         warnings.
63846         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63847         define NO_C_CTYPE_MACROS early.
63848
63849 2006-10-10  Bruno Haible  <bruno@clisp.org>
63850
63851         Make it possible to #define set_program_name to an alias.
63852         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63853         ENABLE_RELOCATABLE early.
63854
63855 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63858         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63859         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63860         More generally, don't assume that 64-bit signed int is available
63861         if unsigned int is, and vice versa.
63862         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63863         unsigned symbols, not on their signed counterparts.
63864         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63865         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63866         (UINT64_C, UINTMAX_C):
63867         Likewise.
63868         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63869         unsigned counterparts.
63870         (Have_long_long, Unsigned): New macros.
63871         (Int): Renamed from INT.
63872         (strtoimax): Use the new macros.
63873         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63874         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63875         * modules/inttypes (inttypes.h): Substitute
63876         HAVE_UNSIGNED_LONG_LONG_INT.
63877         * modules/stdint (stdint.h): Likewise.
63878         (Files): Add m4/ulonglong.m4.
63879
63880 2006-10-10  Bruno Haible  <bruno@clisp.org>
63881
63882         Fix a gcc -Wshadow warning.
63883         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63884         to 'bucket'.
63885         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63886         gl_linked_indexof_from_to): Likewise.
63887         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63888         Likewise.
63889         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63890         Likewise.
63891         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63892         Reported by Eric Blake.
63893
63894 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63897         for NetBSD.  Problem reported by Bruno Haible.
63898
63899 2006-10-09  Jim Meyering  <jim@meyering.net>
63900
63901         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63902         Patch from Bruno Haible.
63903
63904 2006-10-09  Jim Meyering  <jim@meyering.net>
63905
63906         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63907         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63908         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63909
63910 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63911
63912         Don't include <config.h> twice; this doesn't work in some cases,
63913         e.g., when config.h has "#define intmax_t long long int" and
63914         we include <config.h>, <inttypes.h>, <config.h> in that order.
63915         Problem reported by Matthew Woehlke in:
63916         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63917         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63918         * lib/fts-cycle.c: Don't include config.h.
63919         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63920         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63921         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63922         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63923         inttypes.h.
63924         * lib/xstrtoumax.c: Likewise.
63925         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63926         __strtol and the like, so that this module is more like its siblings.
63927         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63928         Remove; no longer needed now that we assume gnulib inttypes.h.
63929
63930 2006-10-08  Bruno Haible  <bruno@clisp.org>
63931
63932         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63933         option.
63934
63935 2006-10-07  Jim Meyering  <jim@meyering.net>
63936
63937         * modules/inttypes (inttypes.h): Revert what seems to have been
63938         an inadvertent part of today's change: use "|", not "/" in the
63939         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63940
63941 2006-10-07  Bruno Haible  <bruno@clisp.org>
63942
63943         * modules/sublist: New file.
63944
63945 2006-10-07  Bruno Haible  <bruno@clisp.org>
63946
63947         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63948         * modules/argz (argz.h): Likewise.
63949         * modules/arpa_inet (arpa/inet.h): Likewise.
63950         * modules/byteswap (byteswap.h): Likewise.
63951         * modules/configmake (configmake.h): Likewise.
63952         * modules/fcntl (fcntl.h): Likewise.
63953         * modules/fnmatch (fnmatch.h): Likewise.
63954         * modules/getopt (getopt.h): Likewise.
63955         * modules/glob (glob.h): Likewise.
63956         * modules/inttypes (inttypes.h): Likewise.
63957         * modules/netinet_in (netinet/in.h): Likewise.
63958         * modules/poll (poll.h): Likewise.
63959         * modules/stdbool (stdbool.h): Likewise.
63960         * modules/stdint (stdint.h): Likewise.
63961         * modules/sys_select (sys/select.h): Likewise.
63962         * modules/sys_socket (sys/socket.h): Likewise.
63963         * modules/sys_stat (sys/stat.h): Likewise.
63964         * modules/sysexits (sysexits.h): Likewise.
63965         * modules/unistd (unistd.h): Likewise.
63966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63967         Add a "DO NOT EDIT" comment to the generated file.
63968         (func_import): Likewise for gnulib-comp.m4.
63969
63970 2006-10-07  Bruno Haible  <bruno@clisp.org>
63971
63972         * lib/gl_sublist.h: New file.
63973         * lib/gl_sublist.c: New file.
63974
63975 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63976
63977         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63978         name (relative to the original working directory) and the file
63979         name component (relative to the temporary working directory).  All
63980         callers changed.
63981         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63982         * lib/mkdir-p.c (make_dir_parents): Likewise.
63983         * lib/mkdir-p.h (make_dir_parents): Likewise.
63984
63985 2006-10-06  Eric Blake  <ebb9@byu.net>
63986
63987         Define several macros for use by the clean-temp module.
63988         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63989         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63991
63992         * lib/clean-temp.h (close_stream_temp): New declaration.
63993         * lib/clean-temp.c (includes): Pull in headers according to what
63994         other modules are in use.
63995         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63996
63997 2006-10-06  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64000         instead of fopen, fwriteerror.
64001
64002 2006-10-06  Bruno Haible  <bruno@clisp.org>
64003
64004         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64005         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64006         int.
64007         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64008         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64009         Return an error indicator.
64010         Suggested by Eric Blake.
64011
64012 2006-10-06  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64015         Reported by Eric Blake.
64016
64017 2006-10-06  Bruno Haible  <bruno@clisp.org>
64018
64019         * modules/closeout (Description): Mention stderr too.
64020
64021 2006-10-06  Bruno Haible  <bruno@clisp.org>
64022         and Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * lib/closeout.c (close_stdout): Also close stderr.
64025         * lib/closeout.h: Update comment.
64026
64027 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64031         * lib/dirchownmod.c: Include lchown.h.
64032         * lib/lchown.c: Don't include files that lchown.h now includes.
64033         Don't declare chown, since lchown.h now does that.
64034         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64035         (lchown): Define to rpl_chown if lchown is declared but
64036         does not exist.  Declare using a prototype if lchown is not
64037         declared.  Add a copyright notice.
64038         * lib/mkstemp.h: Include <unistd.h>.
64039         * lib/openat.c: Include lchown.h.
64040
64041         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64042         we now test for that separately.
64043         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64044         rather than O_NOFOLLOW, when testing whether it's possible to
64045         avoid a race condition reliably.
64046         * lib/savewd.c (savewd_chdir): Likewise.
64047
64048         Remove macros that are no longer needed now that stdint.h is
64049         reliable.
64050         * lib/fsusage.c (UINTMAX_MAX): Remove.
64051         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64052         * lib/utimecmp.c (SIZE_MAX): Remove.
64053
64054         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64055
64056         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64057         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64058         O_NOATIME works.
64059
64060 2006-10-05  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/gl_list.h (gl_sortedlist_search_from_to,
64063         gl_sortedlist_indexof_from_to): New declarations.
64064         (gl_list_implementation): New fields sortedlist_search_from_to,
64065         sortedlist_indexof_from_to.
64066         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64067         inline functions.
64068         * lib/gl_list.c (gl_sortedlist_search_from_to,
64069         gl_sortedlist_indexof_from_to): New functions.
64070         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64071         function.
64072         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64073         (gl_array_sortedlist_search_from_to): New function.
64074         (gl_array_list_implementation): Update.
64075         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64076         function.
64077         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64078         (gl_carray_sortedlist_search_from_to): New function.
64079         (gl_carray_list_implementation): Update.
64080         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64081         gl_linked_sortedlist_indexof_from_to): New functions.
64082         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64083         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64084         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64085         gl_tree_sortedlist_indexof_from_to): New functions.
64086         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64087         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64088         Update.
64089         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64090         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64091         Update.
64092
64093 2006-10-05  Bruno Haible  <bruno@clisp.org>
64094
64095         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64096         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64097         (struct gl_list_implementation): Add fields search_from_to,
64098         indexof_from_to. Remove fields search, indexof.
64099         (gl_list_search): Use the search_from_to method.
64100         (gl_list_search_from, gl_list_search_from_to): New functions.
64101         (gl_list_indexof): Use the indexof_from_to method.
64102         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64103         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64104         (gl_list_search_from, gl_list_search_from_to): New functions.
64105         (gl_list_indexof): Use the indexof_from_to method.
64106         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64107         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64108         gl_array_indexof. Add start_index, end_index arguments.
64109         (gl_array_search_from_to): Renamed from gl_array_search. Add
64110         start_index, end_index arguments.
64111         (gl_array_remove, gl_array_list_implementation): Update.
64112         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64113         gl_carray_indexof. Add start_index, end_index arguments.
64114         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64115         start_index, end_index arguments.
64116         (gl_carray_remove, gl_carray_list_implementation): Update.
64117         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64118         gl_linked_search. Add start_index, end_index arguments.
64119         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64120         start_index, end_index arguments.
64121         (gl_linked_remove): Update.
64122         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64123         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64124         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64125         field to 'size_t'.
64126         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64127         gl_tree_search. Add start_index, end_index arguments.
64128         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64129         start_index, end_index arguments.
64130         (gl_tree_remove): Update.
64131         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64132         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64133         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64134         function.
64135         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64136         gl_tree_search. Add start_index, end_index arguments.
64137         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64138         start_index, end_index arguments.
64139         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64140         Update.
64141         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64142
64143 2006-10-05  Bruno Haible  <bruno@clisp.org>
64144
64145         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64146
64147         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64148         fwriteerror_temp): New declarations.
64149         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64150         (descriptors): New variable.
64151         (cleanup): First, close the descriptors.
64152         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64153         fclose_temp, fwriteerror_temp): New functions.
64154
64155 2006-10-04  Jim Meyering  <jim@meyering.net>
64156
64157         * lib/fts.c (fts_open): Tiny comment change.
64158
64159 2006-10-04  Bruno Haible  <bruno@clisp.org>
64160
64161         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64162         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64163         gl_LOCK_BODY.
64164         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64165         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64166         gl_LOCK_EARLY_BODY.
64167         (gl_LOCK): Require gl_LOCK_BODY.
64168
64169 2006-10-04  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64172         (gl_oset_search_atleast): New declaration.
64173         (struct gl_oset_implementation): Add field 'search_atleast'.
64174         (gl_oset_search_atleast): New inline function.
64175         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64176         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64177         (gl_array_oset_implementation): Update.
64178         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64179         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64180         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64181
64182 2006-10-04  Bruno Haible  <bruno@clisp.org>
64183
64184         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64185
64186 2006-10-03  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64189         from gl_avltreehash_list_implementation.
64190
64191 2006-10-03  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/gl_oset.c (gl_oset_add): Fix return type.
64194
64195 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64196
64197         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64198
64199 2006-10-02  Eric Blake  <ebb9@byu.net>
64200
64201         * modules/strnlen (Depends-on): Add extensions.
64202
64203 2006-10-02  Eric Blake  <ebb9@byu.net>
64204
64205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64206         definition in 2.60+.
64207
64208 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64209
64210         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64211         checks.
64212
64213 2006-10-02  Bruno Haible  <bruno@clisp.org>
64214
64215         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64216         to the AUTOMAKE_OPTIONS.
64217         Reported by Jim Meyering.
64218
64219 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         Work around bug in Solaris 10 /proc file system:
64222         /proc/self/fd/NNN/.. isn't the parent directory of
64223         the directory whose file descriptor is NNN.  This needs to
64224         be worked around at run time, not compile time, since a
64225         program might be built on Solaris 8, where things work, and
64226         run on Solaris 10.
64227         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64228         to use the following interface instead:
64229         (OPENAT_BUFFER_SIZE): New macro.
64230         (openat_proc_name): New function.
64231         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64232         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64233         Likewise.
64234         * lib/openat-proc.c: New file.
64235         * modules/openat (Files): Add lib/openat-proc.c.
64236         (Depends-on): Add same-inode, stdbool.
64237         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64238
64239 2006-09-29  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64242         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64243         argument. Set stdout_closed before testing for ferror, not after.
64244         (fwriteerror, fwriteerror_no_ebadf): New functions.
64245
64246 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64247
64248         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64249
64250 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64251
64252         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64253         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64254
64255 2006-09-28  Jim Meyering  <jim@meyering.net>
64256
64257         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64258         Include <unistd.h>.
64259
64260 2006-09-28  Bruno Haible  <bruno@clisp.org>
64261
64262         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64263         * modules/linkedhash-list (Depends-on): Likewise.
64264         * modules/rbtreehash-list (Depends-on): Likewise.
64265
64266 2006-09-28  Bruno Haible  <bruno@clisp.org>
64267
64268         * lib/strndup.h: Simplify the redefinition of strndup.
64269         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64270         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64271
64272 2006-09-28  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64275         * lib/gl_linkedhash_list.c: Likewise.
64276         * lib/gl_rbtreehash_list.c: Likewise.
64277
64278 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64279
64280         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64281         getaddrinfo.
64282
64283         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64284         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64285         it causes <stdio_ext.h> to cause a compile-time error.
64286         Problem reported by Nelson H. F. Beebe.
64287         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64288         of HAVE_DECL___PENDING.
64289
64290         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64291         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64292         declaration.
64293
64294 2006-09-27  Jim Meyering  <jim@meyering.net>
64295
64296         This file could end up with a definition for a function
64297         named __strndup, rather than rpl_strndup on a system with
64298         incomplete weak_alias support.
64299         * lib/strndup.c (strndup): Rename from __strndup.
64300         Remove #defines that used to map __strndup to strndup.
64301         Don't use K&R prototypes.
64302         Remove LIBC-related code, since this file is not sync'd with glibc.
64303         * lib/strndup.h: Revamp, accordingly.
64304         * m4/strndup.m4: Modernize.
64305
64306 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * modules/savewd (Depends-on): Add 'raise'.
64309         * lib/savewd.c: Include <signal.h>, for 'raise'.
64310
64311 2006-09-26  Jim Meyering  <jim@meyering.net>
64312
64313         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64314         when we detect Darwin 8.7.0's acl_get_file bug.
64315         Rearrange to perform the new (below) run-test while $LIBS
64316         contains any acl-related library.  Set USE_ACL at the end.
64317         (gl_ACL_GET_FILE): New function.
64318
64319 2006-09-26  Eric Blake  <ebb9@byu.net>
64320
64321         * lib/verror.c: Include <config.h> unconditionally.
64322
64323 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         * modules/clock-time (Maintainer): Add self.
64326         * modules/getlogin_r (Depends-on): Add extensions.
64327
64328 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64329
64330         * modules/clock-time: New module.
64331         * modules/nanosleep (Depends-on): Add clock-time.
64332         * modules/gethrxtime (Depends-on): Likewise.
64333         * modules/gettime (Depends-on): Likewise.
64334         * modules/settime (Depends-on): Likewise.
64335
64336         * modules/fts-lgpl: Depend on openat.
64337         * modules/mkancesdirs: Depend on savewd.
64338         * modules/mkdir-p: Likewise.
64339
64340 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64341
64342         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64343
64344         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64345         `gl_have_arbitrary_file_name_length_limit' to
64346         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64347         actually works between configure runs.
64348
64349 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64350             Bruno Haible  <bruno@clisp.org>
64351
64352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64353
64354 2006-09-25  Jim Meyering  <jim@meyering.net>
64355
64356         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64357         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64358
64359 2006-09-25  Eric Blake  <ebb9@byu.net>
64360
64361         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64362         exec's in 2006-09-18 patch when shuffling fds.
64363
64364 2006-09-25  Bruno Haible  <bruno@clisp.org>
64365
64366         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64367         Reported by Jim Meyering.
64368
64369 2006-09-24  Jim Meyering  <jim@meyering.net>
64370
64371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64372         compare a pointer against a literal "0".  That caused failures with
64373         at least HP-UX's hpcc.
64374
64375 2006-09-22  Simon Josefsson  <jas@extundo.com>
64376
64377         * modules/gc-sha1:
64378         * modules/gc-md4:
64379         * modules/gc-hmac-sha1:
64380         * modules/gc-hmac-md5:
64381         * modules/gc-des:
64382         * modules/gc-arcfour: Distribute more files.
64383
64384 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64385
64386         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64387         (gl_linked_iterator_from_to): Initialize struct completely.
64388         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64389         (gl_tree_iterator_from_to): Likewise
64390         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64391         * lib/gl_array_list.c [lint] (gl_array_iterator)
64392         (gl_array_iterator_from_to): Likewise.
64393         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64394         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64395         (gl_carray_iterator_from_to): Likewise.
64396
64397         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64398         * lib/md4.c (md4_process_block): Remove unused variable.
64399         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64400         parentheses for clarity.
64401
64402 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64403
64404         * modules/bison-i18n (Depends-on): Add gettext.
64405
64406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64407
64408         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64410         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64411         also add missing comma that caused broken test.
64412         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64413         stdlib.h, for `abort'.
64414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64415         variables.
64416         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64417         include unistd.h if present, for `rmdir'.
64418         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64419         variables.
64420         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64421         in the process include standard headers for prototypes.
64422         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64423         gets declared on GNU/Linux.
64424         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64425         unistd.h, for `rmdir'.
64426         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64427
64428         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64429         always true.
64430         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64431
64432         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64433
64434 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64435
64436         * gnulib-tool (func_version): Create output all at once.  This
64437         may help avoid triggering unnecessary SIGPIPEs, and at any
64438         rate it doesn't hurt.
64439
64440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64441             Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64444         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64445         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64446
64447         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64448         (gl_FUNC_VASPRINTF): Invoke it.
64449
64450 2006-09-22  Bruno Haible  <bruno@clisp.org>
64451
64452         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64453         getloadavg.c as first argument.
64454
64455 2006-09-22  Bruno Haible  <bruno@clisp.org>
64456
64457         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64458         at the beginning of the gl_INIT macro.
64459         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64460         gl_GETLOADAVG.
64461
64462 2006-09-22  Bruno Haible  <bruno@clisp.org>
64463
64464         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64465         module.
64466         Suggested by Ralf Wildenhues.
64467
64468 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         Import this patch from libc:
64471
64472         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64473
64474         * lib/regex_internal.c (re_string_reconstruct): Handle
64475         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64476         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64477         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64478         re_string_context_at.
64479
64480         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64481         now requires it.
64482         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64483         gl_REGEX now does it for us.
64484         (gl_REGEX): Add test taken from
64485         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64486
64487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64488         Check that large offsets work.  Modernize Autoconf usages.
64489         Prefer "yes" to mean a good thing rather than a bad.
64490         Don't put "#define mkstemp" in config.h, as this might interfere
64491         with standard system headers that "#define mkstemp mkstemp64".
64492
64493         * modules/mkstemp (Depends-on): Add extensions, so that
64494         mkstemp is visible on some platforms.
64495         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64496         (Include): Change to "mkstemp.h" from <stdlib.h>.
64497         (Files): Add mkstemp.h.
64498
64499         * lib/mkstemp.h: New file, since some standard headers
64500         #define mkstemp.
64501         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64502         Include "mkstemp.h".
64503         Make the _LIBC code resemble glibc original more,
64504         e.g., use K&R style.
64505         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64506         (mkstemp): Remove, since mkstemp.h does this for us.
64507         * lib/stdlib--.h: Include mkstemp.h.
64508
64509         Import this patch from libc:
64510
64511         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64512
64513         * lib/tempname.c (__gen_tempname): Change attempts_min
64514         into a macro.  Use preprocessor to decide how to initialize
64515         attempts [Coverity CID 67].
64516
64517 2006-09-20  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/mkdtemp.c: Import from libc.
64520         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64521                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64522                 attempts_min into a macro.  Use preprocessor to decide how to
64523                 initialize attempts [Coverity CID 67].
64524         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64525                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64526                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64527
64528 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64529
64530         * gnulib-tool (func_exit): New function, to allow to pass the
64531         exit status portably through the trap.  Use everywhere.
64532         (--help, --version): Signal a write error.
64533         (trap): catch SIGPIPE, for write errors.
64534         Exit at the end of the trap, with the correct exit status.
64535
64536 2006-09-19  Karl Berry  <karl@gnu.org>
64537
64538         * doc/gnulib.texi: note about the license texinfo files.
64539
64540 2006-09-19  Eric Blake  <ebb9@byu.net>
64541
64542         * gnulib-tool: Avoid space-tab.
64543
64544 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64547         that prevented coreutils 6.1 from building.  Problem reported
64548         by Petter Reinholdtsen.
64549
64550 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64551
64552         * gnulib-tool (avoidlist): Fix typo that broke options like
64553         --avoid=lock that are used by coreutils bootstrap.
64554
64555 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64556
64557         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64558         more systematically.
64559
64560 2006-09-18  Jim Meyering  <jim@meyering.net>
64561
64562         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64563
64564 2006-09-18  Bruno Haible  <bruno@clisp.org>
64565
64566         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64567
64568 2006-09-18  Bruno Haible  <bruno@clisp.org>
64569
64570         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64571         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64572         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64573         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64574         * m4/gettext.m4: Require autoconf >= 2.52.
64575         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64576         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64577         of gl_cv_header_inttypes_h.
64578
64579 2006-09-18  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/javaversion.c: Include configmake.h.
64582
64583 2006-09-18  Bruno Haible  <bruno@clisp.org>
64584
64585         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64586         avoid that the while loops be executed in a subshell.
64587
64588 2006-09-18  Bruno Haible  <bruno@clisp.org>
64589
64590         * MODULES.html.sh (func_module): Break long lines.
64591         Suggested by Bruce Korb <bkorb@gnu.org>.
64592
64593 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64594
64595         Speed up by a factor of 1.12.
64596         * gnulib-tool (nl): New variable.
64597         (func_import): Rewrite include directive extraction to only read each
64598         directive once.
64599
64600 2006-09-17  Bruno Haible  <bruno@clisp.org>
64601
64602         * modules/javaversion (Makefile.am): Remove DEFS setting.
64603         (Depends-on): Add configmake, for PKGDATADIR definition.
64604
64605 2006-09-17  Bruno Haible  <bruno@clisp.org>
64606
64607         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64608
64609 2006-09-17  Bruno Haible  <bruno@clisp.org>
64610
64611         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64612         (func_modules_transitive_closure, func_modules_add_dummy,
64613         func_modules_to_filelist, func_import, func_create_testdir,
64614         func_create_megatestdir, ...): Use it wherever possible.
64615         Suggested by Ralf Wildenhues.
64616
64617 2006-09-16  Karl Berry  <karl@gnu.org>
64618
64619         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64620         to avoid sectioning errors.
64621         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64622         [ifinfo]: blank line after @center-ed titles.
64623         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64624         Spell FSF address consistently with others.
64625         (These changes approved by rms.)
64626
64627 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64628
64629         Speed up by a factor of 1.61.
64630         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64631         already checked module names again.
64632
64633 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64634
64635         Speed up by a factor of 1.13.
64636         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64637         for new_files, and the input to func_add_or_update.
64638
64639 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64640
64641         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64642         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64643
64644 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         * modules/mkancesdirs (Depends-on): Add fcntl.
64647         * modules/savewd: New file.
64648         * MODULES.html.sh (File system functions): Add savewd.
64649
64650         * modules/configmake (Makefile.am): Add support for the
64651         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64652
64653 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * m4/savewd.m4: New file.
64656
64657 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64660         (dirchownmod): New arg FD.  All callers changed.
64661         Use FD rather than opening the directory ourself, as opening is
64662         now the caller's responsibility.
64663         * lib/dirchownmod.h: Likewise.
64664         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64665         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64666         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64667         (test_dir): Remove.
64668         (mkancesdirs): Return length of prefix of FILE that has already
64669         been made, or -2 if there is a child doing the work.  Redo
64670         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64671         ".", and treat ".." specially since it might stray back into
64672         already-created areas.  Use a subprocess if necessary.  New arg
64673         WD; all users changed.  MAKE_DIR function should now return 1
64674         if it creates a directory that is not readable.  Return -2 if
64675         a child process is spun off.
64676         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64677         Adjust signature to match code.
64678         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64679         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64680         all users changed.
64681         * lib/savewd.c, lib/savewd.h: New files.
64682
64683 2006-09-15  Jim Meyering  <jim@meyering.net>
64684
64685         * modules/rename-dest-slash: New module.
64686         * MODULES.html.sh (posix_compat): Add it here.
64687
64688         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64689
64690 2006-09-15  Jim Meyering  <jim@meyering.net>
64691
64692         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64693         file.
64694
64695         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64696
64697 2006-09-15  Jim Meyering  <jim@meyering.net>
64698
64699         * lib/rename-dest-slash.c (has_trailing_slash): Use
64700         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64701         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64702         test before testing whether SRC is a directory.
64703         Suggestions from Bruno Haible.
64704
64705         Avoid a warning about an unused variable.
64706         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64707         into the #ifdef block where it's used.
64708
64709         * lib/rename-dest-slash.c: New file.
64710
64711 2006-09-14  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/allocsa.c: Include <config.h> unconditionally.
64714         * lib/asnprintf.c: Likewise.
64715         * lib/asprintf.c: Likewise.
64716         * lib/c-strcasecmp.c: Likewise.
64717         * lib/c-strcasestr.c: Likewise.
64718         * lib/c-strncasecmp.c: Likewise.
64719         * lib/c-strstr.c: Likewise.
64720         * lib/classpath.c: Likewise.
64721         * lib/clean-temp.c: Likewise.
64722         * lib/concatpath.c: Likewise.
64723         * lib/copy-file.c: Likewise.
64724         * lib/csharpcomp.c: Likewise.
64725         * lib/csharpexec.c: Likewise.
64726         * lib/execute.c: Likewise.
64727         * lib/fatal-signal.c: Likewise.
64728         * lib/findprog.c: Likewise.
64729         * lib/fwriteerror.c: Likewise.
64730         * lib/gl_array_list.c: Likewise.
64731         * lib/gl_array_oset.c: Likewise.
64732         * lib/gl_avltree_list.c: Likewise.
64733         * lib/gl_avltree_oset.c: Likewise.
64734         * lib/gl_avltreehash_list.c: Likewise.
64735         * lib/gl_carray_list.c: Likewise.
64736         * lib/gl_linked_list.c: Likewise.
64737         * lib/gl_linkedhash_list.c: Likewise.
64738         * lib/gl_list.c: Likewise.
64739         * lib/gl_oset.c: Likewise.
64740         * lib/gl_rbtree_list.c: Likewise.
64741         * lib/gl_rbtree_oset.c: Likewise.
64742         * lib/gl_rbtreehash_list.c: Likewise.
64743         * lib/imaxabs.c: Likewise.
64744         * lib/imaxdiv.c: Likewise.
64745         * lib/javacomp.c: Likewise.
64746         * lib/javaexec.c: Likewise.
64747         * lib/javaversion.c: Likewise.
64748         * lib/linebreak.c: Likewise.
64749         * lib/localcharset.c: Likewise.
64750         * lib/lock.c: Likewise.
64751         * lib/mbchar.c: Likewise.
64752         * lib/mbswidth.c: Likewise.
64753         * lib/mkdtemp.c: Likewise.
64754         * lib/pipe.c: Likewise.
64755         * lib/printf-args.c: Likewise.
64756         * lib/printf-parse.c: Likewise.
64757         * lib/progname.c: Likewise.
64758         * lib/progreloc.c: Likewise.
64759         * lib/readlink.c: Likewise.
64760         * lib/sh-quote.c: Likewise.
64761         * lib/stpcpy.c: Likewise.
64762         * lib/stpncpy.c: Likewise.
64763         * lib/strcasecmp.c: Likewise.
64764         * lib/strcasestr.c: Likewise.
64765         * lib/strcspn.c: Likewise.
64766         * lib/striconv.c: Likewise.
64767         * lib/strncasecmp.c: Likewise.
64768         * lib/strnlen1.c: Likewise.
64769         * lib/strstr.c: Likewise.
64770         * lib/strtok_r.c: Likewise.
64771         * lib/tls.c: Likewise.
64772         * lib/tmpdir.c: Likewise.
64773         * lib/unicodeio.c: Likewise.
64774         * lib/unsetenv.c: Likewise.
64775         * lib/vasnprintf.c: Likewise.
64776         * lib/vasprintf.c: Likewise.
64777         * lib/wait-process.c: Likewise.
64778         * lib/xallocsa.c: Likewise.
64779         * lib/xsetenv.c: Likewise.
64780         * lib/xstriconv.c: Likewise.
64781
64782 2006-09-13  Simon Josefsson  <jas@extundo.com>
64783
64784         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64785         that internally, suggested by Ralf Wildenhues
64786         <Ralf.Wildenhues@gmx.de>.
64787
64788 2006-09-13  Simon Josefsson  <jas@extundo.com>
64789
64790         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64791         @LIBOBJS@.
64792         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64793
64794 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64797         longer worry about uses that don't define HAVE_CONFIG_H.
64798         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64799         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64800         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64801         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64802         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64803         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64804         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64805         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64806         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64807         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64808         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64809         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64810         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64811         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64812         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64813         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64814         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64815         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64816         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64817         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64818         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64819         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64820         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64821         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64822         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64823         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64824         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64825         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64826         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64827         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64828         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64829         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64830         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64831         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64832         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64833         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64834         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64835         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64836         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64837         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64838         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64839         Likewise.
64840
64841 2006-09-13  Eric Blake  <ebb9@byu.net>
64842
64843         * lib/getopt.c: Fix typo in last commit.
64844
64845 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64846
64847         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64848         dgettext.
64849
64850 2006-09-12  Jim Meyering  <jim@meyering.net>
64851
64852         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64853         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64854         Reported by Nelson H. F. Beebe.
64855
64856 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64857
64858         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64859         program_invocation_name and program_invocation_short_name are
64860         initialized.
64861         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64862         and program_invocation_short_name to argp.h, so they are visible
64863         to user programs.
64864         * lib/argp.h: Likewise
64865
64866 2006-09-10  Bruno Haible  <bruno@clisp.org>
64867
64868         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64869         m4/inttypes_h.m4, m4/uintmax_t.m4.
64870
64871 2006-09-10  Bruno Haible  <bruno@clisp.org>
64872
64873         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64874         gl_AC_TYPE_UINTMAX_T.
64875
64876 2006-09-10  Bruno Haible  <bruno@clisp.org>
64877
64878         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64879
64880 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64881
64882         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64883         convention.  Text proposed by Bruno Haible.
64884         (struct argp_option): Document the use of N_() wrappers.
64885
64886         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64887         '\v', and translate the two parts separately, instead of feeding
64888         the whole string to gettext.  This allows to exclude
64889         '\v' from the strings visible to the translator by writing doc
64890         strings as N_("..") "\v" N_("..").
64891
64892 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * config/srclist.txt: Undo latest change; the bug was fixed.
64895
64896 2006-09-09  Bruno Haible  <bruno@clisp.org>
64897
64898         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64899         assignments if building a library without libtool.
64900         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64901         in func_emit_lib_Makefile_am.
64902         (func_import): When building a static library libfoo.a, arrange to
64903         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64904         (func_create_testdir): Likewise.
64905         * modules/gc (configure.ac, Makefile.am): If building statically,
64906         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64907         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64908         * modules/striconv (configure.ac, Makefile.am): Likewise.
64909         Based on a suggestion by Ralf Wildenhues.
64910
64911 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64914         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64915         Also:
64916
64917         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64918         Add year_2050_test to catch glibc bug 2821
64919         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64920
64921         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64922         Prefer #ifdef to #if.
64923
64924         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64925         Return from 'main' instead of calling 'exit'.
64926
64927 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64930         returned the maximum time_t value rather than (time_t) -1.
64931         Problem originally reported by William Bardwell
64932         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64933
64934         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64935         Moved to here ...
64936         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64937         ... from here.
64938
64939 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64942         2821 is fixed.
64943
64944 2006-09-08  Jim Meyering  <jim@meyering.net>
64945
64946         Don't make generated files read-only.  That would bother too many
64947         people.  However, do retain the ability to work when targets are
64948         read-only: remove the destination and temporary files before writing
64949         them (when generated via sed or echo), or by using the -f option for
64950         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64951         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64952         * modules/byteswap, modules/configmake, modules/fcntl:
64953         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64954         * modules/localcharset, modules/netinet_in, modules/poll:
64955         * modules/stdbool, modules/stdint, modules/sys_select:
64956         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64957
64958 2006-09-08  Jim Meyering  <jim@meyering.net>
64959
64960         Avoid new build failure on FreeBSD 6.0.
64961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64962         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64963         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64964
64965 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64966
64967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64968
64969 2006-09-07  Jim Meyering  <jim@meyering.net>
64970
64971         Fix global typo in last change: use chmod u-w, not chmod u-x.
64972         Spotted by Paul Eggert and Bruce Korb.
64973         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64974         * modules/byteswap, modules/configmake, modules/fcntl:
64975         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64976         * modules/localcharset, modules/netinet_in, modules/poll:
64977         * modules/stdbool, modules/stdint, modules/sys_select:
64978         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64979
64980 2006-09-06  Jim Meyering  <jim@meyering.net>
64981
64982         Make generated files be read-only.
64983         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64984         Ensure that each generated file is now read-only.
64985         * modules/argz: Likewise.
64986         * modules/arpa_inet: Likewise.
64987         * modules/byteswap: Likewise.
64988         * modules/configmake: Likewise.
64989         * modules/fcntl: Likewise.
64990         * modules/fnmatch: Likewise.
64991         * modules/getopt: Likewise.
64992         * modules/glob: Likewise.
64993         * modules/inttypes: Likewise.
64994         * modules/netinet_in: Likewise.
64995         * modules/poll: Likewise.
64996         * modules/stdbool: Likewise.
64997         * modules/stdint: Likewise.
64998         * modules/sys_select: Likewise.
64999         * modules/sys_socket: Likewise.
65000         * modules/sys_stat: Likewise.
65001         * modules/sysexits: Likewise.
65002         * modules/localcharset: Same as above, but continue using temporary
65003         file named "t-$@" (why different?) rather than the "$@-t" used
65004         everywhere else.
65005
65006         * modules/sysexits (Makefile.am): Replace literal occurrences
65007         of "sysexit.h" more readable, and more consistent, "$@".
65008
65009 2006-09-06  Bruno Haible  <bruno@clisp.org>
65010
65011         * modules/striconv: New file.
65012         * modules/xstriconv: New file.
65013         * MODULES.html.sh (Internationalization functions): Add striconv,
65014         xstriconv.
65015
65016 2006-09-06  Bruno Haible  <bruno@clisp.org>
65017
65018         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65019         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65020         not using libtool correctly.
65021
65022 2006-09-06  Bruno Haible  <bruno@clisp.org>
65023
65024         * lib/striconv.h: New file.
65025         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65026         iconvstring.c.
65027         * lib/xstriconv.h: New file.
65028         * lib/xstriconv.c: New file.
65029
65030 2006-09-06  Bruno Haible  <bruno@clisp.org>
65031
65032         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65033         lib_..._LDFLAGS.
65034
65035 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65036
65037         * lib/argz_.h: Sync from Libtool.
65038
65039         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65040                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65041
65042         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65043
65044 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65045
65046         * modules/trim: New file.
65047
65048 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65049
65050         * lib/trim.h: New file.
65051         * lib/trim.c: New file.
65052
65053 2006-09-05  Bruno Haible  <bruno@clisp.org>
65054
65055         * MODULES.html.sh (String handling): Add trim.
65056
65057 2006-09-04  Karl Berry  <karl@gnu.org>
65058
65059         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65060         until next release.
65061
65062 2006-09-03  Bruno Haible  <bruno@clisp.org>
65063
65064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65065         correctly.
65066
65067 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65070         not gl_GETLOADAVG.  Omit unneeded semicolons.
65071         Problems reported by Ralf Wildenhues in
65072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65073         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65074         at the end, which is the usual gnulib style.
65075
65076         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65077         of doing all the work ourselves.
65078         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65079         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65080
65081 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65082
65083         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65084         Problem reported by Ralf Wildenhues in
65085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65086
65087         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65088         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65089
65090 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65093         yesterday's patch by changing test -n to test -z.
65094
65095 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65098         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65099         the former is now obsolescent.
65100
65101         * modules/chdir-long (Depends-on): Add fcntl.
65102
65103 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65106         obsolescent, and programs should use gnulib instead.
65107         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65108         but with prefixes changed.
65109
65110 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65113         or stdbool.h, because they might not exist while configuring.
65114
65115         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65116         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65117         does that for us.
65118         (O_DIRECTORY): Remove.
65119
65120 2006-08-31  Eric Blake  <ebb9@byu.net>
65121
65122         * gnulib-tool: Don't let emacs change spaces to TAB.
65123
65124 2006-08-31  Bruno Haible  <bruno@clisp.org>
65125
65126         * gnulib-tool: When calling func_import more than once, do it in a
65127         subshell.
65128         Reported by Eric Blake <ebb9@byu.net>.
65129
65130 2006-08-31  Bruno Haible  <bruno@clisp.org>
65131
65132         * gnulib-tool (nl): Remove variable.
65133         (sed_transform_lib_file): Use more robust test for config-h module.
65134         (func_import): Fix typo in 2006-08-25 patch.
65135
65136 2006-08-31  Bruno Haible  <bruno@clisp.org>
65137
65138         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65139         specified, augment Makefile.am variables instead of assigning them.
65140
65141 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         Work around a bug in both the Linux and SunOS 64-bit kernels:
65144         nanosleep mishandles sleeps for longer than 2**31 seconds.
65145         Problem reported by Frank v Waveren in
65146         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65148         Check for nanosleep bug.
65149         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65150
65151 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         Work around a bug in both the Linux and SunOS 64-bit kernels:
65154         nanosleep mishandles sleeps for longer than 2**31 seconds.
65155         Problem reported by Frank v Waveren in
65156         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65157         * lib/nanosleep.c (BILLION): New constant.
65158         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65159         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65160         implementation.
65161
65162 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * modules/nanosleep (Depends-on): Add gettime.
65165
65166 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65167         and Simon Josefsson  <jas@extundo.com>
65168         and Oskar Liljeblad  <oskar@osk.mine.nu>
65169
65170         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65171         * gnulib-tool (func_import): New license type 'unmodifiable license
65172         text'.
65173         * modules/fdl: Use it.  Longer description.
65174         * module/gpl, module/lgpl: New files.
65175
65176 2006-08-30  Jim Meyering  <jim@meyering.net>
65177
65178         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65179         shadowing the parameter.
65180
65181 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65182
65183         Sync from Libtool:
65184
65185         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65186
65187         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65188         sharing with gnulib.  Report by Eric Blake.
65189
65190 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * modules/isapipe: New file.
65193         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65194
65195 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * modules/configmake (Makefile.am): Add a comment, and omit
65198         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65199         by Bruno Haible.
65200
65201 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/isapipe.m4: New file.
65204
65205 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/isapipe.c, lib/isapipe.h: New files.
65208
65209 2006-08-29  Jim Meyering  <jim@meyering.net>
65210
65211         * modules/configmake (Makefile.am): Make configmake.h depend on
65212         Makefile.  Otherwise, a stale configmake.h could hang around.
65213
65214 2006-08-29  Eric Blake  <ebb9@byu.net>
65215
65216         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65217         resolution of upstream bug 3044.
65218
65219 2006-08-29  Bruno Haible  <bruno@clisp.org>
65220
65221         * modules/localcharset (Depends-on): Add configmake.
65222         (Makefile.am): Remove setting of LIBDIR through DEFS.
65223
65224 2006-08-29  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65227         defined.
65228
65229 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65230
65231         * modules/fcntl: New file.
65232         * modules/chdir-safer (Depends-on): Add fcntl.
65233         * modules/fts: Likewise.
65234         * modules/mkdir-p: Likewise.
65235
65236         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65237         This undoes the most recent change, since we're now addressing the
65238         problem in a different way.
65239
65240         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65241         into output, since the output might be called Makefile.am even
65242         if $makefile_name is something different.
65243         (func_import): Use $makefile_am rather than
65244         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65245         empty.
65246
65247         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65248
65249 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65252         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65253         recent change to stdint.m4, since we're now addressing the problem in a
65254         different way.
65255
65256 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * m4/fcntl_h.m4: New file.
65259
65260 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * lib/fcntl_.h: New file.
65263         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65264         the fcntl module.
65265         * lib/dirchownmod.c: Likewise.
65266         * lib/fts.c: Likewise.
65267
65268         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65269         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65270         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65271         just before including <inttypes.h>, to avoid circular inclusion.
65272
65273 2006-08-28  Jim Meyering  <jim@meyering.net>
65274
65275         * doc/visibility.texi: Actually read and correct the grammar of the
65276         sentence affected by yesterday's change.
65277
65278 2006-08-28  Eric Blake  <ebb9@byu.net>
65279
65280         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65281         needs wrapper.
65282
65283 2006-08-28  Eric Blake  <ebb9@byu.net>
65284
65285         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65286
65287 2006-08-28  Eric Blake  <ebb9@byu.net>
65288
65289         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65290
65291 2006-08-28  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/c-strstr: New file, from GNU gettext.
65294         * MODULES.html.sh (String handling): Add c-strstr.
65295
65296 2006-08-28  Bruno Haible  <bruno@clisp.org>
65297
65298         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65299         macros.
65300         Reported by Eric Blake.
65301
65302 2006-08-28  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65305         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65306         * lib/vasprintf.c: Include errno.h, limits.h.
65307         (EOVERFLOW): New fallback definition.
65308         (vasprintf): Test here whether the string length is > INT_MAX.
65309         * lib/vsnprintf.c: Include errno.h, limits.h.
65310         (EOVERFLOW): New fallback definition.
65311         (vsnprintf): Fix bug when generated string was too long for the buffer.
65312         Test here whether the string length is > INT_MAX.
65313
65314 2006-08-28  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/inttypes_.h (SCNX*): Remove definitions.
65317         Reported by Eric Blake.
65318
65319 2006-08-28  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/c-strstr.h: New file, from GNU gettext.
65322         * lib/c-strstr.c: New file, from GNU gettext.
65323
65324 2006-08-28  Bruno Haible  <bruno@clisp.org>
65325
65326         * gnulib-tool: Reorder some statements.
65327
65328 2006-08-28  Bruno Haible  <bruno@clisp.org>
65329
65330         * gnulib-tool: New option --makefile-name.
65331         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65332         $makefile_name.
65333         (func_import): Write $makefile_name to the cache file, and read it from
65334         there unless explicitly specified. Use $makefile_name as file name
65335         instead of Makefile.am. Adjust the recommendations accordingly.
65336
65337 2006-08-28  Bruno Haible  <bruno@clisp.org>
65338
65339         * gnulib-tool (func_verify_module): Check against misapplying patch.
65340
65341 2006-08-28  Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (func_relativize, func_relconcat): New functions.
65344         Give an error if --local-dir is given with --update.
65345         Remove trailing slashes from $local_gnulib_dir.
65346         (func_import): Store the relativized $local_gnulib_dir in
65347         gnulib-cache.m4, and read it from there if not specified explicitly.
65348
65349 2006-08-28  Bruno Haible  <bruno@clisp.org>
65350
65351         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65352         is the current directory. Respect also $local_gnulib_dir.
65353
65354 2006-08-28  Bruno Haible  <bruno@clisp.org>
65355             Simon Josefsson  <jas@extundo.com>
65356
65357         BeOS portability.
65358         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65359
65360 2006-08-27  Jim Meyering  <jim@meyering.net>
65361
65362         * doc/visibility.texi: Remove duplicate word: "pointer".
65363
65364 2006-08-26  Bruno Haible  <bruno@clisp.org>
65365
65366         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65367         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65368         (Makefile.am): Create inttypes.h from inttypes_.h.
65369         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65370
65371         * modules/imaxabs: New file.
65372
65373         * modules/imaxdiv: New file.
65374
65375 2006-08-26  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/inttypes.m4: New file.
65378         * m4/_inttypes_h.m4: Remove file.
65379         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65380         PRI_MACROS_BROKEN.
65381         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65382
65383         * m4/imaxabs.m4: New file.
65384
65385         * m4/imaxdiv.m4: New file.
65386
65387 2006-08-26  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/inttypes_.h: New file.
65390         * lib/inttypes.h: Remove file.
65391         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65392
65393         * lib/imaxabs.c: New file.
65394
65395         * lib/imaxdiv.c: New file.
65396
65397 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         New config-h module, so that "make" output needn't be cluttered
65400         by -DHAVE_CONFIG_H.
65401         * MODULES.html.sh (Support for building libraries and executables):
65402         Add config-h.
65403         * modules/config-h: New file.
65404         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65405         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65406         the config-h module is used.
65407
65408         New configmake module, so that "make" output needn't be cluttered
65409         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65410         * MODULES.html.sh (Support for building libraries and executables):
65411         Add configmake.
65412         * modules/configmake: New file.
65413
65414 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * m4/config-h.m4: New file.
65417
65418 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         * config/srclist.txt: Add elisp-comp.
65421
65422 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * MODULES.html.sh (Support for building libraries and executables):
65425         Add elisp-comp.
65426         * build-aux/elisp-comp: New file.
65427         * modules/elisp-comp: New file.
65428
65429 2006-08-24  Bruno Haible  <bruno@clisp.org>
65430
65431         * gnulib-tool (func_create_testdir): Use non-default values of
65432         sourcebase and m4base.
65433
65434 2006-08-24  Bruno Haible  <bruno@clisp.org>
65435
65436         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65437         HTML structure.
65438
65439 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * modules/openat (Depends-on): Add lchown.
65442
65443 2006-08-23  Bruno Haible  <bruno@clisp.org>
65444
65445         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65446         of gl_LOCK_EARLY instead of gl_LOCK.
65447
65448 2006-08-23  Bruno Haible  <bruno@clisp.org>
65449
65450         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65451         on OSF/1 to no.
65452         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65453
65454 2006-08-23  Bruno Haible  <bruno@clisp.org>
65455
65456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65457         as unusable.
65458
65459         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65460         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65461         (gl_LOCK): New macro.
65462
65463 2006-08-22  Simon Josefsson  <jas@extundo.com>
65464
65465         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65466         to md5 module.
65467
65468 2006-08-22  Simon Josefsson  <jas@extundo.com>
65469
65470         * MODULES.html.sh: Add "Support for maintaining and release
65471         projects".
65472
65473         * build-aux/gnupload: New file, from coreutils.
65474
65475 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         Avoid the need for AC_LIBSOURCES in m4 macros.
65478         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65479         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65480         * modules/check-version (EXTRA_DIST): Add check-version.h.
65481         * modules/crc (EXTRA_DIST): Add crc.h.
65482         * modules/des (EXTRA_DIST): Add des.h.
65483         * modules/gc (EXTRA_DIST): Add gc.h.
65484         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65485         * modules/getline (EXTRA_DIST): Add getline.h.
65486         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65487         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65488         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65489         * modules/md2 (EXTRA_DIST): Add md2.h.
65490         * modules/md4 (EXTRA_DIST): Add md4.h.
65491         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65492         * modules/read-file (EXTRA_DIST): Add read-file.h.
65493         * modules/readline (EXTRA_DIST): Add readline.h.
65494         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65495         rijndael-api-fst.h.
65496
65497 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65498
65499         * m4/rijndael.m4 (gl_ARCFOUR):
65500         * m4/arctwo.m4 (gl_ARCTWO):
65501         * m4/check-version.m4 (gl_CHECK_VERSION):
65502         * m4/crc.m4 (gl_CRC):
65503         * m4/des.m4 (gl_DES):
65504         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65505         * m4/gc.m4 (gl_GC):
65506         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65507         * m4/getline.m4 (gl_FUNC_GETLINE):
65508         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65509         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65510         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65511         * m4/md2.m4 (gl_MD2):
65512         * m4/md4.m4 (gl_MD4):
65513         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65514         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65515         * m4/readline.m4 (gl_FUNC_READLINE):
65516         * m4/rijndael.m4 (gl_RIJNDAEL):
65517         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65518         to get the necessary .h files and whatnot.
65519
65520 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65523         gnulib rather than the other way around.
65524         * config/srclistvars.sh (COREUTILS): Remove.
65525
65526 2006-08-22  Jim Meyering  <jim@meyering.net>
65527
65528         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65529
65530         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65531
65532 2006-08-22  Eric Blake  <ebb9@byu.net>
65533
65534         * modules/regexprops-generic: New file.
65535         * MODULES.html.sh (Support for building documentation): List it.
65536
65537 2006-08-22  Eric Blake  <ebb9@byu.net>
65538
65539         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65540         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65541         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65542         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65543
65544 2006-08-22  Bruno Haible  <bruno@clisp.org>
65545
65546         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65547         and lib_LTLIBRARIES like the other lib_* variables.
65548
65549 2006-08-22  Bruno Haible  <bruno@clisp.org>
65550
65551         * build-aux/x-to-1.in: New file, from GNU gettext.
65552
65553 2006-08-22  Bruno Haible  <bruno@clisp.org>
65554
65555         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65556         <utmpx.h> exists.
65557
65558 2006-08-22  Bruno Haible  <bruno@clisp.org>
65559
65560         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65561         <utmpx.h> exists.
65562
65563 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         BeOS portability.
65566         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65567         exist.
65568         Problem reported by Bruno Haible.
65569
65570 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         Avoid the need for AC_LIBSOURCES in m4 macros.
65573         * modules/acl (EXTRA_DIST): Add acl.h.
65574         * modules/argmatch (Files): Add m4/argmatch.m4.
65575         (configure.ac): Add gl_ARGMATCH.
65576         (EXTRA_DIST): Renamed from lib_SOURCES, for
65577         consistency with the other modules.  Remove argmatch.c.
65578         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65579         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65580         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65581         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65582         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65583         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65584         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65585         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65586         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65587         * modules/closeout (EXTRA_DIST): Add closeout.h.
65588         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65589         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65590         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65591         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65592         dirname.h; remove basename.c and stripslash.c.
65593         * modules/exclude (EXTRA_DIST): Add exclude.h.
65594         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65595         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65596         * modules/file-type (EXTRA_DIST): Add file-type.h.
65597         * modules/filemode (EXTRA_DIST): Add filemode.h.
65598         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65599         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65600         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65601         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65602         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65603         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65604         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65605         * modules/getdate (EXTRA_DIST): Add getdate.c.
65606         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65607         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65608         * modules/getpass (EXTRA_DIST): Add getpass.h.
65609         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65610         * modules/group-member (EXTRA_DIST): Add group-member.h.
65611         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65612         * modules/hash (EXTRA_DIST): Add hash.h.
65613         * modules/human (EXTRA_DIST): Add human.h.
65614         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65615         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65616         * modules/lchown (EXTRA_DIST): Add lchown.h.
65617         * modules/long-options (EXTRA_DIST): Add long-options.h.
65618         * modules/lstat (EXTRA_DIST): Add lstat.h.
65619         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65620         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65621         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65622         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65623         * modules/memxor (EXTRA_DIST): Add memxor.h.
65624         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65625         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65626         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65627         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65628         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65629         * modules/physmem (EXTRA_DIST): Add physmem.h.
65630         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65631         * modules/posixver (EXTRA_DIST): Add posixver.h.
65632         * modules/quote (EXTRA_DIST): Add quote.h.
65633         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65634         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65635         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65636         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65637         regex_internal.h regexec.c.
65638         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65639         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65640         * modules/same (EXTRA_DIST): Add same.h.
65641         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65642         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65643         * modules/savedir (EXTRA_DIST): Add savedir.h.
65644         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65645         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65646         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65647         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65648         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65649         * modules/strdup (EXTRA_DIST): Add strdup.h.
65650         * modules/strftime (EXTRA_DIST): Add strftime.h.
65651         * modules/strndup (EXTRA_DIST): Add strndup.h.
65652         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65653         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65654         * modules/time_r (EXTRA_DIST): Add time_r.h.
65655         * modules/timespec (EXTRA_DIST): Add timespec.h.
65656         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65657         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65658         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65659         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65660         * modules/userspec (EXTRA_DIST): Add userspec.h.
65661         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65662         * modules/utimens (EXTRA_DIST): Add utimens.h.
65663         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65664         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65665         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65666         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65667         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65668         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65669         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65670         * modules/yesno (EXTRA_DIST): Add yesno.h.
65671
65672 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65675
65676         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65677         * m4/dev-ino.m4, same-inode.m4: Remove.
65678
65679         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65680         * m4/acl.m4 (AC_FUNC_ACL):
65681         * m4/backupfile.m4 (gl_BACKUPFILE):
65682         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65683         * m4/canon-host.m4 (gl_CANON_HOST):
65684         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65685         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65686         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65687         * m4/cloexec.m4 (gl_CLOEXEC):
65688         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65689         * m4/closeout.m4 (gl_CLOSEOUT):
65690         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65691         * m4/dirname.m4 (gl_DIRNAME):
65692         * m4/exclude.m4 (gl_EXCLUDE):
65693         * m4/exitfail.m4 (gl_EXITFAIL):
65694         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65695         * m4/file-type.m4 (gl_FILE_TYPE):
65696         * m4/filemode.m4 (gl_FILEMODE):
65697         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65698         * m4/fpending.m4 (gl_FUNC_FPENDING):
65699         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65700         * m4/fts.m4 (gl_FUNC_FTS):
65701         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65702         * m4/getdate.m4 (gl_GETDATE):
65703         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65704         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65705         * m4/getpass.m4 (gl_FUNC_GETPASS):
65706         * m4/gettime.m4 (gl_GETTIME):
65707         * m4/getugroups.m4 (gl_GETUGROUPS):
65708         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65709         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65710         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65711         * m4/hash.m4 (gl_HASH):
65712         * m4/idcache.m4 (gl_IDCACHE):
65713         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65714         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65715         * m4/long-options.m4 (gl_LONG_OPTIONS):
65716         * m4/lstat.m4 (gl_FUNC_LSTAT):
65717         * m4/md5.m4 (gl_MD5):
65718         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65719         * m4/memcoll.m4 (gl_MEMCOLL):
65720         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65722         * m4/memxor.m4 (gl_MEMXOR):
65723         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65724         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65725         * m4/modechange.m4 (gl_MODECHANGE):
65726         * m4/mountlist.m4 (gl_MOUNTLIST):
65727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65728         * m4/openat.m4 (gl_FUNC_OPENAT):
65729         * m4/pathmax.m4 (gl_PATHMAX):
65730         * m4/physmem.m4 (gl_PHYSMEM):
65731         * m4/posixtm.m4 (gl_POSIXTM):
65732         * m4/posixver.m4 (gl_POSIXVER):
65733         * m4/quote.m4 (gl_QUOTE):
65734         * m4/quotearg.m4 (gl_QUOTEARG):
65735         * m4/readtokens.m4 (gl_READTOKENS):
65736         * m4/readutmp.m4 (gl_READUTMP):
65737         * m4/regex.m4 (gl_REGEX):
65738         * m4/safe-read.m4 (gl_SAFE_READ):
65739         * m4/safe-write.m4 (gl_SAFE_WRITE):
65740         * m4/same.m4 (gl_SAME):
65741         * m4/save-cwd.m4 (gl_SAVE_CWD):
65742         * m4/savedir.m4 (gl_SAVEDIR):
65743         * m4/settime.m4 (gl_SETTIME):
65744         * m4/sha1.m4 (gl_SHA1):
65745         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65746         * m4/stat-macros.m4 (gl_STAT_MACROS):
65747         * m4/stat-time.m4 (gl_STAT_TIME):
65748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65749         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65750         * m4/strdup.m4 (gl_FUNC_STRDUP):
65751         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65752         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65753         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65754         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65755         * m4/time_r.m4 (gl_TIME_R):
65756         * m4/timespec.m4 (gl_TIMESPEC):
65757         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65758         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65759         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65760         * m4/userspec.m4 (gl_USERSPEC):
65761         * m4/utimecmp.m4 (gl_UTIMECMP):
65762         * m4/utimens.m4 (gl_UTIMENS):
65763         * m4/xalloc.m4 (gl_XALLOC):
65764         * m4/xgetcwd.m4 (gl_XGETCWD):
65765         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65766         * m4/xreadlink.m4 (gl_XREADLINK):
65767         * m4/xstrtod.m4 (gl_XSTRTOD):
65768         * m4/yesno.m4 (gl_YESNO):
65769         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65770         to get the necessary .h files and whatnot.
65771
65772 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65773             Bruno Haible  <bruno@clisp.org>
65774
65775         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65776         /bin/sh understanding of '!' conditional negation.
65777
65778 2006-08-21  Jim Meyering  <jim@meyering.net>
65779
65780         * modules/openat (Depends-on): Really alphabetize.
65781
65782         * modules/acl (Depends-on): Add error and quote.
65783
65784         * check-module (find_included_lib_files): Add at-func.c to the
65785         ok-to-include-more-than-once white list.
65786
65787         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65788
65789 2006-08-21  Bruno Haible  <bruno@clisp.org>
65790
65791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65792         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65793         Reported by Martin Lambers <marlam@marlam.de>.
65794
65795 2006-08-21  Bruno Haible  <bruno@clisp.org>
65796
65797         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65798         specify an installation location, don't emit a noinst_LIBRARIES or
65799         noinst_LTLIBRARIES assignment.
65800
65801 2006-08-21  Bruno Haible  <bruno@clisp.org>
65802
65803         BeOS portability.
65804         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65805         BeOS has mbrtowc() but no <wctype.h>.
65806
65807 2006-08-21  Bruno Haible  <bruno@clisp.org>
65808
65809         BeOS portability.
65810         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65811         exist.
65812
65813 2006-08-21  Bruno Haible  <bruno@clisp.org>
65814
65815         BeOS portability.
65816         * lib/mbchar.h: Include <wctype.h> only if it exists.
65817
65818 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65819
65820         Remove files that are no longer needed by their respective modules.
65821         * m4/obstack.m4: Remove.
65822         * m4/strerror_r.m4: Remove.
65823         * m4/uint32_t.m4: Remove.
65824         * m4/uintptr_t.m4: Remove.
65825         * m4/ullong_max.m4: Remove.
65826         * m4/xstrtoimax.m4: Remove.
65827         * m4/xstrtoumax.m4: Remove.
65828
65829         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65830         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65831         dependencies now capture this.
65832
65833         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65834         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65835         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65836         * m4/human.m4 (gl_HUMAN): Likewise.
65837         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65838         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65839
65840         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65841
65842         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65843         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65844         stdint.
65845         * m4/human.m4 (gl_HUMAN): Likewise.
65846         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65847         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65848         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65849         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65850         * m4/xstrtol (gl_XSTRTOL): Likewise.
65851
65852         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65853         AC_TYPE_LONG_LONG_INT.
65854         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65855         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65856         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65857         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65858
65859         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65860         on stdbool.
65861
65862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65863         (gl_PREREQ_XSTRTOUL): Remove.
65864
65865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65866
65867         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65868         mode.
65869
65870 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         Add and change modules to make it easier for coreutils to use
65873         gnulib-tool.
65874         * modules/backupfile (Files): Remove m4/d-ino.m4.
65875         (Depends-on): Add d-ino.
65876         * modules/cycle-check (Depends-on): Add stdint.
65877         (lib_SOURCES): Add cycle-check.h.
65878         * modules/d-ino: New module.
65879         * modules/d-type: New module.
65880         * modules/error (Files): Remove m4/strerror_r.m4.
65881         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65882         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65883         m4/inttypes_h.m4, m4/uintmax_t.m4.
65884         (Depends-on): Add stdint.
65885         (lib_SOURCES): Add fsusage.h.
65886         * modules/getcwd (Files): Remove d-ino.m4.
65887         (Depends-on): Add d-ino.
65888         * modules/getndelim2 (Depends-on): Add stdint.
65889         * modules/glob (Files): Remove m4/d-type.m4.
65890         (Depends-on): Add d-type.
65891         * modules/host-os: New module.
65892         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65893         m4/inttypes_h.m4, m4/uintmax_t.m4.
65894         * Depends-on: Add stdint.
65895         (lib_SOURCES): Add human.h.
65896         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65897         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65898         m4/uintmax_t.m4, m4/ulonglong.m4.
65899         (Depends-on): Add stdint.
65900         (EXTRA_DIST): Add inttostr.h.
65901         * modules/lchmod: New module.
65902         * modules/link-follow: New module.
65903         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65904         (Depends-on): Add lchmod.
65905         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65906         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65907         (Depends-on): Add stdint.
65908         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65909         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65910         (Depends-on): Add stdint.
65911         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65912         * modules/perl: New module.
65913         * modules/regex (Depends-on): Add stdint.
65914         * modules/rmdir-errno: New module.
65915         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65916         m4/intmax_t.m4.
65917         (Depends-on): Add stdint.
65918         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65919         m4/uintmax_t.m4.
65920         (Depends-on): Add stdint.
65921         * modules/unlink-busy: New module.
65922         * modules/utimecmp (Depends-on): Add stdint.
65923         * modules/uptime: New module.
65924         * modules/winsz-ioctl: New module.
65925         * modules/winsz-termios: New module.
65926         * modules/xnanosleep (Depends-on): Add nanosleep.
65927         * modules/ullong_max: Remove.
65928         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65929         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65930         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65931         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65932         (Depends-on): Add inttypes.
65933         (lib_SOURCES): Add xstrtol.h.
65934         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65935         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65936         * MODULES.html.sh: Move 'assert' into the assert section.
65937         Move 'dummy' into the linking section.
65938         Remove ullong_max.
65939         Add section for compatibility checks for POSIX:2001 functions,
65940         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65941         winsz-ioctl, and winsz-termios into it.
65942         Add lchmod.
65943         Add top-level Misc section and put host-os, perl, and uptime
65944         into it.
65945
65946 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65949         now assume the stdint module.  Do not include inttypes.h.
65950         * lib/fsusage.h: Likewise.
65951         * lib/getndelim2.c: Likewise.
65952         * lib/human.h: Likewise.
65953         * lib/inttostr.h: Likewise.
65954         * lib/obstack.c: Likewise.
65955         * lib/regex_internal.h: Likewise.
65956         * lib/tempname.c: Likewise.
65957         * lib/utimecmp.c: Likewise.
65958         * lib/xstrtol.h: Likewise.
65959
65960         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65961
65962         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65963         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65964         * lib/xtime.h: Likewise.
65965
65966 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * modules/openat (Files): Add lib/fchmodat.c.
65969         Fixes problem reported by Jay Youngman.
65970
65971 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65972
65973         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65974         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65975
65976 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65977             Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65980         and is a script that invokes bison. Tighten the code. Add comments.
65981
65982 2006-08-18  Jim Meyering  <jim@meyering.net>
65983
65984         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65985         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65986         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65987         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65988
65989 2006-08-18  Bruno Haible  <bruno@clisp.org>
65990
65991         * modules/bison-i18n: New file.
65992         * MODULES.html.sh (Internationalization functions): Add it.
65993
65994 2006-08-18  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65997         sys/statvfs.h. When getmntinfo was found, check its declaration and
65998         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65999
66000 2006-08-18  Bruno Haible  <bruno@clisp.org>
66001
66002         * m4/bison-i18n.m4: New file, from bison.
66003
66004 2006-08-18  Bruno Haible  <bruno@clisp.org>
66005
66006         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66007         (ME_DUMMY): Treat "kernfs" as a dummy.
66008         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66009
66010 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66011
66012         Update from coreutils.
66013
66014         2006-08-15  Jim Meyering  <jim@meyering.net>
66015
66016         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66017
66018         2006-01-17  Jim Meyering  <jim@meyering.net>
66019
66020         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66021
66022         2006-01-11  Jim Meyering  <jim@meyering.net>
66023
66024         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66025         Check for the lchmod function.
66026
66027 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         Update from coreutils.
66030
66031         * lib/__fpending.h: Add copyright notice.
66032         * lib/fprintftime.h: Likewise.
66033         * lib/savedir.c: Use (C) in copyright notice.
66034         * lib/savedir.h: Likewise.
66035
66036         2006-08-15  Jim Meyering  <jim@meyering.net>
66037
66038         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66039         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66040         in support of the EXPECTED_ERRNO macro.
66041         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66042         definitions.  Instead, define the appropriate symbols and include
66043         "at-func.c".
66044         * lib/mkdirat.c (mkdirat): Likewise.
66045         * lib/fchmodat.c (fchmodat): Likewise.
66046         (ENOSYS): Remove definition.
66047         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66048         it.  Don't include "unistd--.h" -- it wasn't ever used.
66049
66050         2006-01-17  Jim Meyering  <jim@meyering.net>
66051
66052         Rewrite fts.c not to change the current working directory,
66053         by using openat, fstatat, fdopendir, etc..
66054
66055         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66056         (HAVE_OPENAT_SUPPORT): Define.
66057         [_LIBC] (fchdir): Don't undef or define; no longer used.
66058         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66059         Now, this `function' always succeeds, and consumes its file descriptor
66060         parameter -- so callers must not close such FDs.  Update callers.
66061         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66062         (diropen): Add parameter, SP.  Adjust all callers.
66063         Implement using diropen_fd, rather than open.
66064         (fts_open): Initialize new member, fts_cwd_fd.
66065         Remove fts_rft-setting code.
66066         (fts_close): Close fts_cwd_fd, if necessary.
66067         (__opendir2): Define in terms of opendir or opendirat,
66068         depending on whether the FST_NOCHDIR flag is set.
66069         (fts_build): Since fts_safe_changedir consumes its FD, and since
66070         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66071         and close the dup'd file descriptor upon failure.
66072         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66073         (fts_safe_changedir): Tweak semantics to reflect that this function
66074         now calls cwd_advance_fd and hence consumes its FD argument.
66075         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66076         [struct FTS] (fts_rft): Remove now-unused member.
66077         [struct FTS] (fts_cycle.state): Improve comment.
66078
66079         * lib/openat.c (openat_needs_fchdir): New function.
66080         * lib/openat.h (openat_needs_fchdir): Declare it.
66081
66082 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66085         Problem and fix reported by Pádraig Brady in
66086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66087
66088 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66091
66092 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66093
66094         * lib/memcoll.c (memcoll): Optimize for the common case where the
66095         arguments are bytewise equal.
66096
66097 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66098
66099         * doc/regexprops-generic.texi: Add a copyright notice.
66100
66101 2006-08-15  Bruno Haible  <bruno@clisp.org>
66102
66103         * modules/tmpdir (License): Change to LGPL.
66104
66105 2006-08-15  Bruno Haible  <bruno@clisp.org>
66106
66107         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66108         module.
66109
66110 2006-08-14  Simon Josefsson  <jas@extundo.com>
66111
66112         * config/srclist.txt: Add gnupload.
66113
66114 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         Change copyright notice from LGPL 2 to GPL 2, since that's the
66117         standard form used in the gnulib repository.
66118         * tests/test-lock.c: Likewise.
66119         * tests/test-stdint.c: Likewise.
66120         * tests/test-tls.c: Likewise.
66121
66122         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66123         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66124         Add copyright notice.
66125
66126         * check-module: Add copyright notice.  Output a copyright
66127         notice if "--version" is specified.
66128         * modules/COPYING: New file.
66129         * tests/test-getaddrinfo.c: Add copyright notice.
66130         * tests/test-verify.c: Likewise.
66131
66132 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         Change copyright notice from LGPL 2 to GPL 2, since that's the
66135         standard form used in the gnulib repository.
66136         * lib/lock.c: LGPL -> GPL.
66137         * lib/lock.h: Likewise.
66138         * lib/strnlen1.c: Likewise.
66139         * lib/strnlen1.h: Likewise.
66140         * lib/tls.c: Likewise.
66141         * lib/tls.h: Likewise.
66142         * lib/tmpdir.c: Likewise.
66143
66144         * lib/TODO: Remove; this belongs only in coreutils.
66145
66146 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         Add copyright notices to long-enough files that lack them, since
66149         otherwise the files aren't clearly free.  Use the same notice that
66150         getdate.texi already uses.
66151         * doc/alloca-opt.texi: Add copyright notice.
66152         * doc/alloca.texi: Likewise.
66153         * doc/ctime.texi: Likewise.
66154         * doc/functions.texi: Likewise.
66155         * doc/gcd.texi: Likewise.
66156         * doc/gnulib-tool.texi: Likewise.
66157         * doc/inet_ntoa.texi: Likewise.
66158         * doc/visibility.texi: Likewise.
66159
66160         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66161         * doc/quote.texi: Add copyright notice.
66162
66163         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66164         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66165         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66166         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66167         is now obsolete, and give a pointer to the Sun list.
66168         Add copyright notice.
66169
66170 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * config/srclistvars.sh: Add copyright notice.
66173
66174 2006-08-14  Eric Blake  <ebb9@byu.net>
66175
66176         Import the following change from libc:
66177
66178         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66179
66180         Upstream bug 2997.
66181         * lib/misc/error.c: Add space between program name and message if file
66182         name is missing.
66183
66184 2006-08-12  Karl Berry  <karl@gnu.org>
66185
66186         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66187         remove, these originate in gnulib now.
66188
66189 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66190
66191         * doc/Makefile (standards.info standards.html standards.dvi):
66192         Also depend on make-stds.texi.
66193
66194 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66197         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66198
66199         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66200         in wchar_t.  Problem reported by Eric Blake.
66201
66202         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66203         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66204         Also, help the compiler to keep LEN in a register.
66205
66206 2006-08-11  Eric Blake  <ebb9@byu.net>
66207
66208         * users.txt: Sort.  Add tar.
66209
66210 2006-08-11  Bruno Haible  <bruno@clisp.org>
66211
66212         * users.txt: New file.
66213
66214 2006-08-11  Bruno Haible  <bruno@clisp.org>
66215
66216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66217         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66218
66219 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         * modules/snprintf (Depends-on): Remove minmax.
66222         (Maintainer): Add self and Bruno.
66223
66224 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66225
66226         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66227         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66228         (EOVERFLOW): Define if the system does not.
66229         Do not include "minmax.h"; it wasn't used.
66230         (snprintf): Don't assume size_t promotes to an unsigned type.
66231         Fix bug when generated string was too long for the buffer: the
66232         buffer's contents are supposed to be the initial prefix of the
66233         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66234         exceeds INT_MAX; do the check ourselves.
66235
66236         Import the following changes from libc:
66237
66238         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66239
66240         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66241         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66242         set wc to the byte which couldn't be converted.
66243         (re_string_reconstruct): Don't clear valid_raw_len before calling
66244         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66245         tip_context using re_string_context_at.
66246
66247         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66248
66249         * lib/posix/regex.h: g++ still cannot handled [restrict].
66250
66251         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66252
66253         * lib/posix/regex.h: Remove special handling for VMS.
66254
66255 2006-08-10  Jim Meyering  <jim@meyering.net>
66256
66257         * modules/same-inode: New module.
66258         * modules/dev-ino: New module.
66259         * modules/cycle-check: Depend on these modules, rather than simply
66260         including their .h files.
66261         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66262         required via m4/cycle-check.m4.
66263         * modules/same: Depend on new same-inode module, rather than
66264         including same-inode.h.
66265         * modules/chdir-safer: New file.
66266
66267         * modules/chown (Depends-on): Add stat-macros.
66268
66269 2006-08-10  Jim Meyering  <jim@meyering.net>
66270
66271         * m4/cycle-check.m4: New file.
66272         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66273         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66274
66275 2006-08-10  Eric Blake  <ebb9@byu.net>
66276
66277         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66278         in from original proposal.
66279
66280 2006-08-10  Eric Blake  <ebb9@byu.net>
66281         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66282
66283         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66284         namespace.
66285
66286 2006-08-10  Bruno Haible  <bruno@clisp.org>
66287
66288         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66289         as well.
66290
66291 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         Sync from coreutils.
66294
66295         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66296
66297         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66298         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66299
66300 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         * modules/restrict: Remove; no longer needed now that we assume
66303         Autoconf 2.59 or later.
66304         * MODULES.html.sh: Remove 'restrict'.
66305         * modules/argp (Depends-on): Remove 'restrict'.
66306         * modules/base64 (Depends-on): Likewise.
66307         * modules/gc (Depends-on): Likewise.
66308         * modules/getaddrinfo (Depends-on): Likewise.
66309         * modules/glob (Depends-on): Likewise.
66310         * modules/inet_ntop (Depends-on): Likewise.
66311         * modules/inet_pton (Depends-on): Likewise.
66312         * modules/memxor (Depends-on): Likewise.
66313         * modules/regex (Depends-on): Likewise.
66314         * modules/strtok_r (Depends-on): Likewise.
66315         * modules/time_r (Depends-on): Likewise.
66316
66317 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66320         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66321         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66322         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66323         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66324         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66325         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66326         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66327
66328         Merge from coreutils.
66329         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66330         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66331         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66332         * m4/time_r.m4 (gl_TIME_R): Likewise.
66333
66334 2006-08-09  Karl Berry  <karl@gnu.org>
66335
66336         * config/srclist.txt: no more gettext-tools, per Bruno.
66337
66338 2006-08-08  Eric Blake  <ebb9@byu.net>
66339
66340         * modules/verror: New module.
66341         * MODULES.html.sh: Document it.
66342
66343 2006-08-08  Eric Blake  <ebb9@byu.net>
66344
66345         * lib/verror.h, lib/verror.c: New files.
66346
66347 2006-08-08  Eric Blake  <ebb9@byu.net>
66348
66349         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66350         verror_at_line output complies with GNU Coding Standards even when
66351         file is NULL.
66352
66353 2006-08-07  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66356         versions of AIX.
66357         Reported by Ralf Wildenhues.
66358
66359 2006-08-07  Bruno Haible  <bruno@clisp.org>
66360
66361         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66362         in an AC_DEFUN. Needed so that the autoconf snippets can use
66363         AC_REQUIRE.
66364
66365 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66366
66367         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66368         Initialize pkgdata_DATA.
66369         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66370         overriding it.
66371
66372 2006-08-06  Eric Blake  <ebb9@byu.net>
66373
66374         * lib/error.h: Fold in some upstream changes from glibc.
66375         * lib/error.c: Likewise.
66376
66377 2006-08-04  Bruno Haible  <bruno@clisp.org>
66378
66379         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66380         Make the mostlyclean-local rule depend on mostlyclean-generic.
66381         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66382
66383 2006-07-31  Bruno Haible  <bruno@clisp.org>
66384
66385         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66386         <stdlib.h>, <string.h>.
66387
66388 2006-07-30  Bruno Haible  <bruno@clisp.org>
66389
66390         * modules/readlink (License): Change to LGPL.
66391
66392 2006-07-30  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66395         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66396         set PKGDATADIR to point to it.
66397
66398 2006-07-30  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/csharpexec (configure.ac): Comment out macro invocation.
66401         * modules/javaexec (configure.ac): Likewise.
66402         * modules/javacomp-script (configure.ac): Likewise.
66403
66404         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66405
66406 2006-07-30  Bruno Haible  <bruno@clisp.org>
66407
66408         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66409         linked-list.
66410
66411 2006-07-30  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66414
66415 2006-07-30  Bruno Haible  <bruno@clisp.org>
66416
66417         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66418         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66419         get removed.
66420
66421 2006-07-29  Bruno Haible  <bruno@clisp.org>
66422
66423         Make it possible for gnulib-tool to work with locally modified or
66424         augmented gnulib repositories.
66425         * gnulib-tool (func_usage): Document --local-dir option.
66426         (local_gnulib_dir): New variable.
66427         Handle --local-dir option.
66428         (func_lookup_file): New function.
66429         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66430         (func_get_description, func_get_filelist, func_get_description,
66431         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66432         func_get_automake_snippet, func_get_include_directive,
66433         func_get_license, func_get_maintainer): Use func_lookup_file.
66434         (func_import, func_create_testdir): Use func_lookup_file.
66435
66436 2006-07-29  Bruno Haible  <bruno@clisp.org>
66437
66438         * modules/setenv (Depends-on): Add unistd.
66439
66440 2006-07-29  Bruno Haible  <bruno@clisp.org>
66441
66442         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66443
66444 2006-07-29  Bruno Haible  <bruno@clisp.org>
66445
66446         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66447
66448 2006-07-29  Bruno Haible  <bruno@clisp.org>
66449
66450         * gnulib-tool (import, update): If there is no Makefile.am, look at
66451         aclocal.m4, instead of bailing out.
66452
66453 2006-07-29  Bruno Haible  <bruno@clisp.org>
66454
66455         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66456         Categorize the options by when they are useful.
66457
66458 2006-07-29  Bruno Haible  <bruno@clisp.org>
66459
66460         * gnulib-tool (func_usage): Document option --no-libtool.
66461         Handle option --no-libtool.
66462         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66463         for changed semantics of $libtool variable.
66464         (func_import): Likewise. If libtool is not used, show this through
66465         an option --no-libtool.
66466         (func_create_testdir): Update.
66467
66468 2006-07-29  Bruno Haible  <bruno@clisp.org>
66469
66470         * gnulib-tool (func_import): Extend error message about missing
66471         --doc-base.
66472
66473 2006-07-29  Bruno Haible  <bruno@clisp.org>
66474
66475         * gnulib-tool (func_import): Don't create the $docbase directory if
66476         there is no file to store there.
66477
66478 2006-07-29  Bruno Haible  <bruno@clisp.org>
66479
66480         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66481         relevant, look for configure.ac there, not in the current directory.
66482         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66483
66484 2006-07-29  Bruno Haible  <bruno@clisp.org>
66485
66486         * gnulib-tool (SORT): New variable.
66487         (func_usage): Undocument --assume-autoconf option.
66488         Remove --assume-autoconf option handling.
66489         (autoconf_minversion): Determine from the contents of configure.ac.
66490         (func_import): Remove autoconf_minversion handling.
66491         Suggested by Eric Blake.
66492
66493 2006-07-29  Bruno Haible  <bruno@clisp.org>
66494
66495         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66496
66497 2006-07-29  Bruno Haible  <bruno@clisp.org>
66498
66499         * config/srclist.txt (*setenv.[ch]): Remove rules.
66500
66501 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66502
66503         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66504
66505 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66506
66507         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66508         arpa/inet.h.
66509
66510 2006-07-28  Simon Josefsson  <jas@extundo.com>
66511
66512         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66513         * modules/inet_pton (Depends-on): Likewise.
66514
66515 2006-07-28  Simon Josefsson  <jas@extundo.com>
66516
66517         * m4/netinet_in_h.m4: New file.
66518
66519 2006-07-28  Simon Josefsson  <jas@extundo.com>
66520
66521         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66522         #include's.
66523
66524 2006-07-28  Simon Josefsson  <jas@extundo.com>
66525
66526         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66527         #include's.
66528
66529 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66532         setgid on directories only if they set these bits.
66533         * lib/modechange.h: Remove obsolete comment about masks.
66534
66535 2006-07-28  Eric Blake  <ebb9@byu.net>
66536
66537         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66538         macro expansion.
66539
66540 2006-07-28  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66543
66544 2006-07-28  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66547
66548 2006-07-28  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66551         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66552         Define fallbacks.
66553         Avoids link error on FreeBSD 4.x.
66554         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66555
66556         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66557         encoding.
66558         * lib/mbswidth.c (iswcntrl): Likewise.
66559
66560 2006-07-27  Bruno Haible  <bruno@clisp.org>
66561
66562         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66563         test.
66564
66565 2006-07-27  Bruno Haible  <bruno@clisp.org>
66566
66567         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66568         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66569         defined.
66570
66571 2006-07-26  Eric Blake  <ebb9@byu.net>
66572
66573         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66574
66575 2006-07-26  Eric Blake  <ebb9@byu.net>
66576
66577         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66578         like mingw that lack mkstemp.
66579         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66580         avoid compilation warning on mingw.
66581
66582 2006-07-26  Bruno Haible  <bruno@clisp.org>
66583
66584         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66585         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66586         INT_FAST*_MIN, INTPTR_MIN.
66587
66588 2006-07-25  Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/version-etc (Depends-on): Add stdarg.
66591
66592 2006-07-25  Bruno Haible  <bruno@clisp.org>
66593
66594         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66595         complex commands.
66596
66597 2006-07-25  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66600         defined in <stdarg.h> or config.h.
66601
66602 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66605         (gl_STDIO_SAFER): Remove.
66606
66607 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66608
66609         * MODULES.html.sh (File stream based Input/Output):
66610         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66611         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66612         * modules/fopen-safer, modules/tmpfile-safer: New files.
66613         * modules/stdio-safer: Remove.
66614
66615 2006-07-24  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/tmpdir: New file.
66618         * MODULES.html.sh (File system functions): Add it.
66619
66620 2006-07-24  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66623         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66624
66625 2006-07-24  Bruno Haible  <bruno@clisp.org>
66626
66627         * modules/clean-temp: New file.
66628
66629 2006-07-24  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/tmpdir.m4: New file, from GNU gettext.
66632
66633 2006-07-24  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/tmpdir.h: New file, from GNU gettext.
66636         * lib/tmpdir.c: New file, from GNU gettext.
66637
66638 2006-07-24  Bruno Haible  <bruno@clisp.org>
66639
66640         * lib/clean-temp.h: New file, from GNU gettext.
66641         * lib/clean-temp.c: New file, from GNU gettext.
66642
66643 2006-07-23  Eric Blake  <ebb9@byu.net>
66644
66645         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66646         (Depends-on): Add binary-io.
66647
66648 2006-07-23  Eric Blake  <ebb9@byu.net>
66649
66650         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66651
66652 2006-07-23  Eric Blake  <ebb9@byu.net>
66653
66654         * lib/tmpfile-safer.c: New file.
66655         * lib/stdio-safer.h (fopen_safer): Add prototype.
66656         * lib/stdio--.h (tmpfile): Make safer.
66657
66658 2006-07-23  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66661         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66662         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66663         gl_linked_remove_at): Use it.
66664
66665 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66666         and Simon Josefsson <jas@extundo.com>
66667
66668         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66669
66670         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66671
66672 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * modules/close-stream: New file.
66675         * modules/closeout (Description): Make it clear that it exits
66676         with a diagnostic on error.
66677         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66678         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66679
66680 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/close-stream.m4: New file.
66683
66684 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/close-stream.c, lib/close-stream.h: New files.
66687
66688 2006-07-22  Bruno Haible  <bruno@clisp.org>
66689
66690         Merge from GNU gettext 0.15.
66691
66692         2006-05-01  Bruno Haible  <bruno@clisp.org>
66693
66694                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66695
66696         2006-07-22  Bruno Haible  <bruno@clisp.org>
66697
66698                 * modules/javaversion: New file.
66699                 * MODULES.html.sh (Java): Add javaversion.
66700
66701         2006-03-12  Bruno Haible  <bruno@clisp.org>
66702
66703                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66704
66705         2005-12-04  Bruno Haible  <bruno@clisp.org>
66706
66707                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66708                 (untested).
66709
66710         2006-06-21  Bruno Haible  <bruno@clisp.org>
66711
66712                 Avoid warnings from recent versions of mcs.
66713                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66714                 -o, -L, -r any more. Use options documented since mcs-1.0
66715                 instead. Similarly for -g.
66716
66717         2005-12-04  Bruno Haible  <bruno@clisp.org>
66718
66719                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66720                 .resources, not .resource.
66721
66722         2005-07-09  Bruno Haible  <bruno@clisp.org>
66723
66724                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66725                 add a .dll suffix.
66726                 Reported by Mark Junker <mjscod@gmx.de>.
66727
66728         2006-07-22  Bruno Haible  <bruno@clisp.org>
66729
66730                 * modules/gettext: Upgrade to gettext-0.15.
66731                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66732                 m4/visibility.m4.
66733                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66734
66735 2006-07-22  Bruno Haible  <bruno@clisp.org>
66736
66737         Merge from GNU gettext 0.15.
66738
66739         2006-03-25  Bruno Haible  <bruno@clisp.org>
66740
66741                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66742
66743         2006-07-21  Bruno Haible  <bruno@clisp.org>
66744
66745                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66746                 "1.1".
66747
66748         2006-05-09  Bruno Haible  <bruno@clisp.org>
66749
66750                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66751                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66752                 for the conftestver execution.
66753
66754         2006-05-01  Bruno Haible  <bruno@clisp.org>
66755
66756                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66757                 optional target-version argument. Verify that the compiler
66758                 groks source of the specified source-version, or add -source
66759                 option as necessary. Verify that the compiler produces
66760                 bytecode in the specified target-version, or add -target and
66761                 -source options as necessary. Make the result of the test
66762                 available as variable CONF_JAVAC. Also log error output in
66763                 config.log.
66764
66765         2006-03-11  Bruno Haible  <bruno@clisp.org>
66766
66767                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66768
66769         2006-05-09  Bruno Haible  <bruno@clisp.org>
66770
66771                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66772                 CLASSPATH_SEPARATOR to a semicolon.
66773
66774         2006-03-12  Bruno Haible  <bruno@clisp.org>
66775
66776                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66777                 available as variable CONF_JAVA, for subsequent autoconf
66778                 tests. Also log error output in config.log.
66779
66780         2006-07-19  Bruno Haible  <bruno@clisp.org>
66781
66782                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66783                 that getline works on glibc2 systems. Needed to avoid trouble
66784                 in relocatable.c.
66785                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66786
66787         2005-12-04  Bruno Haible  <bruno@clisp.org>
66788
66789                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66790                 launcher (untested).
66791
66792         2005-12-04  Bruno Haible  <bruno@clisp.org>
66793
66794                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66795
66796         2006-07-22  Bruno Haible  <bruno@clisp.org>
66797
66798                 * gettext.m4: Update from GNU gettext-0.15.
66799                 * nls.m4: Likewise.
66800                 * po.m4: Likewise.
66801                 * inttypes-pri.m4: Likewise.
66802                 * inttypes-h.m4: Renamed from inttypes.m4.
66803                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66804
66805 2006-07-22  Bruno Haible  <bruno@clisp.org>
66806
66807         Merge from GNU gettext 0.15.
66808
66809         2005-07-05  Bruno Haible  <bruno@clisp.org>
66810
66811                 * printf-args.c (printf_fetchargs): Work around broken
66812                 definition of wint_t on mingw.
66813
66814         2005-02-12  Bruno Haible  <bruno@clisp.org>
66815
66816                 * xallocsa.h: Add extern "C" for C++.
66817
66818         2006-05-17  Bruno Haible  <bruno@clisp.org>
66819
66820                 Cygwin portability.
66821                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66822
66823         2006-04-30  Bruno Haible  <bruno@clisp.org>
66824
66825                 * progreloc.c: Include <mach-o/dyld.h> if available.
66826                 (find_executable): Use _NSGetExecutablePath when possible.
66827
66828         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66829
66830                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66831                 function.
66832
66833         2005-12-29  Bruno Haible  <bruno@clisp.org>
66834
66835                 * progreloc.c (set_program_name_and_installdir): Fix
66836                 compilation error.
66837
66838         2005-12-04  Bruno Haible  <bruno@clisp.org>
66839
66840                 Cygwin portability.
66841                 * progreloc.c: Include <windows.h> also on Cygwin.
66842                 (find_executable): Add support for Cygwin.
66843                 (set_program_name_and_installdir): Handle also platforms with
66844                 nonempty EXEEXT.
66845
66846         2006-07-11  Bruno Haible  <bruno@clisp.org>
66847
66848                 * javacomp.c: Fix a comment.
66849                 Reported by Jim Meyering.
66850
66851         2006-04-30  Bruno Haible  <bruno@clisp.org>
66852
66853                 * javacomp.h (compile_java_class): Add source_version,
66854                 target_version arguments.
66855                 * javacomp.c: Rewritten to choose only a compiler that
66856                 respects the specified source_version and target_version.
66857
66858         2006-06-27  Bruno Haible  <bruno@clisp.org>
66859
66860                 Assume correct S_ISDIR macro.
66861                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66862
66863         2006-07-22  Bruno Haible  <bruno@clisp.org>
66864
66865                 * javaversion.h: New file, from GNU gettext.
66866                 * javaversion.c: New file, from GNU gettext.
66867                 * javaversion.java: New file, from GNU gettext.
66868                 * javaversion.class: New file, from GNU gettext.
66869
66870         2006-05-17  Bruno Haible  <bruno@clisp.org>
66871
66872                 Cygwin portability.
66873                 * javaexec.c (execute_java_class): Test for jview program
66874                 also on Cygwin.
66875
66876         2006-04-09  Bruno Haible  <bruno@clisp.org>
66877
66878                 * fatal-signal.c: Don't include string.h.
66879                 (at_fatal_signal): Use a copying loop instead of memcpy.
66880
66881         2005-12-04  Bruno Haible  <bruno@clisp.org>
66882
66883                 * csharpexec.c: Add support for 'clix' launcher (untested).
66884                 (execute_csharp_using_sscli): New function.
66885                 (execute_csharp_program): Call it.
66886
66887         2006-06-21  Bruno Haible  <bruno@clisp.org>
66888
66889                 Avoid warnings from recent versions of mcs.
66890                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66891                 -o, -L, -r any more. Use options documented since mcs-1.0
66892                 instead. Similarly for -g.
66893
66894         2005-07-09  Bruno Haible  <bruno@clisp.org>
66895
66896                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66897                 add a .dll suffix.
66898                 Reported by Mark Junker <mjscod@gmx.de>.
66899
66900         2006-06-17  Bruno Haible  <bruno@clisp.org>
66901
66902                 * config.charset: Update for NetBSD 3.0.
66903
66904         2006-05-17  Bruno Haible  <bruno@clisp.org>
66905
66906                 Cygwin portability.
66907                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66908
66909         2006-05-16  Bruno Haible  <bruno@clisp.org>
66910
66911                 * localcharset.c [CYGWIN]: Include <windows.h>.
66912                 (get_charset_aliases): For Cygwin, return the same CPxxx
66913                 aliases list as under WIN32.
66914                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66915                 the environment variables. Fall back to GetACP().
66916
66917         2006-04-05  Bruno Haible  <bruno@clisp.org>
66918
66919                 * config.charset: Update Juan Manuel Guerrero's address.
66920
66921         2005-02-12  Bruno Haible  <bruno@clisp.org>
66922
66923                 * allocsa.h: Add extern "C" for C++.
66924
66925         2005-02-10  Bruno Haible  <bruno@clisp.org>
66926
66927                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66928                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66929
66930         2006-07-22  Bruno Haible  <bruno@clisp.org>
66931
66932                 * gettext.h: Update to GNU gettext-0.15.
66933
66934 2006-07-22  Bruno Haible  <bruno@clisp.org>
66935
66936         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66937         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66938         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66939
66940 2006-07-21  Eric Blake  <ebb9@byu.net>
66941
66942         * modules/stdlib-safer: New file.
66943         * MODULES.html.sh (File stream based Input/Output): Add
66944         stdlib-safer.
66945
66946 2006-07-21  Eric Blake  <ebb9@byu.net>
66947
66948         * lib/stdlib-safer.h: New file from coreutils, required by
66949         stdlib--.h.
66950
66951 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66954
66955 2006-07-20  Bruno Haible  <bruno@clisp.org>
66956
66957         * gnulib-tool: Recognize new option --assume-autoconf.
66958         (autoconf_minversion): New variable.
66959         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66960
66961 2006-07-20  Bruno Haible  <bruno@clisp.org>
66962
66963         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66964
66965 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66966
66967         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66968         Reindent and repaginate.
66969
66970 2006-07-19  Derek Price  <derek@ximbiot.com>
66971
66972         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66973         Correct grammar.
66974
66975 2006-07-17  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/list: New file.
66978         * modules/array-list: New file.
66979         * modules/carray-list, modules/carray-list-tests: New files.
66980         * modules/linked-list, modules/linked-list-tests: New files.
66981         * modules/avltree-list, modules/avltree-list-tests: New files.
66982         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66983         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66984         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66985         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66986         * modules/oset: New file.
66987         * modules/array-oset: New file.
66988         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66989         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66990         * tests/test-carray_list.c: New file.
66991         * tests/test-linked_list.c: New file.
66992         * tests/test-avltree_list.c: New file.
66993         * tests/test-rbtree_list.c: New file.
66994         * tests/test-linkedhash_list.c: New file.
66995         * tests/test-avltreehash_list.c: New file.
66996         * tests/test-rbtreehash_list.c: New file.
66997         * tests/test-avltree_oset.c: New file.
66998         * tests/test-rbtree_oset.c: New file.
66999         * MODULES.html.sh (Container data structures): New section.
67000
67001 2006-07-17  Bruno Haible  <bruno@clisp.org>
67002
67003         * m4/gl_list.m4: New file.
67004
67005 2006-07-17  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/gl_list.h: New file.
67008         * lib/gl_list.c: New file.
67009         * lib/gl_array_list.h: New file.
67010         * lib/gl_array_list.c: New file.
67011         * lib/gl_carray_list.h: New file.
67012         * lib/gl_carray_list.c: New file.
67013         * lib/gl_linked_list.h: New file.
67014         * lib/gl_linked_list.c: New file.
67015         * lib/gl_anylinked_list1.h: New file.
67016         * lib/gl_anylinked_list2.h: New file.
67017         * lib/gl_avltree_list.h: New file.
67018         * lib/gl_avltree_list.c: New file.
67019         * lib/gl_anyavltree_list1.h: New file.
67020         * lib/gl_anyavltree_list2.h: New file.
67021         * lib/gl_rbtree_list.h: New file.
67022         * lib/gl_rbtree_list.c: New file.
67023         * lib/gl_anyrbtree_list1.h: New file.
67024         * lib/gl_anyrbtree_list2.h: New file.
67025         * lib/gl_anytree_list1.h: New file.
67026         * lib/gl_anytree_list2.h: New file.
67027         * lib/gl_linkedhash_list.h: New file.
67028         * lib/gl_linkedhash_list.c: New file.
67029         * lib/gl_anyhash_list1.h: New file.
67030         * lib/gl_anyhash_list2.h: New file.
67031         * lib/gl_avltreehash_list.h: New file.
67032         * lib/gl_avltreehash_list.c: New file.
67033         * lib/gl_rbtreehash_list.h: New file.
67034         * lib/gl_rbtreehash_list.c: New file.
67035         * lib/gl_anytreehash_list1.h: New file.
67036         * lib/gl_anytreehash_list2.h: New file.
67037
67038         * lib/gl_oset.h: New file.
67039         * lib/gl_oset.c: New file.
67040         * lib/gl_array_oset.h: New file.
67041         * lib/gl_array_oset.c: New file.
67042         * lib/gl_avltree_oset.h: New file.
67043         * lib/gl_avltree_oset.c: New file.
67044         * lib/gl_rbtree_oset.h: New file.
67045         * lib/gl_rbtree_oset.c: New file.
67046         * lib/gl_anytree_oset.h: New file.
67047
67048 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         * m4/mkancesdirs.m4: New file.
67051         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67052         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67053         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67054         it.
67055
67056 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67059         * lib/mkancesdirs.h: New files.
67060         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67061         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67062         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67063         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67064         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67065         callers changed.  Revamp internals significantly, by not
67066         attempting to create directories that are temporarily more
67067         permissive than the final results.  Do not attempt to use
67068         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67069         This removes some race conditions, fixes some bugs, and simplifies
67070         things.  Use new dirchownmod function to do owner and mode changes.
67071         * lib/mkdir-p.h: Likewise.
67072         * lib/modechange.c (octal_to_mode): New function.
67073         (struct mode_change): New member mentioned.
67074         (make_node_op_equals): New arg mentioned.  All callers changed.
67075         (mode_compile): Keep track of which mode bits the user has explicitly
67076         mentioned.
67077         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67078         New arg PMODE_BITS, to keep track of which mode bits the user
67079         mentioned; it treats S_ISUID and S_ISGID speciall.
67080         All callers changed.
67081         * lib/modechange.h: Likewise.
67082
67083 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * MODULES.html.sh: Add mkancestors.
67086         * modules/mkancesdirs: New module.
67087         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67088         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67089         The chdir-safer and afs files are now orphans; I'll remove them
67090         unless someone speaks up.
67091         Add lib/dirchownmod.c, lib/dirchownmod.h.
67092         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67093         Add lchown, mkancesdirs.
67094         (Maintainer): Add self.
67095
67096 2006-07-15  Karl Berry  <karl@gnu.org>
67097
67098         * gnulib-tool: help message wording/arrangement.
67099
67100 2006-07-14  Simon Josefsson  <jas@extundo.com>
67101
67102         * doc/gnulib.texi (Libtool and Windows): New section.
67103
67104 2006-07-12  Simon Josefsson  <jas@extundo.com>
67105
67106         * modules/gendocs (License): Fix license, approved by Karl.
67107
67108 2006-07-12  Eric Blake  <ebb9@byu.net>
67109
67110         * MODULES.html.sh: Add gendocs.
67111
67112 2006-07-11  Eric Blake  <ebb9@byu.net>
67113
67114         * modules/fdl: New module, to install doc/fdl.texi.
67115         * MODULES.html.sh: Add new section for documentation modules.
67116         * gnulib-tool: Avoid space-tab.
67117         (--doc-base): New option, to manage files from doc.
67118
67119 2006-07-11  Eric Blake  <ebb9@byu.net>
67120
67121         * m4/absolute-header.m4: Fix comments to match recent change.
67122
67123 2006-07-11  Eric Blake  <ebb9@byu.net>
67124
67125         * gnulib-tool: List --doc-base before --tests-base.
67126
67127 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67128
67129         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67130
67131 2006-07-11  Bruno Haible  <bruno@clisp.org>
67132
67133         * README: Mention where to put documentation.
67134
67135 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67136
67137         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67138
67139 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67142         to stdint.m4.
67143
67144 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67145
67146         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67147         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67148         "no/such/file/stdint.h" when there is no such file, so that
67149         the resulting C code can be parsed by dodgy compilers.
67150         Problems reported by Bob Proulx.
67151
67152 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67153
67154         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67155         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67156         macros into the GNU _D_EXACT_NAMLEN.
67157         * lib/savedir.c:  Likewise.
67158         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67159
67160 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67161         and Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67164         * m4/savedir.m4:
67165         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67166         macros into the GNU _D_EXACT_NAMLEN.
67167
67168 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67171         around the absolute name, to work around a problem with the HP-UX
67172         11.23 native C compiler, reported by Bob Proulx.
67173
67174 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         * doc/maintain.texi, make-stds.texi: Sync from
67177         <http://savannah.gnu.org/projects/gnustandards>.
67178
67179 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67182
67183 2006-07-09  Jim Meyering  <jim@meyering.net>
67184
67185         * m4/glob.m4: Remove a doubled word in a comment.
67186
67187 2006-07-09  Jim Meyering  <jim@meyering.net>
67188
67189         * lib/argp-pv.c: Remove a doubled word in a comment.
67190         * lib/check-version.c (check_version): Likewise.
67191         * lib/javacomp.c (compile_java_class): Likewise.
67192
67193 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67196         for the benefit of people using Autoconf 2.60.  If you want to
67197         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67198         (or m4/onceonly.m4, if pre-2.57) manually.
67199
67200 2006-07-08  Jim Meyering  <jim@meyering.net>
67201
67202         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67203         comment.
67204         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67205         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67206         comment.
67207
67208 2006-07-08  Jim Meyering  <jim@meyering.net>
67209
67210         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67211
67212 2006-07-07  Simon Josefsson  <jas@extundo.com>
67213
67214         * tests/test-crc.c: Change expected crc value, the test vector
67215         were probably computed using the old broken crc.c?
67216
67217 2006-07-06  Simon Josefsson  <jas@extundo.com>
67218
67219         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67220         now the canonical place for the M4 file).
67221
67222         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67223         from the sys_socket dependency now.
67224
67225         * modules/inet_pton (Files): Ditto.
67226
67227         * modules/inet_ntop (Files): Ditto.
67228
67229 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67230
67231         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67232         not gl_PREREQ_GETUSERSHELL.
67233
67234 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67235
67236         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67237         with only one argument, for Autoconf 2.60.
67238         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67239         expand to nothing, so add a shell command to avoid syntax error.
67240         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67241
67242 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67243
67244         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67245
67246 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67249         no longer needed.  Check for isblank decl.
67250         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67251         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67252         of existence.
67253
67254 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * lib/getloadavg.c: Use __VMS, not VMS.
67257         * lib/getopt.c: Likewise.
67258         * lib/getpagesize.h: Likewise.
67259         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67260         and probably does not work.
67261
67262 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         * lib/.cppi-disable: Add wcwidth.
67265         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67266         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67267         (ISGRAPH): Remove.  All uses changed to isgraph.
67268         (FOLD) [!defined _LIBC]: Remove special case.
67269         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67270         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67271         HAVE_ISBLANK.
67272         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67273         case.
67274
67275 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67276
67277         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67278         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67279         brackets.  Other minor changes to suppress some compiler
67280         warnings.
67281
67282 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67283         and Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67286         of invoking obsolescent AC_HEADER_DIRENT macro.
67287         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67288         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67291         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67292         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67293         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67294         * m4/readdir.m4: Remove; no longer needed.
67295
67296 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67297         and Paul Eggert  <eggert@cs.ucla.edu>
67298
67299         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67300         Don't worry about this obsolete case any more.
67301         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67302         directories.
67303         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67304         worry about this obsolete case any more.
67305         * lib/fts.c: Likewise.
67306         * lib/getcwd.c: Likewise.
67307         * lib/glob.h: Likewise.
67308         * lib/savedir.c: Likewise.
67309
67310 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67313         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67314         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67315         needed.
67316         All uses removed.
67317         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67318         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67319         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67320         needed.
67321         * m4/getdate.m4 (gl_GETDATE): Likewise.
67322         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67323         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67324         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67325         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67326         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67327         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67328         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67329         needed.
67330
67331 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67332
67333         * lib/memcasecmp.c: Include <limits.h>.
67334         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67335         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67336         Don't assume isdigit succeeds only on '0' through '9'.
67337
67338 2006-07-05  Eric Blake  <ebb9@byu.net>
67339
67340         * modules/getaddrinfo (Depends-on): Add snprintf.
67341
67342 2006-07-05  Eric Blake  <ebb9@byu.net>
67343
67344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67345         to avoid 'header present but could not be compiled' on cygwin.
67346
67347 2006-07-05  Eric Blake  <ebb9@byu.net>
67348
67349         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67350         missing from netdb.h.
67351         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67352
67353 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67354
67355         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67356         no longer needed.
67357         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67358         * m4/getdate.m4 (gl_GETDATE): Likewise.
67359         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67360         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67361         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67362         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67364
67365 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67366
67367         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67368         All uses of is_space replaced by isspace.
67369         * lib/exit.h: Don't talk about STDC_HEADERS.
67370         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67371         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67372         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67373         replaced by isprint etc.
67374         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67375         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67376         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67377         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67378         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67379         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67380
67381 2006-07-05  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67384         the function exists, before testing against AIX.
67385         Reported by Martin Lambers <marlam@marlam.de>.
67386
67387 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67390         From Mark D. Baushke.
67391
67392 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67395         to the absolute name, not just one, to bypass Sun C 5.8's
67396         "warning: #include of /usr/include/... may be non-portable".
67397
67398 2006-07-04  Eric Blake  <ebb9@byu.net>
67399
67400         * modules/dirname-tests: New test module.
67401         * tests/test-dirname.c: New file, replacing dirname.c
67402         TEST_DIRNAME section that was recently deleted.
67403
67404 2006-07-04  Bruno Haible  <bruno@clisp.org>
67405
67406         Assume ANSI C header files and <ctype.h> functions.
67407         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67408         (mbsnwidth): Use isprint, iscntrl instead.
67409
67410 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         Merge from coreutils.
67413         * MODULES.html.sh: Add xstrtold.
67414         * modules/xstrtold: New file.
67415         * modules/cycle-check (Files): Add lib/same-inode.h.
67416         * modules/dirname (Files): Add m4/double-slash-root.m4.
67417         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67418         * modules/mkdir-p (Files): Add lib/same-inode.h.
67419         * modules/same (Files): Add lib/same-inode.h.
67420
67421 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67424         This is to keep the terminology clean; POSIX talks about
67425         "absolute pathnames", not "full pathnames", but the GNU
67426         Coding Standards say to use "path" for something else;
67427         so use "absolute" to keep both sides happy.
67428         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67429         Set gl_absolute_header, not gl_full_header_path.
67430         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67431         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67432         All uses changed.
67433
67434         Merge from coreutils.
67435
67436         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67437
67438         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67439         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67440         want to require the building of c-strtod.o.
67441         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67442         needs -lm directly.
67443         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67444
67445         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67448         --as-needed option if available.  Problem reported by Albert Chin in
67449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67450         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67451         cc merely issues a bunch of annoying warnings for --as-needed
67452         (this problem was reported by Bob Proulx).  Also, try linking with
67453         -lm to detect a bug in binutils 2.16 (this problem was reported
67454         by Ralf Wildenhues).
67455
67456         2006-06-18  Jim Meyering  <jim@meyering.net>
67457
67458         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67459         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67460         macro.
67461         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67462         also check for glibc-2.4's abort-inducing bug.
67463
67464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67465         Low-probability clean-up should be to use rmdir to get rid of
67466         the just-created directory, not unlink.
67467
67468         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67469         configure fail, and request a bug report to inform us about it.
67470         Add a comment that, barring reports to the contrary, in 2007 we'll
67471         assume ftruncate is universally available.
67472
67473         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67474
67475         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67476
67477         2006-03-12  Jim Meyering  <jim@meyering.net>
67478
67479         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67480         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67481         * m4/same.m4 (gl_SAME): Likewise.
67482         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67483
67484         2006-03-11  Eric Blake  <ebb9@byu.net>
67485
67486         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67487         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67488         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67489         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67490
67491 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67494         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67495         reported by Mark D. Baushke, one in
67496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67497
67498         Merge from coreutils.
67499
67500         * lib/.cppi-disable: Add stdint_.h.
67501         * lib/.cvsignore: Add stdint.h.
67502
67503         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67504
67505         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67506         both double and long double versions.
67507         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67508         * lib/xstrtold.c: New file.
67509         * lib/xstrtod.h (xstrtold): New decl.
67510
67511         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * lib/filemode.c (setst): Remove.
67514         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67515         (arguably) clearer, and the generated code is a bit smaller on my
67516         Debian GNU/Linux stable x86 host.
67517
67518         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67521         Assume that filemode.h includes sys/types.h and sys/stat.h.
67522         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67523         (ftypelet): Reorder to put common cases first, for efficiency.
67524         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67525         to do 'M'.
67526         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67527         of 10, for compatibility with FreeBSD.  All callers changed.
67528         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67529         types that can't be deduced solely from st_mode.  First arg is now a
67530         const pointer.
67531         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67532         (strmode): Renamed from mode_string.
67533         (filemodestring): New decl.
67534         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67535         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67536         needed.
67537         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67538
67539         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67542         fsusage.h now does that.  Include fsusage.h first, to test interface.
67543         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67544         at most one method (the old code could have generated decls that
67545         didn't conform to C89, not that this was ever exercised).
67546         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67547
67548         2006-03-19  Jim Meyering  <jim@meyering.net>
67549
67550         Work even in a chroot where d_ino values for entries in "/"
67551         don't match the stat.st_ino values for the same names.
67552         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67553         number, iterate through all entries again, using lstat instead.
67554         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67555         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67556
67557         * lib/getcwd.c (__getcwd): Clarify a comment.
67558         Use memcpy in place of a call to strcpy.
67559
67560         2006-03-12  Jim Meyering  <jim@meyering.net>
67561
67562         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67563         matches that of the current directory (which we're about to chdir ".."
67564         out of), then save the dev-ino of the parent, instead.
67565
67566         * lib/same-inode.h (SAME_INODE): New file/macro.
67567         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67568         Include "same-inode.h", instead.
67569         * lib/same.c: Likewise.
67570         * lib/cycle-check.h: Include "same-inode.h".
67571         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67572         * lib/cycle-check.c (SAME_INODE): Remove definition.
67573         * lib/root-dev-ino.h: Include "same-inode.h".
67574
67575         2006-03-11  Eric Blake  <ebb9@byu.net>
67576
67577         * lib/same.c (same_name): s/base_name/last_component/
67578         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67579         * lib/filenamecat.c (file_name_concat): Likewise.
67580
67581         2006-03-11  Eric Blake  <ebb9@byu.net>,
67582                     Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67585         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67586         drive prefix.
67587         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67588         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67589         (last_component): New method.
67590         * lib/dirname.c (dir_len): Determine when drive letters need a
67591         subsequent slash.  Preserve // when it is special.
67592         (dir_name): Don't append dot when drive letter is absolute.
67593         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67594         * lib/basename.c (base_name): New semantics - malloc the result.
67595         Preserve // when it is special.  Preserve relative files that look
67596         like drive letters.
67597         (base_len): Preserve // when it is special.
67598         (last_component): New method, similar to old base_name semantics.
67599         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67600         base_name.  Strip redundant slashes from ///.
67601
67602 2006-07-03  Jim Meyering  <jim@meyering.net>
67603
67604         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67605         macro is used before the first cycle_check call.
67606
67607 2006-07-03  Eric Blake  <ebb9@byu.net>
67608
67609         * modules/dirname (Depends-on): Add xstrndup.
67610
67611 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67614         test cases, so that config.log is a bit easier to follow.
67615
67616 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67619         both are 64 bits, since this seems to be the tradition, and this
67620         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67621         we ever run into a host that prefers long long to long in this
67622         case, we'll need another configure-time test.  Problem reported by
67623         Jim Meyering.
67624
67625 2006-07-02  Eric Blake  <ebb9@byu.net>
67626
67627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67628
67629 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * modules/inttypes (Depends-on): No longer depends on stdint.
67632         * modules/stdint (Description): Say more about assumptions.
67633         Say that the fast types might differ.  Say macros are used.
67634         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67635         (Makefile.am): Revise list of substituted symbols to match
67636         new stdint.m4.
67637         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67638         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67639         * tests/test-stdint.c (verify_same_types)
67640         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67641         the code conforms to C99/C89.
67642         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67643         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67644
67645 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67648         but fix a bug, by requiring at least 64 bits.
67649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67650         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67651         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67652         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67653
67654         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67655         changes.  Make 2.59 a prerequisite.  Check and substitute for
67656         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67657         inttypes.h.  Do not use special include files; just use the
67658         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67659         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67660         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67661         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67662         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67663         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67664         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67665         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67666         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67667         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67668         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67669         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67670         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67671         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67672         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67673         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67674         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67675         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67676         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67677         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67678         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67679         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67680         not check for things that C99 does not require, e.g., int8_t.  If
67681         a test isn't needed unless <stdint.h> isn't working, and is
67682         unlikely to be needed for any other reason, then don't do it
67683         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67684         size_t, since we assume C89 freestanding at least.  Do not check
67685         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67686         the right thing even if the types are not defined.  Instead use:
67687         (gl_STDINT_TYPE_PROPERTIES): New macro.
67688         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67689         testing whether <sys/types.h> clashes, as Autoconf does this for
67690         us now.  All uses removed.
67691         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67692         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67693         (gl_CHECK_TYPE_SAME):
67694         Remove; no longer needed.
67695         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67696         exists, since we'll return 0 anyway in that case.
67697         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67698
67699 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67702         possible collision with system files.
67703         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67704         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67705         WCHAR_MIN and WCHAR_MAX in this case.
67706         (<stddef.h>): Do not include; no longer needed.
67707         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67708         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67709         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67710         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67711         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67712         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67713         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67714         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67715         !defined(__c99))]: Include in this case too, since it's harmless
67716         now.
67717         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67718         dangerous to do so.
67719         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67720         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67721         (_STDINT_MIN, _STDINT_MAX): New macros.
67722         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67723         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67724         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67725         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67726         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67727         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67728         macros, not typedefs; this simplifies things quite a bit.
67729         Use long int for all types narrower than int64_t.
67730         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67731         Define in terms of long long int or int64_t or long int,
67732         not int64_t or int32_t.  This saves some compile-time testing.
67733         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67734         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67735         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67736         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67737         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67738         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67739         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67740         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67741         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67742         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67743         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67744         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67745         undef any previous version and define our own version, for
67746         simplicity and consistency with the new macros for types.
67747         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67748         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67749         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67750         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67751         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67752         @WINT_T_SUFFIX@ to keep things simple here.
67753         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67754         Simplify by assuming typical 8/16/32/64 host, since we're
67755         already doing that elsewhere anyway.
67756         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67757         and assume long long int is 64 bits if available.  This
67758         speeds up 'configure'.
67759
67760 2006-07-01  Eric Blake  <ebb9@byu.net>
67761
67762         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67763         Reported by Andreas Buening.
67764
67765 2006-07-01  Eric Blake  <ebb9@byu.net>
67766
67767         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67768
67769 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67770
67771         * lib/getaddrinfo.c: fixed typo
67772
67773 2006-06-29  Jim Meyering  <jim@meyering.net>
67774
67775         * modules/strftime (Maintainer): Add my name, since with the
67776         FPRINTFTIME changes strftime.c has forked from glibc.
67777
67778 2006-06-29  Eric Blake  <ebb9@byu.net>
67779
67780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67781
67782 2006-06-29  Eric Blake  <ebb9@byu.net>
67783
67784         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67785
67786 2006-06-29  Eric Blake  <ebb9@byu.net>
67787
67788         * lib/stat_.h: New file.
67789
67790 2006-06-29  Eric Blake  <ebb9@byu.net>
67791
67792         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67793         unused static function.
67794
67795 2006-06-29  Eric Blake  <ebb9@byu.net>
67796
67797         * doc/functions.texi (Function Portability): Document missing lstat
67798         on mingw.
67799
67800 2006-06-29  Eric Blake  <ebb9@byu.net>
67801
67802         * MODULES.html.sh: Add sys_stat.
67803         * modules/sys_stat: New module.
67804         * modules/mkstemp (Depends-on): Add sys_stat.
67805
67806 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67807
67808         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67809
67810 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67811
67812         * m4/c-bs-a.m4: Removed.
67813
67814 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67815
67816         * lib/strftime.c: Assume strftime() exists.
67817
67818 2006-06-29  Derek Price  <derek@ximbiot.com>
67819
67820         * modules/c-bs-a: Removed - \a is C89.
67821         * MODULES.html.sh: Remove c-bs-a.
67822
67823 2006-06-29  Bruno Haible  <bruno@clisp.org>
67824
67825         * modules/wcwidth (License): Change to LGPL.
67826
67827 2006-06-28  Simon Josefsson  <jas@extundo.com>
67828
67829         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67830         on _WIN32.
67831
67832         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67833         getnameinfo.
67834
67835 2006-06-28  Simon Josefsson  <jas@extundo.com>
67836
67837         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67838
67839 2006-06-28  Simon Josefsson  <jas@extundo.com>
67840
67841         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67842         functions there.  It will succeed on Windows XP, but on Windows
67843         2000 and (presumably) earlier, it will fail, and use the internal
67844         re-implementation.
67845         (use_win32_p): New function.
67846         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67847         Support AI_NUMERICSERV to disable getservbyname.
67848         (getnameinfo): New function, only supports
67849         NI_NUMERICHOST|NI_NUMERICSERV for now.
67850
67851         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67852         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67853         getnameinfo.
67854
67855 2006-06-28  Eric Blake  <ebb9@byu.net>
67856
67857         * modules/wcwidth: New file.
67858         * modules/mbchar (Depends-on): Add wcwidth.
67859         * modules/mbswidth (Depends-on): Add wcwidth.
67860         * MODULES.html.sh: Add wcwidth.
67861
67862 2006-06-28  Eric Blake  <ebb9@byu.net>
67863
67864         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67866
67867 2006-06-28  Eric Blake  <ebb9@byu.net>
67868
67869         * lib/xvasprintf.h: Fix comments.
67870
67871 2006-06-28  Eric Blake  <ebb9@byu.net>
67872
67873         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67874         * lib/mbswidth.c (wcwidth): Move from here...
67875         * lib/wcwidth.h: ...to this new file.
67876
67877 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67878
67879         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67880
67881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67882         it's obsolete.
67883         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67884
67885 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67886
67887         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67888         Autoconf 2.60 says this stuff was obsolete.
67889
67890 2006-06-28  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67893
67894 2006-06-28  Bruno Haible  <bruno@clisp.org>
67895
67896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67897         gt_TYPE_WCHAR_T.
67898
67899 2006-06-28  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67902         declaration for wcwidth.
67903         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67904
67905 2006-06-28  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67908         (mkdir): Define using _mkdir.
67909
67910 2006-06-28  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/getaddrinfo.h: Fix POSIX URL.
67913         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67914         _WIN32.
67915         (use_win32_p): Make static.
67916         (getaddrinfo): Reject service name if it is empty or does not consist
67917         solely of decimal digits, or if its value is > 65535.
67918         (getnameinfo): Remove useless casts.
67919
67920 2006-06-27  Simon Josefsson  <jas@extundo.com>
67921
67922         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67923         Eggert and Martin Lambers.
67924
67925 2006-06-27  Simon Josefsson  <jas@extundo.com>
67926
67927         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67928         Eggert and Martin Lambers.
67929
67930 2006-06-27  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67933         result to 0, not to empty.
67934         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67935
67936 2006-06-27  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67939
67940 2006-06-26  Simon Josefsson  <jas@extundo.com>
67941
67942         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67943         present.
67944
67945 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67946
67947         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67948         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67950
67951 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67952
67953         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67954
67955 2006-06-26  Bruno Haible  <bruno@clisp.org>
67956
67957         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67958
67959 2006-06-26  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67962
67963 2006-06-26  Bruno Haible  <bruno@clisp.org>
67964
67965         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67966         SGI C compiler in pre-C99 mode.
67967         Suggested by Mark D. Baushke and Larry Jones.
67968
67969 2006-06-26  Bruno Haible  <bruno@clisp.org>
67970
67971         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67972         WCHAR_MAX.
67973         Reported by Mark D. Baushke and Larry Jones.
67974
67975 2006-06-26  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67978         in pre-C99 mode.
67979         Suggested by Mark D. Baushke and Larry Jones.
67980
67981 2006-06-23  Simon Josefsson  <jas@extundo.com>
67982             Bruno Haible  <bruno@clisp.org>
67983
67984         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67985         Emit mostlyclean-local rule.
67986         (func_emit_tests_Makefile_am): Likewise.
67987         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67988
67989 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67990
67991         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67992
67993 2006-06-23  Bruno Haible  <bruno@clisp.org>
67994
67995         * tests/test-stdint.c: Update to match ISO C 99 Technical
67996         Corrigendum 1.
67997
67998 2006-06-23  Bruno Haible  <bruno@clisp.org>
67999
68000         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68001
68002 2006-06-23  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/stdint_.h: Treat IRIX like OpenBSD.
68005
68006 2006-06-23  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68009         ISO C 99 Technical Corrigendum 1.
68010
68011 2006-06-22  Simon Josefsson  <jas@extundo.com>
68012
68013         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68014         MinGW.
68015
68016 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68019         needed.  Some compiler complained about some of them.  Problem reported
68020         by Larry Jones in
68021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68022
68023 2006-06-21  Simon Josefsson  <jas@extundo.com>
68024
68025         * tests/test-getaddrinfo.c: New file.
68026
68027         * modules/getaddrinfo-tests: New file.
68028
68029         * MODULES.html.sh: Add inet_pton.
68030
68031         * modules/inet_pton: New file.
68032
68033 2006-06-21  Simon Josefsson  <jas@extundo.com>
68034
68035         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68036         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68037         of using the (limited) gnulib implementation on Windows XP.
68038
68039         * m4/inet_pton.m4: New file.
68040
68041 2006-06-21  Simon Josefsson  <jas@extundo.com>
68042
68043         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68044         variable.
68045
68046         * lib/socket_.h: Don't define WINVER.
68047
68048         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68049         slightly modified to work in gnulib.
68050
68051 2006-06-21  Simon Josefsson  <jas@extundo.com>
68052
68053         * doc/gnulib.texi (Windows sockets): Add.
68054
68055 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * lib/read-file.c (fread_file): Start with buffer allocation of
68058         0 bytes rather than 1 byte; this simplifies the code.
68059         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68060         code to free buffer and save/restore errno.
68061         (internal_read_file): Remove unused local.
68062
68063 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68066         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68067         Problem reported by Denis Excoffier in
68068         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68069
68070 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68071
68072         * modules/sys_socket, modules/socklen: Include sys/types since
68073         FreeBSD 4.x's sys/socket.h needs it.
68074
68075 2006-06-19  Simon Josefsson  <jas@extundo.com>
68076
68077         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68078
68079 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68082
68083 2006-06-19  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68086         and FULL_PATH_INTTYPES_H in angle brackets.
68087         Reported by Mark D. Baushke <mdb@gnu.org>.
68088
68089 2006-06-17  Eric Blake  <ebb9@byu.net>
68090
68091         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68092         errno.
68093
68094 2006-06-17  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68097         <sys/inttypes.h>.
68098
68099 2006-06-17  Bruno Haible  <bruno@clisp.org>
68100
68101         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68102         whether errno is declared. Assume <errno.h> declares errno.
68103
68104 2006-06-17  Bruno Haible  <bruno@clisp.org>
68105
68106         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68107
68108 2006-06-17  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68111         problem on Solaris 2.5.1.
68112
68113 2006-06-16  Eric Blake  <ebb9@byu.net>
68114
68115         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68116         * lib/unicodeio.c [!defined errno]: Likewise.
68117         * lib/strtol.c [!defined errno]: Likewise.
68118         * lib/strtod.c [!defined errno]: Likewise.
68119
68120 2006-06-15  Eric Blake  <ebb9@byu.net>
68121
68122         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68123
68124 2006-06-15  Eric Blake  <ebb9@byu.net>
68125
68126         * config/srclist.txt (ssize_t.m4): Lose sync.
68127
68128 2006-06-15  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/stdint (Files): Include m4/full-header-path.m4,
68131         m4/size_max.m4, m4/wchar_t.m4.
68132         (Makefile.am): Many more substitutions.
68133         * modules/stdint-tests: New file.
68134         * tests/test-stdint.c: New file.
68135
68136 2006-06-15  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68139         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68140         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68141         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68142         gl_CHECK_TYPE_SAME): New macros.
68143
68144 2006-06-15  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68147
68148 2006-06-15  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/stdint_.h: Rewritten to be fully auto-configured.
68151         Fixes bug on HP-UX/IA64.
68152
68153 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * lib/getdate.y (__attribute__): Don't define if already defined.
68156         Problem reported by Larry Jones.
68157         * lib/utimens.c (__attribute__): Likewise.
68158
68159 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68162         reported by Andreas Schwab.
68163
68164 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68165             Bruno Haible  <bruno@clisp.org>
68166
68167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68168         check for the declaration of strnlen and a run test that exposes the
68169         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68170         rpl_strndup.
68171
68172 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68173             Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68176
68177 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68178
68179         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68180         compile test, for Tru64 4.0D.
68181
68182 2006-05-28  Karl Berry  <karl@gnu.org>
68183
68184         * config/srclist.txt (printf-args.c): lose sync.
68185
68186 2006-05-26  Martin Lambers  <marlam@marlam.de>
68187
68188         * lib/getpass.c: Updates the test for the native W32 API, and adds
68189         missing includes, thus fixing compilation warnings.
68190
68191 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68192
68193         * lib/exclude.c (exclude_fnmatch): New function.
68194         (excluded_file_name): Call exclude_fnmatch.
68195         * lib/exclude.h (excluded_file_name): New prototype
68196
68197 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         * lib/tempname.c (small_open, large_open): New macros.
68200         (__open, __open64) [!_LIBC]: Remove.
68201         (__gen_tempname): Use small_open and large_open instead of __open
68202         and __open64.  This fixes a portability bug on HP-UX 11.11i
68203         reported by Simon Wing-Tang in
68204         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68205
68206 2006-05-24  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68209         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68210         Reported by Thorsten Maerz <torte@netztorte.de> via
68211         Aaron Stone <aaron@serendipity.cx>.
68212
68213 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68216         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68217         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68218         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68219         not really conditional on the cache.
68220         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68221
68222 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68225         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68226         (my_usleep): Don't mishandle maximum value.
68227
68228 2006-05-19  Jim Meyering  <jim@meyering.net>
68229
68230         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68231
68232 2006-05-17  Bruno Haible  <bruno@clisp.org>
68233
68234         Cygwin portability.
68235         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68236
68237 2006-05-17  Bruno Haible  <bruno@clisp.org>
68238
68239         * lib/stdint_.h: Fix recognition of Cygwin.
68240
68241 2006-05-15  Bruno Haible  <bruno@clisp.org>
68242
68243         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68244         on libtool patch by Ralf Wildenhues.
68245
68246 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68249         test for C99 conformance; (bool) 0.5 is an integer constant
68250         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68251         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68252
68253 2006-05-11  Simon Josefsson  <jas@extundo.com>
68254
68255         * m4/xvasprintf.m4: Fix obvious typo.
68256
68257 2006-05-11  Jim Meyering  <jim@meyering.net>
68258
68259         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68260         James Lemley.
68261
68262 2006-05-10  Simon Josefsson  <jas@extundo.com>
68263
68264         * lib/md4.c: Typo fix, update copyright years.
68265         (K1, K2): Don't use L because it turn computations into 64-bit on
68266         64-bit platforms.
68267
68268 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68271         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68272         unwanted sign propagation, e.g., on hosts with 64-bit int.
68273         There still are some problems with reeelly weird theoretical hosts
68274         (e.g., 33-bit int) but it's not worth worrying about now.
68275         * lib/sha1.c (rol): Likewise.
68276         (K1, K2, K3, K4): Remove unnecessary L suffix.
68277
68278 2006-05-10  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/des.c: Cast to avoid warnings.
68281
68282 2006-05-09  Bruno Haible  <bruno@clisp.org>
68283
68284         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68285         (Depends-on): Depend also on xsize, stdarg.
68286         (configure.ac): Add gl_XVASPRINTF.
68287
68288 2006-05-09  Bruno Haible  <bruno@clisp.org>
68289
68290         * m4/xvasprintf.m4: New file.
68291
68292 2006-05-09  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68295         (EOVERFLOW): Define fallback value.
68296         (xstrcat): New function.
68297         (xvasprintf): Recognize the special case of a string concatenation.
68298
68299 2006-05-08  Eric Blake  <ebb9@byu.net>
68300
68301         * gnulib-tool (func_version): Base copyright year on CVS date.
68302         (func_emit_copyright_notice): New function.
68303         (func_emit_lib_Makefile_am): Use it.
68304         (func_emit_tests_Makefile_am): Likewise.
68305         (func_import): Likewise.
68306
68307 2006-05-08  Bruno Haible  <bruno@clisp.org>
68308
68309         * modules/stdarg: New file.
68310         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68311
68312 2006-05-08  Bruno Haible  <bruno@clisp.org>
68313
68314         * m4/stdarg.m4: New file, from GNU gettext.
68315
68316 2006-05-08  Bruno Haible  <bruno@clisp.org>
68317
68318         * config/srclist.txt (build-aux/config.rpath): different from latest
68319         release.
68320
68321 2006-05-08  Bruno Haible  <bruno@clisp.org>
68322
68323         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68324
68325 2006-05-05  Jim Meyering  <jim@meyering.net>
68326
68327         * m4/warning.m4: New file, derived from bison's file by the same name.
68328
68329 2006-05-03  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/stdint_.h: Shorter URL.
68332         * lib/inttypes.h: Likewise.
68333
68334 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68337
68338 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         * lib/verify.h: Document the internals better.  Most of this change
68341         was written by Bruno Haible.
68342
68343 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * doc/verify.texi: New file, partly based on a proposal by
68346         Bruno Haible.
68347
68348 2006-05-02  Bruno Haible  <bruno@clisp.org>
68349
68350         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68351         test from here...
68352         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68353
68354 2006-04-29  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68357         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68358
68359 2006-04-29  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool: Make --update option actually work.
68362
68363 2006-04-29  Bruno Haible  <bruno@clisp.org>
68364
68365         * doc/gcd.texi: New file.
68366         * doc/gnulib.texi: Include it.
68367
68368 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * lib/getdate.y (get_date): When adding relative date, start with the
68371         initial time, not with the result of the first mktime call.
68372
68373 2006-04-25  Bruno Haible  <bruno@clisp.org>
68374
68375         * gnulib-tool (func_import): Output the include directives in three
68376         blocks, sorted separately.
68377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68378
68379 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68382         to define main with arguments, for C++.  Reported by Eric Blake.
68383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68384         Prefer 'int main ()' to 'int main (void)', for C++.
68385         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68386         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68387         for 'main', for C99 and C++.
68388
68389 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68392         Don't assume that exit status -1 is valid.
68393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68394         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68395         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68396         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68397         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68398         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68399         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68400         functions can be used without declaring them, or that you can
68401         exit with status -1.
68402         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68403
68404 2006-04-24  Karl Berry  <karl@gnu.org>
68405
68406         * config/srclist.txt (longdouble.m4): sync lost.
68407
68408 2006-04-24  Eric Blake  <ebb9@byu.net>
68409
68410         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68411
68412 2006-04-24  Bruno Haible  <bruno@clisp.org>
68413
68414         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68415         poll() implementation in AIX.
68416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68417
68418 2006-04-24  Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68421         assigned exactly once.
68422
68423 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68424             Bruno Haible  <bruno@clisp.org>
68425
68426         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68427         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68428         for AM_CPPFLAGS.
68429
68430 2006-04-23  Bruno Haible  <bruno@clisp.org>
68431
68432         * modules/copy-file: Depend on unistd.
68433         * modules/execute: Likewise.
68434         * modules/fatal-signal: Likewise.
68435         * modules/findprog: Likewise.
68436         * modules/mkdtemp : Likewise.
68437         * modules/pipe: Likewise.
68438         * modules/wait-process: Likewise.
68439
68440 2006-04-23  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68443         condition was already detected.
68444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68445
68446 2006-04-23  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/copy-file.c: Include <unistd.h> unconditionally.
68449         * lib/execute.c: Likewise.
68450         * lib/fatal-signal.c: Likewise.
68451         * lib/findprog.c: Likewise.
68452         * lib/mkdtemp.c: Likewise.
68453         * lib/pipe.h: Likewise.
68454         * lib/pipe.c: Likewise.
68455         * lib/wait-process.h: Likewise.
68456
68457 2006-04-23  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool (func_usage): Fix --import description. Document
68460         --update.
68461         (func_import): Create temporary file in a temporary directory, if
68462         --dry-run is specified. Silence errors from 'grep' when there are no
68463         m4 files in $m4dir.
68464         (func_create_testdir): Silence errors from 'grep' when there are no
68465         m4 files in $m4dir.
68466         Reported by Karl Berry <karl@freefriends.org>.
68467
68468 2006-04-20  Bruno Haible  <bruno@clisp.org>
68469
68470         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68471         one argument, so that the code will be portable to Autoconf 2.60.
68472         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68473         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68474         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68475
68476 2006-04-19  Derek Price  <derek@ximbiot.com>
68477             Eric Blake  <ebb9@byu.net>
68478
68479         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68480         rather than "/full/path.h".  Update comment to match.  Shorten &
68481         generalize m4_translit call via AS_TR_CPP.
68482
68483 2006-04-19  Derek Price  <derek@ximbiot.com>
68484             Eric Blake  <ebb9@byu.net>
68485
68486         * lib/inttypes.h: Correct grammar in comment.
68487
68488 2006-04-18  Derek Price  <derek@ximbiot.com>
68489             Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * modules/inttypes: New file.
68492         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68493
68494 2006-04-18  Derek Price  <derek@ximbiot.com>
68495             Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68498         New files.
68499
68500 2006-04-18  Derek Price  <derek@ximbiot.com>
68501             Paul Eggert  <eggert@cs.ucla.edu>
68502
68503         * lib/inttypes.h: New file.
68504         * lib/strtoimax.c: Assume <inttypes.h>.
68505
68506 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68507
68508         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68509         isn't mounted.  Problem reported by Kir Kolyshkin.
68510
68511 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68514         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68515         Derek R. Price.
68516         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68517         implementation.
68518
68519 2006-04-12  Eric Blake  <ebb9@byu.net>
68520
68521         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68522         is now done automatically by the corresponding Autoconf macro.
68523
68524 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68525
68526         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68527         time_r.h.
68528
68529 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         Merge regex changes from libc, removing some of our
68532         POSIX-conformance changes that were rejected and redoing them in a
68533         less-intrusive way.
68534
68535         * lib/regcomp.c (re_compile_internal, init_dfa):
68536         Length arg is now size_t, not Idx.  All uses changed.
68537         (peek_token): Forward decl now says internal_function.
68538         (__re_error_msgid, __re_error_msgid_idx):
68539         Now static rather than extern with attribute_hidden.
68540         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68541         For some reason libc prefers K&R style defns for external functions.
68542         (regerror) [!defined _LIBC]: Likewise.
68543         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68544         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68545         (build_range_exp, build_collating_symbol):
68546         Use K&R-style defn.
68547         (re_compile_fastmap): Use '\0' to memset, not 0.
68548         (utf8_sb_map): Make the calculations more obvious.
68549         (init_dfa, parse_bracket_exp, build_charclass_op):
68550         Call calloc and cast result, as glibc does.
68551         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68552         (build_range_exp, build_collating_symbol):
68553         Now internal functions.
68554
68555         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68556
68557         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68558         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68559         Don't depend on VMS; depend on __VMS instead, for POSIX
68560         namespace cleanness.
68561         (regoff_t): Define to ssize_t, not long int.
68562
68563         Remove the REG_ macros named below.  Instead, make the old names
68564         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68565         __USE_GNU_REGEX.
68566         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68567         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68568         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68569         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68570         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68571         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68572         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68573         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68574         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68575         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68576         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68577         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68578         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68579         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68580         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68581         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68582         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68583         (REG_NREGS):
68584         Remove.  All uses replaced by the old RE_* names.
68585         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68586         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68587         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68588         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68589         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68590         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68591         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68592         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68593         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68594         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68595         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68596         Don't bother having these macros be independent of each others'
68597         values, since they no longer exist in the POSIX name space.
68598
68599         Rename the following member names back to their old names,
68600         unless !__USE_GNU_REGEX.  All uses changed back.
68601         (buffer): Renamed from re_buffer.
68602         (allocated): Renamed from re_allocated.
68603         (used): Renamed from re_used.
68604         (syntax): Renamed from re_syntax.
68605         (fastmap): Renamed from re_fastmap.
68606         (translate): Renamed from re_translate.
68607         (can_be_null): Renamed from re_can_be_null.
68608         (regs_allocated): Renamed from re_regs_allocated.
68609         (fastmap_accurate): Renamed from re_fastmap_accurate.
68610         (no_sub): Renamed from re_no_sub.
68611         (not_bol): Renamed from re_not_bol.
68612         (not_eol): Renamed from re_not_eol.
68613         (newline_anchor): Renamed from re_newline_anchor.
68614         (num_regs): Renamed from rm_num_regs.
68615         (start): Renamed from rm_start.
68616         (end): Renamed from rm_end.
68617
68618         (free_state): Move up a bit.
68619
68620         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68621         #define to be empty.
68622         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68623         when that is what is intended.
68624         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68625         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68626         (MAX): New macro.
68627         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68628         All uses changed back to re_malloc, etc.  It's now the caller's
68629         responsibility to check for overflow; all callers changed.
68630         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68631         (re_x2nrealloc): Remove.
68632         (free_state): Remove decl.
68633
68634         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68635         (re_set_registers, re_exec):
68636         Use K&R-style defn.
68637
68638         2006-01-31  Roland McGrath  <roland@redhat.com>
68639
68640         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68641         Reported by Mike Frysinger <vapier@gentoo.org>.
68642
68643         2006-01-15  Andreas Jaeger  <aj@suse.de>
68644
68645         [BZ #1950]
68646         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68647         build_wcs_upper_buffer change.
68648         (build_wcs_upper_buffer): Change return type.
68649
68650         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68651
68652         * lib/regex_internal.h: Include <stdint.h> if available.
68653
68654         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68655
68656         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68657
68658         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68659
68660         * lib/regcomp.c: Adjust for changed secondary hash function.
68661
68662         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68663
68664         * lib/regex.h: Pretty printing.
68665         Clean up namespace a bit.
68666
68667         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68668
68669         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68670         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68671
68672         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68673                     Ulrich Drepper  <drepper@redhat.com>
68674
68675         [BZ #1302]
68676         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68677         changed.
68678         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68679
68680         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68681
68682         [BZ #281]
68683         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68684         * lib/regcomp.c: Remove unnecessary uses of
68685         unsigned RE_TRANSLATE_TYPE.
68686         * lib/regex_internal.h: Likewise.
68687         * lib/regex_internal.c: Likewise.
68688         * lib/regexec.c: Likewise.
68689         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68690
68691         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68692
68693         * lib/regexec.c (find_recover_state): Remove unnecessary
68694         initialization.
68695         (transit_state_bkref): Make DFA a const pointer.
68696         (get_subexp): Likewise.
68697         (check_arrival): Likewise.
68698         (update_cur_sifted_state): Likewise.
68699         (re_search_internal): Likewise.
68700         (prune_impossible_nodes): Likewise.
68701         (acquire_init_state_context): Likewise.
68702         (proceed_next_node): Likewise.
68703         (set_regs): Likewise.
68704         (free_fail_stack_return): Likewise.
68705         (check_arrival_expand_ecl): Mark DFA parameter as const.
68706         (check_arrival_expand_ecl_sub): Likewise.
68707         (check_subexp_limits): Likewise.
68708         (sub_epsilon_src_nodes):  Likewise.
68709         (add_epsilon_src_nodes):  Likewise.
68710         (merge_state_array): Likewise.
68711         (update_regs): Likewise.
68712         (build_trtable): Likewise.
68713         (sift_states_backward): Mark MCTX parameter as const.
68714         (build_sifted_states): Likewise.
68715         (update_cur_sifted_state): Likewise.
68716         (sift_states_mkref): Likewise.
68717         (check_arrival_expand_ecl): Mark eclosure as const.
68718         (check_dst_limits_calc_pos_1): Likewise.
68719         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68720         pointer.
68721
68722         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68723
68724         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68725         (transit_state_sb): Likewise.
68726         (transit_state_mb): Likewise.
68727         (sift_states_iter_mb): Likewise.
68728         (check_arrival_add_next_nodes): Likewise.
68729         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68730         [_LIBC] (re_search_2_stub): Use mempcpy.
68731
68732         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68733         mbrtowc for very simple UTF-8 case.
68734
68735         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68736         a pointer-to-const.
68737         (re_acquire_state_context): Likewise.
68738         * lib/regex_internal.h: Adjust prototypes.
68739
68740         * lib/regex.c: Prevent using C++ compilers.
68741
68742         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68743         (re_acquire_state_context): Likewise.
68744
68745 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * modules/regex (Depends-on): Add ssize_t.
68748
68749 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68752         translation table.
68753
68754 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68757
68758 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68759             Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68762         <sys/types.h> and <inttypes.h>.
68763
68764 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68765
68766         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68767         `__error_t_defined', so argp.h will not typedef the former.
68768
68769 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68772         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68773         glibc names.  Even if glibc is changed to conform to POSIX, the
68774         traditional names will be available anyway, since regex depends on
68775         the extensions module.  Also, fix a longstanding typo in the
68776         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68777         reported by Emanuele Giaquinta.  Also, change sense of cached
68778         variable, so that the message makes sense.
68779
68780 2006-03-24  Simon Josefsson  <jas@extundo.com>
68781
68782         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68783         including some doc fixes.
68784         (base64_encode_alloc): Fix +1 bug on allocation failures.
68785
68786 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68787
68788         * lib/base64.c (base64_encode): Do not read past end of array with
68789         unsanitized input on systems with CHAR_BIT > 8.
68790
68791 2006-03-24  Eric Blake  <ebb9@byu.net>
68792
68793         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68794
68795 2006-03-22  Karl Berry  <karl@gnu.org>
68796
68797         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68798         * config/srclistvars.sh (COREUTILS): new var.
68799
68800 2006-03-17  Jim Meyering  <jim@meyering.net>
68801
68802         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68803         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68804
68805 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68808         no longer needs it.  Instead, check that regoff_t is as least
68809         as wide as ptrdiff_t.
68810
68811         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68812         so that our regex.h stays compatible with the installed regex.
68813         This is helpful for installers who configure --without-included-regex.
68814         Problem reported by Emanuele Giaquinta.
68815
68816 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68817
68818         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68819         Typedef to long int, not to off_, as POSIX will likely change
68820         in that direction.
68821
68822 2006-03-15  Eric Blake  <ebb9@byu.net>
68823
68824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68825
68826 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68827
68828         * lib/argp-help.c (validate_uparams): Fix typo
68829         * lib/argp-parse.c (argp_default_options): Consistently begin help
68830         messages with a lowercase letter.
68831
68832 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68835         overrun buffers and shouldn't be used (much as gets shouldn't be
68836         used).
68837         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68838
68839 2006-03-08  Simon Josefsson  <jas@extundo.com>
68840
68841         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68842         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68843
68844 2006-03-08  Simon Josefsson  <jas@extundo.com>
68845
68846         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68847         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68848
68849 2006-03-08  Simon Josefsson  <jas@extundo.com>
68850
68851         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68852         signal that configure disabled the device.
68853
68854 2006-03-08  Simon Josefsson  <jas@extundo.com>
68855
68856         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68857         languages.
68858
68859 2006-03-07  Simon Josefsson  <jas@extundo.com>
68860
68861         * modules/getopt (Depends-on): Add unistd.
68862
68863         * modules/unistd: New file.
68864
68865 2006-03-07  Simon Josefsson  <jas@extundo.com>
68866
68867         * modules/gc-random: New file.
68868
68869 2006-03-07  Simon Josefsson  <jas@extundo.com>
68870
68871         * m4/unistd_h.m4: New file.
68872
68873 2006-03-07  Simon Josefsson  <jas@extundo.com>
68874
68875         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68876         test to be side-effect free by storing the result in the cache
68877         variable gl_cv_lib_readline, and moving the assignment of
68878         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68879         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68880
68881 2006-03-07  Simon Josefsson  <jas@extundo.com>
68882
68883         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68884         error on missing devices (the functions will return an error).
68885
68886         * m4/gc.m4: Move random stuff to gc-random.m4
68887
68888 2006-03-07  Simon Josefsson  <jas@extundo.com>
68889
68890         * lib/unistd_.h: New file.
68891
68892 2006-03-07  Simon Josefsson  <jas@extundo.com>
68893
68894         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68895
68896 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68899         Problem reported by Juan Manuel Guerrero.
68900
68901 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68904         the unistd module.
68905         * lib/getlogin_r.c: Likewise.
68906         * lib/getlogin_r.h: Likewise.
68907         * lib/glob.c: Likewise.
68908         * lib/pagealign_alloc.c: Likewise.
68909         * lib/unistd_.h: Remove; no longer needed.
68910
68911 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68914         Add unistd.
68915         * modules/c-stack (Depends-on): Add unistd.
68916         * modules/getlogin_r: Likewise.
68917         * modules/glob: Likewise.
68918         * modules/pagealign_alloc: Likewise.
68919         * modules/unistd (Files): Remove lib/unistd_.h.
68920         (EXTRA_DIST): Remove.
68921         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68922         need unistd_.h.
68923         (MOSTLYCLEANFILES): Remove unistd.h-t.
68924
68925 2006-03-03  Simon Josefsson  <jas@extundo.com>
68926
68927         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68928
68929 2006-03-03  Simon Josefsson  <jas@extundo.com>
68930
68931         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68932         libidn and bison.
68933
68934 2006-03-03  Simon Josefsson  <jas@extundo.com>
68935
68936         * build-aux/maint.mk: Add indent target.
68937
68938 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68939
68940         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68941         our replacement poll.h in any case, to avoid a differing
68942         declaration from a system header.  Seen on AIX.
68943
68944 2006-03-01  Simon Josefsson  <jas@extundo.com>
68945
68946         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68947         <kasal@ucw.cz>.
68948
68949 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * modules/gettime (Depends-on): Add extensions module.
68952         * modules/nanosleep (Depends-on): Likewise.
68953         * modules/settime (Depends-on): Likewise.
68954
68955 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68958         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68959         pedantically.
68960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68961         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68962
68963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68964         not "==".  Reported by Ralf Wildenhues.
68965
68966 2006-03-01  Karl Berry  <karl@gnu.org>
68967
68968         * doc/Copyright/request-*: new files, synced from gnuorg.
68969
68970 2006-03-01  Karl Berry  <karl@gnu.org>
68971
68972         * config/srclist.txt (Copyright/*): new entries.
68973
68974 2006-02-28  Simon Josefsson  <jas@extundo.com>
68975
68976         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68977
68978 2006-02-27  Simon Josefsson  <jas@extundo.com>
68979
68980         * lib/base64.h: Indent #define's.  From Jim Meyering
68981         <jim@meyering.net>.
68982
68983 2006-02-27  Jim Meyering  <jim@meyering.net>
68984
68985         Revert the change of 2006-02-24, so these files can continue
68986         to be sync'd from gettext.
68987         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68988         of `config.h'.
68989
68990 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * modules/intprops: New file.
68993         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68994         Add intprops.
68995         * modules/getloadavg (Files): Remove lib/intprops.h.
68996         (Depends-on): Add intprops.
68997         * modules/human: Likewise.
68998         * modules/inttostr: Likewise.
68999         * modules/openat: Likewise.
69000         * modules/sig2str: Likewise.
69001         * modules/userspec: Likewise.
69002         * modules/utimecmp: Likewise.
69003         * modules/xnanosleep: Likewise.
69004         * modules/xstrtol: Likewise.
69005
69006 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69007
69008         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69009         * modules/lock-tests (TESTS): Use $(EXEEXT).
69010         * modules/tls-tests: Likewise.
69011         * modules/argp-tests: Likewise.
69012         (check_PROGRAMS): New var, replacing...
69013         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69014
69015 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69016
69017         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69018         `config.h'.
69019
69020 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69023
69024 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69025
69026         Sync from coreutils.
69027         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69028         gl_CHDIR_SAFER.
69029
69030 2006-02-22  Jim Meyering  <jim@meyering.net>
69031
69032         Sync from coreutils.
69033         * m4/chdir-safer.m4: New file.
69034
69035 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69036
69037         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69038         AT_FDCWD exceeds INT_MAX.
69039         * lib/openat.h (AT_FDCWD): Likewise.
69040
69041 2006-02-17  Eric Blake  <address@hidden>
69042
69043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69044
69045 2006-02-16  Simon Josefsson  <jas@extundo.com>
69046
69047         * modules/getaddrinfo (Depends-on): Add sys_socket.
69048
69049 2006-02-15  Simon Josefsson  <jas@extundo.com>
69050
69051         * build-aux/maint.mk: Add dsyntax-check rule.
69052
69053 2006-02-15  Eric Blake  <ebb9@byu.net>
69054
69055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69056         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69057         'present but cannot compile' warnings on cygwin.
69058         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69059         use ws2tcpip.h if sys/socket.h works.
69060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69061         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69062
69063 2006-02-14  Simon Josefsson  <jas@extundo.com>
69064
69065         * modules/maintainer-makefile (Files): Rename.
69066
69067         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69068         and (the local) Makefile.cfg to maint-cfg.mk.
69069
69070         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69071         to the latter.
69072
69073         * modules/maintainer-makefile: New module.
69074
69075         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69076         severaly stripped to make it possible to build it up from scratch
69077         with reliable tests.
69078
69079         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69080         fixes to permit overriding the default actions when configure and
69081         makefile are not available.
69082
69083 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         Sync from coreutils.
69086         * modules/lstat (Depends-on): Don't depend on xalloc.
69087         (License): Change from GPL to LGPL, since this is now simply a
69088         replacement for a libc function.
69089
69090 2006-02-14  Jim Meyering  <jim@meyering.net>
69091
69092         Sync from coreutils.
69093
69094         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69095         failure on deficient systems, and simplify gnulib lgpl dependencies.
69096         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69097         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69098
69099         * lib/xalloc-die.c: Remove unused definition of N_.
69100
69101 2006-02-14  Jim Meyering  <jim@meyering.net>
69102
69103         Sync from coreutils.
69104         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69105         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69106         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69107         double-quote uses of that variable, to accommodate the rare case in
69108         which getmntent is available in none of the libraries checked.  This
69109         happens at least on FreeBSD 5.0.
69110
69111 2006-02-13  Simon Josefsson  <jas@extundo.com>
69112
69113         * gnulib-tool (Usage): Fix --import, from
69114         karl@freefriends.org (Karl Berry).
69115
69116 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69117
69118         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69119
69120 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69121
69122         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69123         "autoupdate" on 2005-12-12.
69124
69125 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         * modules/closeout (Depends-on): Remove atexit.
69128
69129 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69132         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69133
69134 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69137         __EXTENSIONS__ if this causes compilation to fail.  Problem
69138         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69139         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69140
69141 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69142
69143         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69144         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69146         All uses changed.
69147
69148 2006-01-26  Simon Josefsson  <jas@extundo.com>
69149
69150         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69151         prototype is visible on mingw32.
69152
69153         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69154         for mingw32.
69155
69156         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69157         mingw32).
69158
69159 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69162         attempt to open for write; this always fails, at least on POSIX
69163         hosts.  This reinstates the 2006-01-09 change, which was
69164         inadvertently removed.
69165
69166 2006-01-26  Bruno Haible  <bruno@clisp.org>
69167
69168         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69169         Reported by Paul Eggert.
69170
69171 2006-01-26  Bruno Haible  <bruno@clisp.org>
69172             Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/stdbool_.h (_Bool)
69175         [(! (defined __cplusplus || defined __BEOS__)
69176           && !defined __GNUC__
69177           && !(defined __HP_cc || defined __xlc__
69178                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69179                || defined __sgi))]:
69180         #define to signed char in these cases too; this simplifies
69181         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69182         etc., separately) and makes it more conservative.
69183
69184 2006-01-25  Simon Josefsson  <jas@extundo.com>
69185
69186         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69187         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69188         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69189
69190 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69191
69192         * lib/argp-namefrob.h: Bugfix. Remove stray #
69193
69194 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69197         so that we test the test.
69198         Check for yet another HP-UX cc bug involving *bool |= bool.
69199
69200 2006-01-25  Karl Berry  <karl@gnu.org>
69201
69202         * config/srclist.txt (vasnprintf.c): sync lost.
69203
69204 2006-01-25  Jim Meyering  <jim@meyering.net>
69205
69206         Sync from the stable (b5) branch of coreutils:
69207
69208         * lib/fts.c (fts_children): Don't let close() clobber errno from
69209         failed fchdir().
69210
69211         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69212         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69213         a dangling symlink.  That can also happen at least for ELOOP.
69214         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69215         FYI, this bug predates the inclusion of fts.c in coreutils.
69216
69217         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69218         in their own block, so pre-c99 compilers don't object.
69219
69220         Avoid the double-free (first in fts_read, second in fts_close) that
69221         would occur when an `active' directory is made inaccessible (e.g.,
69222         via chmod a-x) during a traversal.
69223         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69224         before returning.  Reproduce this failure by
69225         mkdir -p a/b; cd a; chmod a-x . b
69226         Reported by Stavros Passas.
69227
69228 2006-01-25  Jim Meyering  <jim@meyering.net>
69229
69230         * lib/fileblocks.c: Remove more useless parentheses.
69231         * lib/readutmp.h: Likewise.
69232
69233 2006-01-25  Bruno Haible  <bruno@clisp.org>
69234
69235         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69236         warnings.
69237         Reported by Paul Eggert.
69238
69239 2006-01-25  Bruno Haible  <bruno@clisp.org>
69240
69241         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69242         rid of a trap command. For Solaris sh.
69243         Reported by Mark D. Baushke <mdb@gnu.org>.
69244
69245 2006-01-24  Simon Josefsson  <jas@extundo.com>
69246
69247         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69248         Bruno.
69249
69250 2006-01-24  Karl Berry  <karl@gnu.org>
69251
69252         * config/srclist.txt (argp-namefrob.h): sync lost.
69253
69254 2006-01-24  Jim Meyering  <jim@meyering.net>
69255
69256         * modules/openat (Files): Add lib/intprops.h.
69257         From Mark D. Baushke.
69258
69259 2006-01-24  Jim Meyering  <jim@meyering.net>
69260
69261         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69262         Reported by Mark D. Baushke.
69263
69264 2006-01-24  Jim Meyering  <jim@meyering.net>
69265
69266         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69267
69268 2006-01-24  Bruno Haible  <bruno@clisp.org>
69269
69270         * modules/strnlen (Maintainer): Change from glibc to all.
69271
69272 2006-01-24  Bruno Haible  <bruno@clisp.org>
69273
69274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69275         Patch by Paul Eggert.
69276
69277 2006-01-24  Bruno Haible  <bruno@clisp.org>
69278
69279         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69280         already has it.
69281         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69282         2005-11-26.
69283
69284         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69285         'signed char' to avoid problems with the built-in _Bool type.
69286         Reported by Paul Eggert on 2005-11-26.
69287
69288 2006-01-24  Bruno Haible  <bruno@clisp.org>
69289
69290         * gnulib-tool (func_import): Avoid constructing complicated sed
69291         expressions inside backquote.
69292         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69293
69294 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69295
69296         These changes imported from libc.
69297         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69298         test and two separate function calls.
69299         * lib/strndup.c (__strndup): Add libc_hidden_def.
69300
69301 2006-01-23  Simon Josefsson  <jas@extundo.com>
69302
69303         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69304         Remove the test_*_SOURCES variable: automake infers it by default.
69305         * modules/tls-tests: Likewise.
69306
69307 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         Work around porting bugs reported by Dieter in
69310         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69311         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69312         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69313         Include "getopt.h" first, to check interface.
69314         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69315         !HAVE_DECL_GETENV.
69316         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69317         (__strndup): Revert to K&R-style function dfns, the glibc style.
69318         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69319         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69320         Include strnlen.h first, to get prototype properly.
69321         (strnlen): Renamed from __strnlen.
69322         Remove weak alias.
69323
69324 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69327
69328 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * config/srclist.txt: Adjust to reflect glibc reorganization.
69331         This affects only comments.
69332
69333 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69334
69335          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69336          Reported by Bruce Korb <bkorb@gnu.org>.
69337
69338 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69341         to pacify gcc -Wswitch-default.
69342
69343 2006-01-22  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69346         temporary buffer for sprintf, take into account the precision also
69347         for 'd', 'i', 'u', 'o', 'x', 'X'.
69348
69349 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69350
69351         * modules/argp-tests: New module
69352         * tests/test-argp.c: New file
69353         * tests/test-argp-2.sh: New file
69354
69355 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69356
69357         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69358         (__argp_base_name): Removed
69359         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69360         typo.
69361         (__argp_base_name): Provide macro definition or extern declaration
69362         depending on the configuration
69363
69364 2006-01-20  Simon Josefsson  <jas@extundo.com>
69365
69366         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69367
69368 2006-01-20  Simon Josefsson  <jas@extundo.com>
69369
69370         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69371
69372 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69375         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69376         Suggested by Bruno Haible.
69377
69378 2006-01-20  Karl Berry  <karl@gnu.org>
69379
69380         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69381         until changes propagate, I guess.
69382
69383 2006-01-19  Simon Josefsson  <jas@extundo.com>
69384
69385         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69386
69387 2006-01-19  Simon Josefsson  <jas@extundo.com>
69388
69389         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69390
69391 2006-01-19  Simon Josefsson  <jas@extundo.com>
69392
69393         * gnulib-tool: Set check_PROGRAMS.
69394
69395         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69396         modules/des-tests, modules/gc-arcfour-tests,
69397         modules/gc-arctwo-tests, modules/gc-des-tests,
69398         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69399         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69400         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69401         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69402         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69403         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69404         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69405         test_*_SOURCES.
69406
69407 2006-01-18  Simon Josefsson  <jas@extundo.com>
69408
69409         * modules/socklen (Depends-on): Depend on sys_socket.
69410
69411 2006-01-18  Simon Josefsson  <jas@extundo.com>
69412
69413         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69414         modules/des-tests, modules/gc-arcfour-tests,
69415         modules/gc-arctwo-tests, modules/gc-des-tests,
69416         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69417         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69418         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69419         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69420         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69421         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69422         $(EXEEXT) to automake TESTS variable, for mingw32.
69423
69424 2006-01-17  Simon Josefsson  <jas@extundo.com>
69425
69426         * modules/socklen (Include): Need sys/socket.h.
69427
69428 2006-01-17  Bruno Haible  <bruno@clisp.org>
69429
69430         * modules/ssize_t (Include): Add <sys/types.h>.
69431
69432 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69433
69434         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69435         it's not portable and it doesn't work with cross-compiles.
69436         Problem reported by Bruno Haible.  Fix missing-$ typo in
69437         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69438         -zignore from being used with Sun's C compiler.
69439
69440 2006-01-12  Simon Josefsson  <jas@extundo.com>
69441
69442         * lib/base64.c: Fix warning, reported by Bruno Haible
69443         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69444
69445 2006-01-12  Bruno Haible  <bruno@clisp.org>
69446
69447         * modules/ldd: New file.
69448         * build-aux/ldd.sh.in: New file.
69449         * MODULES.html.sh (Support for building libraries and executables): Add
69450         ldd.
69451
69452 2006-01-12  Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/ldd.m4: New file.
69455
69456 2006-01-12  Bruno Haible  <bruno@clisp.org>
69457
69458         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69459         endless loop while replacing $auxdir with build-aux.
69460
69461 2006-01-11  Simon Josefsson  <jas@extundo.com>
69462
69463         * lib/stdint_.h (SIZE_MAX): Add missing (.
69464
69465 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         Sync from coreutils.
69468         * lib/md5.c: Fix commentary typos.
69469         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69470         * lib/md5.h (__attribute__): Remove; unused.
69471         * lib/sha1.c: Fix commentary to match md5 better.
69472         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69473         so that we don't need to worry about alignment.  All uses changed.
69474         This merges the 2005-10-28 md5 change into sha1.
69475
69476 2006-01-11  Jim Meyering  <jim@meyering.net>
69477
69478         Sync from coreutils.
69479         * lib/md5.c (OP): Fix spacing.
69480
69481 2006-01-11  Bruno Haible  <bruno@clisp.org>
69482
69483         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69484         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69485         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69486
69487 2006-01-11  Bruno Haible  <bruno@clisp.org>
69488
69489         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69490         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69491         the "early" section as well.
69492
69493 2006-01-11  Bruno Haible  <bruno@clisp.org>
69494
69495         Avoid "ar: no archive members specified" error on MacOS X.
69496         * gnulib-tool (func_modules_add_dummy): New function.
69497         (func_import, func_create_testdir): Invoke it.
69498
69499 2006-01-11  Bruno Haible  <bruno@clisp.org>
69500
69501         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69502         with $auxdir in AC_CONFIG_FILES statements.
69503
69504 2006-01-11  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69507         Initialize also noinst_HEADERS to empty.
69508
69509 2006-01-11  Bruno Haible  <bruno@clisp.org>
69510
69511         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69512         variables.
69513         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69514         autoreconf.
69515
69516 2006-01-11  Bruno Haible  <bruno@clisp.org>
69517
69518         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69519         overridable by the user.
69520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69521
69522 2006-01-10  Simon Josefsson  <jas@extundo.com>
69523
69524         * modules/sys_socket: New file.
69525
69526 2006-01-10  Simon Josefsson  <jas@extundo.com>
69527
69528         * m4/sys_socket_h.m4: New file.
69529
69530 2006-01-10  Simon Josefsson  <jas@extundo.com>
69531
69532         * lib/socket_.h: New file.
69533
69534 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * modules/readutmp (Maintainer): Add myself.
69537
69538 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69541         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69542         People who are still concerned with buggy memcmp implementations
69543         can invoke gl_FUNC_MEMCMP themselves.
69544
69545 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * lib/regex_internal.h (BITSET_WORD_BITS):
69548         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69549         preprocessor mishandles large unsigned values as if they were signed.
69550         Problem reported by Claudio Fontana in
69551         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69552
69553 2006-01-10  Jim Meyering  <jim@meyering.net>
69554
69555         Avoid the double-free (first in fts_read, second in fts_close) that
69556         would occur when an `active' directory is made inaccessible (e.g.,
69557         via chmod a-x) during a traversal.
69558         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69559         before returning.  Reproduce this failure by
69560         mkdir -p a/b; cd a; chmod a-x . b
69561         Reported by Stavros Passas.
69562
69563         Sync from coreutils.
69564         * lib/sha1.c: Tweak grammar in a comment.
69565
69566 2006-01-10  Jim Meyering  <jim@meyering.net>
69567
69568         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69569         Patch by Joerg Sonnenberger.
69570
69571 2006-01-10  Bruno Haible  <bruno@clisp.org>
69572
69573         * modules/readutmp: Depend on module free.
69574         * modules/strtok_r: Depend on module restrict.
69575
69576 2006-01-10  Bruno Haible  <bruno@clisp.org>
69577
69578         * modules/gettext (configure.ac): Add an invocation of
69579         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69580
69581 2006-01-10  Bruno Haible  <bruno@clisp.org>
69582
69583         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69584         Reported by Werner Lemberg <wl@gnu.org>.
69585
69586 2006-01-10  Bruno Haible  <bruno@clisp.org>
69587
69588         * lib/localcharset.c: Update from GNU gettext.
69589
69590 2006-01-10  Bruno Haible  <bruno@clisp.org>
69591
69592         * lib/argp.h (__const): Remove macro. Use const instead.
69593         * lib/argp-fmtstream.h (__const): Likewise.
69594         * lib/glob_.h (__const): Remove macro.
69595         * lib/glob-libc.h: Use const instead of __const.
69596
69597 2006-01-10  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69600         variable.
69601         Needed to avoid an automake error regarding the 'gettext' module.
69602
69603 2006-01-09  Simon Josefsson  <jas@extundo.com>
69604
69605         * modules/inet_ntop (Depends-on): Add restrict.
69606
69607 2006-01-09  Simon Josefsson  <jas@extundo.com>
69608
69609         * modules/gc-rijndael-tests (License): Put under LGPL.
69610
69611         * modules/gc-des-tests (License): Likewise.
69612
69613         * modules/gc-arcfour-tests (License): Likewise.
69614
69615         * modules/gc-arctwo-tests (License): Likewise.
69616
69617         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69618
69619         * modules/gc-hmac-sha1-tests (Files): Likewise.
69620
69621         * modules/gc-hmac-md5-tests (License): Likewise.
69622
69623         * modules/gc-sha1-tests (License): Likewise.
69624
69625         * modules/gc-md5-tests (License): Likewise.
69626
69627         * modules/gc-md4-tests (License): Likewise.
69628
69629         * modules/gc-md2-tests (License): Likewise.
69630
69631         * modules/gc-tests (License): Likewise.
69632
69633         * modules/des-tests (License): Likewise.
69634
69635         * modules/md4-tests (License): Likewise.
69636
69637         * modules/md2-tests (License): Likewise.
69638
69639 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         Sync from coreutils:
69642
69643         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69644         * modules/lib-ignore: New file.
69645         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69646         chdir-safer.m4, lchmod.m4.
69647         * modules/openat: Add mkdirat.c, openat-priv.h.
69648
69649 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         Sync from coreutils.
69652         * m4/lib-ignore.m4: New file.
69653         * m4/lchmod.m4: New file.
69654
69655 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         Sync from coreutils.
69658         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69659         for write access: POSIX says that must fail.
69660         * lib/fts.c (diropen): Likewise.
69661         * lib/save-cwd.c (save_cwd): Likewise.
69662         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69663         well, for minor improvements on hosts that lack O_DIRECTORY.
69664         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69665         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69666         Fall back on chown if open failed with EACCES.
69667
69668         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69669         Report an error at compile-time if only a 1-second nominal clock
69670         resolution is found.
69671
69672         * lib/lchmod.h: New file.
69673         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69674         (make_dir_parents): Use lchown rather than chown, and
69675         lchmod rather than chmod.
69676
69677         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69678         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69679         "proc" reported by n0dalus.
69680
69681         * lib/mountlist.c: Include <limits.h>.
69682         (dev_from_mount_options)
69683         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69684         New function.  It no longer assumes "dev=" has the System V meaning
69685         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69686         (read_file_system_list)
69687         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69688         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69689         dev= in that case.
69690
69691         * lib/posixtm.h (PDS_PRE_2000): New macro.
69692         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69693         allow_century.  All usages changed.  Reject dates outside the range
69694         1969-1999 if PDS_PRE_2000 is used.
69695
69696 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         Sync from coreutils.
69699         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69700         (Time of day items): Mention the possibility of leap seconds.
69701         Problem reported by Dr. David Alan Gilbert.
69702
69703 2006-01-09  Jim Meyering  <jim@meyering.net>
69704
69705         Sync from coreutils.
69706
69707         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69708
69709         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69710
69711         * lib/modechange.c (mode_compile): Reject an invalid mode string
69712         that starts with an octal digit.  From Andreas Gruenbacher.
69713
69714         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69715         and dup to open_safer and dup_safer, respectively.
69716         (openat_permissive): Fix typo in comment.
69717
69718         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69719         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69720         (_): Remove; no longer needed.
69721         (openat): Renamed from rpl_openat; no need for rpl_openat
69722         since openat.h renames openat for us.
69723         Replace most of the body with a call to openat_permissive,
69724         to avoid duplicate code.
69725         Port to (probably hypothetical) environments were mode_t is
69726         wider than int.
69727         (openat_permissive): Require mode arg, so that we can check
69728         types better.  Put it just after flags.  Change cwd failure
69729         indicator from pointer-to-bool to pointer-to-errno-value.
69730         All callers changed.
69731         Invoke openat_save_fail and/or openat_restore_fail if
69732         cwd_errno is null, so that openat can call us.
69733         (openat_permissive, fdopendir, fstatat, unlinkat):
69734         Simplify errno handling to avoid some duplicate code,
69735         as it's OK to set errno on success.
69736         * lib/openat.h: Revamp code so that function macros depend on
69737         __OPENAT_PREFIX only, not also on AT_FDCWD.
69738         (openat_ro): Remove.  Caller changed to use openat_permissive.
69739         (openat_permissive): Now a macro, if not a function.
69740         (openat_restore_fail, openat_save_fail): Now always functions,
69741         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69742
69743         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69744         and openat.c.
69745         * lib/mkdirat.c: Include openat-priv.h.
69746         Remove definitions of macros defined therein.
69747         * lib/openat.c: Likewise.
69748
69749         * lib/mkdirat.c (mkdirat): New file and function.
69750         * lib/openat.h (mkdirat): Declare.
69751
69752         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69753
69754         * lib/openat.h (openat_permissive): Declare.
69755         (openat_ro): Define.
69756
69757         * lib/openat.c (EXPECTED_ERRNO): New macro.
69758         (openat_permissive): New function -- used in remove.c rewrite.
69759         (all functions): Set errno just before returning, only if there
69760         was an actual failure.
69761         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69762
69763         Emulate openat-family functions using Linux's procfs, if possible.
69764         Idea and some code based on Ulrich Drepper's glibc changes.
69765
69766         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69767         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69768         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69769         before falling back on save_cwd and restore_cwd.
69770         (fdopendir, fstatat, unlinkat): Likewise.
69771
69772         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69773         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69774
69775         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69776         as second argument to va_arg.  Otherwise, some versions of gcc
69777         warn that `if this code is reached, the program will abort'.
69778
69779 2006-01-09  Jim Meyering  <jim@meyering.net>
69780
69781         Sync from coreutils.
69782         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69783         Require openat-priv.h.
69784
69785 2006-01-09  Bruno Haible  <bruno@clisp.org>
69786
69787         * modules/strnlen (Include): Use strnlen.h.
69788
69789 2006-01-09  Bruno Haible  <bruno@clisp.org>
69790
69791         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69792
69793 2006-01-09  Bruno Haible  <bruno@clisp.org>
69794
69795         * lib/sysexit_.h (EX_OK): New macro.
69796         Suggested by Martin Lambers <marlam@marlam.de>.
69797
69798 2006-01-09  Bruno Haible  <bruno@clisp.org>
69799
69800         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69801         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69802
69803 2006-01-09  Bruno Haible  <bruno@clisp.org>
69804
69805         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69806         numbers.
69807
69808 2006-01-09  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69811         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69812         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69813         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69814
69815 2006-01-09  Bruno Haible  <bruno@clisp.org>
69816
69817         * build-aux/javacomp.sh.in: New file, moved from lib/.
69818         * modules/javacomp-script (Files): Update.
69819         (configure.ac): Add AC_CONFIG_FILES invocation.
69820         (EXTRA_DIST): Remove variable.
69821
69822         * build-aux/javaexec.sh.in: New file, moved from lib/.
69823         * modules/javaexec (Files): Update.
69824         (configure.ac): Add AC_CONFIG_FILES invocation.
69825         (EXTRA_DIST): Remove javaexec.sh.in.
69826
69827         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69828         * modules/csharpcomp-script (Files): Update.
69829         (configure.ac): Add AC_CONFIG_FILES invocation.
69830         (EXTRA_DIST): Remove variable.
69831
69832         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69833         * modules/csharpexec (Files): Update.
69834         (configure.ac): Add AC_CONFIG_FILES invocation.
69835         (EXTRA_DIST): Remove csharpexec.sh.in.
69836
69837 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69838
69839         Sync from coreutils.
69840
69841         Add POSIX ACL support
69842         * lib/acl.h (copy_acl, set_acl): Add declarations.
69843         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69844         systems other than Linux.
69845         (chmod_or_fchmod): New function: use fchmod when possible,
69846         and chmod otherwise.
69847         (file_has_acl): Add a POSIX ACL implementation, with a
69848         Linux-specific subcase.
69849         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69850         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69851         acls are unsupported.
69852         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69853         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69854         are unsupported.
69855
69856 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69857
69858         Sync from coreutils.
69859         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69860
69861 2006-01-07  Bruno Haible  <bruno@clisp.org>
69862
69863         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69864         gl_EARLY.
69865
69866 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69869         Problem reported for Mingw by Mark Junker.
69870
69871 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * README: Gnulib normally doesn't generate a tarball.
69874
69875 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69878         long int, not int, for nanosecond counts, so that people who are
69879         used to POSIX struct timespec won't be surprised.  Reported by Jim
69880         Meyering.
69881
69882 2005-12-28  Bruno Haible  <bruno@clisp.org>
69883
69884         * build-aux/config.rpath: Update from GNU gettext.
69885
69886 2005-12-16  Jim Meyering  <jim@meyering.net>
69887
69888         * modules/fprintftime: New module.
69889         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69890
69891 2005-12-16  Jim Meyering  <jim@meyering.net>
69892
69893         * m4/fprintftime.m4: New file.
69894
69895 2005-12-16  Jim Meyering  <jim@meyering.net>
69896
69897         * lib/fprintftime.c, lib/fprintftime.h: New files.
69898
69899 2005-12-15  Simon Josefsson  <jas@extundo.com>
69900
69901         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69902         new m4/socklen.m4.
69903
69904 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69905
69906         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69907         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69908
69909 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69910
69911         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69912         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69913         struct uparams is valid. Fall back to the default values if it is
69914         not.
69915
69916 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69917
69918         * modules/argp (Files): Add argp-pin.c
69919         (Depends-on): dirname
69920         (lib_SOURCES): Add argp-pin.c
69921
69922 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69923
69924         * m4/argp.m4:  Check if program_invocation_name and
69925         program_invocation_short_name are declared and define appropriate
69926         macros if they are not.
69927
69928 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69929
69930         * lib/argp-help.c (__argp_base_name): New function
69931         (__argp_short_program_name): Rewrite using __argp_base_name
69932         * lib/argp-namefrob.h: Define program_invocation_name and
69933         program_invocation_short_name if requested
69934         (__argp_base_name): Add prototype
69935         * lib/argp-parse.c (argp_def): Use gettext wrappers
69936         (argp_default_parser): Use __argp_base_name
69937         * lib/argp-pin.c: New file. Defines program_invocation_name and
69938         program_invocation_short_name on systems that lack them.
69939
69940 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69943         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69944         porting problem reported by Georg Schwarz in
69945         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69946
69947 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69950         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69951         porting problem reported by Georg Schwarz in
69952         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69953
69954 2005-12-05  Bruno Haible  <bruno@clisp.org>
69955
69956         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69957         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69958         Reported by Mark Junker <mjscod@gmx.de>.
69959
69960 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69961
69962         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69963         Use implementation from Albert Chin, with some
69964         comments/corrections by Stepan Kasal and myself.
69965
69966 2005-12-02  Bruno Haible  <bruno@clisp.org>
69967
69968         * gnulib-tool (func_import): Accept GPLed build tool modules when
69969         --lgpl is given.
69970         * modules/csharpcomp-script: New file.
69971         * modules/csharpcomp: Depend on it.
69972         * modules/javacomp-script: New file.
69973         * modules/javacomp: Depend on it.
69974         Suggested by Simon Josefsson.
69975
69976 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69979         statement, to work around an HP-UX 10.20 compiler bug reported by
69980         Peter O'Gorman.
69981
69982 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * modules/savedir (Depends-on): Add openat.
69985
69986 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69989         (uintmax_t) [defined uintmax_t]: Do not declare.
69990         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69991         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69992         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69993         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69994         sake of portability to weird hosts that C allows (though we don't
69995         know of any practical examples).
69996
69997         * lib/savedir.h (fdsavedir): New decl.
69998         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69999         contains most of the former guts of savedir.
70000         (savedir): Use savedirstream.
70001         Include "openat.h".
70002
70003 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70004
70005         * modules/obstack (Files): Add m4/ulonglong.m4.
70006         Problem reported by Davide Angelocola.
70007
70008 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70011         coreutils no longer futzes with rounding modes.
70012
70013 2005-11-14  Jim Meyering  <jim@meyering.net>
70014
70015         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70016         replacement of mkstemp.
70017
70018 2005-11-10  Simon Josefsson  <jas@extundo.com>
70019
70020         * lib/readline.c: Remove EOL.
70021
70022 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * modules/gethrxtime (Depends-on): Add gettime.
70025
70026 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70029         or gettimeofday; no longer needed.
70030
70031 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70034         time business.
70035         (gethrxtime) [! (HAVE_NANOUPTIME
70036         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70037         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70038         our own approximation.
70039
70040 2005-11-08  Eric Blake  <ebb9@byu.net>
70041
70042         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70043
70044 2005-11-08  Eric Blake  <ebb9@byu.net>
70045
70046         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70047
70048 2005-11-04  Bruno Haible  <bruno@clisp.org>
70049
70050         * gnulib-tool: Implement --update mode.
70051
70052 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         Fix porting problem reported by Theodoros V. Kalamatianos.
70055         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70056         Don't assume that futimes failing means we must fail.
70057
70058 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70061         variables to suggest the intended function of the PATH_MAX check.
70062
70063 2005-10-30  Kean Johnston  <jkj@sco.com>
70064
70065         Trivial changes to support SCO systems.
70066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70067         as PATH_MAX.
70068         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70069         where __ptr is null when no I/O is pending.
70070
70071 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70074         leave errno alone.  Problem reported by Dmitry V. Levin.
70075
70076 2005-10-28  Simon Josefsson  <jas@extundo.com>
70077
70078         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70079         Test more.
70080
70081         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70082
70083         * modules/md2, modules/md2-tests: New files.
70084
70085 2005-10-28  Simon Josefsson  <jas@extundo.com>
70086
70087         * m4/inet_ntop.m4: More tests.
70088
70089         * m4/gc-md2.m4, md2.m4: New file.
70090
70091 2005-10-28  Simon Josefsson  <jas@extundo.com>
70092
70093         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70094         "restrict" keywords, as per POSIX.  Protect the function
70095         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70096         Don't use K&R prototypes.  Check the sprintf return values.
70097         Re-define EAFNOSUPPORT if not present.  Indent.
70098
70099         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70100         suggested by Bruno Haible <bruno@clisp.org>.
70101
70102         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70103
70104         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70105
70106         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70107         libgcrypt).
70108
70109         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70110
70111         * lib/md2.h, lib/md2.c: New files.
70112
70113 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70114
70115         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70116         errno alone.  Problem reported by Frederic Jolliton.
70117
70118 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         * modules/verify (License): Change from GPL to LGPL.  This is a
70121         tiny module and there are apparently near-equivalents that are
70122         under the BSD license.
70123
70124 2005-10-24  Simon Josefsson  <jas@extundo.com>
70125
70126         * modules/sha1: Relicense to LGPL.
70127
70128 2005-10-24  Simon Josefsson  <jas@extundo.com>
70129
70130         * lib/md4.h: Shrink buffer size, now that we changed the type.
70131
70132 2005-10-23  Simon Josefsson  <jas@extundo.com>
70133
70134         * gnulib-tool (func_import): Fix --tests-base.
70135
70136 2005-10-22  Simon Josefsson  <jas@extundo.com>
70137
70138         * modules/arcfour (Depends-on): Need stdint.
70139
70140 2005-10-22  Simon Josefsson  <jas@extundo.com>
70141
70142         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70143         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70144
70145 2005-10-22  Simon Josefsson  <jas@extundo.com>
70146
70147         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70148         suggested by Bruno Haible <bruno@clisp.org>.
70149
70150 2005-10-22  Simon Josefsson  <jas@extundo.com>
70151
70152         * lib/crc.h: Include stddef.h, for size_t.
70153
70154 2005-10-22  Simon Josefsson  <jas@extundo.com>
70155
70156         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70157         arcfour_context struct (simplify test vector testing in GNU
70158         Shishi).
70159
70160 2005-10-21  Simon Josefsson  <jas@extundo.com>
70161
70162         * modules/des, modules/des-tests: New files.
70163
70164         * modules/gc-des, modules/gc-des-tests: New files.
70165
70166         * tests/test-des.c, tests/test-gc-des.c: New file.
70167
70168 2005-10-21  Simon Josefsson  <jas@extundo.com>
70169
70170         * modules/arctwo, modules/arctwo-tests: New files.
70171
70172         * tests/test-arctwo.c: New file.
70173
70174         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70175
70176         * tests/test-gc-arctwo.c: New file.
70177
70178 2005-10-21  Simon Josefsson  <jas@extundo.com>
70179
70180         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70181         Bruno Haible <bruno@clisp.org>.
70182
70183         * m4/gc-des.m4: New file.
70184
70185 2005-10-21  Simon Josefsson  <jas@extundo.com>
70186
70187         * m4/arctwo.m4: New file.
70188
70189         * m4/gc-arctwo.m4: New file.
70190
70191 2005-10-21  Simon Josefsson  <jas@extundo.com>
70192
70193         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70194         block.
70195
70196 2005-10-21  Simon Josefsson  <jas@extundo.com>
70197
70198         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70199         <bruno@clisp.org>.
70200
70201         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70202
70203         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70204         Bruno Haible <bruno@clisp.org>.
70205
70206         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70207         <bruno@clisp.org>.
70208
70209 2005-10-21  Simon Josefsson  <jas@extundo.com>
70210
70211         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70212
70213 2005-10-21  Simon Josefsson  <jas@extundo.com>
70214
70215         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70216
70217 2005-10-21  Simon Josefsson  <jas@extundo.com>
70218
70219         * lib/des.h, lib/des.c: New files.
70220
70221         * lib/gc-gnulib.c: Support DES.c
70222
70223 2005-10-21  Simon Josefsson  <jas@extundo.com>
70224
70225         * lib/arctwo.h, lib/arctwo.c: New files.
70226
70227         * lib/gc-gnulib.c: Support ARCTWO.
70228
70229 2005-10-21  Simon Josefsson  <jas@extundo.com>
70230
70231         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70232         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70233
70234 2005-10-21  Simon Josefsson  <jas@extundo.com>
70235
70236         * gnulib-tool (func_import, func_create_testdir): Define automake
70237         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70238         Makefile.am snippet),
70239         suggested by Bruno Haible <bruno@clisp.org>.
70240
70241         * modules/gc (Makefile.am): Use it.
70242
70243 2005-10-21  Bruno Haible  <bruno@clisp.org>
70244
70245         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70246         patch.
70247
70248 2005-10-19  Simon Josefsson  <jas@extundo.com>
70249
70250         * tests/test-gc-rijndael.c: New file.
70251
70252         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70253
70254 2005-10-19  Simon Josefsson  <jas@extundo.com>
70255
70256         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70257         interface too.
70258
70259 2005-10-19  Simon Josefsson  <jas@extundo.com>
70260
70261         * tests/test-gc-arcfour.c: New file.
70262
70263         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70264
70265 2005-10-19  Simon Josefsson  <jas@extundo.com>
70266
70267         * modules/gc-md4, modules/gc-md4-tests: New file.
70268
70269         * tests/test-gc-md4.c: New file.
70270
70271 2005-10-19  Simon Josefsson  <jas@extundo.com>
70272
70273         * m4/gc-md4.m4: New file.
70274
70275 2005-10-19  Simon Josefsson  <jas@extundo.com>
70276
70277         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70278         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70279         <kasal@ucw.cz>.
70280
70281 2005-10-19  Simon Josefsson  <jas@extundo.com>
70282
70283         * m4/gc-arcfour.m4: New file.
70284
70285         * m4/gc-rijndael.m4: New file.
70286
70287 2005-10-19  Simon Josefsson  <jas@extundo.com>
70288
70289         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70290
70291 2005-10-19  Simon Josefsson  <jas@extundo.com>
70292
70293         * lib/gc-gnulib.c: Support ARCFOUR.
70294
70295 2005-10-19  Simon Josefsson  <jas@extundo.com>
70296
70297         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70298         support.
70299
70300         * lib/gc.h: Add ECB enum type.
70301
70302         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70303
70304 2005-10-18  Simon Josefsson  <jas@extundo.com>
70305
70306         * tests/test-md5.c: New file.
70307
70308         * modules/md5-tests: New file.
70309
70310 2005-10-18  Simon Josefsson  <jas@extundo.com>
70311
70312         * tests/test-md4.c: New file.
70313
70314         * modules/md4, modules/md4-tests: New files.
70315
70316 2005-10-18  Simon Josefsson  <jas@extundo.com>
70317
70318         * m4/md4.m4: New file.
70319
70320 2005-10-18  Simon Josefsson  <jas@extundo.com>
70321
70322         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70323
70324 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70325
70326         * gnulib-tool (func_create_testdir): Omit the second check whether
70327         BUILT_SOURCES in nonempty.
70328
70329 2005-10-17  Simon Josefsson  <jas@extundo.com>
70330
70331         * tests/test-rijndael.c: New file.
70332
70333 2005-10-17  Simon Josefsson  <jas@extundo.com>
70334
70335         * modules/sha1: Depend on stdint instead of md5.
70336
70337         * modules/md5: Depend on stdint, remove uint32_t.
70338
70339 2005-10-17  Simon Josefsson  <jas@extundo.com>
70340
70341         * modules/gc-sha1-tests: New file.
70342
70343         * tests/test-gc-sha1.c: New file.
70344
70345 2005-10-17  Simon Josefsson  <jas@extundo.com>
70346
70347         * m4/md5.m4: Remove call to uint32_t.m4.
70348
70349 2005-10-17  Simon Josefsson  <jas@extundo.com>
70350
70351         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70352
70353         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70354         md5.h.
70355
70356         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70357
70358         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70359
70360 2005-10-17  Simon Josefsson  <jas@extundo.com>
70361
70362         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70363
70364 2005-10-17  Simon Josefsson  <jas@extundo.com>
70365
70366         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70367
70368 2005-10-17  Simon Josefsson  <jas@extundo.com>
70369
70370         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70371
70372         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70373
70374 2005-10-17  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70377         that it can also be used in a test.
70378
70379 2005-10-16  Bruno Haible  <bruno@clisp.org>
70380
70381         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70382         TESTS_ENVIRONMENT, so that individual tests can augment it.
70383
70384         * gnulib-tool (func_create_testdir): Use an intermediate target for
70385         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70386         macros, like $(ALLOCA_H), which cannot be passed through the command
70387         line.
70388
70389 2005-10-15  Simon Josefsson  <jas@extundo.com>
70390
70391         * modules/rijndael-tests: New file.
70392
70393         * modules/rijndael: New file.
70394
70395 2005-10-15  Simon Josefsson  <jas@extundo.com>
70396
70397         * m4/rijndael.m4: New file.
70398
70399 2005-10-15  Simon Josefsson  <jas@extundo.com>
70400
70401         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70402
70403         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70404
70405 2005-10-14  Simon Josefsson  <jas@extundo.com>
70406
70407         * tests/test-arcfour.c: New file.
70408
70409         * modules/arcfour, modules/arcfour-tests: New files.
70410
70411 2005-10-14  Simon Josefsson  <jas@extundo.com>
70412
70413         * m4/arcfour.m4: New file.
70414
70415 2005-10-14  Simon Josefsson  <jas@extundo.com>
70416
70417         * lib/arcfour.h, lib/arcfour.c: New files.
70418
70419 2005-10-14  Roland McGrath  <roland@redhat.com>
70420
70421         Import from libc.  [BZ #1331]
70422         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70423         macro argument.
70424         Reported by Matej Vela <vela@debian.org>.
70425
70426 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70429         include <wchar.h>; no longer needed.
70430
70431 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70432
70433         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70434
70435 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70436         and  Ulrich Drepper  <drepper@redhat.com>
70437
70438         Import from libc.
70439         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70440         instead of inline stream orientation test and two separate
70441         function calls.  Pay no attention to USE_IN_LIBIO.
70442
70443 2005-10-13  Simon Josefsson  <jas@extundo.com>
70444
70445         * modules/gc-hmac-md5-tests: New file.
70446
70447         * tests/test-gc-hmac-sha1.c: New file.
70448
70449         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70450
70451         * modules/gc-hmac-md5-tests: New file.
70452
70453         * tests/test-gc-md5.c: New file.
70454
70455         * modules/gc-md5-tests: New file.
70456
70457 2005-10-13  Simon Josefsson  <jas@extundo.com>
70458
70459         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70460         Move memory allocation outside of loop.
70461
70462 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70465         intermediate directory is in a read-only file system.  Problem
70466         reported by Eric Blake.
70467
70468 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70469
70470         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70471
70472 2005-10-12  Simon Josefsson  <jas@extundo.com>
70473
70474         * tests/test-hmac-sha1.c: New file.
70475
70476         * modules/hmac-sha1-tests: New file.
70477
70478         * modules/hmac-sha1: New file.
70479
70480 2005-10-12  Simon Josefsson  <jas@extundo.com>
70481
70482         * modules/gc-sha1: New file.
70483
70484 2005-10-12  Simon Josefsson  <jas@extundo.com>
70485
70486         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70487
70488         * tests/test-gc-pbkdf2-sha1.c: New file.
70489
70490 2005-10-12  Simon Josefsson  <jas@extundo.com>
70491
70492         * modules/gc-md5, modules/gc-hmac-md5: New files.
70493
70494         * modules/gc (Files): Remove md5, memxor and hmac files.
70495
70496 2005-10-12  Simon Josefsson  <jas@extundo.com>
70497
70498         * m4/gc-pbkdf2-sha1.m4: New file.
70499
70500         * m4/gc-hmac-sha1.m4: New file.
70501
70502         * m4/gc-sha1: New file.
70503
70504         * m4/hmac-sha1.m4: New file.
70505
70506 2005-10-12  Simon Josefsson  <jas@extundo.com>
70507
70508         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70509
70510         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70511
70512 2005-10-12  Simon Josefsson  <jas@extundo.com>
70513
70514         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70515         suggested by Bruno Haible <bruno@clisp.org>.
70516
70517 2005-10-12  Simon Josefsson  <jas@extundo.com>
70518
70519         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70520
70521 2005-10-12  Simon Josefsson  <jas@extundo.com>
70522
70523         * lib/gc-pbkdf2-sha1.c: New file.
70524
70525         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70526
70527 2005-10-12  Simon Josefsson  <jas@extundo.com>
70528
70529         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70530
70531         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70532
70533 2005-10-12  Simon Josefsson  <jas@extundo.com>
70534
70535         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70536         GC_USE_HMAC_MD5, respectively.
70537
70538         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70539         (gc_md5): Fix typo.
70540
70541         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70542
70543         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70544
70545         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70546
70547 2005-10-12  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70550         Reported by Stepan Kasal <kasal@ucw.cz>.
70551
70552 2005-10-11  Simon Josefsson  <jas@extundo.com>
70553
70554         * tests/test-crc.c: New file.
70555
70556         * modules/crc, modules/crc-tests: New files.
70557
70558 2005-10-11  Simon Josefsson  <jas@extundo.com>
70559
70560         * m4/crc.m4: New file.
70561
70562 2005-10-11  Simon Josefsson  <jas@extundo.com>
70563
70564         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70565
70566         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70567
70568         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70569
70570 2005-10-11  Simon Josefsson  <jas@extundo.com>
70571
70572         * lib/crc.h, lib/crc.c: New files.
70573
70574         * lib/gc.h (gc_hash_buffer): Add doc.
70575
70576 2005-10-11  Bruno Haible  <bruno@clisp.org>
70577
70578         * modules/c-strcasestr: New file.
70579         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70580
70581 2005-10-11  Bruno Haible  <bruno@clisp.org>
70582
70583         * modules/c-strcase: New file.
70584         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70585
70586 2005-10-11  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/strcasecmp.c: Include limits.h.
70589         (strcasecmp): Avoid integer overflow on exotic platforms.
70590         * lib/strncasecmp.c: Include limits.h.
70591         (strncasecmp): Avoid integer overflow on exotic platforms.
70592         Reported by Paul Eggert.
70593
70594 2005-10-11  Bruno Haible  <bruno@clisp.org>
70595
70596         * lib/c-strcasestr.h: New file, from GNU gettext.
70597         * lib/c-strcasestr.c: New file, from GNU gettext.
70598
70599 2005-10-11  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/c-strcase.h: New file, from GNU gettext.
70602         * lib/c-strcasecmp.c: New file, from GNU gettext.
70603         * lib/c-strncasecmp.c: New file, from GNU gettext.
70604
70605 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * modules/mempcpy (License): GPL -> LGPL.
70608         * modules/strchrnul (License): Likewise.
70609         * modules/sysexits (License): Likewise.
70610
70611 2005-10-08  Simon Josefsson  <jas@extundo.com>
70612
70613         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70614
70615 2005-10-07  Simon Josefsson  <jas@extundo.com>
70616
70617         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70618
70619 2005-10-06  Simon Josefsson  <jas@extundo.com>
70620
70621         * tests/test-hmac-md5.c: New file.
70622
70623         * modules/hmac-md5-tests: New file.
70624
70625         * modules/hmac-md5: New file.
70626
70627 2005-10-06  Simon Josefsson  <jas@extundo.com>
70628
70629         * m4/hmac-md5.m4: New file.
70630
70631         * m4/memxor.m4: Require gl_C_RESTRICT.
70632
70633 2005-10-06  Simon Josefsson  <jas@extundo.com>
70634
70635         * lib/memxor.c (memxor): Avoid casts and warnings.
70636
70637 2005-10-06  Simon Josefsson  <jas@extundo.com>
70638
70639         * lib/hmac-md5.c: New file.
70640
70641         * lib/hmac.h: New file.
70642
70643 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70646         promotes to int, not unsigned int, to catch the AIX 5.3
70647         compiler bug.
70648
70649 2005-10-05  Simon Josefsson  <jas@extundo.com>
70650
70651         * modules/memxor: New file.
70652
70653         * modules/iconv (Files): Move config.rpath to havelib, it is used
70654         there.
70655
70656         * modules/havelib (Files): Add config.rpath.
70657
70658 2005-10-05  Simon Josefsson  <jas@extundo.com>
70659
70660         * m4/memxor.m4: New file.
70661
70662 2005-10-05  Simon Josefsson  <jas@extundo.com>
70663
70664         * lib/memxor.c (memxor): Fix compiler error.
70665
70666         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70667         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70668
70669         * lib/memxor.h, lib/memxor.c: New files.
70670
70671         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70672         we assume all systems have it, suggested by Jim Meyering
70673         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70674         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70675         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70676         same reasons.
70677
70678 2005-10-05  Simon Josefsson  <jas@extundo.com>
70679
70680         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70681
70682 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70685         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70686         needed, since the source code now assumes these .h files.
70687
70688 2005-10-05  Derek Price  <derek@ximbiot.com>
70689
70690         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70691
70692 2005-10-05  Bruno Haible  <bruno@clisp.org>
70693
70694         * modules/stdint (License): Change to LGPL.
70695
70696 2005-10-04  Simon Josefsson  <jas@extundo.com>
70697
70698         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70699         D. Baushke" <mdb@gnu.org>.
70700
70701 2005-10-04  Bruno Haible  <bruno@clisp.org>
70702
70703         * lib/verify.h (verify_true): Provide alternative definition for C++.
70704
70705 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70708         (SSIZE_MAX): New macro, if not already defined.
70709         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70710         than 2 GiB.
70711
70712 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         Sync from coreutils.
70715         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70716         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70717         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70718         ULLONG_MAX doesn't work with 2.7.2.1.
70719
70720 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70723         From Ben Pfaff.
70724
70725         * modules/exclude (Depends-on): Depend on verify.
70726         * modules/strtoimax (Depends-on): Likewise.
70727         * modules/utimecmp (Depends-on): Likewise.
70728
70729 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * lib/exclude.c: Include verify.h.
70732         (verify): Remove.  All callers changed to use verify.h's version.
70733         * lib/strtoimax.c: Likewise.
70734         * lib/utimecmp.c: Likewis.e
70735
70736         Sync from coreutils.
70737         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70738         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70739         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70740         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70741         bother returning ENOSYS if settimeofday or stime fails; just let
70742         them return whatever errno they want to return.
70743         * lib/utimens.c: Include unistd.h, for dup2.
70744         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70745         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70746
70747 2005-10-02  Jim Meyering  <jim@meyering.net>
70748
70749         Sync from coreutils.
70750         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70751         from glibc-2.2.5 that fails for read-only files.
70752
70753 2005-10-02  Jim Meyering  <jim@meyering.net>
70754
70755         Sync from coreutils.
70756         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70757         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70758         `#if HAVE_CONFIG_H'.
70759         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70760         Remove AT_FDCWD test.
70761         Do not consume the fd unless successful.
70762         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70763         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70764         block, so that we don't even try to compile it if settimeofday is
70765         available.  This works around a compilation failure on OSF1 V5.1,
70766         due to stime requiring a `long int*' while tv_sec is `int'.
70767
70768 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70769
70770         Sync from coreutils.
70771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70772         against `yes', rather than just testing for nonempty.
70773
70774 2005-10-01  Simon Josefsson  <jas@extundo.com>
70775
70776         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70777         and Darwin.
70778
70779         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70780         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70781         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70782         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70783         Check if struct addrinfo is declared.
70784
70785 2005-10-01  Simon Josefsson  <jas@extundo.com>
70786
70787         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70788         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70789         AI_* and EAI_* definitions.  Protect function declarations.
70790
70791 2005-10-01  Jim Meyering  <jim@meyering.net>
70792
70793         Sync from coreutils.
70794
70795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70796         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70797         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70799         in the inet and nsl libraries.  Required on Solaris 5.7.
70800
70801 2005-10-01  Jim Meyering  <jim@meyering.net>
70802
70803         Sync from coreutils.
70804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70805         in the inet and nsl libraries.  Required on Solaris 5.7.
70806
70807 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70808
70809         * lib/getdelim.c (getdelim): Remove unused variables.
70810
70811 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70814         so that the code works even with ancient cpp.  Portability problem
70815         with GCC 2.7.2.1 reported by Thomas M.Ott.
70816
70817 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * modules/regex (Depends-on): Add strcase.
70820
70821         * modules/gethostname (Licence): Change from GPL to LGPL, since
70822         gethostname.c is a trivial implementation of a standard library
70823         function.
70824         * modules/poll (License): Change from GPL to LGPL, since it's
70825         derived from LGPL code.
70826
70827 2005-09-27  Jim Meyering  <jim@meyering.net>
70828
70829         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70830         HAVE_CONFIG_H.
70831
70832         * lib/intprops.h (signed_type_or_expr__): Define.
70833         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70834         for unsigned types.
70835
70836 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/verify.h (verify_expr): Remove, replacing with:
70839         (verify_true): New macro that returns true instead of void.
70840         (verify_type__): Remove.
70841         (verify): Use verify_true rather than verify_type__.
70842
70843 2005-09-26  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70846         is necessary.
70847         (lib_SOURCES): Remove mbchar.c.
70848         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70849         (Files): Add m4/mbrtowc.m4.
70850         * modules/mbiter: Likewise.
70851         * modules/mbuiter: Likewise.
70852
70853 2005-09-26  Bruno Haible  <bruno@clisp.org>
70854
70855         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70856         compile mbchar.c if they are not both present.
70857         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70858         * m4/mbiter.m4 (gl_MBITER): Likewise.
70859         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70860         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70861         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70862
70863 2005-09-25  Jim Meyering  <jim@meyering.net>
70864
70865         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70866         also uses socklen_t.
70867
70868 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * lib/utimens.c (ENOSYS): Define if not already defined.
70871         (futimens): Support having a null PATH if the file descriptor
70872         is nonnegative.
70873
70874         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70875         Remove.
70876         (__attribute): Define to empty unless GCC 3.1 or later.
70877         This works around a core dump on OpenBSD 3.4, which has GCC
70878         2.95.3, which dumps core when given __attribute__(()).  It also
70879         simplifies other tests, since we really don't want to bother with
70880         worrying about which ancient version of GCC supported what.
70881         Original problem reported by Yoann Vandoorselaere, with part of
70882         the fix suggested by Derek Price.
70883
70884 2005-09-24  Jim Meyering  <jim@meyering.net>
70885
70886         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70887         so we can once again use a positive bitfield width of 1 -- now we
70888         don't have to explain why we were using a bitfield width of 2.
70889
70890 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70893         and similarly for the other external symbols.  Problem reported
70894         by James Gallager.
70895
70896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70897         bug reported by Jim Meyering.
70898
70899         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70901         not needed, since socklen is a prerequisite module.
70902
70903 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70906         Problem reported by Eric Blake.
70907         (getaddrinfo): Initialize se so that it's not garbage.
70908         Redo internal storage allocation so that it doesn't make unportable
70909         assumptions about alignment.
70910         Fix a memory leak.
70911
70912         * lib/utimens.c (futimens): Use futimesat if available.
70913         Prefer it to futimes since it doesn't have the futimes bug.
70914
70915         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70916         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70917         Instead, declare a function that returns a pointer to an array,
70918         and use verify_type__ to declare the size of the array.
70919         Problem and germ of a solution reported by Bruno Haible.
70920         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70921         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70922
70923 2005-09-23  Jim Meyering  <jim@meyering.net>
70924
70925         Sync from coreutils.
70926         Correct build failure (socklen_t not defined) on at least
70927         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70929
70930 2005-09-23  Jim Meyering  <jim@meyering.net>
70931
70932         * modules/getaddrinfo (Depends-on): Add socklen.
70933
70934 2005-09-23  Bruno Haible  <bruno@clisp.org>
70935
70936         * tests/test-verify.c: New file.
70937
70938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         Sync from coreutils.
70941
70942         * modules/argmatch (Depends-on): Add verify.
70943         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70944         unistd-safer.
70945         * modules/save-cwd (Depends-on): Likewise.
70946
70947         * modules/openat (Files): Add lib/openat-die.c.
70948         (Depends-on): Remove error, exitfail.
70949         Add dirname.
70950
70951         * modules/verify: New file.
70952         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70953         with "verify" module.
70954
70955 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         Sync from coreutils.
70958
70959         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70960         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70961         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70962         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70963         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70964         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70965         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70966         Don't bother checking for string.h, stdlib.h, unistd.h.
70967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70968         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70969         module's job.
70970         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70971         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70972
70973         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70974         (gl_GETDATE): Use it.
70975
70976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70977
70978 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         Sync from coreutils.
70981
70982         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70983         stat-time.h.
70984         * lib/argmatch.h: Include verify.h
70985         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70986         (ARGMATCH_ASSERT): Remove; unused.
70987         * lib/canonicalize.c: Assume STDC_HEADERS.
70988         * lib/exclude.c: Include "strcase.h".
70989         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70990         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70991         and stdio-safer.h.
70992         (getusershell): Call fopen, not fopen_safer.
70993         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70994         Do not include unistd-safer.h.
70995         (save_cwd): Don't call fd_safer; no longer needed
70996         now that we include fcntl--.h.
70997
70998         * lib/getdate.y (relative_time): New type.
70999         (RELATIVE_TIME_0): New constant.
71000         (parser_control): Use relative_time instead of doing it ourselves.
71001         (%union): Add new relative_time rel member.
71002         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71003         Now typeless.
71004         (relunit, relunit_snumber): Now of type rel.
71005         (zone, rel, relunit, get_date): Adjust to above changes.
71006
71007         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71008         Do not include unistd-safer.h.
71009         (getloadavg): Don't call fd_safer; no longer needed
71010         now that we include fcntl--.h.
71011
71012         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71013         (make_dir_parents): Treat ENOSYS like EEXIST.
71014
71015         Improve quality of diagnostics on restore_cwd failure.
71016         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71017         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71018         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71019         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71020         each time through the loop.  Do not diagnose restore_cwd failure;
71021         that is the caller's job (and perhaps the caller does not care).
71022
71023         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71024         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71025         If the file already exists but is not a directory, don't bother
71026         to try to make its parents.
71027         Close potential file descriptor leak if we can't chdir("/") (!).
71028         Don't always return true if chdir($PWD) fails; return true only
71029         if the requested action was done successfully (except for the
71030         chdir($PWD)).
71031         Don't log final directory unless we actually made it.
71032         Refactor to avoid duplicate code to fix up permissions.
71033         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71034
71035         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71036         to make it a bit faster and (I hope) clearer.
71037         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71038         Fix bug in formats like %2N.
71039
71040         * lib/verify.h: New file.
71041
71042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         Sync from coreutils.
71045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71046
71047 2005-09-22  Jim Meyering  <jim@meyering.net>
71048
71049         Sync from coreutils.
71050
71051         * m4/lstat.m4 (gl_FUNC_LSTAT):
71052         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71053         Remove obsolete comment.
71054         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71055         * m4/xstrtod.m4: Likewise.
71056
71057         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71058
71059 2005-09-22  Jim Meyering  <jim@meyering.net>
71060
71061         Sync from coreutils.
71062
71063         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71064
71065         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71066         the .tm_year member, since otherwise gcc-4.0 would now warn about
71067         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71068
71069         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71070         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71071
71072         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71073         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71074         when run in a time zone for which daylight savings time is in effect
71075         for the starting date.
71076
71077         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71078         stop us from restricting permissions of just-created absolute-named
71079         directories.
71080         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71081         to restore initial working directory.
71082         * lib/mkdir-p.c (make_dir_parents): New parameter:
71083         different_working_dir, to tell caller if/when we change the working
71084         directory and are unable to return to the initial one.
71085         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71086         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71087         `return false'.  This fixes a bug introduced on 2004-07-30.
71088
71089         * lib/openat.c (fdopendir): Be sure to close the supplied
71090         file descriptor before returning.  This makes our replacement
71091         implementation a little closer to Solaris's, where fdopendir
71092         ties the file descriptor to the returned DIR* pointer.
71093         * lib/openat.c (unlinkat): New function.
71094         * lib/openat.h (unlinkat): Add prototype.
71095         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71096         (openat_restore_fail): Rename from openat_restore_die.
71097         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71098
71099         Provide an alternative to exiting immediately upon save_cwd or
71100         restore_cwd failure.  Now, an application can arrange e.g.,
71101         to perform a longjump in that case.
71102         * lib/openat.c: Include dirname.h.
71103         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71104         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71105         and openat_restore_die rather than calling error directly.
71106         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71107
71108         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71109         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71110         define.
71111
71112         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71113         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71114                             int utc, int nanoseconds);
71115         Background:
71116         date should not have to allocate a megabyte of virtual memory to
71117         handle a format argument like +%1048575T.  When implemented with
71118         strftime, it must allocate such a buffer, use strftime to fill it
71119         in, print it, then free it.
71120         With fprintftime, it simply prints everything and exits.
71121         With no need for memory allocation, that's one fewer way to fail.
71122         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71123         optional field width, not before, so we accept %9:z, not %:9z.
71124         (my_strftime): Be sure to use L_('x') for literals.
71125
71126         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71127         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71128         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71129         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71130         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71131         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71132         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71133         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71134         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71135         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71136         * lib/xgethostname.c, lib/xreadlink.c:
71137         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71138
71139         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71140         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71141         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71142         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71143         and don't include <sys/file.h>).
71144
71145 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71146
71147         Sync from coreutils.
71148
71149         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71150         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71151         [!LDAV_DONE]: Avoid unused variable warning.
71152
71153 2005-09-21  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/unicodeio.h (unicode_to_mb): New declaration.
71156
71157 2005-09-20  Derek Price  <derek@ximbiot.com>
71158
71159         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71160         getaddrinfo.h.
71161
71162 2005-09-20  Bruno Haible  <bruno@clisp.org>
71163
71164         * gnulib-tool: Remove trailing slashes from the values specified for
71165         --source-base, --m4-base, --tests-base, --aux-dir.
71166         Suggested by Simon Josefsson <jas@extundo.com>.
71167
71168 2005-09-20  Bruno Haible  <bruno@clisp.org>
71169
71170         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71171         func_modules_to_filelist, func_import, func_create_testdir): Make all
71172         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71173         change when gnulib-tool is invoked in a different locale.
71174
71175 2005-09-19  Simon Josefsson  <jas@extundo.com>
71176
71177         * m4/socklen.m4: Fix typo.
71178
71179 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71180
71181         Use a consistent style for including <config.h>.
71182         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71183         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71184         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71185         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71186         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71187         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71188         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71189         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71190         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71191         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71192         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71193         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71194         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71195         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71196         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71197         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71198         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71199         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71200         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71201         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71202         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71203         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71204         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71205         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71206         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71207         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71208         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71209         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71210         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71211         lib/xstrtoumax.c, lib/yesno.c:
71212         Standardize inclusion of config.h.
71213         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71214         lib/inttostr.h:  Removed inclusion of config.h from header files.
71215         * lib/inttostr.c:  Adjusted in-tree users.
71216         * lib/timespec.h: Remove superfluous warning to include config.h.
71217         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71218         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71219         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71220         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71221         config.h with HAVE_CONFIG_H.
71222
71223 2005-09-19  Jim Meyering  <jim@meyering.net>
71224
71225         * modules/pathmax (License): Change to LGPL.
71226
71227 2005-09-19  Derek Price  <derek@ximbiot.com>
71228
71229         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71230
71231 2005-09-19  Bruno Haible  <bruno@clisp.org>
71232
71233         * gnulib-tool (import): Provide default for --tests-base.
71234
71235 2005-09-19  Bruno Haible  <bruno@clisp.org>
71236
71237         * doc/quote.texi: New file, extracted from gnulib.texi.
71238         * doc/ctime.texi: New file, extracted from gnulib.texi.
71239         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71240         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71241         * doc/gnulib.texi: Include them.
71242
71243 2005-09-18  Bruno Haible  <bruno@clisp.org>
71244
71245         Portability fix.
71246         * gnulib-tool (func_readlink): New function.
71247         (func_ln_if_changed): Use it.
71248
71249 2005-09-18  Bruno Haible  <bruno@clisp.org>
71250
71251         * gnulib-tool: Support --with-tests also with --import.
71252         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71253         (func_import): Use variables $testsbase and $inctests. Emit a
71254         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71255         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71256         SUBDIRS += $testsdir.
71257         (func_create_testdir): Update.
71258
71259 2005-09-18  Bruno Haible  <bruno@clisp.org>
71260
71261         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71262         instead of $dry_run.
71263         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71264         (func_ln_if_changed): Don't handle dry-run here.
71265         (func_import): In dry-run mode, detect more precisely which actions
71266         would be performed, and don't use "...ing" verbs.
71267
71268 2005-09-18  Bruno Haible  <bruno@clisp.org>
71269
71270         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71271         (func_import): Use join on two temporary files instead of three nested
71272         loops, in order to determine which files are new or old.
71273
71274 2005-09-18  Bruno Haible  <bruno@clisp.org>
71275
71276         * gnulib-tool (func_import): Comment out code that spits out the
71277         new files with --dry-run.
71278
71279 2005-09-18  Bruno Haible  <bruno@clisp.org>
71280
71281         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71282
71283 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * lib/stat-time.h: New file.
71286         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71287         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71288         in a different way.
71289         (timespec_cmp): New function.
71290         * lib/utimecmp.c: Include stat-time.h.
71291         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71292         members exist, not on the obsolescent ST_MTIM_NSEC.
71293         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71294
71295 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71298
71299 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * MODULES.html.sh (File system functions): Add stat-time.
71302         * modules/stat-time: New file.
71303         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71304         is now done in a different way, by the stat-time module.
71305         * modules/utimecmp (Depends-on): Add stat-time.
71306
71307 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71308
71309         * m4/st_mtim.m4: Remove.  Superseded by...
71310         * m4/stat-time.m4: New file.
71311         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71312         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71313
71314 2005-09-15  Derek Price  <derek@ximbiot.com>
71315
71316         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71317
71318 2005-09-15  Derek Price  <derek@ximbiot.com>
71319
71320         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71321         * lib/regex_internal.c: Ditto, using this...
71322         (__GNUC_PREREQ): ...new macro.
71323         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71324         using...
71325         (__GNUC_PREREQ): ...this new macro.
71326
71327         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71328
71329 2005-09-15  Derek Price  <derek@ximbiot.com>
71330             Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71333         changes, consolidating in...
71334         * lib/regex_internal.h: ...this file.
71335
71336 2005-09-13  Jim Meyering  <jim@meyering.net>
71337
71338         * lib/canon-host.c: Filter through gnu indent and reword comments
71339         slightly.
71340         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71341
71342 2005-09-13  Derek Price  <derek@ximbiot.com>
71343
71344         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71345         failure.
71346         Reported by Jim Meyering  <jim@meyering.net>.
71347
71348 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71349
71350         * lib/base64.c: Typo.
71351         (base64_encode): Put b64str in initialized data section.
71352
71353 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         Merge glibc and coreutils changes into gnulib, plus a few
71356         extra fixes.
71357         * lib/md5.c: Use #error rather than a string.
71358         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71359         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71360         (__attribute__): Define to empty for non recent-GCC.
71361         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71362         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71363         Renamed from their non-__ counterparts, with new macros replacing
71364         them if not _LIBC.  Add __THROW attribute.
71365         (rol): Remove.
71366         (struct md5_ctx): Align buffer if using GCC.
71367         * lib/sha1.h (struct sha1_ctx): Likewise.
71368         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71369         The old name was backwards.
71370         (NOTSWAP): Remove; not used.
71371         (rol): New macro, moved here from md5.h.
71372         (sha1_process_block): Remove a FIXME that doesn't make sense.
71373
71374 2005-09-12  Derek Price  <derek@ximbiot.com>
71375
71376         Return usable errors from canon-host.
71377         * lib/canon-host.h: New file.
71378         * lib/canon-host.c (canon_host): Wrap...
71379         (canon_host_r): ...this new function, which now relies exclusively on
71380         getaddrinfo.
71381         (ch_strerror): New function.
71382         (last_cherror): New global.
71383         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71384         interface.
71385         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71386         void *.
71387         (freeaddrinfo): Free ai->ai_canonname when set.
71388
71389 2005-09-12  Derek Price  <derek@ximbiot.com>
71390
71391         Make canon-host require getaddrinfo.
71392         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71393         AC_LIBSOURCE canon-host.h.  Call...
71394         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71395         gl_GETADDRINFO.
71396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71397
71398 2005-09-12  Derek Price  <derek@ximbiot.com>
71399
71400         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71401         LGPL.
71402         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71403
71404 2005-09-12  Derek Price  <derek@ximbiot.com>
71405
71406         * lib/gai_strerror.c: Include config.h when available.  Include
71407         getaddrinfo.h before other headers to test interface.
71408         Reported by Larry Jones <lawrence.jones@ugs.com>.
71409
71410 2005-09-12  Derek Price  <derek@ximbiot.com>
71411             Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * modules/glob (Files): Add glob-libc.h.
71414
71415 2005-09-12  Derek Price  <derek@ximbiot.com>
71416             Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71419         glob_.h, glob-libc.h.
71420         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71421
71422 2005-09-12  Derek Price  <derek@ximbiot.com>
71423             Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71426         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71427         protecting things that should be done only in gnulib contexts.
71428         * lib/glob_.h: New file, containing only the glob things needed for
71429         gnulib.
71430         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71431         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71432         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71433         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71434         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71435         and to respect the namespace rules better.
71436
71437 2005-09-08  Simon Josefsson  <jas@extundo.com>
71438
71439         * modules/socklen: New file.
71440
71441 2005-09-08  Simon Josefsson  <jas@extundo.com>
71442
71443         * m4/socklen.m4: New file.
71444
71445 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * modules/utimens (Files): Add m4/utimbuf.m4, since
71448         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71449         Reported by Sergey Poznyakoff.
71450
71451 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71454         definitions, since that's the preferred style in glibc.
71455         Fix a minor spacing issue, and update copyright notice to match
71456         glibc's.
71457
71458 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71459
71460         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71461
71462 2005-09-06  Simon Josefsson  <jas@extundo.com>
71463
71464         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71465         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71466
71467 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71470         warning.
71471
71472 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         * config/srclist.txt: Add glibc bug 1302.
71475
71476 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         Change bitset word type from unsigned int to unsigned long int,
71479         as this has better performance on typical 64-bit hosts.
71480         Port bitset code to hosts with unusual word sizes.
71481         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71482         (build_collating_symbol):
71483         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71484         argument is a bitset.  This is merely a style issue, but it makes
71485         it clearer that an entire array is expected.
71486         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71487         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71488         Port to the case where bitset_word is not the same as unsigned int.
71489         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71490         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71491         Likewise.
71492         * lib/regexec.c (check_dst_limits_calc_pos_1,
71493         check_subexp_matching_top):
71494         (build_trtable, group_nodes_into_DFAstates):
71495         Likewise.
71496         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71497         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71498         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71499         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71500         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71501         * lib/regcomp.c (optimize_subexps, lower_subexp):
71502         Work even if bitset_word has holes in its bitwise representation.
71503         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71504         * lib/regexec.c (check_dst_limits_calc_pos_1,
71505         check_subexp_matching_top):
71506         Likewise.
71507         * lib/regex_internal.c (re_string_reconstruct):
71508         Don't assume UCHAR_MAX == 255.
71509         * lib/regex_internal.h (bitset_set_all): Likewise.
71510         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71511         All uses changed.
71512         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71513         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71514         All uses changed.
71515         (BITSET_WORD_MAX): New macro.
71516         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71517         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71518         (bitset_empty, bitset_copy):
71519         Prefer sizeof (bitset) to multiplying it out ourselves.
71520         (bitset_not_merge): Remove; unused.
71521         (bitset_contain): Return bool, not unsigned int with one bit on.
71522         All callers changed.
71523         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71524         alignment than re_node_set; do this by defining a new internal
71525         type struct dests_alloc and using it to allocate memory.
71526
71527 2005-09-05  Bruno Haible  <bruno@clisp.org>
71528
71529         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71530         links.
71531
71532 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71533
71534         * modules/size_max (Makefile.am): Add size_max.h
71535
71536 2005-09-04  Derek Price  <derek@ximbiot.com>
71537
71538         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71539
71540 2005-09-03  Simon Josefsson  <jas@extundo.com>
71541
71542         * gnulib-tool: Fix typo.
71543
71544 2005-09-03  Simon Josefsson  <jas@extundo.com>
71545
71546         * config/srclist.txt: Add glibc bug 1293.
71547
71548 2005-09-03  Derek Price  <derek@ximbiot.com>
71549
71550         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71551         From Larry Jones <lawrence.jones@ugs.com>.
71552
71553 2005-09-02  Simon Josefsson  <jas@extundo.com>
71554
71555         * modules/socklen: New file.
71556
71557 2005-09-02  Simon Josefsson  <jas@extundo.com>
71558
71559         * modules/havelib: New module.
71560
71561         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71562         Use havelib.
71563
71564 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         Check for arithmetic overflow when calculating sizes, to prevent
71567         some buffer-overflow issues.  These patches are conservative, in the
71568         sense that when I couldn't determine whether an overflow was possible,
71569         I inserted a run-time check.
71570         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71571         macros.
71572         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71573         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71574         (re_xnrealloc, re_x2nrealloc): New inline functions.
71575         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71576         parse_bracket_exp):
71577         (build_equiv_class, build_charclass): Check for arithmetic overflow
71578         in size expression calculations.
71579         * lib/regex_internal.c (re_string_realloc_buffers):
71580         (build_wcs_upper_buffer, re_node_set_add_intersect):
71581         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71582         (re_dfa_add_node, register_state): Likewise.
71583         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71584         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71585         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71586         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71587
71588 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71591         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71592
71593 2005-09-02  Bruno Haible  <bruno@clisp.org>
71594
71595         Support for lib vs. lib64 distinction on biarch platforms.
71596         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71597         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71599
71600 2005-09-02  Bruno Haible  <bruno@clisp.org>
71601
71602         * gnulib-tool (import): In the other first-use case, provide defaults
71603         as well.
71604
71605 2005-09-02  Bruno Haible  <bruno@clisp.org>
71606
71607         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71608         patches not yet found in the latest gettext release.
71609
71610 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71613         to avoid a collision with bits/local_lim.h in glibc.
71614         All uses changed.  Problem reported by Dmitry V. Levin in
71615         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71616
71617         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71618         bugs in int versus size_t comparisons.
71619         (re_string_context_at): Fix bug where the code assumed that
71620         Idx is signed.
71621
71622         Use bool where appropriate.
71623         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71624         All callers changed.
71625         (calc_eclosure_iter): Likewise, for ROOT arg.
71626         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71627         (build_charclass_op): Likewise, for NON_MATCH arg.
71628         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71629         (re_string_construct_common): Likewise, for ICASE arg.
71630         * lib/regexec.c (re_search_2_stub, re_search_stub):
71631         Likewise, for RET_LEN arg.
71632         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71633         (set_regs): Likewise, for FL_BACKTRACK arg.
71634         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71635         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71636         (calc_eclosure_iter, parse_bracket_exp):
71637         Use bool for internal variables that are booleans.
71638         * lib/regexec.c (re_search_internal, check_matching,
71639         proceed_next_node):
71640         (set_regs, build_sifted_states, sift_states_bkref):
71641         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71643         (find_collation_sequence_value):
71644         Likewise.
71645         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71646         (re_node_set_compare):
71647         Return bool, not int. All callers changed.
71648         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71649         (build_trtable, check_node_accept): Likewise.
71650         * lib/regex_internal.h: Include stdbool.h.
71651
71652         Fix bugs uncovered when converting to bool.
71653         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71654         failure instead of charging ahead blindly.
71655         * lib/regex_internal.c (register_state): Likewise.
71656         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71657         for freeing internal storage.
71658         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71659         bitset pieces used as boolean, to avoid undefined behavior
71660         on hosts that do int overflow checking.
71661
71662 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * config/srclist.txt: Add glibc bugs 1285-1287.
71665
71666 2005-09-01  Jim Meyering  <jim@meyering.net>
71667
71668         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71669         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71670         Require gl_STAT_MACROS, too.
71671
71672 2005-09-01  Bruno Haible  <bruno@clisp.org>
71673
71674         * gnulib-tool (import): In the first-use case, provide defaults.
71675
71676 2005-09-01  Bruno Haible  <bruno@clisp.org>
71677
71678         * gnulib-tool (func_import): Remove the .tmp files.
71679
71680 2005-09-01  Bruno Haible  <bruno@clisp.org>
71681
71682         * gnulib-tool (func_import): Fix handling of symbolic links.
71683
71684 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71687         old glibc regex code mishandles strings longer than 2**31 bytes.
71688         This patch fixes this when the regex code is used in gnulib
71689         (i.e., outside glibc).
71690
71691         This patch should not affect the use of the regex code inside
71692         glibc.  No doubt this problem also needs to be handled for glibc
71693         as well, but the result will be an incompatible change to the
71694         glibc ABI, and the old ABI will have to be supported too.  That
71695         can be the the subject for another patch.
71696
71697         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71698         governing whether the rest of this patch is active.  By default,
71699         the macro is disabled and the patch has no effect.
71700         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71701         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71702         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71703         (re_match_2, re_set_registers): Use the new types.
71704         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71705         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71706         New macros.
71707         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71708         (re_string_context_at, bin_tree_t, re_dfastate_t):
71709         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71710         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71711         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71712         (re_string_char_size_at, re_string_wchar_at):
71713         (re_string_elem_size_at):
71714         Use the new types and macros to port to 64-bit hosts.
71715         Use unsigned types for internal values, so that the code
71716         mostly works even for arrays larger than SSIZE_MAX.
71717         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71718         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71719         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71720         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71721         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71722         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71723         (calc_inveclosure, parse_dup_op, build_range_exp):
71724         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71725         (fetch_number, create_token_tree, mark_opt_subexp):
71726         Likewise.
71727         * lib/regex_internal.c (re_string_construct_common,
71728         create_ci_newstate):
71729         (create_cd_newstate, re_string_allocate, re_string_construct):
71730         (re_string_realloc_buffers, build_wcs_upper_buffer):
71731         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71732         (re_string_reconstruct, re_string_peek_byte_case):
71733         (re_string_fetch_byte_case, re_string_context_at):
71734         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71735         (re_node_set_init_copy, re_node_set_add_intersect):
71736         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71737         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71738         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71739         (re_acquire_state, re_acquire_state_context, register_state):
71740         Likewise.
71741         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71742         search_cur_bkref_entry):
71743         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71744         (re_search_internal, re_search_2_stub, re_search_stub)
71745         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71746         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71747         (update_cur_sifted_state, check_dst_limits):
71748         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71749         (check_subexp_limits, sift_states_bkref, merge_state_array):
71750         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71751         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71752         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71753         (expand_bkref_cache, check_node_accept_bytes):
71754         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71755         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71756         (acquire_init_state_context, check_halt_node_context):
71757         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71758         (sift_states_backward, clean_state_log_if_needed):
71759         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71760         (find_recover_state, transit_state_sb, transit_state_mb):
71761         (transit_state_bkref, build_trtable, match_ctx_clean):
71762         Likewise.
71763         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71764         to work around an assumption that REG_MISSING is negative.
71765
71766         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71767         (seek_collating_symbol_entry) [defined _LIBC]:
71768         (lookup_collation_sequence_value) [defined _LIBC]:
71769         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71770         Use prototypes rather than old-style function definitions.
71771         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71772         (transit_state_sb) [0]:
71773         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71774
71775         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71776         rm_eo.
71777
71778         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71779         (optimize_subexps, lower_subexp):
71780         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71781         since the signed shift might overflow.  Use 1u<<31 instead.
71782         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71783         Likewise.
71784         * lib/regexec.c (check_dst_limits_calc_pos_1,
71785         check_subexp_matching_top): Likewise.
71786
71787         * lib/regcomp.c (optimize_subexps, lower_subexp):
71788         Use CHAR_BIT rather than 8, for clarity.
71789         * lib/regexec.c (check_dst_limits_calc_pos_1):
71790         (check_subexp_matching_top): Likewise.
71791         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71792         have to worry about portability issues when shifting it left.
71793         Remove no-longer-needed test for table_size > 0.
71794         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71795         in a word, as the resulting behavior is undefined.
71796         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71797         in one case, a <= should have been an <, and in another case the
71798         whole test was missing.
71799         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71800         the standard name CHAR_BIT.
71801         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71802         this is not true on one's complement and signed-magnitude hosts.
71803
71804         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71805         next_last_offset.
71806         (struct re_dfa_t): Remove unused member states_alloc.
71807         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71808
71809 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71810
71811         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71812         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71813         and large-file glibc and in 32-bit large-file Solaris.
71814
71815 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71818         lengths fit in regoff_t; this isn't true if regoff_t is the same
71819         width as size_t.
71820         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71821         (= START + RANGE) instead of RANGE.  This avoids overflow
71822         problems when regoff_t is the same width as size_t.
71823         All callers changed.
71824         (re_search_2_stub): Check for overflow when adding the
71825         sizes of the two strings.
71826         (re_search_stub): Check for overflow when adding START
71827         to RANGE; if it occurs, substitute the extreme value.
71828
71829 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71832
71833 2005-08-31  Jim Meyering  <jim@meyering.net>
71834
71835         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71836         a pointer-to-const.
71837         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71838         (register_state): Likewise.
71839         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71840         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71841         (group_nodes_into_DFAstates): Likewise.
71842
71843 2005-08-31  Jim Meyering  <jim@meyering.net>
71844
71845         * check-module: Add a FIXME comment.
71846
71847 2005-08-31  Eric Blake  <ebb9@byu.net>
71848
71849         * modules/unistd-safer (Files): Add unistd--.h.
71850         * modules/stdio-safer (Files): Add stdio--.h.
71851
71852 2005-08-31  Derek Price  <derek@ximbiot.com>
71853
71854         * lib/getdelim.c (getdelim): Return EOF on EOF.
71855         Reported by Larry Jones <lawrence.jones@ugs.com>.
71856
71857 2005-08-31  Bruno Haible  <bruno@clisp.org>
71858
71859         Avoid unnecessary diffs in the generated lib/Makefile.am.
71860         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71861         the generated files.
71862         (func_import): Don't set cmd.
71863
71864 2005-08-31  Bruno Haible  <bruno@clisp.org>
71865
71866         * lib/strstr.c: Include <stddef.h>, for NULL.
71867         * lib/strcasestr.c: Likewise.
71868         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71869
71870 2005-08-31  Bruno Haible  <bruno@clisp.org>
71871
71872         * gnulib-tool: New option --macro-prefix.
71873         (func_import): Use macro_prefix.
71874         (import): Handle option --macro-prefix.
71875
71876 2005-08-31  Bruno Haible  <bruno@clisp.org>
71877
71878         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71879         Also use new variables cached_lgpl, cached_libtool.
71880
71881 2005-08-31  Bruno Haible  <bruno@clisp.org>
71882
71883         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71884         always instantiating them.
71885
71886 2005-08-31  Bruno Haible  <bruno@clisp.org>
71887
71888         * gnulib-tool (func_import): Read the previous cached settings
71889         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71890         earlier added by gnulib but are now dropped. Warn when a gnulib file
71891         overwrites a non-gnulib file.
71892
71893 2005-08-31  Bruno Haible  <bruno@clisp.org>
71894
71895         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71896         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71897         projects that don't keep autogenerated files in CVS. Put into
71898         actioncmd only the specified modules, not the transitive closure.
71899
71900 2005-08-31  Bruno Haible  <bruno@clisp.org>
71901
71902         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71903         Create directories that shall be filled.
71904         (import): Don't look for gl_* macros in configure.ac. Recurse across
71905         all directories containing a gnulib-cache.m4 files, if meaningful.
71906
71907 2005-08-31  Bruno Haible  <bruno@clisp.org>
71908
71909         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71910         (import): Set seen_libtool when we see gl_LIBTOOL.
71911
71912 2005-08-31  Bruno Haible  <bruno@clisp.org>
71913
71914         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71915         declaration macro definitions from generated gnulib.m4.
71916
71917 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71918
71919         * lib/iconvme.h: Add prototype for iconv_alloc.
71920
71921 2005-08-29  Simon Josefsson  <jas@extundo.com>
71922
71923         * lib/iconvme.c: Fix errno.
71924
71925 2005-08-29  Bruno Haible  <bruno@clisp.org>
71926
71927         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71928         that it works when the directory contains spaces.
71929
71930 2005-08-29  Bruno Haible  <bruno@clisp.org>
71931
71932         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71933
71934 2005-08-29  Bruno Haible  <bruno@clisp.org>
71935
71936         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71937         Emit more advice.
71938
71939 2005-08-29  Bruno Haible  <bruno@clisp.org>
71940         and Stepan Kasal  <kasal@ucw.cz>
71941
71942         * check-module: If more parameters are given, check each of them
71943         separately; add more exceptions, as noted by Jim Meyering.
71944         (check_module): New procedure.
71945         (%exempt_header): Now contains all exceptions.
71946
71947 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71948
71949         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71950
71951 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71952
71953         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71954
71955 2005-08-28  Bruno Haible  <bruno@clisp.org>
71956
71957         * m4/gnulib-tool.m4: New file.
71958
71959 2005-08-27  Jim Meyering  <jim@meyering.net>
71960
71961         * modules/unistd-safer (Files): Add pipe-safer.c.
71962         * modules/fcntl-safer (Files): Add creat-safer.c.
71963
71964 2005-08-27  Jim Meyering  <jim@meyering.net>
71965
71966         * m4/stdlib-safer.m4: New file.  From coreutils.
71967         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71968         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71969         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71970         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71971         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71972
71973 2005-08-27  Jim Meyering  <jim@meyering.net>
71974
71975         * lib/fopen-safer.c: Merge minor changes from coreutils.
71976         * lib/dup-safer.c: Likewise.
71977         * lib/fd-safer.c: Likewise.
71978
71979         Merge from coreutils.
71980         * lib/stdio--.h: New file.
71981         * lib/stdlib--.h: New file.
71982         * lib/mkstemp-safer.c: New file.
71983
71984         GNU tar needs these.
71985         * lib/pipe-safer.c: New file.
71986         * lib/creat-safer.c: New file.
71987         * lib/fcntl--.h (creat): Define to creat_safer.
71988         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71989         * lib/unistd--.h (pipe): Define to pipe_safer.
71990         * lib/unistd-safer.h: Declare pipe_safer.
71991
71992 2005-08-26  Simon Josefsson  <jas@extundo.com>
71993
71994         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71995         Haible <bruno@clisp.org>.
71996
71997 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * lib/regex_internal.h: Remove all references to
72000         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72001         or better.
72002         (bitset_not, bitset_merge, bitset_not_merge):
72003         (bitset_mask, re_string_allocate, re_string_construct):
72004         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72005         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72006         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72007         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72008         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72009         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72010         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72011         (re_acquire_state_context):
72012         Remove unnecessary forward decls.
72013         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72014         Put __attribute at function definition,
72015         now that the function decl has been removed.
72016         * lib/regex_internal.c (re_string_peek_byte_case):
72017         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72018         Likewise.
72019
72020 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72021
72022         * m4/regex.m4: Add AC_PREREQ(2.50).
72023         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72024
72025 2005-08-25  Simon Josefsson  <jas@extundo.com>
72026
72027         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72028         __fsetlocking.
72029
72030 2005-08-25  Simon Josefsson  <jas@extundo.com>
72031
72032         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72033         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72034         GLIBC specific code.
72035
72036 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         Make regex safe for g++.  This fixes one real bug (an "err"
72039         that should have been "*err").  g++ problem reported by
72040         Sam Steingold.
72041         * lib/regex_internal.h (re_calloc): New macro, consistent with
72042         re_malloc etc.  All callers of calloc changed to use re_calloc.
72043         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72044         not int.  All callers changed.
72045         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72046         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72047         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72048         (find_recover_state): Change "err" to "*err"; this fixes what
72049         appears to be a real bug.
72050         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72051         versus int.
72052
72053 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         * modules/regex (Depends-on): Add malloc, since the code
72056         assumes that !malloc(0) means failure.
72057
72058 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72061
72062         alloca modernization/simplification for regex.
72063         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72064         needs to be at the start of the file, and can be moved into
72065         regex_internal.h and simplified.
72066         * lib/regex_internal.h: Include <alloca.h>.
72067         (__libc_use_alloca) [!defined _LIBC]: New macro.
72068         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72069         now works outside glibc.
72070
72071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * config/srclist.txt: Add glibc bugs 1241, 1245.
72074
72075 2005-08-25  Jim Meyering  <jim@meyering.net>
72076
72077         * lib/open-safer.c: Include <config.h>.
72078         Otherwise, we'd lose LARGEFILE support in any file using
72079         e.g. "fcntl--.h"
72080
72081 2005-08-25  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/minmax.m4: Require autoconf 2.52.
72084         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72085         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72086         alternatives of translit over the alphabet.
72087         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72088
72089 2005-08-24  Simon Josefsson  <jas@extundo.com>
72090
72091         * tests/test-getpass.c: New file.
72092
72093 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72096         for GNU regex features.
72097
72098 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72101         * lib/regex.h (regerror): Likewise.
72102
72103         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72104         requires this.  (The code never needed it.)
72105
72106         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72107         All uses of recently-renamed identifiers changed to use the new,
72108         POSIX-compliant names.  The code will build and run just fine
72109         without these changes, but it's better to eat our own dog food
72110         and use the standard-conforming names.
72111
72112         * lib/regex.h: Fix a multitude of POSIX name space violations.
72113         These changes have an effect only for programs that define
72114         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72115         do not change anything for programs compiled in the normal way.
72116         Also, there is no effect on the ABI.
72117
72118         (_REGEX_SOURCE): New macro.
72119         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72120         defined and _GNU_SOURCE is not; this fixes a name space violation.
72121
72122         Rename the following macros to obey POSIX requirements.
72123         The old names are still visible as macros if _REGEX_SOURCE is defined.
72124         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72125         RE_BACKSLASH_ESCAPE_IN_LISTS.
72126         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72127         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72128         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72129         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72130         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72131         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72132         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72133         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72134         (REG_INTERVALS): renamed from RE_INTERVALS.
72135         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72136         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72137         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72138         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72139         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72140         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72141         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72142         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72143         RE_UNMATCHED_RIGHT_PAREN_ORD.
72144         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72145         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72146         (REG_DEBUG): renamed from RE_DEBUG.
72147         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72148         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72149         unusual, since we can't clash with the POSIX REG_ICASE.
72150         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72151         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72152         (REG_NO_SUB): renamed from RE_NO_SUB.
72153         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72154         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72155         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72156         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72157         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72158         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72159         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72160         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72161         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72162         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72163         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72164         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72165         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72166         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72167         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72168         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72169         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72170         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72171         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72172         (REG_FIXED): Renamed from REGS_FIXED.
72173         (REG_NREGS): Renamed from RE_NREGS.
72174
72175         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72176         of other REG_* macros, since POSIX says the user is allowed to
72177         #undef these macros selectively.
72178
72179         (reg_errcode_t): Update comment stating what other tables need
72180         to be consistent.
72181
72182         Rename the following enum values to obey POSIX requirements.
72183         The old names are still visible as macros.
72184         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72185         is not defined, since GNU is supposed to be a superset of POSIX as
72186         much as possible, and since we want reg_errcode_t to be a signed
72187         type for implementation consistency.
72188         (_REG_NOERROR): Renamed from REG_NOERROR.
72189         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72190         (_REG_BADPAT): Renamed from REG_BADPAT.
72191         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72192         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72193         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72194         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72195         (_REG_EBRACK): Renamed from REG_EBRACK.
72196         (_REG_EPAREN): Renamed from REG_EPAREN.
72197         (_REG_EBRACE): Renamed from REG_EBRACE.
72198         (_REG_BADBR): Renamed from REG_BADBR.
72199         (_REG_ERANGE): Renamed from REG_ERANGE.
72200         (_REG_ESPACE): Renamed from REG_ESPACE.
72201         (_REG_BADRPT): Renamed from REG_BADRPT.
72202         (_REG_EEND): Renamed from REG_EEND.
72203         (_REG_ESIZE): Renamed from REG_ESIZE.
72204         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72205         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72206         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72207         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72208         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72209
72210         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72211         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72212         changed.  But support the old name if the new one is not defined
72213         and if _REGEX_SOURCE.
72214
72215         Change the following member names in struct re_pattern_buffer.
72216         The old names are still supported if !_REGEX_SOURCE.
72217         The new names are always supported, regardless of _REGEX_SOURCE.
72218         (re_buffer): Renamed from buffer.
72219         (re_allocated): Renamed from allocated.
72220         (re_used): Renamed from used.
72221         (re_syntax): Renamed from syntax.
72222         (re_fastmap): Renamed from fastmap.
72223         (re_translate): Renamed from translate.
72224         (re_can_be_null): Renamed from can_be_null.
72225         (re_regs_allocated): Renamed from regs_allocated.
72226         (re_fastmap_accurate): Renamed from fastmap_accurate.
72227         (re_no_sub): Renamed from no_sub.
72228         (re_not_bol): Renamed from not_bol.
72229         (re_not_eol): Renamed from not_eol.
72230         (re_newline_anchor): Renamed from newline_anchor.
72231
72232         Change the following member names in struct re_registers.
72233         The old names are still supported if !_REGEX_SOURCE.
72234         The new names are always supported, regardless of _REGEX_SOURCE.
72235         (rm_num_regs): Renamed from num_regs.
72236         (rm_start): Renamed from start.
72237         (rm_end): Renamed from end.
72238
72239         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72240         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72241         Prepend __ to parameter names.
72242
72243         Undo yesterday's changes.
72244
72245 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72248         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72249         lib/regex.c.
72250
72251 2005-08-24  Jim Meyering  <jim@meyering.net>
72252
72253         Sync from coreutils.
72254         * m4/fcntl-safer.m4: New file.
72255
72256         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72257         and object files for this module.
72258
72259 2005-08-24  Jim Meyering  <jim@meyering.net>
72260
72261         Sync from coreutils.
72262         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72263
72264 2005-08-24  Jim Meyering  <jim@meyering.net>
72265
72266         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72267         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72268
72269 2005-08-24  Jim Meyering  <jim@meyering.net>
72270
72271         * modules/fcntl-safer: New module.
72272         * modules/fts (Depends-on): Add fcntl-safer.
72273         * MODULES.html.sh (File descriptor based Input/Output):
72274         Add fcntl-safer.
72275
72276 2005-08-24  Bruno Haible  <bruno@clisp.org>
72277
72278         Support for unit test modules.
72279         * modules/README: Mention tests modules.
72280         * modules/TEMPLATE-TESTS: New file.
72281         * gnulib-tool: New options --extract-tests-module, --with-tests and
72282         --tests-base (unused for the moment).
72283         (testsbase, inctests): New variables.
72284         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72285         (func_verify_module): Exclude TEMPLATE-TESTS.
72286         (func_verify_nontests_module, func_verify_tests_module): New functions.
72287         (func_get_dependencies): Add implicit dependency for tests modules.
72288         (func_get_tests_module): New function.
72289         (func_modules_transitive_closure): When --with-tests was specified,
72290         include the unit tests as well, unless explicitly avoided.
72291         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72292         (func_emit_tests_Makefile_am): New function.
72293         (func_create_testdir): When --with-tests was specified, emit a
72294         tests/ directory.
72295         * MODULES.html.sh (Future developments): Update.
72296
72297 2005-08-24  Bruno Haible  <bruno@clisp.org>
72298
72299         * modules/tls-tests: New file.
72300         * tests/test-tls.c: New file, from GNU gettext.
72301
72302 2005-08-24  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/lock-tests: New file.
72305         * tests/test-lock.c: New file, from GNU gettext.
72306
72307 2005-08-24  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/lock.h: Add multiple inclusion guard.
72310         * lib/tls.h: Add multiple inclusion guard.
72311
72312 2005-08-24  Bruno Haible  <bruno@clisp.org>
72313
72314         * gnulib-tool: Add support for the --aux-dir option to
72315         --create-testdir, --create-megatestdir, --test, --megatest.
72316         (func_create_testdir, func_create_megatestdir): Optionally emit a
72317         AC_CONFIG_AUX_DIR directive.
72318         (create-testdir, create-megatestdir, test, megatest): Provide a
72319         default value for $auxdir.
72320
72321 2005-08-24  Bruno Haible  <bruno@clisp.org>
72322
72323         * gnulib-tool (import): Use compound statement instead of subshell
72324         where possible.
72325
72326 2005-08-24  Bruno Haible  <bruno@clisp.org>
72327
72328         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72329
72330 2005-08-24  Bruno Haible  <bruno@clisp.org>
72331
72332         * gnulib-tool (func_version): Update.
72333
72334 2005-08-24  Bruno Haible  <bruno@clisp.org>
72335
72336         * gnulib-tool (func_import, func_create_testdir,
72337         func_create_megatestdir): Quote all autoconf macro arguments.
72338
72339 2005-08-24  Bruno Haible  <bruno@clisp.org>
72340
72341         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72342         option --force, because --force causes the aclocal.m4 of each
72343         subdirectory to be newer than the corresponding config.h.in.
72344
72345 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72346
72347         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72348         All contents moved to gl_REGEX.
72349         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72350         assume that it does.
72351
72352 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * lib/regex.h (REG_NOSYS)
72355         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72356         Define, since POSIX requires it as of 2001.
72357         (_REG_ENOSYS)
72358         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72359         New private symbol, used to keep the enum signed in all cases.
72360         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72361         Youngman in
72362         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72363
72364         * lib/regex_internal.c (re_string_skip_chars, register_state):
72365         (calc_state_hash):
72366         Remove forward decls; no longer needed now that we use prototypes.
72367         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72368         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72369         (clean_state_log_if_needed): Likewise.
72370
72371 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * config/srclist.txt: Add glibc bugs 1231-1233.
72374
72375 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         Fix problems reported by Sam Steingold in
72378         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72379         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72380         assumed that reg_errcode_t is a signed type, which is not
72381         necessarily true if _XOPEN_SOURCE is not defined.
72382         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72383         since some compilers warn about it otherwise.
72384
72385 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72388         (init_word_char, create_initial_state, duplicate_node_closure):
72389         (fetch_token, peek_token_bracket, build_range_exp):
72390         (build_collating_symbol): Remove forward decls; no longer needed
72391         now that we use prototypes.
72392
72393         * lib/regcomp.c:
72394         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72395         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72396         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72397         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72398         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72399         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72400         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72401         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72402         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72403         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72404         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72405         (build_charclass, build_charclass_op, fetch_number, create_tree):
72406         (create_token_tree, mark_opt_subexp, duplicate_tree):
72407         Use prototypes rather than old-style definitions.
72408
72409         * lib/regex_internal.c:
72410         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72411         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72412         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72413         (re_string_reconstruct, re_string_peek_byte_case):
72414         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72415         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72416         (re_node_set_init_copy, re_node_set_add_intersect):
72417         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72418         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72419         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72420         (re_acquire_state, re_acquire_state_context, register_state):
72421         (create_ci_newstate, create_cd_newstate, free_state):
72422         Likewise.
72423         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72424         re_search_2):
72425         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72426         (re_search_internal, prune_impossible_nodes):
72427         (acquire_init_state_context, check_matching, static):
72428         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72429         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72430         (update_regs, sift_states_backward, build_sifted_states):
72431         (clean_state_log_if_needed, merge_state_array):
72432         (update_cur_sifted_state, add_epsilon_src_nodes):
72433         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72434         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72435         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72436         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72437         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72438         (check_arrival, check_arrival_add_next_nodes):
72439         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72440         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72441         (check_node_accept_bytes, check_node_accept, extend_buffers):
72442         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72443         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72444         (sift_ctx_init):
72445         Likewise.
72446
72447         * lib/regex_internal.h:
72448         (re_string_allocate, re_string_construct, re_string_reconstruct):
72449         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72450         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72451         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72452         (re_string_context_at, re_string_peek_byte_case):
72453         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72454         is defined, since we now use prototypes always.
72455
72456         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72457         C89 or better.  All uses removed.
72458
72459 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * config/srclist.txt: Add glibc bugs 1220-1227.
72462
72463 2005-08-20  Jim Meyering  <jim@meyering.net>
72464
72465         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72466         of unused local, dfa.
72467
72468 2005-08-20  Bruno Haible  <bruno@clisp.org>
72469
72470         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72471
72472 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72475         (re_node_set_insert_last, re_dfa_add_node):
72476         Rename local variables to avoid GCC shadowing warnings.
72477
72478 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72481         [defined lint]: Suppress bogus uninitialized-variable warnings.
72482
72483         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72484         and let the caller return REG_ESPACE if out of space.  This
72485         removes an uninitialied-variable warning with GCC 4.0.1, and also
72486         avoids taking the address of a local variable.  All callers
72487         changed.
72488
72489 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72492         $LIBCSRC/posix/regexec.c.
72493         Add glibc bug 1217 for regcomp.c.
72494
72495 2005-08-19  Jim Meyering  <jim@meyering.net>
72496
72497         * lib/regexec.c (proceed_next_node): Redo local variables to
72498         avoid GCC shadowing warnings.
72499
72500 2005-08-18  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/strstr.c (strstr): Fix return value in multibyte case.
72503         * lib/strcasestr.c (strcasestr): Likewise.
72504
72505 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72508
72509 2005-08-17  Jim Meyering  <jim@meyering.net>
72510
72511         Make the %s format (seconds since the epoch) work for a negative
72512         number and when used with a zero-padded field width, e.g. %015s.
72513
72514         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72515         label so that it precedes the code to set `digits'.  Otherwise,
72516         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72517         print `00-22'.  Now, it prints `-0022', as it should.
72518
72519 2005-08-17  Bruno Haible  <bruno@clisp.org>
72520
72521         * modules/strstr (Files): Add m4/mbrtowc.m4.
72522         (Depends-on): Add mbuiter.
72523
72524 2005-08-17  Bruno Haible  <bruno@clisp.org>
72525
72526         * modules/strcasestr: New file.
72527         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72528         strcasestr.
72529
72530 2005-08-17  Bruno Haible  <bruno@clisp.org>
72531
72532         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72533
72534 2005-08-17  Bruno Haible  <bruno@clisp.org>
72535
72536         * modules/mbuiter: New file.
72537         * MODULES.html.sh (Extended multibyte and wide character utilities):
72538         Add mbuiter.
72539
72540 2005-08-17  Bruno Haible  <bruno@clisp.org>
72541
72542         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72543         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72544
72545 2005-08-17  Bruno Haible  <bruno@clisp.org>
72546
72547         * m4/strcasestr.m4: New file.
72548
72549 2005-08-17  Bruno Haible  <bruno@clisp.org>
72550
72551         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72552         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72553
72554 2005-08-17  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/strcasestr.h: New file.
72557         * lib/strcasestr.c: New file.
72558
72559 2005-08-17  Bruno Haible  <bruno@clisp.org>
72560
72561         * lib/strcasecmp.c: Use mbuiter.h.
72562
72563 2005-08-17  Bruno Haible  <bruno@clisp.org>
72564
72565         * lib/mbuiter.h: New file.
72566
72567 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72570         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72571         and gl_GETOPT are both invoked via different paths (as happens
72572         with GNU tar CVS because it uses both argp and getopt), the former
72573         wins.
72574
72575 2005-08-16  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/tls: New file.
72578         * MODULES.html.sh (Multithreading): Add tls.
72579
72580 2005-08-16  Bruno Haible  <bruno@clisp.org>
72581
72582         * modules/strnlen1: New file.
72583         * MODULES.html.sh (String handling): Add strnlen1.
72584
72585 2005-08-16  Bruno Haible  <bruno@clisp.org>
72586
72587         * modules/strcase (Files): Add m4/mbrtowc.m4.
72588         (Depends-on): Add strnlen1, mbchar.
72589
72590 2005-08-16  Bruno Haible  <bruno@clisp.org>
72591
72592         * modules/mbiter: New file.
72593         * MODULES.html.sh (Extended multibyte and wide character utilities):
72594         Add mbiter.
72595
72596 2005-08-16  Bruno Haible  <bruno@clisp.org>
72597
72598         * modules/mbfile: New file.
72599         * MODULES.html.sh (Extended multibyte and wide character utilities):
72600         Add mbfile.
72601
72602 2005-08-16  Bruno Haible  <bruno@clisp.org>
72603
72604         * modules/mbchar: New file.
72605         * MODULES.html.sh (Extended multibyte and wide character utilities):
72606         New section.
72607
72608 2005-08-16  Bruno Haible  <bruno@clisp.org>
72609
72610         * m4/tls.m4: New file, from GNU gettext.
72611
72612 2005-08-16  Bruno Haible  <bruno@clisp.org>
72613
72614         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72615         always.
72616         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72617
72618 2005-08-16  Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/mbiter.m4: New file.
72621
72622 2005-08-16  Bruno Haible  <bruno@clisp.org>
72623
72624         * m4/mbfile.m4: New file.
72625
72626 2005-08-16  Bruno Haible  <bruno@clisp.org>
72627
72628         * m4/mbchar.m4: New file.
72629
72630 2005-08-16  Bruno Haible  <bruno@clisp.org>
72631
72632         * lib/tls.h: New file, from GNU gettext.
72633         * lib/tls.c: New file, from GNU gettext.
72634
72635 2005-08-16  Bruno Haible  <bruno@clisp.org>
72636
72637         * lib/strnlen1.h: New file.
72638         * lib/strnlen1.c: New file.
72639
72640 2005-08-16  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72643         (mbi_init): Update.
72644         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72645         NUL byte, not after it.
72646
72647 2005-08-16  Bruno Haible  <bruno@clisp.org>
72648
72649         * lib/strcase.h (strcasecmp): Add note in comments.
72650         * lib/strncasecmp.c: Use code from strcasecmp.c.
72651         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72652         (strcasecmp): Work correctly in multibyte locales.
72653
72654 2005-08-16  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/mbiter.h: New file.
72657
72658 2005-08-16  Bruno Haible  <bruno@clisp.org>
72659
72660         * lib/mbfile.h: New file.
72661
72662 2005-08-16  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/mbchar.h: New file.
72665         * lib/mbchar.c: New file.
72666
72667 2005-08-16  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72670         the valid ones. Makes the comparison operations transitive:
72671         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72672         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72673
72674 2005-08-15  Simon Josefsson  <jas@extundo.com>
72675
72676         * modules/ssize_t (License): Change to 'unlimited'.
72677
72678         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72679
72680 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72683         Add comments for each pending glibc patch.
72684
72685 2005-08-15  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72688         __cplusplus is defined.
72689
72690 2005-08-14  Jim Meyering  <jim@meyering.net>
72691
72692         Sync from coreutils.
72693
72694         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72695         Use the hash-table-based cycle-detection code not just when
72696         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72697         Reported by James Youngman in
72698         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72699         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72700         FTS_TIGHT_CYCLE_CHECK.
72701         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72702         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72703         once again.
72704         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72705         * lib/fts.c (fd_safer): Remove decl.
72706         Include fcntl--.h rather than unistd-safer.h
72707         (fts_safe_changedir): Don't call fd_safer; no longer needed
72708         now that we include fcntl--.h.
72709
72710 2005-08-12  Simon Josefsson  <jas@extundo.com>
72711
72712         * modules/getndelim2: Use ssize_t module.
72713         * modules/getnline: Likewise.
72714         * modules/safe-read: Likewise.
72715         * modules/xreadlink: Likewise.
72716
72717         * modules/ssize_t: New file.
72718
72719 2005-08-12  Simon Josefsson  <jas@extundo.com>
72720
72721         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72722
72723 2005-08-12  Simon Josefsson  <jas@extundo.com>
72724
72725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72726         ssize_t.
72727
72728 2005-08-12  Simon Josefsson  <jas@extundo.com>
72729
72730         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72731         readline, getdelim and check_version.
72732         (Support for systems lacking ISO C 99: Sizes of integer types):
72733         Add size_max.
72734
72735 2005-08-12  Bruno Haible  <bruno@clisp.org>
72736
72737         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72738
72739 2005-08-11  Simon Josefsson  <jas@extundo.com>
72740
72741         * modules/readline: New file.
72742
72743         * modules/strnlen (Files): Add strnlen.h.
72744
72745 2005-08-11  Simon Josefsson  <jas@extundo.com>
72746
72747         * m4/readline.m4: New file.
72748
72749 2005-08-11  Simon Josefsson  <jas@extundo.com>
72750
72751         * lib/readline.h, readline.c: New file.
72752
72753 2005-08-11  Simon Josefsson  <jas@extundo.com>
72754
72755         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72756         gl_AVOID.
72757
72758 2005-08-11  Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72761
72762 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72763
72764         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72765
72766 2005-08-10  Simon Josefsson  <jas@extundo.com>
72767
72768         * tests/test-iconvme.c: New file.
72769
72770 2005-08-10  Simon Josefsson  <jas@extundo.com>
72771
72772         * m4/strnlen.m4: New file.
72773
72774         * m4/strndup.m4: Don't check for strnlen declaration, done in
72775         strnlen.m4.
72776
72777 2005-08-10  Simon Josefsson  <jas@extundo.com>
72778
72779         * lib/strndup.c: Use strnlen.h.
72780
72781         * lib/strnlen.h: New file.
72782
72783 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72784
72785         * README: Typos.
72786
72787 2005-08-02  Simon Josefsson  <jas@extundo.com>
72788
72789         * modules/readline: New file.
72790
72791 2005-08-02  Simon Josefsson  <jas@extundo.com>
72792
72793         * modules/getdelim: New file.
72794
72795         * modules/getline: Rewrite, don't use getndelim2.
72796
72797 2005-08-02  Simon Josefsson  <jas@extundo.com>
72798
72799         * m4/getline.m4: Separate out getdelim stuff into separate module.
72800
72801         * m4/getdelim.m4: New file.
72802
72803 2005-08-02  Simon Josefsson  <jas@extundo.com>
72804
72805         * lib/getline.h, getline.c: Rewrite.
72806
72807         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72808
72809 2005-07-31  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/lock.h (gl_lock_initializer): New macro.
72812         (gl_lock_define_initialized): Use it.
72813         (gl_rwlock_initializer): New macro.
72814         (gl_rwlock_define_initialized): Use it.
72815         (gl_recursive_lock_initializer): New macro.
72816         (gl_recursive_lock_define_initialized): Use it.
72817
72818 2005-07-30  Karl Berry  <karl@gnu.org>
72819
72820         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72821         Report from Ben Pfaff, regarding getopt.
72822
72823 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72826         normal way.
72827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72828         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72829         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72830         (gl_GETOPT): Use the new macros.  Most of the implementation
72831         is moved to the new macros.  This is for programs like Emacs
72832         that don't want all the functionality of gl_GETOPT.
72833
72834 2005-07-26  Bruno Haible  <bruno@clisp.org>
72835
72836         * m4/lock.m4: Update from GNU gettext.
72837
72838 2005-07-26  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/lock.h: Update from GNU gettext.
72841         * lib/lock.c: Update from GNU gettext.
72842
72843 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72846         obsolescent AC_TRY_RUN.  Include the default includes files, for
72847         'exit'.
72848
72849 2005-07-24  Bruno Haible  <bruno@clisp.org>
72850
72851         * modules/visibility: New file.
72852         * MODULES.html.sh (Misc): Add visibility.
72853
72854 2005-07-24  Bruno Haible  <bruno@clisp.org>
72855
72856         * m4/visibility.m4: New file.
72857
72858 2005-07-24  Bruno Haible  <bruno@clisp.org>
72859
72860         * doc/visibility.texi: New file.
72861
72862 2005-07-22  Bruno Haible  <bruno@clisp.org>
72863
72864         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72865         $(ALLOCA_H), redundant through BUILT_SOURCES.
72866         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72867         redundant through BUILT_SOURCES.
72868         * modules/byteswap (Makefile.am): Remove explicit dependency on
72869         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72870         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72871         $(FNMATCH_H), redundant through BUILT_SOURCES.
72872         * modules/getopt (Makefile.am): Remove explicit dependency on
72873         $(GETOPT_H), redundant through BUILT_SOURCES.
72874         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72875         redundant through BUILT_SOURCES.
72876         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72877         redundant through BUILT_SOURCES.
72878         * modules/stdbool (Makefile.am): Remove explicit dependency on
72879         $(STDBOOL_H), redundant through BUILT_SOURCES.
72880         * modules/stdint (Makefile.am): Remove explicit dependency on
72881         $(STDINT_H), redundant through BUILT_SOURCES.
72882         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72883         Remove explicit dependency on $(SYSEXITS_H).
72884         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72885
72886 2005-07-18  Simon Josefsson  <jas@extundo.com>
72887
72888         * lib/check-version.c (check_version): Accept identical versions too.
72889
72890 2005-07-18  Bruno Haible  <bruno@clisp.org>
72891
72892         * modules/lock: New file.
72893         * MODULES.html.sh (Multithreading): New section.
72894
72895 2005-07-18  Bruno Haible  <bruno@clisp.org>
72896
72897         * m4/lock.m4: New file, from GNU gettext.
72898
72899 2005-07-18  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/lock.h: New file, from GNU gettext.
72902         * lib/lock.c: New file, from GNU gettext.
72903
72904 2005-07-18  Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/lock.h (gl_once_t): New type.
72907         (gl_once_define, gl_once): New macros.
72908         * lib/lock.c (fresh_once): New variable.
72909         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72910         functions.
72911
72912 2005-07-16  Simon Josefsson  <jas@extundo.com>
72913
72914         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72915         workaround, suggested by Bruno.
72916
72917 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72918
72919         * modules/xalloc (Depends-on): Add xalloc-die.
72920         * modules/xvasprintf (Depends-on): Add xalloc-die.
72921
72922 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72923
72924         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72925         with a minor change.
72926
72927 2005-07-15  Bruno Haible  <bruno@clisp.org>
72928
72929         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72930         When using lib/poll.c, define poll as rpl_poll.
72931
72932 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72933
72934         * modules/argp (Depends-on): Remove unlocked-io.
72935
72936 2005-07-14  Derek Price  <derek@ximbiot.com>
72937
72938         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72939         for glob symlink bug.
72940
72941 2005-07-14  Bruno Haible  <bruno@clisp.org>
72942
72943         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72944         Instead, test for *_unlocked function declarations directly.
72945
72946 2005-07-11  Simon Josefsson  <jas@extundo.com>
72947
72948         * modules/size_max: New file.
72949
72950         * modules/xsize: Depend on size_max module for size_max.m4.
72951
72952 2005-07-11  Simon Josefsson  <jas@extundo.com>
72953
72954         * lib/size_max.h: New file.
72955
72956 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72959         copyright symbol and the year.
72960         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72961         (version_etc_va): Use parameterized copyright notice.
72962         Reword to conform to the current GNU coding standards.
72963
72964 2005-07-11  Karl Berry  <karl@gnu.org>
72965
72966         * doc/gnulib.texi (Quoting): new node.
72967         (Initial import): more info, from Patrice.
72968
72969 2005-07-11  Bruno Haible  <bruno@clisp.org>
72970
72971         * gnulib-tool (func_usage): Document option --avoid.
72972         (Command line options): Handle --avoid.
72973         (func_acceptable): New function.
72974         (func_modules_transitive_closure): Use it.
72975
72976 2005-07-11  Bruno Haible  <bruno@clisp.org>
72977
72978         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72979         Reported by Jim Meyering.
72980
72981 2005-07-10  Bruno Haible  <bruno@clisp.org>
72982
72983         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72984         Needed when size_t is smaller than 'unsigned int'.
72985         Reported by Paul Eggert.
72986
72987 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72988
72989         * modules/argp (Depends-on): Add unlocked-io
72990
72991 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72992
72993         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72994         block of defines.
72995
72996 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72999         fix now.
73000
73001 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73002         and Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73005         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73006
73007 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * modules/regex (Files): Add lib/regex_internal.c,
73010         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73011         (Depends-on): Add extensions.
73012         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73013
73014 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73017         pathconf.
73018         * m4/same.m4 (gl_SAME): Likewise.
73019         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73020
73021         * m4/regex.m4: Adjust to new libc regex implementation.
73022         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73023         all the .c and .h parts of (the new) regex.
73024         Quote the m4 stuff better.
73025         Check for RE_ICASE bug of old gnulib.
73026         Check for REG_STARTEND of recent libc.
73027         Rename local variables from jm_* to gl_*.
73028         Quote operand of "test -f".
73029         Say "recent enough" version of libc, not "version 2".
73030         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73031         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73032         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73033         Remove check for btowc, isascii.
73034         Require AM_LANGINFO_CODESET.
73035
73036 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/regex.c, regex.h: Sync from libc.
73039         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73040         * lib/regexec.c:
73041         New files, synced from libc, except that regex_internal.h
73042         currently has a small porting fix.
73043
73044 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73047         regex_internal.c, regexec.c.
73048         Add regex_internal.h too, but as a comment, since the libc version
73049         is currently broken in gnulib mode.
73050
73051 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         Support programs like Emacs that use gnulib but not gettext.
73054         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73055         * modules/gettext-h: New file.
73056         * modules/gettext (Files): Remove lib/gettext.h.
73057         (Depends-on): Add gettext-h.
73058         (Makefile.am): Remove lib_SOURCES.
73059         * modules/argmatch, modules/c-stack, modules/closeout:
73060         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73061         * modules/execute, modules/file-type, modules/getaddrinfo:
73062         * modules/getopt, modules/human, modules/javacomp:
73063         * modules/javaexec, modules/mkdir-p, modules/obstack:
73064         * modules/openat, modules/pagealign_alloc, modules/pipe:
73065         * modules/quotearg, modules/regex, modules/rpmatch:
73066         * modules/unicodeio, modules/userspec, modules/version-etc:
73067         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73068         * modules/xsetenv:
73069         Depend on gettext-h, not gettext.
73070
73071 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * gnulib-tool (func_import): Add support for 'public domain' license.
73074         * modules/alloca, modules/atexit, modules/memmove:
73075         Now public domain, not GPL.
73076         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73077         * modules/realloc, modules/strerror, modules/strtod:
73078         Now LGPL, not GPL.
73079
73080 2005-07-05  Bruno Haible  <bruno@clisp.org>
73081
73082         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73083         autoconf CVS. Needed for mingw.
73084
73085 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         Remove the dependency of the strftime module on the tzset module.
73088         * modules/strftime (Depends-on): Remove dependency on tzset.
73089
73090 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         Remove the dependency of the strftime module on the tzset module.
73093         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73094         gl_FUNC_TZSET_CLOBBER.
73095
73096 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         Remove the dependency of the strftime module on the tzset module.
73099         * lib/strftime.c (my_strftime)
73100         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73101         Copy the input structure, to work around some of the bug with
73102         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73103         Solaris releases, you should also use the tzset module, but we won't
73104         require it as a dependency any more since we don't want LGPLed code
73105         to depend on GPLed code.
73106
73107 2005-07-02  Jim Meyering  <jim@meyering.net>
73108
73109         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73110         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73111         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73112         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73113
73114 2005-07-02  Jim Meyering  <jim@meyering.net>
73115
73116         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73117
73118 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73119
73120         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73121         declares only 'struct timespec;' (!).
73122
73123 2005-07-01  Jim Meyering  <jim@meyering.net>
73124
73125         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73126         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73127         * lib/save-cwd.c, tempname.c:
73128         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73129         and don't include <sys/file.h>).
73130
73131 2005-06-29  Jim Meyering  <jim@meyering.net>
73132
73133         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73134         type name.  Use the variable name instead.
73135         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73136         Likewise.
73137
73138 2005-06-28  Simon Josefsson  <jas@extundo.com>
73139
73140         * modules/check-version (Files): Add check-version.m4.
73141
73142 2005-06-28  Simon Josefsson  <jas@extundo.com>
73143
73144         * m4/check-version.m4: New file, suggested by Jim Meyering
73145         <jim@meyering.net>.
73146
73147 2005-06-28  Simon Josefsson  <jas@extundo.com>
73148
73149         * lib/check-version.h, lib/check-version.c: New files.
73150
73151 2005-06-28  Simon Josefsson  <jas@extundo.com>
73152
73153         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73154         collision with global variable.  Better indentation.  Don't
73155         increment buffer pointer beyond buffer end.  Based on comments
73156         from Paul Eggert <eggert@cs.ucla.edu>.
73157
73158         * lib/base64.h: Indent.
73159
73160 2005-06-28  Simon Josefsson  <jas@extundo.com>
73161
73162         * doc/gnulib.texi (Library version handling): New section.
73163
73164 2005-06-28  Jim Meyering  <jim@meyering.net>
73165
73166         * check-module (find_included_lib_files): Hard-code another
73167         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73168         but modules/fts-lgpl (correctly) does not list those files.
73169
73170         * modules/canonicalize (Files): Add lib/pathmax.h.
73171
73172 2005-06-25  Simon Josefsson  <jas@extundo.com>
73173
73174         * modules/check-version: New file.
73175
73176 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73179         initializer of struct addrinfo, as an indication that we don't
73180         care how many members the structure has.
73181
73182 2005-06-24  Derek Price  <derek@ximbiot.com>
73183         and Bruno Haible  <bruno@clisp.org>
73184
73185         Remove stat module & update lstat.
73186         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73187         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73188         * m4/stat.m4: Remove this file.
73189
73190 2005-06-24  Derek Price  <derek@ximbiot.com>
73191         and Bruno Haible  <bruno@clisp.org>
73192
73193         Remove stat module & update lstat.
73194         * lib/stat.c: Remove this file...
73195         (slash_aware_lstat): ...moving this content and its support...
73196         * lib/lstat.c (rpl_lstat): ...into here.
73197         * lib/lstat.h: New file.
73198
73199 2005-06-24  Derek Price  <derek@ximbiot.com>
73200         and Bruno Haible  <bruno@clisp.org>
73201
73202         Remove stat module & update lstat.
73203         * config/srclist.txt (libc sources): Remove stat.
73204
73205 2005-06-24  Derek Price  <derek@ximbiot.com>
73206         and Bruno Haible  <bruno@clisp.org>
73207
73208         Remove stat module & update lstat.
73209         * MODULES.html.sh (stat): Remove.
73210         * MODULES.html: Regenerated.
73211         * modules/lstat (Description): Correct function name.
73212         (Files): Add "lstat.h".
73213         (Depends-on): Remove stat, add xalloc, stat-macros.
73214         * modules/stat: Remove this file.
73215         (Include): Add "lstat.h", remove <sys/stat.h>.
73216
73217 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73220         (ranged_convert): Don't save conversion in a temporary struct.
73221         This causes a warning with GCC 4.0.0, and anyway in the typical
73222         case it's not worth the extra 100 bytes or so of code.
73223         (ranged_convert, __mktime_internal): When calling a function via a
73224         pointer P, use P () rather than (*P) (), as we now assume C89 or
73225         better.
73226
73227 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73230         "who -r" failed to give output.  Problem reported by Tim Waugh.
73231
73232         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73233         (xcalloc): Use it to avoid needless tests.
73234         Problem reported by Jim Meyering.
73235
73236 2005-06-20  Derek Price  <derek@ximbiot.com>
73237
73238         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73239         unnecessary for Autoconfs > 2.59c.
73240
73241 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73242
73243         * lib/argp.h (__option_is_short): Check upper limit of
73244         __key. Isprint() requires its argument to have the value
73245         of an unsigned char or EOF.
73246
73247 2005-06-16  Jim Meyering  <jim@meyering.net>
73248
73249         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73250         when either N or S is zero.
73251
73252 2005-06-16  Derek Price  <derek@ximbiot.com>
73253
73254         * m4/bison.m4: Declare YACC & YFLAGS precious.
73255
73256 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73259         multibyte string or pattern, fall back on unibyte matching.
73260         Problem reported by James Youngman.
73261
73262 2005-06-08  Bruno Haible  <bruno@clisp.org>
73263
73264         * modules/csharpcomp: New file.
73265         * MODULES.html.sh (C#): Add csharpcomp.
73266
73267 2005-06-08  Bruno Haible  <bruno@clisp.org>
73268
73269         * m4/csharpcomp.m4: New file, from GNU gettext.
73270
73271 2005-06-08  Bruno Haible  <bruno@clisp.org>
73272
73273         * lib/csharpcomp.h: New file, from GNU gettext.
73274         * lib/csharpcomp.c: New file, from GNU gettext.
73275         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73276
73277 2005-06-08  Bruno Haible  <bruno@clisp.org>
73278
73279         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73280         warning on mingw.
73281
73282 2005-06-07  Derek Price  <derek@ximbiot.com>
73283
73284         Sync from CVS.
73285         * lib/glob_.h: Indent nested #ifdef.
73286
73287 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         Sync from coreutils.
73290         Use "file name" when talking about file names, instead of "filename"
73291         or "path", as per the GNU coding standards.
73292         * lib/mkdir-p.c: Renamed from makepath.c.
73293         (make_dir_parents): Renamed from make_path.  All callers changed.
73294         * lib/mkdir-p.h: Likewise.  All includers changed.
73295         * lib/filenamecat.c: Renamed from path-concat.c.
73296         (file_name_concat): Renamed from path_concat.  All callers changed.
73297         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73298         * lib/filenamecat.h: Likewise.  All includers changed.
73299         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73300         in comments or local variable names.
73301         * lib/basename.c: Likewise.
73302         * lib/canonicalize.c, canonicalize.h: Likewise.
73303         * lib/dirname.c, dirname.h: Likewise.
73304         * lib/euidaccess.c: Likewise.
73305         * lib/exclude.c: Likewise
73306         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73307         * lib/fsusage.c, fsuage.h: Likewise.
73308         * lib/fts.c, fts_.h: Likewise.
73309         * lib/getcwd.c: Likewise.
73310         * lib/getloadavg.c: Likewise.
73311         * lib/mkstemp.c: Likewise.
73312         * lib/mountlist.c, mountlist.h: Likewise.
73313         * lib/openat.c, openat.h: Likewise.
73314         * lib/readlink-stub.c: Likewise.
73315         * lib/readutmp.c, readutmp.h: Likewise.
73316         * lib/rename.c: Likewise.
73317         * lib/rmdir.c: Likewise.
73318         * lib/same.c: Likewise.
73319         * lib/savedir.c: Likewise.
73320         * lib/stripslash.c: Likewise.
73321         * lib/tempname.c: Likewise.
73322         * lib/xreadlink.c: Likewise.
73323         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73324         All uses changed.
73325         * lib/exclude.h: Likewise.
73326
73327         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73328         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73329         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73330         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73331         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73332         files have been getting away with it for years (MORE/BSD 4.3
73333         is extinct now).
73334         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73335         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73336
73337         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73338         Define to 256, not 255, as per modern POSIX.
73339
73340 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         Sync from coreutils.
73343         Use "file name" when talking about file names, instead of "filename"
73344         or "path", as per the GNU coding standards.
73345         * MODULES.html.sh: mkdir-p renamed from makepath.
73346         filenamecat renamed from path-concat.
73347         * modules/filenamecat: Renamed from modules/path-concat.
73348         (Files): filenamecat.h and filenamecat.c renamed from
73349         path-concat.h and path-concat.c.
73350         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73351         (Include): filenamecat.h, not path-concat.h.
73352         * modules/mkdir-p: Renamed from modules/makepath.
73353         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73354         makepath.c.
73355         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73356         (Include): mkdir-p.h, not makepath.h.
73357
73358 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         Sync from coreutils.
73361         * m4/mkdir-p.m4: Renamed from makepath.m4.
73362         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73363         Rename files from makepath.c to mkdir-p.c, and from
73364         makepath.h to mkdir-p.h.
73365         * m4/filenamecat.m4: Renamed from path-concat.m4.
73366         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73367         Rename files from path-concat.c to filenamecat.c,
73368         and from path-concat.h to filenamecat.h.
73369         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73370         "file name" in local variables or comments.
73371         * m4/rename.m4: Likewise.
73372
73373 2005-06-01  Bruno Haible  <bruno@clisp.org>
73374
73375         * modules/csharpexec: New file.
73376         * MODULES.html.sh (C#): New section.
73377
73378 2005-06-01  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/csharp.m4: New file, from GNU gettext.
73381         * m4/csharpexec.m4: New file, from GNU gettext.
73382
73383 2005-06-01  Bruno Haible  <bruno@clisp.org>
73384
73385         * lib/csharpexec.h: New file, from GNU gettext.
73386         * lib/csharpexec.c: New file, from GNU gettext.
73387         * lib/csharpexec.sh.in: New file, from GNU gettext.
73388
73389 2005-05-31  Derek Price  <derek@ximbiot.com>
73390             Paul Eggert  <eggert@cs.ucla.edu>
73391
73392         Sync from cvs.
73393         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73394
73395 2005-05-31  Derek Price  <derek@ximbiot.com>
73396             Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         Sync from cvs.
73399         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73400
73401 2005-05-29  Derek Price  <derek@ximbiot.com>
73402
73403         * config/srclist.txt (glob_.h, glob.c): Add these files.
73404
73405 2005-05-29  Derek Price  <derek@ximbiot.com>
73406
73407         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73408         * modules/glob: New file.
73409         * modules/getlogin_r: Add link to POSIX spec in description.
73410
73411 2005-05-29  Derek Price  <derek@ximbiot.com>
73412             Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * m4/glob.m4: New file.
73415
73416 2005-05-29  Derek Price  <derek@ximbiot.com>
73417             Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/glob_.h, lib/glob.c: New files.
73420
73421 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73424         * modules/fts-lgpl (Depends-on): Remove gettext.
73425
73426 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73427
73428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73429         and don't require gt_INTTYPES_PRI.
73430
73431 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73434
73435         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73436         the configuration hassle isn't worth it.
73437         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73438         (LONGEST_MODIFIER, PRIuMAX): Remove.
73439
73440 2005-05-27  Bruno Haible  <bruno@clisp.org>
73441
73442         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73443
73444 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73447         _POSIX_PTHREAD_SEMANTICS for Solaris.
73448
73449 2005-05-25  Derek Price  <derek@ximbiot.com>
73450
73451         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73452
73453 2005-05-25  Derek Price  <derek@ximbiot.com>
73454             Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73457         * lib/getlogin_r.c, getlogin_r.h: New files.
73458
73459 2005-05-25  Bruno Haible  <bruno@clisp.org>
73460             Derek Price  <derek@ximbiot.com>
73461
73462         * lib/getlogin_r.h: Simplify API documentation.
73463
73464 2005-05-23  Derek Price  <derek@ximbiot.com>
73465
73466         * modules/minmax (Files): Add m4/minmax.m4.
73467         (configure.ac): Add gl_MINMAX.
73468
73469 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73472         so that unistd-safer.h (GPL'ed code) need not be included.
73473
73474 2005-05-22  Bruno Haible  <bruno@clisp.org>
73475
73476         * m4/minmax.m4: New file.
73477         Based on a patch by Derek Price <derek@ximbiot.com>.
73478
73479 2005-05-22  Bruno Haible  <bruno@clisp.org>
73480
73481         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73482         (INT64_MIN): Fix definition.
73483         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73484
73485         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73486         NEED_SIGNED_INT_TYPES.
73487
73488         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73489         HAVE_SYSTEM_INTTYPES.
73490
73491 2005-05-22  Bruno Haible  <bruno@clisp.org>
73492
73493         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73494         Also include <sys/param.h> if it defines MIN, MAX.
73495         Based on a patch by Derek Price <derek@ximbiot.com>.
73496
73497 2005-05-21  Jim Meyering  <jim@meyering.net>
73498
73499         * modules/fts (Files): Add m4/inttypes-pri.m4.
73500         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73501
73502 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         New fts module.
73505         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73506         (setup_dir, free_dir): New functions.
73507         (enter_dir, leave_dir): Define trivial
73508         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73509         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73510         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73511         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73512         Move to fts-cycle.c.
73513         (fts_open): Use setup_dir.
73514         (fts_close): Use free_dir.
73515         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73516         This adds a label and some gotos, but the alternatives were messier.
73517         Check for memory allocation failure when entering a dir.
73518         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73519         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73520         (FTS): New member fts_cycle, that is a union that contains the
73521         old active_dir_ht and cycle_state.  All uses changed to mention
73522         fts_cycle.ht and fts_cycle.state.
73523         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73524         fts.c, with the following changes:
73525         (setup_dir, free_dir): New functions.
73526         (enter_dir): Now returns bool.  Return true if successful, false
73527         if memory exhausted.  All callers changed.
73528         Do not bother partly cleaning up on
73529         memory allocation failure; that is free_dir's job.
73530         However, free ad if hash_insert fails, to avoid memory leak.
73531         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73532         fts->fts_options to see which union member to use.
73533
73534 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73537         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73538
73539 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73542
73543 2005-05-20  Jim Meyering  <jim@meyering.net>
73544
73545         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73546         Now a macro, to pacify GCC.
73547
73548 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73549
73550         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73551         of -1.
73552
73553 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73554
73555         * lib/chown.c (rpl_chown): Return -1 on failure.
73556
73557 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73558
73559         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73560         Don't check for stddef.h.
73561         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73562         don't use its results.
73563         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73564         since we include them unconditionally.  Don't require
73565         AM_STDBOOL_H, since stdbool is a prerequisite.
73566         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73567         since we assume C89 or better.
73568         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73569         as we don't use their results.
73570         Don't check for fchdir, memmove, memset, strrchr, as we use
73571         them unconditionally.
73572         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73573         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73574
73575 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73578         Include <stddef.h> unconditionally, since we assume C89 now.
73579         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73580         * lib/fts.c: Include fts_.h first, to check interface.
73581         Do not include intprops.h; no longer needed.
73582         Include cycle-check.h and hash.h, since fts_.h no longer does.
73583         Remove unnecessary casts of closedir to void.
73584         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73585         decide whether to decrement nlinks.
73586         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73587         (FTS): Use struct hash_table * instead of Hash_table, so that
73588         we no longer need to include hash.h here.
73589
73590 2005-05-18  Jim Meyering  <jim@meyering.net>
73591
73592         * modules/dirfd (License): Change to LGPL.  Most of the code
73593         is already in the public domain.
73594
73595 2005-05-18  Jim Meyering  <jim@meyering.net>
73596
73597         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73598         Reported by Yoann Vandoorselaere.
73599
73600 2005-05-17  Jim Meyering  <jim@meyering.net>
73601
73602         * m4/fts.m4: New file, from coreutils.
73603
73604 2005-05-17  Jim Meyering  <jim@meyering.net>
73605
73606         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73607
73608 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         Sync from coreutils.
73611         * m4/unlinkdir.m4: New file.
73612
73613 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         Sync from coreutils.
73616         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73617         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73618         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73619         White space changes only.
73620         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73621         special.
73622         * lib/yesno.c: Include getline.h, not ctype.h.
73623         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73624         Use getline to remove arbitrary restriction on response length.
73625
73626 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * config/srclist-update: Spell out "Street" in FSF postal
73629         mail address; this is the style the FSF seems to prefer.
73630
73631         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73632         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73633         this updates FSF postal mail address.
73634
73635         Sync from coreutils.
73636         * modules/unlinkdir: New file.
73637         * modules/yesno (Depends-on): Add getline.
73638         * MODULES.html.sh (File system functions): Add unlinkdir.
73639
73640 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73643         lib/strsep.h:
73644         Change the initial comment to refer to GPL, not LGPL.
73645         gnulib-tool will change it to LGPL as needed.
73646
73647         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73648         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73649         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73650         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73651         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73652         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73653         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73654         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73655         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73656         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73657         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73658         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73659         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73660         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73661         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73662         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73663         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73664         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73665         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73666         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73667         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73668         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73669         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73670         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73671         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73672         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73673         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73674         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73675         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73676         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73677         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73678         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73679         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73680         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73681         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73682         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73683         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73684         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73685         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73686         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73687         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73688         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73689         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73690         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73691         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73692         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73693         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73694         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73695         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73696         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73697         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73698         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73699         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73700         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73701         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73702         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73703         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73704         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73705         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73706         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73707         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73708         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73709         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73710         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73711         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73712         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73713         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73714         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73715         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73716         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73717         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73718         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73719         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73720         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73721         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73722         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73723         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73724         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73725         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73726         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73727         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73728         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73729         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73730         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73731         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73732         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73733         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73734         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73735         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73736         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73737         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73738         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73739         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73740         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73741         lib/yesno.c, lib/yesno.h:
73742         Update FSF postal mail address.
73743
73744 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73747         tests/test-memmem.c, tests/test-stpncpy.c:
73748         Update FSF postal mail address.
73749
73750 2005-05-13  Bruno Haible  <bruno@clisp.org>
73751
73752         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73753         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73754         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73755         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73756         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73757         Add support for 64-bit integers in the MSVC compiler.
73758
73759 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73760
73761         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73762
73763 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73764
73765         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73766
73767 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * doc/getdate.texi (General date syntax): Don't say that date
73770         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73771         Problem reported by Nic Ferrier.
73772
73773 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73774
73775         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73776         specified in ai_socktype. Fix invalid ai_protocol
73777         check. ai_protocol is usually set to 0 or depending on
73778         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73779         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73780         ai_socktype / ai_protocol in the returned addrinfo structure.
73781
73782 2005-05-10  Simon Josefsson  <jas@extundo.com>
73783
73784         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73785         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73786
73787 2005-05-10  Karl Berry  <karl@gnu.org>
73788
73789         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73790         (from http://www.gnu.org/licenses).
73791         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73792         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73793         fdl.texi suffices.
73794
73795 2005-05-10  Karl Berry  <karl@gnu.org>
73796
73797         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73798         (COPYING.DOC): remove.
73799
73800         * config/srclist-update: new FSF address.
73801
73802 2005-05-10  Derek Price  <derek@ximbiot.com>
73803
73804         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73805         possible.
73806
73807 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73808             Bruno Haible  <bruno@clisp.org>
73809
73810         * modules/inet_ntop: New file.
73811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73812         inet_ntop.
73813
73814 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73815             Bruno Haible  <bruno@clisp.org>
73816
73817         * m4/inet_ntop.m4: New file.
73818
73819 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73820             Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/inet_ntop.h: New file.
73823         * lib/inet_ntop.c: New file, from glibc with modifications.
73824
73825 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * modules/time_r (License): Change to LGPL.
73828         * modules/extensions (License): Change to LGPL.  Actually,
73829         the license is more permissive than that, but currently gnulib-tool
73830         doesn't know how to handle more-permissive licenses.
73831
73832         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73833         Problem reported by Dave Love.
73834
73835 2005-05-08  Jim Meyering  <jim@meyering.net>
73836
73837         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73838         blank.
73839
73840 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * modules/argmatch (Depends-on): Add stdbool.
73843         * modules/backupfile (Depends-on): Likewise.
73844         * modules/chdir-long (Depends-on): Likewise.
73845         * modules/closeout (Depends-on): Likewise.
73846         * modules/cycle-check (Depends-on): Likewise.
73847         * modules/dirname (Depends-on): Likewise.
73848         * modules/fnmatch (Depends-on): Likewise.
73849         * modules/fsusage (Depends-on): Likewise.
73850         * modules/fwriteerror (Depends-on): Likewise.
73851         * modules/getcwd (Depends-on): Likewise.
73852         * modules/getloadavg (Depends-on): Likewise.
73853         * modules/hard-locale (Depends-on): Likewise.
73854         * modules/makepath (Depends-on): Likewise.
73855         * modules/mountlist (Depends-on): Likewise.
73856         * modules/nanosleep (Depends-on): Likewise.
73857         * modules/posixtm (Depends-on): Likewise.
73858         * modules/quotearg (Depends-on): Likewise.
73859         * modules/readtokens (Depends-on): Likewise.
73860         * modules/readtokens0 (Depends-on): Likewise.
73861         * modules/readutmp (Depends-on): Likewise.
73862         * modules/save-cwd (Depends-on): Likewise.
73863         * modules/strftime (Depends-on): Likewise.
73864         * modules/userspec (Depends-on): Likewise.
73865         * modules/utimecmp (Depends-on): Likewise.
73866         * modules/xgetcwd (Depends-on): Likewise.
73867         * modules/xnanosleep (Depends-on): Likewise.
73868         * modules/xstrtod (Depends-on): Likewise.
73869         * modules/yesno (Depends-on): Likewise.
73870
73871 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73874         needless checks.
73875
73876 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         Merge from coreutils.  Among other things,
73879         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73880         * lib/fd-safer.c: New file.
73881         * lib/fcntl-safer.h, open-safer.c: Remove.
73882         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73883         * lib/dup-safer.c: Include unistd-safer.h first.
73884         Don't include errno.h.
73885         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73886         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73887         * lib/file-type.c: Rely on file-type.h change.
73888         * lib/getloadavg.c: Include unistd-safer.h.
73889         (getloadavg): Use safer open.
73890         * lib/getusershell.c: Include "stdio-safer.h".
73891         (getusershell): Use safer fopen.
73892         * lib/long-options.c (long_options): Use NULL rather than 0.
73893         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73894         'free'.
73895         * lib/modechange.c: Likewise.
73896         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73897         (MODE_DONE): New constant.
73898         (struct mode_change): Remove 'next' member.
73899         (make_node_op_equals): New function; like the old one of the
73900         same name, except it allocates an array.
73901         (mode_compile, mode_create_from_ref): Use it.
73902         (mode_compile): Allocate result as an array, not a linked list.
73903         Parse octal string ourself, so that we catch mistakes like "+0".
73904         (mode_adjust): Arg is an array, not a linked list.
73905         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73906         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73907         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73908         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73909         Remove.  This is now stat-macros.h's job.
73910         (talloc): Remove.  All callers replaced by xalloc, so that
73911         our invokers don't have to worry about reporting memory failures.
73912         (make_node_op_equals): Remove.
73913         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73914         New constants.
73915         (struct mode_change): Moved here from modechange.h.
73916         (mode_append_entry): Remove.
73917         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73918         apps to have incorrect behavior.  Use simpler algorithm for head
73919         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73920         Detect more invalid usages rather than having somewhat-random behavior.
73921         Don't insert an "a=" action, as that leads to incorrect behavior.
73922         (mode_compile, mode_create_from_ref): Return NULL on error instead
73923         of an enum, since now there's only one way to have an error.  All
73924         callers changed.
73925         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73926         at the correct time.  Simplify calculation of "+u" and its ilk.
73927         Don't mishandle "+X".
73928         (mode_free): Remove "register" and localize decls.
73929         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73930         (struct mode_change): Move to modechange.c; callers don't
73931         need to see this stuff.
73932         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73933         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73934         (mode_change, mode_adjust): Reflect the new signatures noted above.
73935         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73936         that might redefine system include files.
73937         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73938         (my_usleep): Use NULL rather than (void *) 0.
73939         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73940         Use siginterrupt to specify that system calls should be interrupted.
73941         (rpl_nanosleep): Move initialization of suspended closer to call of
73942         my_usleep.
73943         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73944         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73945         (desirable_utmp_entry): New function.
73946         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73947         using x2nrealloc, to simplify logic.
73948         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73949         size calculation.  Do not assume utmp file is a regular file.
73950         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73951         (READ_UTMP_CHECK_PIDS): New constant.
73952         * lib/save-cwd.c: Include unistd-safer.h.
73953         (save_cwd): Use fd_safer.
73954         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73955         [!_LIBC] Include "stat-macros.h" instead.
73956         * lib/unistd-safer.h (fd_safer): New decl.
73957
73958 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73959
73960         * modules/getloadavg (Depends-on): Add unistd-safer.
73961         * modules/getusershell (Depends-on): Add stdio-safer.
73962         * modules/lstat (Depends-on): Remove xalloc.
73963         * modules/mkstemp (Depends-on): Add stat-macros.
73964         * modules/modechange (Depends-on): Remove xstrtol.
73965         Add stat-macros, xalloc.
73966         * modules/save-cwd (Depends-on): Add unistd-safer.
73967         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73968         * modules/unistd-safer (Files): Add lib/fd-safer.c
73969         (Makefile.am): Remove lib_SOURCES.
73970
73971         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73972         Remove fcntl-safer; unistd-safer supersedes it.
73973
73974 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73977         AC_HEADER_STAT.
73978         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73979         (gl_PREREQ_CHOWN): Remove.
73980         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73981         it.  Don't require AC_HEADER_STAT.
73982         (gl_PREREQ_LSTAT): Remove.
73983         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73984         Don't require AC_HEADER_STAT.
73985         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73986         (gl_PREREQ_RMDIR): Remove.
73987         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73988         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73989         the stat-macros module a prerequisite.
73990         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73991         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73992         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73993         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73994         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73995         variable names.
73996         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73997         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73998         variable prefixes.
73999         * m4/fcntl-safer.m4: Remove.
74000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74001         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74002         Invoke gl_PREREQ_FD_SAFER.
74003         (gl_PREREQ_FD_SAFER): New macro.
74004         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74005         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74006         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74007         Remove duplicate call to AC_LIBOBJ(readutmp).
74008         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74009
74010         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74011         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74012
74013 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * MODULES.html.sh (Misc): Add byteswap.
74016
74017 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74018
74019         * modules/getcwd (Depends-on): Add extensions.
74020         * modules/openat (Depends-on): Likewise.
74021
74022 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74023
74024         * modules/byteswap: New file.
74025
74026 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74027
74028         * m4/byteswap.m4: New file.
74029
74030 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74031
74032         * lib/byteswap_.h: New file.
74033
74034 2005-04-25  Karl Berry  <karl@gnu.org>
74035
74036         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74037
74038 2005-04-25  Albert Chin  <china@thewrittenword.com>
74039
74040         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74041         Toolkit C bug.
74042
74043 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74044
74045         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74046         (func_ln_if_changed): Remove forcibly for no error message
74047         in case file does not exist.
74048
74049 2005-04-19  Simon Josefsson  <jas@extundo.com>
74050
74051         * gnulib-tool (Options): Make --symlink mean --symbolic.
74052
74053 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74054
74055         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74056
74057 2005-04-16  Simon Josefsson  <jas@extundo.com>
74058
74059         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74060
74061 2005-04-15  Simon Josefsson  <jas@extundo.com>
74062
74063         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74064
74065 2005-04-15  Simon Josefsson  <jas@extundo.com>
74066
74067         * gnulib-tool: Rename --symlink to --symbolic.
74068
74069 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74070
74071         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74072         symbolic links to files instead of copying/moving.  Add --aux-dir,
74073         specifying directory relative --dir where auxiliary build tools
74074         are placed.
74075
74076 2005-04-14  Bruno Haible  <bruno@clisp.org>
74077
74078         * modules/allocsa (License): Change to LGPL.
74079         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74080
74081 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74084         that "UTC +1 second" continues to work.  Problem reported
74085         by Dmitry V. Levin.
74086         (relunit_snumber): New rule.
74087         (relunit): Use it.
74088
74089 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/getdate.y (universal_time_zone_table): New constant.
74092         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74093         universal_time_zone_table.
74094         (lookup_zone): Prefer universal_time_zone_table to
74095         local_time_zone_table, so that "GMT" time stamps are allowed in
74096         London during the summer.  Problem reported by Ian Abbott.
74097
74098 2005-04-12  Jim Meyering  <jim@meyering.net>
74099
74100         * lib/human.c (humblock): Set *options even when returning due to
74101         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74102         warning from gcc-4.
74103
74104 2005-04-09  Jim Meyering  <jim@meyering.net>
74105
74106         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74107         -Wuninitialized: initialize tm0.tm_year.
74108
74109 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74112         count, since there's no maximum.  All uses changed.
74113         Add member dsts_seen.
74114         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74115         not being INT_MAX.
74116         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74117         Use pc_rels_seen to decide whther a date is absolute.
74118
74119         * lib/getdate.y (number): Don't overwrite year.
74120         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74121         check.
74122
74123 2005-04-02  Simon Josefsson  <jas@extundo.com>
74124
74125         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74126         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74127
74128 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74129
74130         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74131         where no absolute path name can be longer than PATH_MAX.
74132
74133 2005-03-27  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74136
74137 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74140         "one's complement" -> "ones' complement" in comment, as per Knuth.
74141         "value of type" -> "type or expression" in comment.
74142         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74143
74144 2005-03-26  Jim Meyering  <jim@meyering.net>
74145
74146         Comment nits.
74147         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74148         Correct typos: s/or/of/.
74149
74150 2005-03-26  Jim Meyering  <jim@meyering.net>
74151
74152         * modules/check-include-files: Move to ../ and rename to...
74153         * check-module: ...this.
74154
74155 2005-03-25  Jim Meyering  <jim@meyering.net>
74156
74157         * modules/xvasprintf (Files): Add xalloc.h.
74158
74159 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * modules/gettext (Files): config/config.rpath ->
74162         build-aux/config.rpath
74163         * modules/iconv (Files): Likewise.
74164         Problem reported by Oskar Liljeblad.
74165
74166 2005-03-23  Jim Meyering  <jim@meyering.net>
74167
74168         * modules/check-include-files: New script to check for
74169         missing dependencies, multiple includes, etc.
74170
74171         * modules/c-strtold (Depends-on): Add xalloc.
74172         * modules/c-strtod (Depends-on): Add xalloc.
74173         * modules/hash (Depends-on): Add xalloc.
74174         (Files): Remove lib/xalloc.h.
74175
74176         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74177         * modules/userspec (Files): Add lib/inttostr.h.
74178
74179 2005-03-23  Jim Meyering  <jim@meyering.net>
74180
74181         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74182
74183 2005-03-22  Jim Meyering  <jim@meyering.net>
74184
74185         * modules/stat-macros: New module.
74186         * modules/canonicalize, modules/euidaccess, modules/file-type,
74187         * modules/filemode, modules/lchown, modules/makepath,
74188         * modules/rmdir, modules/stat: Depend on new stat-macros module
74189         rather than listing lib/stat-macros.h manually.
74190         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74191
74192 2005-03-22  Jim Meyering  <jim@meyering.net>
74193
74194         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74195
74196 2005-03-22  Bruno Haible  <bruno@clisp.org>
74197
74198         * config/srclist.txt: Replace target directory 'config' with
74199         'build-aux'.
74200         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74201         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74202         ../build-aux/.
74203
74204 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * modules/chdir-long (Depends-on): Add mempcpy.
74207
74208         * modules/acl, modules/backupfile, modules/c-strtod,
74209         modules/c-strtold, modules/canon-host, modules/canonicalize,
74210         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74211         modules/exclude, modules/exitfail, modules/file-type,
74212         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74213         modules/getdate, modules/getline, modules/getpagesize,
74214         modules/getpass, modules/getugroups, modules/group-member,
74215         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74216         modules/inttostr, modules/long-options, modules/makepath,
74217         modules/md5, modules/memcasecmp, modules/memcoll,
74218         modules/modechange, modules/mountlist, modules/path-concat,
74219         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74220         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74221         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74222         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74223         modules/strftime, modules/strndup, modules/strverscmp,
74224         modules/timespec, modules/unlocked-io, modules/userspec,
74225         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74226         modules/yesno:
74227         Remove lib_SOURCES line from Makefile.am section, as this is now
74228         done automatically by the corresponding Autoconf macro.
74229
74230 2005-03-21  Jim Meyering  <jim@meyering.net>
74231
74232         Changes imported from coreutils.
74233
74234         * lib/cycle-check.c: Don't include xalloc.h.
74235
74236         * lib/path-concat.c: Don't include assert.h.
74237         (path_concat): Remove assertion that would have triggered
74238         for ABASE starting with more than one slash.
74239         Reported by Andreas Schwab.
74240
74241         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74242         properly when ABASE is an absolute file name.
74243         Correct the description of this function.
74244         Include <assert.h>.
74245         Add an assertion and a test driver.
74246         This fixes a bug introduced on 2004-07-02.
74247         Andreas Schwab reported the resulting failure of cp --parents:
74248         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74249
74250 2005-03-21  Jim Meyering  <jim@meyering.net>
74251
74252         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74254
74255 2005-03-21  Jim Meyering  <jim@meyering.net>
74256         and  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74259         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74260         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74261         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74262         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74263         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74264         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74265         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74266         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74267         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74268         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74269         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74270         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74271         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74272         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74273         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74274         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74275         for these modules.
74276
74277 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74280         (which shouldn't happen), generate nothing instead of returning 0
74281         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74282
74283 2005-03-16  Bruno Haible  <bruno@clisp.org>
74284
74285         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74286         HAVE_LONGLONG_64BIT.
74287
74288 2005-03-16  Bruno Haible  <bruno@clisp.org>
74289
74290         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74291         HAVE_LONGLONG_64BIT.
74292
74293 2005-03-16  Bruno Haible  <bruno@clisp.org>
74294
74295         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74296         HAVE_LONGLONG_64BIT.
74297
74298 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74301         reliably distinguish strftime failure from empty output on POSIX
74302         hosts.
74303
74304 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74307         (iconv_string): Don't guess a size-zero buffer, as that might cause
74308         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74309         result would be 'too large', where 'too large' is (heuristically)
74310         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74311         overflow concerns.  This will prevent some unwanted malloc failures
74312         when the inputs are very large.
74313
74314 2005-03-15  Karl Berry  <karl@gnu.org>
74315
74316         * config/srclist.txt (config.rpath): from gettext.
74317         * config/config.rpath: update.
74318
74319 2005-03-15  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74322         to 'negate'.
74323
74324         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74325         variable.
74326
74327         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74328         results.
74329
74330 2005-03-14  Simon Josefsson  <jas@extundo.com>
74331
74332         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74333         <fx@gnu.org>.
74334
74335 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74338         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74339         intprops.h.
74340         * lib/strtol.c: Likewise.
74341
74342 2005-03-14  Jim Meyering  <jim@meyering.net>
74343
74344         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74345         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74346         to be nonzero so that we (and caller) can detect the difference
74347         between a valid zero-length expansion and an error return, even
74348         when the underlying strftime fails before writing anything into
74349         that location.
74350
74351 2005-03-14  Bruno Haible  <bruno@clisp.org>
74352
74353         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74354         Update from GNU gettext 0.14.3.
74355
74356 2005-03-10  Jim Meyering  <jim@meyering.net>
74357
74358         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74359
74360 2005-03-10  Jim Meyering  <jim@meyering.net>
74361
74362         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74363         so that this module works on systems without fchdir.
74364
74365 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         Factor int-properties macros into a single file, except for
74368         glibc-related files.
74369         * lib/intprops.h: New file.
74370         * lib/getloadavg.c: Include it instead of limits.h.
74371         (INT_STRLEN_BOUND): Remove.
74372         * lib/human.c: Include intprops.h.
74373         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74374         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74375         302/1000.
74376         * lib/inttostr.h: Include intprops.h instead of limits.h.
74377         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74378         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74379         for consistency with intprops.h.
74380         (time_t_is_integer, twos_complement_arithmetic): Use them.
74381         * lib/sig2str.h: Include <signal.h>, intprops.h.
74382         (INT_STRLEN_BOUND): Remove.
74383         * lib/strftime.c (TYPE_SIGNED): Remove.
74384         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74385         * lib/strtol.c: Adjust comments to match intprops.h.
74386         * lib/userspec.c: Include intprops.h.
74387         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74388         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74389         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74390         instead of rolling our own expressions.
74391         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74392
74393         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74394         instead of int.
74395         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74396         the right thing even if adding 1900 would overflow.  Similarly
74397         for tm_mon + 1 and tm_yday + 1.
74398         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74399         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74400         (DO_SIGNED_NUMBER): New macro.
74401         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74402
74403 2005-03-07  Bruno Haible  <bruno@clisp.org>
74404
74405         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74406
74407 2005-03-07  Bruno Haible  <bruno@clisp.org>
74408
74409         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74410
74411 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74412
74413         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74414         (func_import): Only replace files via --import when they have actually
74415         changed.
74416
74417 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74418
74419         * m4/mmap-anon.m4: New file.
74420         * m4/pagealign_alloc.m4: New file.
74421
74422 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74423             Bruno Haible  <bruno@clisp.org>
74424
74425         * modules/pagealign_alloc: New file.
74426         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74427
74428 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74429             Bruno Haible  <bruno@clisp.org>
74430
74431         * lib/pagealign_alloc.h: New file.
74432         * lib/pagealign_alloc.c: New file.
74433
74434 2005-03-03  Bruno Haible  <bruno@clisp.org>
74435
74436         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74437         Use an all-permissive copyright notice, recommended by RMS.
74438
74439 2005-03-02  Bruno Haible  <bruno@clisp.org>
74440
74441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74442         of AIX, the replacement has to be done only after <string.h> is
74443         included, therefore not in config.h. stpncpy.h does the replacement,
74444         and stpncpy.c uses it.
74445
74446 2005-03-02  Bruno Haible  <bruno@clisp.org>
74447
74448         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74449         stpncpy.c uses it.
74450
74451 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74454         The workaround isn't strictly needed for POSIX conformance, and
74455         it's too much of a pain to configure and maintain.  We'll ask
74456         people to fix their kernels instead.
74457         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74458         (NANOSLEEP_BUG_WORKAROUND): Remove.
74459         (xnanosleep): Remove the workaround.
74460
74461 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74464         Reported by Derek Price.
74465         (Include): Add "timespec.h".
74466
74467         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74468
74469 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74472         to detect nanosleep bug.
74473
74474 2005-03-01  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74477
74478 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         * modules/gethrxtime: New file.
74481         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74482         (Depends-on): Add gethrxtime.
74483         (configure.ac): Add gl_XNANOSLEEP.
74484         (Makefile.am): Remove lib_SOURCES line.
74485
74486 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74489         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74490
74491 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74494         * lib/timespec.h (gettime): Return void, since it always
74495         succeeds now.  All uses changed.
74496         * lib/gettime.c (gettime): Likewise.
74497         [HAVE_NANOTIME]: Prefer nanotime.
74498         Assume gettimeofday succeeds, as POSIX requires.
74499         Assime time () succeeds, since other code already does.
74500         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74501         (timespec_subtract): Remove.
74502         (NANOSLEEP_BUG_WORKAROUND): New constant.
74503         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74504         things considerably.  Use it only on GNU/Linux hosts, since the
74505         workaround shouldn't be needed elsewhere.
74506
74507 2005-02-24  Bruno Haible  <bruno@clisp.org>
74508
74509         * modules/gettext (Files): Add m4/glibc2.m4.
74510
74511 2005-02-24  Bruno Haible  <bruno@clisp.org>
74512
74513         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74514         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74515         * m4/progtest.m4:
74516         Update from GNU gettext 0.14.2.
74517         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74518
74519 2005-02-24  Bruno Haible  <bruno@clisp.org>
74520
74521         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74522         * lib/config.charset: Update from GNU gettext 0.14.2.
74523
74524 2005-02-24  Bruno Haible  <bruno@clisp.org>
74525
74526         * lib/gettext.h: Update from GNU gettext 0.14.2.
74527
74528 2005-02-23  Simon Josefsson  <jas@extundo.com>
74529
74530         * m4/iconvme.m4: New file.
74531
74532 2005-02-23  Jim Meyering  <jim@meyering.net>
74533
74534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74535         change.
74536         Thanks to Bruno Haible for catching it.
74537
74538 2005-02-22  Simon Josefsson  <jas@extundo.com>
74539
74540         * modules/iconvme: New file.
74541
74542         * MODULES.html.sh: Add iconvme.
74543
74544 2005-02-22  Simon Josefsson  <jas@extundo.com>
74545
74546         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74547
74548 2005-02-22  Simon Josefsson  <jas@extundo.com>
74549
74550         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74551
74552 2005-02-22  Jim Meyering  <jim@meyering.net>
74553
74554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74555         s/ifndef/ifdef/.
74556
74557 2005-02-20  Neil Conway  <neilc@samurai.com>
74558
74559         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74560         returned by OSX/Darwin if the specified buffer is not large
74561         enough for the hostname.
74562
74563 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74564
74565         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74566         pass it to _help, otherwise the latter coredumps trying to
74567         dereference state.root_argp.
74568
74569 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * modules/chdir-long (Depends-on): Add memrchr.
74572         * modules/memrchr (Files): Add lib/memrchr.h.
74573         (Include): "memrchr.h".
74574
74575 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74576
74577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74578
74579 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/memrchr.h: New file.
74582         * lib/chdir-long.c: Include it.
74583         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74584         Don't bother including stddef.h.
74585
74586 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74589         inclusion.
74590         Include <sys/types.h>, for dev_t.
74591         (ME_DUMMY, ME_REMOTE): Move from here....
74592         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74593         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74594         Dmitry V. Levin.
74595         Include mountlist.h first, to test the interface.
74596
74597 2005-01-29  Bruno Haible  <bruno@clisp.org>
74598
74599         * lib/progname.c (program_name): Initialize.
74600         Needed when linking statically on MacOS X.
74601
74602 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         Sync from coreutils.
74605         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74606         (Depends-on): Add c-strtod.
74607         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74608
74609 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         Sync from coreutils.
74612         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74613
74614         Remove files that are specific to coreutils.
74615         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74616
74617 2005-01-28  Bruno Haible  <bruno@clisp.org>
74618
74619         * modules/javacomp: New file.
74620         * MODULES.html.sh (Java): Add javacomp.
74621
74622 2005-01-28  Bruno Haible  <bruno@clisp.org>
74623
74624         * m4/javacomp.m4: New file, from GNU gettext.
74625
74626 2005-01-28  Bruno Haible  <bruno@clisp.org>
74627
74628         * lib/javacomp.sh.in: New file, from GNU gettext.
74629         * lib/javacomp.h: New file, from GNU gettext.
74630         * lib/javacomp.c: New file, from GNU gettext.
74631
74632 2005-01-26  Simon Josefsson  <jas@extundo.com>
74633
74634         * lib/gai_strerror.c: Use GPL in header.
74635
74636 2005-01-26  Bruno Haible  <bruno@clisp.org>
74637
74638         * modules/javaexec: New file.
74639         * MODULES.html.sh (Java): Add javaexec.
74640
74641 2005-01-26  Bruno Haible  <bruno@clisp.org>
74642
74643         * m4/javaexec.m4: New file, from GNU gettext.
74644
74645 2005-01-26  Bruno Haible  <bruno@clisp.org>
74646
74647         * lib/javaexec.sh.in: New file, from GNU gettext.
74648         * lib/javaexec.h: New file, from GNU gettext.
74649         * lib/javaexec.c: New file, from GNU gettext.
74650
74651 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74652
74653         * modules/lchown (Depends-on): Remove lchown.h
74654
74655 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74656
74657         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74658         must be defined if the header file was not found, in order
74659         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74660
74661 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74662
74663         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74664         initializers for struct pentry_state.
74665         (__argp_error): Check return value of __asprintf
74666         (__argp_failure): Translate error message
74667
74668         * lib/argp-parse.c: Removed braces around the expansion of N_()
74669
74670 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74673         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74674         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74675         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74676         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74677         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74678         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74679         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74680         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74681         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74682         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74683         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74684         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74685         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74686         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74687         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74688         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74689         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74690         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74691         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74692         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74693         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74694         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74695         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74696         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74697         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74698         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74699         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74700         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74701         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74702         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74703         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74704         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74705         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74706         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74707         Use an all-permissive copyright notice, recommended by RMS.
74708
74709 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * modules/chdir-long (Depends-on): Remove mempcpy.
74712
74713 2005-01-21  Jim Meyering  <jim@meyering.net>
74714
74715         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74716         same value as for Solaris 9.
74717
74718         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74719         component length.  This included changing the parameter to be
74720         of type `char *' rather than `char const *'.
74721         * lib/chdir-long.h (chdir_long): Update prototype.
74722
74723         * lib/openat.c (fdopendir, fstatat): New functions.
74724         * lib/openat.h: Include headers required for use of DIR and struct
74725         stat.
74726         [AT_SYMLINK_NOFOLLOW]: Define.
74727         (fdopendir, fstatat): Add prototypes.
74728
74729 2005-01-21  Bruno Haible  <bruno@clisp.org>
74730
74731         * modules/classpath: New file.
74732         * MODULES.html.sh (Java): Add classpath.
74733
74734 2005-01-21  Bruno Haible  <bruno@clisp.org>
74735
74736         * lib/classpath.h: New file, from GNU gettext.
74737         * lib/classpath.c: New file, from GNU gettext.
74738
74739 2005-01-20  Simon Josefsson  <jas@extundo.com>
74740
74741         * modules/version-etc-fsf: New file.
74742
74743 2005-01-20  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74746         * lib/version-etc.c: Remove version_etc_copyright.
74747         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74748         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74749
74750 2005-01-20  Simon Josefsson  <jas@extundo.com>
74751
74752         * lib/base64.h (isbase64): Add.
74753
74754         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74755         using a unsigned prototype, don't inline.
74756         (base64_decode): Use it.
74757
74758 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74761         it.
74762
74763 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * lib/save-cwd.c (save_cwd): Remove code to support the case
74766         where fchdir is missing or flaky.
74767
74768 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74771
74772 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74775         AC_LIBSOURCES now does this.
74776         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74777         with new ullong_max module.
74778
74779 2005-01-19  Bruno Haible  <bruno@clisp.org>
74780
74781         * modules/sh-quote: New file.
74782         * MODULES.html.sh (Executing programs): Add sh-quote.
74783
74784 2005-01-19  Bruno Haible  <bruno@clisp.org>
74785
74786         * lib/sh-quote.h: New file, from GNU gettext.
74787         * lib/sh-quote.c: New file, from GNU gettext.
74788
74789 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         Merge from coreutils.
74792         * m4/ullong_max.m4: New file.
74793         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74794         (gl_MACROS): Assume localeconv exists.
74795
74796 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         Merge changes from coreutils, as described below in several
74799         changelogs dated today.
74800
74801         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74802         (O_DIRECTORY): Remove; not needed here, since "." must be
74803         a directory.  All uses removed.
74804         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74805         universal on Suns, and we also need to test for IRIX.
74806         Revamp code to use 'if' rather than '#if'.
74807         Avoid unnecessary comparison of cwd->desc to 0.
74808
74809         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74810         for known valid error numbers rather than observed invalid ones.
74811
74812 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * modules/ullong_max: New file.
74815
74816         * modules/chdir-long, modules/openat: New files.
74817         * modules/save-cwd (Depends-on): Depend on chdir-long.
74818         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74819
74820 2005-01-18  Jim Meyering  <jim@meyering.net>
74821
74822         Merge from coreutils.
74823         * m4/chdir-long.m4, m4/openat.m4: New files.
74824         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74825         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74826         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74827         is sane and DOES follow symlinks.  Besides, testing 20 different
74828         systems found no broken chown implementations.
74829         Prompted by a change in rsync's copy of this macro.
74830         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74831
74832         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74833
74834         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74835         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74836         NULL-means-set-to-current-time semantics.
74837         Remove temporary file immediately, rather than waiting
74838         for configure's at-exit trap code to do it.
74839
74840 2005-01-18  Jim Meyering  <jim@meyering.net>
74841
74842         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74843
74844         * lib/utimens.c (futimens): Account for the fact that futimes
74845         can also fail with errno == ENOSYS or errno == ENOENT.
74846         Patch from Dmitry V. Levin.
74847
74848         Change the name of the robust chdir function from chdir to chdir_long.
74849         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74850         (restore_cwd): Use chdir_long, not chdir.
74851         * lib/chdir-long.c: Renamed from chdir.c.
74852         * lib/chdir-long.h: Renamed from chdir.h.
74853         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74854         Hurd.
74855
74856 2005-01-18  Bruno Haible  <bruno@clisp.org>
74857
74858         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74859         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74860         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74861         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74862         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74863         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74864         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74865         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74866         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74867         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74868         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74869         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74870         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74871         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74872         Use an all-permissive copyright notice, recommended by RMS.
74873
74874 2005-01-18  Bob Proulx  <bob@proulx.com>
74875
74876         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74877         simplify offsetof() macro construct to avoid compile failure with
74878         native HP-UX 11.0 ANSI C compiler.
74879
74880 2005-01-17  Bruno Haible  <bruno@clisp.org>
74881
74882         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74883         redundant because stpncpy.m4 takes care of it.
74884
74885 2005-01-17  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74888
74889 2005-01-17  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74892         used.
74893
74894 2005-01-17  Bruno Haible  <bruno@clisp.org>
74895
74896         * lib/fwriteerror.h (fwriteerror): Change specification to include
74897         fclose.
74898         * lib/fwriteerror.c: Include <stdbool.h>.
74899         (fwriteerror): At the end, close the file stream. Record whether
74900         stdout was already closed.
74901
74902 2005-01-17  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/execute.c (environ): Declare if needed.
74905         * lib/pipe.c (environ): Likewise.
74906         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74907
74908 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74909
74910         * modules/argp: Depend on vsnprintf
74911
74912 2005-01-10  Jim Meyering  <jim@meyering.net>
74913
74914         * modules/closeout (Depends-on): Add atexit.
74915
74916 2005-01-06  Bruno Haible  <bruno@clisp.org>
74917
74918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74919
74920 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74923         definitions to be after all include files, to avoid collisions.
74924         Problem reported by Bob Proulx.
74925
74926 2005-01-04  Jim Meyering  <jim@meyering.net>
74927
74928         Changes imported from coreutils.
74929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74930         as the mkstemp template, use a temporary directory and an
74931         8.3-friendly template to avoid trouble on systems like DJGPP.
74932         Reported by Juan M. Guerrero via Stepan Kasal.
74933         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74934         close. Remove the temporary directory right away, rather than waiting
74935         for configure's at-exit trap code to do it.
74936         Suggestion from Stepan Kasal.
74937
74938 2005-01-01  Simon Josefsson  <jas@extundo.com>
74939
74940         * gnulib-tool: Print #include directives when --import'ing.
74941
74942 2004-12-28  Simon Josefsson  <jas@extundo.com>
74943
74944         * tests/test-base64.c: Include required header files.  Remove
74945         unused variables.
74946
74947 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * modules/error (Depends-on): Remove gettext.
74950
74951 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74954         not needed.  This removes a dependency on the gettext module.
74955         [defined _LIBC]: Do not include <libintl.h>; not needed.
74956
74957 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74960         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74961
74962 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74965         HAVE_DECL_STRTOLD.
74966
74967 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * modules/getdate (Depends-on): Remove alloca-opt.
74970
74971 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74974
74975 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * lib/argp-parse.c: Include <stddef.h>.
74978         (alignof, alignto): New macros.
74979         (parser_init): Don't assume that void * is aligned sufficiently
74980         for struct option.
74981
74982         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74983         need to extend the stack.
74984         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74985         large.
74986
74987 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74988
74989         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74990
74991 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74994         (2004-10-24) change.  Apparently this was a false alarm.
74995
74996         * modules/getdate: Depend on alloca-opt, not alloca.
74997
74998 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75001         Remove now-obsolete comment about AIX.
75002         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75003         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75004         (YYMAXDEPTH): New macro.
75005
75006 2004-12-18  Simon Josefsson  <jas@extundo.com>
75007
75008         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75009
75010 2004-12-18  Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75013
75014 2004-12-18  Bruno Haible  <bruno@clisp.org>
75015
75016         * lib/fatal-signal.c (fatal_signals): Make non-const.
75017         (init_fatal_signals): New function.
75018         (uninstall_handlers, install_handlers): Ignore signals that were set to
75019         SIG_IGN.
75020         (at_fatal_signal): Call init_fatal_signals.
75021         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75022         SIG_IGN.
75023         Reported by Paul Eggert.
75024
75025 2004-12-18  Bruno Haible  <bruno@clisp.org>
75026
75027         * doc/alloca.texi: New file.
75028         * doc/alloca-opt.texi: New file.
75029
75030 2004-12-17  Jim Meyering  <jim@meyering.net>
75031
75032         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75033         Otherwise, install-sh could exit with improper exit status when
75034         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75035
75036 2004-12-16  Simon Josefsson  <jas@extundo.com>
75037
75038         * tests/test-base64.c: Add license.
75039
75040 2004-12-15  Stepan Kasal  <address@hidden>
75041
75042         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75043
75044 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         * modules/getcwd (Files): Add m4/d-ino.m4.
75047         Suggested by Mark D. Baushke.
75048
75049 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         * lib/getdate.y (textint): New member "negative".
75052         (time_zone_hhmm): New function.
75053         Expect 14 shift-reduce conflicts, not 13.
75054         (o_colon_minutes): New rule.
75055         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75056         (yylex): Set the "negative" member of signed numbers.
75057
75058 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * doc/getdate.texi (Time of day items, Time zone items):
75061         Describe new formats +00:00, UTC+00:00.
75062
75063 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75066         spurious "-l"s.  Problem reported by Stepan Kasal.
75067
75068 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75071         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75072
75073 2004-12-04  Simon Josefsson  <jas@extundo.com>
75074
75075         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75076         Vandoorselaere <yoann@prelude-ids.org>.
75077
75078 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         Changes imported from coreutils.
75081         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75082         exist.
75083         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75084
75085 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         Changes imported from coreutils.
75088         * lib/hard-locale.c: Assume <locale.h> exists.
75089         Include "strdup.h".
75090         (GLIBC_VERSION): New macro.
75091         (hard_locale): Assume setlocale exists.
75092         Rewrite to avoid #ifdef.
75093         Use strdup rather than malloc + strcpy.
75094         * lib/human.c: Assume <locale.h> exists.
75095         (human_readable): Assume localeconv exists.
75096
75097 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * modules/hard-locale (Depends-on): Add strdup.
75100
75101 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75102
75103         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75104         convert T2, not T.  (Imported from libc.)
75105
75106 2004-11-30  Simon Josefsson  <jas@extundo.com>
75107
75108         * modules/restrict (License): Change to LGPL.
75109
75110 2004-11-30  Simon Josefsson  <jas@extundo.com>
75111
75112         * m4/restrict.m4: Add copyright and copying conditions.
75113
75114 2004-11-30  Simon Josefsson  <jas@extundo.com>
75115
75116         * m4/base64.m4: New file.
75117
75118 2004-11-30  Simon Josefsson  <jas@extundo.com>
75119
75120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75121         base64.
75122
75123         * tests/test-base64.c: New file.
75124
75125         * modules/base64: New file.
75126
75127 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75130         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75131
75132         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75133
75134 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75137         (__getcwd.c): Don't restore errno; glibc doesn't.
75138         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75139         first, falling back to our code only if its results look suspicious.
75140         Ensure that the resulting buffer is only as large as necessary.
75141
75142         * lib/readutmp.c: Include readutmp.h first.
75143         Include <errno.h>, since readutmp.h no longer does that.
75144         * lib/readutmp.h: Don't include <errno.h>,
75145         <sys/param.h>, <time.h>; not needed to establish interface.
75146         (errno): Remove decl.
75147         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75148         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75149         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75150
75151 2004-11-28  Simon Josefsson  <jas@extundo.com>
75152
75153         * lib/base64.h, base64.c: New file.
75154
75155 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75156
75157         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75158
75159 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75162         (Depends-on): Remove pathmax, same.  Add mempcpy.
75163         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75164         (Makefile.am): Append getcwd.h to lib_SOURCES.
75165         (Include): Add getcwd.h.
75166         (Maintainer): Change from Jim Meyering to "all, glibc",
75167         since getdate now uses intended-for-glibc code.
75168         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75169         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75170
75171 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75174         HP's ANSI C compiler.
75175         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75176         Declaring int functions causes warnings on some modern systems and
75177         shouldn't be needed to compile on ancient ones.
75178         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75179         defined.
75180
75181         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75182         with the following changes.
75183         (__set_errno): Parenthesize properly.
75184         Include <stdbool.h>.
75185         (MIN, MAX, MATCHING_INO): New macros.
75186         (__getcwd): Define with prototype, not K&R form.
75187         Use heuristics to allocate default buffer on stack if possible.
75188         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75189         behavior, and to avoid the PATH_MAX limit when computing
75190         ../../../../...
75191         Use MATCHING_INO to compare inode number to file.
75192         Check for arithmetic overflow in size calculations.
75193         Fix bug in reallocation of dot array that caused getcwd to fail
75194         on directories nested deeper than 75.
75195         Be more careful about saving errno on error.
75196         Do not use realloc; use only free+malloc, as this is a bit
75197         more flexible and avoids a needless copy operation.
75198         Do not inspect st_dev and st_ino for symbolic links; POSIX
75199         doesn't specify the latter.
75200         Check for closedir errors.
75201         Avoid needless casts.
75202         Use "#ifdef weak_alias" around weak_alias, to be like other
75203         glibc code.
75204         The following changes to getcwd.c have effect only when used in
75205         gnulib; they have no effect inside glibc proper.
75206         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75207         as alloca isn't used.
75208         (alloca, __alloca): Likewise.
75209         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75210         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75211         unconditionally, as gnulib assumes C89 or better.
75212         Do not include <sys/param.h>.
75213         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75214         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75215         better.
75216         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75217         Include <dirent.h> in a way that is compatible with modern Autoconf.
75218         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75219         New macros, if not already defined.
75220         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75221         Use "_LIBC", not "defined _LIBC", for consistency.
75222         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75223         a mempcpy module.
75224         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75225         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75226         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75227         credit only to Jim Meyering and adjust the copyright dates.
75228         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75229         <stdlib.h>, <unistd.h>, "pathmax.h".
75230         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75231         (INITIAL_BUFFER_SIZE): Remove.
75232         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75233
75234 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75237         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75238         Use the _ONCE methods, for efficiency.
75239         Check for fcntl.h.  In test program, include <errno.h>
75240         and <fcntl.h> if available.  Remove old K&R cruft from
75241         test program.  Check for common errors in GNU/Linux,
75242         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75243         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75245         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75246         name accordingly.
75247         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75248         accommodate new getcwd.c.
75249         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75250         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75251         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75252         that's all we need now.
75253
75254 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75255
75256         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75257         argp-parse.c depends on getopt internals, that means we should
75258         always use our getopt, to be on the safe side.
75259         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75260         order not to spoil the result of an eventual previous invocation
75261         of gl_GETOPT_SUBSTITUTE.
75262
75263 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75264
75265         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75266         redefinition warnings. To avoid them, include the defines
75267         in `#if !defined __need_getopt ... #endif'. The only place
75268         where __getopt_argv_const is used is in definitions
75269         of getopt_long and getopt_long_only below, which are as well
75270         protected by `#ifndef __need_getopt'.
75271         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75272         __need_getopt after including <stdio.h> and <unistd.h> These
75273         headers might have defined it.
75274
75275 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75278
75279 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75282         (futimens): New function, which uses futimes if available.
75283         (futimens, utimens): Support timespec==NULL, with same semantics
75284         as utime and utimens.
75285         * lib/utimens.h (futimens): New decl.
75286
75287 2004-11-23  Jim Meyering  <jim@meyering.net>
75288
75289         * lib/getopt_.h: Remove trailing blanks.
75290
75291 2004-11-23  Jim Meyering  <jim@meyering.net>
75292
75293         * lib/__fpending.c: Add comment.
75294
75295 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         * modules/canonicalize (Depends-on): Add xreadlink.
75298         Problem reported by James Youngman.
75299
75300 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75303         New macros.
75304         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75305         optopt): Use them instead of invoking ## directly; otherwise, the
75306         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75307
75308 2004-11-19  Bruno Haible  <bruno@clisp.org>
75309
75310         * lib/strtok_r.c: Move comments from here...
75311         * lib/strtok_r.h: ... to here.
75312
75313 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75316         implementations that mishandle size_t overflow.
75317
75318 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75321         might fail.  Problem reported by Yoann Vandoorselaere.
75322         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75323         implementations that mishandle size_t overflow.
75324
75325 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * modules/canon-host (Depends-on): Add strdup.
75328
75329 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75332
75333 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * lib/canon-host.c: Include "strdup.h".
75336         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75337         Use strdup instead of malloc/strcpy to duplicate strings.
75338
75339         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75340         (human_space_before_unit): New constant.
75341         * lib/human.c (human_readable): Support it.
75342
75343         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75344         (xgetcwd): Set errno correctly when failing.
75345         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75346         the failure is actually due to a PATH_MAX problem.
75347
75348         Further getopt changes to make it more likely that glibc will
75349         buy the changes back.
75350         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75351         (getopt): Use it, so to preserve glibc semantic
75352         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75353         when compiling for libc.
75354         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75355         (getopt_long, getopt_long_only): Use it.
75356
75357         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75358         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75359         (getopt): Argv is now char * const *, as per standard.
75360         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75361         not char *__getopt_argv_const *.
75362         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75363         _getopt_long_only_r): Likewise.
75364         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75365         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75366         _getopt_long_r, _getopt_long_only_r): Likewise.
75367         * lib/getopt_.h (__getopt_argv_const): Remove.
75368         (getopt): Argv is now char * const *, as per standard.
75369
75370         * lib/getdate.y (tORDINAL): New token.
75371         (day, relunit): Allow it for relative times.
75372         (relative_time_table): Use tORDINAL for ordinals.
75373
75374 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75377         Document that "second" isn't allowed as an ordinal number.
75378
75379 2004-11-16  Jim Meyering  <jim@meyering.net>
75380
75381         * modules/closeout (Depends-on): Add fpending.
75382
75383 2004-11-15  Jim Meyering  <jim@meyering.net>
75384
75385         * lib/closeout.c: Include "__fpending.h" once again.
75386         Include <stdbool.h>.
75387         (close_stdout): Don't fail just because stdout was closed initially,
75388         since some programs don't write to stdout in the normal course of
75389         operation (other than --version and --help), and we don't want this
75390         function to make e.g. `touch file >&-' fail.
75391         But do fail if it was closed and someone has tried to write to it.
75392         E.g., `printf foo >&-' must fail.
75393
75394 2004-11-13  Jim Meyering  <jim@meyering.net>
75395
75396         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75397
75398 2004-11-12  Simon Josefsson  <jas@extundo.com>
75399
75400         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75401         small doc fix is still pending.
75402
75403 2004-11-11  Simon Josefsson  <jas@extundo.com>
75404
75405         * modules/strtok_r: New file.
75406
75407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75408         strtok_r.
75409
75410 2004-11-11  Simon Josefsson  <jas@extundo.com>
75411
75412         * m4/strtok_r.m4: New file.
75413
75414         * m4/getopt.m4: Replace opterr.
75415
75416 2004-11-11  Simon Josefsson  <jas@extundo.com>
75417
75418         * lib/strtok_r.h, strtok_r.c: New file.
75419
75420 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75423         of replacing opterr, getopt, etc.  This should handle the
75424         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75425
75426 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75429         we can stop lying to compilers about the constness of argv when we
75430         are compiled outside glibc.
75431         (getopt, getopt_long, getopt_long_only): Use it.
75432         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75433         _getopt_internal, getopt): Likewise.
75434         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75435         _getopt_long_only_r): Likewise.
75436         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75437         _getopt_long_r, _getopt_long_only_r): Likewise.
75438
75439         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75440         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75441         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75442         the other external symbols.
75443         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75444         declaration, since the above renaming now works around collisions.
75445
75446 2004-11-11  Jim Meyering  <jim@meyering.net>
75447
75448         * lib/linebreak.c: Remove trailing blanks.
75449         * lib/alloca_.h: Likewise.
75450         * lib/acosl.c: Likewise.
75451         * lib/euidaccess.c: Likewise.
75452         * lib/allocsa.h: Likewise.
75453
75454 2004-11-10  Simon Josefsson  <jas@extundo.com>
75455
75456         * m4/getaddrinfo.m4: New file.
75457
75458 2004-11-10  Simon Josefsson  <jas@extundo.com>
75459
75460         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75461
75462 2004-11-10  Simon Josefsson  <jas@extundo.com>
75463
75464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75465         getaddrinfo.
75466
75467         * modules/getaddrinfo: New file.
75468
75469 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75472
75473 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75474
75475         * lib/mktime.c (SHR): New macro, which is a portable
75476         substitute for >> that should work even on Crays.
75477         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75478         Problem reported by Mark D. Baushke in
75479         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75480         * lib/getdate.y (SHR): Likewise.
75481         (tm_diff): Use it.
75482         * lib/strftime.c (SHR): Likewise.
75483         (tm_diff): Use it.
75484         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75485         quote_these_too, so that right shifts are well defined.  All uses
75486         changed.
75487
75488 2004-11-10  Jim Meyering  <jim@meyering.net>
75489
75490         Ensure that no close failure goes unreported.
75491         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75492         return early when it seems there's nothing to flush.
75493         Don't include __fpending.h.
75494
75495 2004-11-10  Jim Meyering  <jim@meyering.net>
75496
75497         * modules/closeout (Depends-on): Remove fpending.
75498
75499 2004-11-10  Jim Meyering  <jim@meyering.net>
75500
75501         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75502
75503 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75506         gl_FUNC_STRFTIME.
75507         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75508         and AC_REQUIRE when possible, to avoid duplicate checks.
75509         Check for <wchar.h>.
75510
75511 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75514
75515 2004-11-09  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/sockpfaf.m4: New file.
75518
75519 2004-11-05  Bruno Haible  <bruno@clisp.org>
75520
75521         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75522         Reported by Mark D. Baushke <mdb@cvshome.org>.
75523
75524 2004-11-04  Bruno Haible  <bruno@clisp.org>
75525
75526         2004-09-11  Bruno Haible  <bruno@clisp.org>
75527                 * allocsa.valgrind: New file.
75528         2004-02-06  Bruno Haible  <bruno@clisp.org>
75529                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75530                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75531                 Reported by Christopher Seip <chris.seip@hp.com>.
75532
75533 2004-11-04  Bruno Haible  <bruno@clisp.org>
75534
75535         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75536         (Makefile.am): Distribute it.
75537
75538 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75541         with errno == ERANGE if the buffer is too small.
75542         Problem reported by Mark D. Baushke.
75543
75544 2004-11-03  Albert Chin  <china@thewrittenword.com>
75545             Paul Eggert  <eggert@cs.ucla.edu>
75546
75547         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75548         equivalent, substitute $ac_type for equivalent type rather than
75549         blindly using uint32_t *always* which won't work if uint32_t is not
75550         available.  Define _UINT32_T to work around typedef of uint32_t if
75551         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75552         2.5.1.
75553
75554 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * m4/jm-macros.m4: Sync from coreutils.
75557         (gl_MACROS): Check for mbrlen, for pathchk.
75558         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75559
75560 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * lib/xreadlink.c (MAXSIZE): New macro.
75563         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75564         size does not exceed MAXSIZE.  Avoid cast.
75565         As suggested by Mark D. Baushke in
75566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75567         if readlink fails with buffer size just under MAXSIZE, try again
75568         with MAXSIZE.
75569
75570 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75573
75574 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75575         and  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75578         (get_date): Overparenthesize to avoid GCC warning.
75579
75580 2004-11-02  Bruno Haible  <bruno@clisp.org>
75581
75582         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75583         returns void.
75584
75585 2004-11-02  Bruno Haible  <bruno@clisp.org>
75586
75587         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75588         function returns void.
75589
75590 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75593         fflush_unlocked, flockfile, funlockfile, funlockfile,
75594         fputs_unlocked, putc_unlocked.
75595
75596 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75599         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75600         already declared.
75601
75602 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * modules/getdate (Files): Add doc/getdate.texi.
75605         (Depends-on): Add setenv, xalloc.
75606
75607 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/getdate.y: Add support for TZ="foo" within a date string.
75610         Fix some bugs near time_t boundaries.  Reject dates with
75611         out-of-range components, e.g., "Sept 31".
75612         Include <stdlib.h>, "setenv.h", "xalloc.h".
75613         (ISDIGIT_LOCALE): Remove; unused.
75614         Note that the TZ and time functions used here are not reentrant.
75615         (mktime_ok, get_tz): New functions.
75616         (TZBUFSIZE): New constant.
75617         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75618         This requires that we sometimes generate our own TZ="XXX..." setting.
75619
75620 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * doc/getdate.texi: New file, from coreutils with modifications for
75623         the new TZ parsing.
75624
75625 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75626
75627         * lib/mktime.c (not_equal_tm): Remove redundant check.
75628
75629 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         * modules/regex (lib_SOURCES): Add regex.c.
75632         Reported by James Youngman in
75633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75634
75635 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * lib/getdate.y: Use Bison 1.875 features, and some minor
75638         code cleanups.  This change does not affect semantics.
75639         Don't include <stdlib.h>; no longer needed.
75640         Don't include unlocked-io.h; only the "#if TEST" code uses
75641         stdio, and performance isn't crucial there.
75642         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75643         Bison 1.875 features as described below.
75644         All uses of "PC." replaced by "pc->".
75645         (YYSTYPE): Add a forward declaration.
75646         (yylex, yyerror): Use full prototypes in forward decls.
75647         Use "%pure-parser" rather than obsolescent "%pure_parser".
75648         Use %parse-param and %lex-param instead of obsolescent
75649         YYPARSE_PARAM and YYLEX_PARAM.
75650         (meridian_table, month_and_day_table, time_units_table,
75651         relative_time_table, time_zone_table, military_table,
75652         lookup_zone, lookup_word, get_date):
75653         Use NULL instead of 0 where appropriate.
75654         (to_hour): Avoid abort (), to avoid a dependency on
75655         stdlib.h.
75656         (yyerror, yylex): Now accepts parser_control * arg.
75657         (main) [TEST]: Use '\0' rather than 0 for char.
75658
75659 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75662
75663 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75666         It's now the caller's responsibility to handle the case where
75667         !HAVE_GETPAGESIZE && !defined getpagesize.
75668
75669         * lib/mktime.c (leapyear): Arg is long int, not int.
75670
75671 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75674
75675 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75678         missing.  Problem reported by James Youngman.
75679
75680 2004-10-16  Simon Josefsson  <jas@extundo.com>
75681
75682         * gnulib-tool: Fix comments.  Fix parse problem.
75683         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75684
75685 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75688         implementation of getopt_long.  Problem reported by Alexander Taler in:
75689         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75690
75691 2004-10-15  Bruno Haible  <bruno@clisp.org>
75692
75693         * gnulib-tool: Untabify. Initialize supplied_libname.
75694         (func_usage): More homogenous output.
75695         (func_modules_transitive_closure, func_modules_to_filelist,
75696         func_emit_lib_Makefile_am): New functions.
75697         (func_import): New function, extracted from big case statement. Use
75698         func_get_license, func_modules_transitive_closure,
75699         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75700         opt_lgpl. Don't use test -a, as it's not portable.
75701         (func_create_testdir): Use func_modules_transitive_closure,
75702         func_modules_to_filelist, func_emit_lib_Makefile_am.
75703
75704 2004-10-15  Bruno Haible  <bruno@clisp.org>
75705
75706         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75707
75708 2004-10-15  Bruno Haible  <bruno@clisp.org>
75709
75710         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75711         the portions belonging to each module.
75712         Suggested by Derek Robert Price <derek@ximbiot.com>.
75713
75714 2004-10-12  Simon Josefsson  <jas@extundo.com>
75715
75716         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75717         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75718         to real functions.
75719
75720 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75721
75722         * modules/vsnprintf: New file.
75723
75724 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75725
75726         * m4/vsnprintf.m4: New file.
75727
75728 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75729
75730         * lib/vsnprintf.h: New file.
75731         * lib/vsnprintf.c: New file.
75732
75733 2004-10-11  Bruno Haible  <bruno@clisp.org>
75734
75735         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75736         vsnprintf.
75737
75738 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75739
75740         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75741
75742 2004-10-07  Bruno Haible  <bruno@clisp.org>
75743
75744         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75745         fits into the provided buffer.
75746
75747 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * lib/diacrit.c, diacrit.h: Add GPL notice.
75750
75751         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75752         notice.
75753         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75754         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75755         This avoids a potential constant-folding bug.
75756
75757 2004-10-05  Bruno Haible  <bruno@clisp.org>
75758
75759         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75760         for the declaration of strsep.
75761
75762 2004-10-05  Bruno Haible  <bruno@clisp.org>
75763
75764         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75765
75766 2004-10-04  Simon Josefsson  <jas@extundo.com>
75767
75768         * modules/memmem: New file.
75769         * tests/test-memmem.c: New file.
75770         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75771
75772 2004-10-04  Simon Josefsson  <jas@extundo.com>
75773
75774         * m4/memmem.m4: New file.
75775
75776 2004-10-04  Simon Josefsson  <jas@extundo.com>
75777
75778         * lib/memmem.h: New file.
75779         * lib/memmem.c: New file, taken from glibc.
75780
75781 2004-10-04  Simon Josefsson  <jas@extundo.com>
75782
75783         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75784         '#ifdef USE_UNLOCKED_IO'.
75785
75786 2004-10-04  Simon Josefsson  <jas@extundo.com>
75787
75788         * config/srclist.txt: Add memmem from glibc.
75789
75790 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75793
75794         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75795         modules/exclude, modules/getdate, modules/getline,
75796         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75797         modules/getusershell, modules/linebuffer, modules/md5,
75798         modules/mountlist, modules/posixtm, modules/readtokens,
75799         modules/readutmp, modules/regex, modules/sha1,
75800         modules/version-etc, modules/yesno:
75801         Remove dependency on unlocked-io.
75802
75803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75806
75807         * m4/unlocked-io.m4: Add copyright notice.
75808         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75809
75810 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75813         * lib/xmalloc.c (xmemdup): Likewise.
75814         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75815         XFREE): Remove these long-obsolescent macros.
75816         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75817         * lib/xstrdup.c: Remove.
75818
75819         * lib/regex.c (re_comp): Cast gettext return value to char *,
75820         Problem reported by Martin Neitzel via Mark D. Baushke.
75821
75822 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75825         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75826         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75827         regex.c, sha1.c, version-etc.c, yesno.c:
75828         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75829         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75830         the includer's responsibility.
75831
75832         Sync from coreutils.
75833
75834         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75835         points to the start of a string, as the C Standard says the
75836         resulting behavior is undefined.
75837
75838         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75839         simple -> simple_backups, numbered_existing ->
75840         numbered_existing_backups, numbered -> numbered_backups
75841         to avoid shadowing problems.  All uses changed.
75842         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75843         * lib/backupfile.c (check_extension, numbered_backup):
75844         Rename locals to avoid shadowing 'basename'.
75845         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75846         once.
75847
75848         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75849         * lib/.cvsignore: Add getopt.h.
75850
75851 2004-10-04  Bruno Haible  <bruno@clisp.org>
75852
75853         * modules/README: New file.
75854         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75855         not a module.
75856
75857 2004-10-02  Jim Meyering  <jim@meyering.net>
75858
75859         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75860
75861 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75862
75863         * modules/strsep: New file.
75864
75865 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75866
75867         * m4/strsep.m4: New file.
75868
75869 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75870
75871         * lib/strsep.h: New file.
75872         * lib/strsep.c: New file.
75873
75874 2004-10-01  Simon Josefsson  <jas@extundo.com>
75875
75876         * lib/snprintf.c (snprintf): Handle size==0.
75877
75878 2004-10-01  Simon Josefsson  <jas@extundo.com>
75879             Bruno Haible  <bruno@clisp.org>
75880
75881         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75882         (snprintf): Declare 'args'.
75883
75884 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * lib/snprintf.c: Remove comments as to why each header is needed.
75887
75888 2004-10-01  Bruno Haible  <bruno@clisp.org>
75889
75890         * MODULES.html.sh: Add strsep.
75891
75892 2004-09-30  Simon Josefsson  <jas@extundo.com>
75893
75894         * modules/snprintf: New file.
75895
75896 2004-09-30  Simon Josefsson  <jas@extundo.com>
75897
75898         * m4/snprintf.m4: New file.
75899
75900 2004-09-30  Simon Josefsson  <jas@extundo.com>
75901
75902         * lib/snprintf.h, lib/snprintf.c: New files.
75903
75904 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75905
75906         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75907         (hol_entry_help): Never translate an empty string.
75908         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75909         * lib/argp.h (OPTION_NO_TRANS): New option.
75910
75911 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * modules/argp (Maintainer): Replace Simon Josefsson
75914         by Sergey Poznyakoff.
75915
75916 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75917
75918         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75919         changes merged back into glibc.
75920
75921 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75924
75925 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75926
75927         * lib/xvasprintf.c: Include xalloc.h.
75928         (xvasprintf): Use xalloc_die, not xmalloc_die.
75929
75930 2004-09-29  Bruno Haible  <bruno@clisp.org>
75931
75932         * modules/alloca-opt: New file, derived from modules/alloca.
75933         * modules/allocsa: Depend on alloca-opt instead of alloca.
75934         * modules/setenv: Likewise.
75935         * modules/vasnprintf: Likewise.
75936         * MODULES.html.sh: Add alloca-opt.
75937
75938 2004-09-28  Simon Josefsson  <jas@extundo.com>
75939
75940         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75941         LGPL, and to replace license template from GPL to LGPL.
75942
75943 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * modules/dummy: Change license to LGPL.
75946
75947 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75950
75951 2004-09-24  Simon Josefsson  <jas@extundo.com>
75952
75953         * modules/minmax (License): Change from GPL to LGPL.
75954
75955 2004-09-23  Simon Josefsson  <jas@extundo.com>
75956
75957         * gnulib-tool (--import): Typo.
75958
75959 2004-09-23  Simon Josefsson  <jas@extundo.com>
75960
75961         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75962
75963 2004-09-22  Bruno Haible  <bruno@clisp.org>
75964
75965         * modules/*: Add 'License' field.
75966         * gnulib-tool: Accept --extract-license option.
75967         (func_get_license): New function.
75968
75969 2004-09-21  Bruno Haible  <bruno@clisp.org>
75970
75971         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75972         Reported by Simon Josefsson.
75973
75974 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75977         gl_AC_TYPE_LONG_LONG.
75978
75979 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75982
75983 2004-09-18  Simon Josefsson  <jas@extundo.com>
75984         and  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75987         calls with autoreconf.  Define GL_LIB.
75988
75989 2004-09-14  Karl Berry  <karl@gnu.org>
75990
75991         * config/srclist.txt: unsync setenv.c, sigh.
75992
75993 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75996         Problem reported by Bruno Haible in:
75997         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75998
75999 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * config/srclist.txt: Comment out argp-pvh.c.
76002
76003 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76006         in case some system header has #define'd it.  Problem reported by
76007         Soeren D. Schulze in
76008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76009
76010 2004-09-09  Karl Berry  <karl@gnu.org>
76011
76012         * regex.[ch]: delete from the root.  These were supposed to be
76013                 synced with emacs cvs, but this has not happened for about
76014                 a year, and anyway nothing else uses emacs regex.[ch].
76015                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76016                 lib/regex[.ch] is untouched.
76017
76018 2004-09-09  Bruno Haible  <bruno@clisp.org>
76019
76020         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76021
76022 2004-09-09  Bruno Haible  <bruno@clisp.org>
76023
76024         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76025         modifications.
76026         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76027
76028 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76029
76030         * modules/xvasprintf: New file.
76031         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76032
76033 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76034
76035         * lib/xvasprintf.h: New file.
76036         * lib/xvasprintf.c: New file.
76037         * lib/xasprintf.c: New file.
76038
76039 2004-09-08  Bruno Haible  <bruno@clisp.org>
76040
76041         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76042
76043 2004-09-08  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76046         length is > INT_MAX.
76047         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76048         more.
76049
76050 2004-09-08  Bruno Haible  <bruno@clisp.org>
76051
76052         * lib/stdint_.h: New file, taken from GNU clisp.
76053
76054 2004-09-08  Bruno Haible  <bruno@clisp.org>
76055             Oskar Liljeblad  <oskar@osk.mine.nu>
76056
76057         * modules/stdint: New file.
76058         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76059
76060 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         Import from coreutils.
76063         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76064         strings on unbounded length.  alloca's performance benefits aren't
76065         that important here.
76066         (V_STRDUP): Remove.
76067         (parse_with_separator): New function, with most of the internals
76068         of the old parse_user_spec.  Allow user to omit both user and group,
76069         for compatibility with FreeBSD.
76070         Clone only the user name, not the entire spec.
76071         Do not set *uid, *gid unless entirely successful.
76072         Avoid memory leak in some failing cases.
76073         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76074         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76075         (parse_user_spec): Rewrite to use parse_with_separator.
76076
76077 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76078
76079         * modules/userspec: Don't depend on alloca.
76080
76081 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76082
76083         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76084
76085 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76088         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76089         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76090
76091 2004-08-16  Simon Josefsson  <jas@extundo.com>
76092
76093         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76094         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76095         Add --dry-run for --import.
76096         Let user provided command line parameters override configure.ac
76097         settings.
76098
76099 2004-08-12  Simon Josefsson  <jas@extundo.com>
76100
76101         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76102         as discussed with Paul Eggert in threads rooted at
76103         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76104         and
76105         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76106         Before, the test was empty, and relied on ELIDE_CODE in source
76107         code.)
76108         (gl_PREREQ_GETOPT): New macro.
76109         (gl_GETOPT): Use them.
76110
76111 2004-08-12  Simon Josefsson  <jas@extundo.com>
76112
76113         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76114         * lib/getopt_.h: Renamed from getopt.h.
76115
76116 2004-08-12  Simon Josefsson  <jas@extundo.com>
76117
76118         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76119         Change default library name from libfoo to libgnu.
76120         Now, if you have a configure.ac that says:
76121                 gl_SOURCE_BASE(gl)
76122                 gl_M4_BASE(gl/m4)
76123                 gl_MODULES(error getopt etcetera)
76124                 gl_INIT
76125         you can import all you need by running:
76126                 ../gnulib/gnulib-tool --import
76127
76128         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76129         (Makefile.am): Rewrite, use logic from argz.
76130         (Include): Use <getopt.h> instead of "getopt.h".
76131
76132 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * modules/argp (Files): Add m4/unlocked-io.m4.
76135         (Depends-on): Add extensions.
76136
76137 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76140         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76141         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76142         Check for program_invocation_name, program_invocation_short_name,
76143         flockfile, funlockfile, features.h, _getopt_long_only_r.
76144
76145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76148         its complicated substitute.
76149         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76150         and program_invocation_name.
76151         (__argp_basename) [!_LIBC]: Remove; the only use was
76152         replaced by its body.
76153         (__argp_short_program_name): Change condition from
76154         !defined __argp_short_program_name to
76155         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76156         to match argp-namefrob.h.
76157         (__argp_failure): Don't assume strerror_r returns char *.
76158         * lib/argp-parse.c (N_): Define unconditionally.
76159         (argp_default_options): Fill out initializers with 0 to avoid
76160         gcc warnings.
76161
76162 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76163
76164         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76165         getopt1.c.
76166
76167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76168
76169         Merge from coreutils.
76170
76171         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76172
76173         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76174         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76175
76176 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76177
76178         Merge from coreutils.
76179
76180         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76181         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76182         for Reliant Unix 5.43.
76183
76184         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76185         (union fooround): Use uintmax_t, not long int.
76186         The rest is a merge from libc:
76187         [defined _LIBC]: Include <shlib-compat.h>.
76188         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76189
76190         * lib/settime.c (settime): Recode to avoid warning with
76191         Sun Forte C 6U2.
76192
76193         * lib/strverscmp.c: Convert to UTF-8.
76194
76195 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76198         m4/uintmax_t.m4.
76199
76200 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * modules/xalloc-die: New file.
76203         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76204
76205         * modules/md5 (Files): Add m4/uint32_t.m4.
76206         * modules/sha1: Renamed from modules/sha.
76207         (Files):
76208         Rename lib/sha.h to lib/sha1.h.
76209         Rename lib/sha.c to lib/sha1.c.
76210         Rename m4/sha.m4 to m4/sha1.m4.
76211         (lib_SOURCES): Likewise.
76212         (configure.ac): Rename gl_SHA to gl_SHA1.
76213         (Include): sha.h -> sha1.h.
76214
76215 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76218         * m4/sha1.m4: Renamed from sha.m4.
76219         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76220
76221 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76222
76223         * lib/obstack.h (obstack_empty_p):
76224         Don't assume that chunk->contents is suitably aligned.
76225         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76226         Likewise. Problem reported by Benno in
76227         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76228
76229         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76230         readable.  This could be improved further but it'd take some work.
76231
76232 2004-08-08  Simon Josefsson  <jas@extundo.com>
76233
76234         * modules/xgethostname (Depends-on): Remove exit and error (not
76235         used).
76236
76237         * modules/getpass-gnu: Add getpass.h.
76238         (Depends-on): Add stdbool.
76239         * modules/getpass: Add getpass.h.
76240
76241 2004-08-08  Simon Josefsson  <jas@extundo.com>
76242
76243         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76244         Check getpass declaration.
76245
76246 2004-08-08  Simon Josefsson  <jas@extundo.com>
76247
76248         * lib/xgethostname.c: Don't include error.h (not used).
76249
76250         * lib/getpass.h: Add.
76251         * lib/getpass.c: Include getpass.h first.
76252
76253 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * lib/xalloc-die.c: New file.
76256         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76257         All uses removed.
76258         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76259         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76260         xalloc-die.c.
76261         (_, N_, xalloc_die): Move to xalloc-die.c.
76262         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76263         so that we needn't mess with xalloc_msg_memory_exhausted.
76264
76265         * lib/sha1.h: Renamed from sha.h.
76266         (SHA1_H): Renamed from _SHA_H.
76267         (sha1_ctx): Renamed from sha_ctx.
76268         (sha1_init_ctx): Renamed from sha_init_ctx.
76269         (sha1_process_block): Renamed from sha_process_block.
76270         (sha1_process_bytes): Renamed from sha_process_bytes.
76271         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76272         (sha1_read_ctx): Renamed from sha_read_ctx.
76273         (sha1_stream): Renamed from sha_stream.
76274         (sha1_buffer): Renamed from sha_buffer.
76275         * lib/sha1.c: Likewise; renamed from sha.c.
76276         Do not include <sys/types.h>.
76277         Include <stddef.h> rather than <stdlib.h>.
76278
76279 2004-08-08  Bruno Haible  <bruno@clisp.org>
76280
76281         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76282         FILESYSTEM_PREFIX_LEN.
76283         * lib/progreloc.c: Likewise.
76284         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76285
76286 2004-08-06  Simon Josefsson  <jas@extundo.com>
76287
76288         * modules/progname (Depends-on): Don't depend on stdbool.
76289
76290 2004-08-06  Simon Josefsson  <jas@extundo.com>
76291
76292         * modules/getsubopt: New file.
76293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76294         getsubopt.
76295
76296 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76297
76298         More merge from coreutils.
76299
76300         * m4/utimens.m4, m4/utimecmp.m4: New files.
76301         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76302         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76303         prereq.m4, sha.m4: Import changes from coreutils.
76304
76305 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         More merge from coreutils.
76308         * modules/raise, modules/readtokens0, modules/utimens:
76309         * modules/utimecmp, module/xnanosleep: New files.
76310         * modules/strftime: Add lib/strftime.h.
76311         Change include from <time.h> to "strftime.h".
76312         * modules/yesno: Add lib/yesno.h.
76313         * modules/backupfile: Remove lib/addext.c.
76314         * modules/euidaccess: Add stat-macros.h.
76315         * modules/canonicalize, modules/euidaccess,
76316         modules/filemode, modules/lchown, modules/makepath,
76317         modules/rmdir, modules/stat: Likewise.
76318
76319 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76320
76321         Merge from tar.
76322         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76323         SIZE_MAX is a valid preprocessor constant.
76324         (__argp_basename): Change from "#ifndef _LIBC"
76325         to "#ifndef __argp_short_program_name", so that
76326         we don't compile these functions for tar.
76327
76328         More merges from coreutils.
76329         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76330         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76331         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76332         * lib/addext.c: Remove; no longer needed.
76333         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76334         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76335         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76336         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76337         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76338         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76339         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76340         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76341         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76342         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76343         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76344         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76345         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76346         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76347         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76348         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76349         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76350         Import changes from coreutils.
76351
76352 2004-08-05  Simon Josefsson  <jas@extundo.com>
76353
76354         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76355
76356 2004-08-05  Simon Josefsson  <jas@extundo.com>
76357
76358         * m4/getsubopt.m4: New file.
76359
76360 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76361
76362         Merge from coreutils.
76363
76364         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76365         * m4/getcwd-path-max.m4: New files.
76366
76367         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76368         FILESYSTEM_PREFIX_LEN ->
76369         FILE_SYSTEM_PREFIX_LEN.
76370         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76371         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76372         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76373         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76374
76375         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76376         prerequisite modules now handle the DOS stuff.
76377         Don't check for unistd.h.
76378
76379 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         Merge from coreutils.
76382
76383         * lib/.gdb-history: Remove; this doesn't belong here.
76384
76385         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76386         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76387         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76388         * lib/getcwd.c: New files.
76389
76390         * lib/dirname.h: Include <stdbool.h>.
76391         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76392         for consistency with POSIX terminology.  All uses changed.
76393         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76394         (strip_trailing_slashes): Use bool for booleans.
76395         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76396
76397         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76398         sometimes returns a positive errno value even when it succeeds.
76399         (print_errno_message) [!LIBC]: Fall back on strerror if
76400         __strerror_r fails.
76401
76402         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76403         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76404         (longest_relative_suffix): New function.
76405         (path_concat): Use it.  Assume first argument is not NULL.
76406         Port to DOS.  Omit redundant separators.
76407         Report an error instead of returning NULL.
76408         Use mempcpy instead of memcpy.
76409         (xpath_concat): Remove: not declared or used.
76410
76411         * lib/same.h: Include <stdbool.h>
76412         (same_name): Return bool, not int.
76413         * lib/same.c (same_name): Likewise.
76414         (errno): Don't declare; we assume C89 or better now.
76415
76416         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76417         if not already defined.
76418
76419         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76420         * lib/dup-safer.c (errno): Likewise.
76421
76422 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76423
76424         Merge from coreutils.
76425         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76426         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76427         * modules/path-concat: Don't depend on strdup.
76428
76429 2004-08-03  Simon Josefsson  <jas@extundo.com>
76430
76431         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76432         * lib/progname.h: Don't include stdbool.h.
76433
76434 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76435
76436         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76437         * MODULES.html.sh (func_all_modules): Remove fatal.
76438
76439 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76442
76443 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76446         working.
76447
76448 2004-08-02  Simon Josefsson  <jas@extundo.com>
76449
76450         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76451         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76452         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76453
76454 2004-08-01  Simon Josefsson  <jas@extundo.com>
76455
76456         * lib/xgetdomainname.c: Include stdlib.h, for free().
76457
76458 2004-07-19  Bruno Haible  <bruno@clisp.org>
76459
76460         * MODULES.html.sh (func_all_modules): Add dummy.
76461
76462 2004-07-16  Simon Josefsson  <jas@extundo.com>
76463
76464         * modules/dummy: New file.
76465
76466 2004-07-16  Simon Josefsson  <jas@extundo.com>
76467
76468         * lib/dummy.c: New file.
76469
76470 2004-07-16  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/backupfile.h: Add extern "C" for C++.
76473         * lib/closeout.h: Likewise.
76474         * lib/copy-file.h: Likewise.
76475         * lib/findprog.h: Likewise.
76476         * lib/full-write.h: Likewise.
76477         * lib/pathname.h: Likewise.
76478         * lib/progname.h: Likewise.
76479         * lib/stpcpy.h: Likewise.
76480         * lib/stpncpy.h: Likewise.
76481         * lib/strcase.h: Likewise.
76482         * lib/strstr.h: Likewise.
76483         * lib/xalloc.h: Likewise.
76484
76485         * lib/mbswidth.h: Add extern "C" for C++.
76486         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76487
76488 2004-07-13  Robert Millan  <robertmh@gnu.org>
76489
76490         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76491
76492 2004-07-09  Simon Josefsson  <jas@extundo.com>
76493
76494         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76495         failed without this.)
76496
76497 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * modules/chown (Files): Add lib/fchown-stub.c, since
76500         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76501
76502 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * lib/fchown-stub.c: New file.
76505
76506 2004-06-24  Jim Meyering  <jim@meyering.net>
76507
76508         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76509
76510 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * modules/argz: Omit "#include".
76513
76514         * MODULES.html.sh (func_all_modules): Add calloc, to match
76515         2004-06-01 addition of calloc module.
76516
76517 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * m4/argz.m4: New file, which is autoupdated from libtool.
76520
76521 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76524         libtool.
76525
76526 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         * config/srclist-update: Don't insist on "USA." before the
76529         close-comment, as libtool omits the period and puts the */ on a
76530         separate line.
76531         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76532         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76533
76534 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76535
76536         * modules/argz: New file.
76537         * MODULES.html.sh (func_all_modules): Add argz.
76538
76539 2004-06-12  Jim Meyering  <jim@meyering.net>
76540         and  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * modules/hash (Files): Add lib/xalloc.h.
76543         * modules/pipe (Depends-on): Add wait-process.
76544         * modules/stat (Depends-on): Add xalloc.
76545         * modules/userspec (Files): Add lib/userspec.h.
76546         * modules/xstrto
76547
76548         Upgrade from gettext-0.13.
76549         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76550         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76551         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76552
76553 2004-06-10  Jim Meyering  <jim@meyering.net>
76554
76555         * lib/calloc.c: New file.
76556
76557 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76558
76559         * lib/getdate.y (yylex): Allow space between sign and number.
76560         Problem reported by Dan Jacobson.
76561
76562 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         Merge from coreutils CVS.
76565
76566         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76567         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76568         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76569         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76570         xstrtol.m4: Fix copyright date and/or serial number.
76571
76572         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76573         See if we need an fchown replacement.
76574         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76575         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76576         and use the replacement function if we detect either defect.
76577
76578         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76579         gl_UTIMECMP.
76580
76581 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76582         and  Jim Meyering  <jim@meyering.net>
76583
76584         Merge from coreutils CVS.
76585
76586         * lib/stat-macros.h: New file, with contents from file-type.h
76587         and coreutils' system.h.
76588         * lib/file-type.c: Include "stat-macros.h".
76589         * lib/file-type.h (file_type): Move all macro definitions to new file,
76590         stat-macros.h.
76591
76592         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76593         Wrap old code with this conditional.
76594         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76595         function that does not dereference symlinks.
76596         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76597
76598         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76599         dependency problems.
76600         (xreadlink): Accept new arg SIZE, for efficiency.
76601         All decls and uses changed.
76602         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76603
76604         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76605         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76606
76607         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76608         sysexits.h.
76609
76610 2004-06-01  Jim Meyering  <jim@meyering.net>
76611
76612         * m4/calloc.m4: New file.
76613
76614 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76617         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76618         Also, fix a typo in a diagnostic.
76619
76620 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76623         or AC_FUNC_REALLOC.
76624
76625 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76628         macros to be defined.
76629         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76630         the allocator returns NULL because the requested size is zero.
76631
76632 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76635         var.  Add comment explaining why libc still defines it.  This
76636         merges the following patch from glibc:
76637         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76638
76639 2004-05-20  Andreas Schwab  <schwab@suse.de>
76640
76641         * m4/free.m4: Replace free if it not known to work, not the other
76642         way round.
76643
76644 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76647         present in glibc since revision 1.1 of this file.
76648         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76649         obstack_alignment_mask, obstack_alloc, obstack_base,
76650         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76651         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76652         obstack_grow0, obstack_init, obstack_int_grow,
76653         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76654         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76655         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76656         nonexistent functions.
76657
76658 2004-05-18  Karl Berry  <karl@gnu.org>
76659
76660         * config/srclist.txt: break link for vasnprintf.c.
76661
76662 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         Port obstack to the AS/400, where pointers are 16 bytes wide and
76665         you cannot cast an integer to a valid pointer.  This patch is
76666         currently waiting to be integrated into glibc; see
76667         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76668
76669         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76670         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76671         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76672         (struct obstack): temp member is now a union of a pointer and
76673         an integer, instead of an integer.  All integer uses changed.
76674         This does not affect the physical layout of struct obstack,
76675         except on hosts (like the AS/400) where the size or alignment of
76676         void * is greater than that of ptrdiff_t.
76677         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76678         __STDC__)]: Store temporary in pointer member of union, not
76679         integer member.
76680         * lib/obstack.c: Include <stddef.h>, for offsetof.
76681         (struct fooalign): Remove; it doesn't need a name.
76682         (union fooround): Change double to long double, and add void *.
76683         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76684         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76685         not a macro.  Hence the values are always int; so remove all
76686         casts-to-int in uses.
76687
76688 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76691         we can get this patch merged into glibc.
76692
76693 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76694             Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * m4/argp: Depend on alloca.
76697
76698 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76699             Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76702         freecoding.
76703
76704 2004-05-17  Bruno Haible  <bruno@clisp.org>
76705
76706         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76707         precision that consists of a '.' followed by an empty digit string.
76708         Patch by Tor Lillqvist <tml@iki.fi>.
76709
76710 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76713         for backward compatibility with older code.  We need our own
76714         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76715         it under some other name, and our alloca.h will define it.
76716
76717 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76718             Derek Price  <derek@ximbiot.com>
76719
76720         * lib/alloca.c: Include <alloca.h>, to get our interface.
76721         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76722         include <alloca.h> first.  Use C89 prototype for alloca; this
76723         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76724         Use #elif for simplicity, since we can assume C89 now.
76725         Don't try to source the system alloca.h since it will not be found
76726         and to prevent recursively including its replacement.
76727         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76728         * lib/regex.c: Likewise.
76729
76730 2004-05-16  Derek Price  <derek@ximbiot.com>
76731             Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         getline cleanup.  This changes the getndelim2 API: both order of
76734         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76735         no delimiter).
76736
76737         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76738         interface does that.
76739         (getline): Always use getdelim, so that we don't have two
76740         copies of this code.
76741         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76742         if available.
76743         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76744         (GETNDELIM2_MAXIMUM): New macro.
76745         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76746         instead of the old practice of delim2==0.  All callers changed.
76747         Return -1 on overflow, instead of returning junk.
76748         Do not set *linesize unless allocation succeeds.
76749         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76750         that we include sys/types.h.
76751         * lib/getnline.h: Likewise.
76752         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76753         (getndelim2): Reorder arguments.
76754         * lib/getnline.c (getnline, getndelim):
76755         Don't discard the NMAX argument.
76756         (getnline): Invoke getndelim, to avoid code duplication.
76757         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76758         of (size_t) -1 by callers of the getnline family.
76759
76760 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76763         Check for gettimeofday.
76764         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76765         Check for settimeofday, stime.
76766
76767 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * lib/nanosleep.c (suspended): Change its type from int to
76770         sig_atomic_t volatile.
76771         (first_call): Make it private to rpl_nanosleep, and have it
76772         be zero initially as that's a bit faster.
76773         (my_usleep): Round up fractional times instead of truncating them,
76774         as this is the usual meaning for 'sleep'.
76775
76776         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76777         doesn't work.
76778         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76779         (ENOSYS): Define if not defined.
76780         (settime): Fall back on stime if it exists and settimeofday fails.
76781         But don't bother with fallbacks if a method fails with errno == EPERM.
76782
76783 2004-05-11  Jim Meyering  <jim@meyering.net>
76784
76785         Prior to this change, the save_cwd caller required read access to the
76786         current directory on most systems (ones with the fchdir function).
76787
76788         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76789         fails, try write-only, and finally, resort to using xgetcwd.
76790
76791 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * lib/obstack.c, obstack.h: Import changes from libc.
76794
76795 2004-04-28  Bruno Haible  <bruno@clisp.org>
76796
76797         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76798         also implicitly appends .exe to executables.
76799         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76800         accepts Windows pathnames.
76801         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76802         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76803         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76804         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76805         Reported by Derek Robert Price <derek@ximbiot.com>.
76806
76807 2004-04-21  Karl Berry  <karl@gnu.org>
76808
76809         * config/srclist.txt (localcharset.c): break sync.
76810
76811 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76812
76813         * m4/host-os.m4: Add a copyright notice.
76814
76815 2004-04-20  Jim Meyering  <jim@meyering.net>
76816
76817         Change UTILS_ to gl_ in AC_DEFINE'd names.
76818         Change utils_- and jm_-prefixed variables, too.
76819         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76820         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76822
76823         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76824         Don't emit trailing blanks.
76825         Also rename jm_-prefixed variables to have gl_ prefix.
76826
76827         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76828         Also rename jm_-prefixed variables to have gl_ prefix.
76829
76830         * m4/jm-macros.m4: Reflect the renamings.
76831         * m4/prereq.m4: Likewise.
76832
76833 2004-04-20  Jim Meyering  <jim@meyering.net>
76834
76835         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76836         memory.
76837
76838 2004-04-20  Jim Meyering  <jim@meyering.net>
76839             Bruno Haible  <bruno@clisp.org>
76840
76841         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76842         memory when realloc fails.
76843
76844 2004-04-19  Jim Meyering  <jim@meyering.net>
76845
76846         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76847         now that readutmp.c may call `free (0)'.
76848
76849 2004-04-19  Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76852         * m4/inttypes_h.m4: Likewise.
76853         * m4/stdint_h.m4: Likewise.
76854         * m4/intmax_t.m4: Likewise.
76855         * m4/uintmax_t.m4: Likewise.
76856
76857 2004-04-18  Jim Meyering  <jim@meyering.net>
76858
76859         * m4/prereq.m4: Don't forbid jm_ prefix.
76860
76861         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76862         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76863         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76864         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76865         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76866         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76867         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76868         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76869         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76870         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76871         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76872         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76873         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76874         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76875         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76876         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76877         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76878         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76879         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76880
76881 2004-04-18  Jim Meyering  <jim@meyering.net>
76882
76883         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76884         failure, don't leak memory and do call END_UTMP_ENT.
76885
76886 2004-04-16  Jim Meyering  <jim@meyering.net>
76887
76888         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76889         coreutils' stat program.
76890         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76891
76892 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76893
76894         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76895         C89.
76896         (CHAR_BIT): Remove, since we assume C89.
76897         Include <stdint.h> if available, as per current Autoconf CVS advice.
76898
76899 2004-03-31  Jim Meyering  <jim@meyering.net>
76900
76901         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76902         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76903         * m4/xalloc.m4: Likewise.
76904
76905 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76906
76907         Merge from coreutils.
76908
76909         * m4/inttostr.m4: New file.
76910         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76911         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76912         Require gl_CLOCK_TIME.
76913         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76914
76915 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76916
76917         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76918         not bool, to be more consistent with Unix conventions.
76919         Suggested by Bruno Haible.
76920
76921         Merge from coreutils.
76922
76923         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76924         * lib/umaxtostr.c: New files.
76925
76926         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76927         the usual <time.h> dance.
76928         (get_date): Change signature to support fractional time stamps.
76929         All callers changed.
76930         * lib/getdate.y: Include "getdate.h" first, as we can now
76931         assume C89 and don't need to worry about 'const'.
76932         Similarly, include "unlocked-io.h" near start, not in middle.
76933         Include <limits.h>.
76934         (textint.value): Use long int rather than int.
76935         (textint.digits): Use size_t rather than int.
76936         (BILLION, LOG10_BILLION): New constants.
76937         (parser_control): New member rel_ns.  Members day_ordinal,
76938         time_zone, month, day, hour, minutes, rel_year, rel_month,
76939         rel_day, rel_hour, rel_minutes, rel_seconds
76940         are now long int, not int.  Member seconds is now struct timespec,
76941         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76942         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76943         not int.
76944         (%union.intval): Now long int, not int.
76945         New member timespec.
76946         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76947         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76948         (spec): Now is a timespec or an item list.
76949         (timespec, items): New nonterminals.
76950         (time, rel, relunit, number, get_date):
76951         Add support for fractional seconds.
76952         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76953         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76954         (to_hour): First arg is now long int, not int.
76955         (to_year): Returns long int, not int.
76956         Don't treat year -70 like 70.
76957         (tm_diff): Returns long int, not int.
76958         (lookup_word): Use bool instead of int when appropriate.
76959         (yylex): Use size_t for count, not int.
76960         Detect overflow when parsing large integer constants.
76961         Add support for fractions.
76962         (get_date): Make pointers 'const' if possible.
76963         Use more-portable code to detect integer overflow.
76964         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76965         Don't use ctime; it's not reliable if the year has >4 digits.
76966
76967         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76968         This is for compatibility with BSD.
76969
76970         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76971         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76972         From coreutils' system.h.
76973
76974         * lib/userspec.c: Don't include "posixver.h".
76975         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76976         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76977         compatible extension.  Simplify code by removing a boolean int
76978         that was always nonzero if a string was nonnull.
76979
76980 2004-03-30  Jim Meyering  <jim@meyering.net>
76981
76982         Merge from coreutils.
76983
76984         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76985         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76986         on some systems one must include <grp.h> before it.
76987         Reported by Christian Krackowizer.
76988
76989 2004-03-30  Jim Meyering  <jim@meyering.net>
76990
76991         Merge from coreutils.
76992
76993         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76994
76995         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76996         an empty input stream.
76997
76998         * lib/readtokens.c: Include <stdbool.h>.
76999         (readtoken): Use `size_t' rather than int/long.
77000         All callers adjusted.
77001         Use `bool' rather than `int' where appropriate.
77002         Use memset rather than an explicit loop.
77003         Use x2nrealloc rather than xrealloc.
77004         Allow the use of `\0' as a delimiter.
77005         (readtokens): Likewise.
77006         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77007
77008 2004-03-30  Jim Meyering  <jim@meyering.net>
77009
77010         * m4/realloc.m4: Remove file, since now it does no more than
77011         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77012         the `configure.ac' section of module/realloc.
77013         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77014
77015 2004-03-30  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77018         nonnull.
77019
77020 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77021
77022         Merge changes to getloadavg.c from coreutils and Emacs.
77023
77024         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77025         Define to an expression, not to the empty string.
77026         Include cloexec.h and xalloc.h.
77027         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77028         Use set_cloexec_flag rather than rolling our own.
77029         * lib/cloexec.c, lib/cloexec.h: New files.
77030
77031 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77032
77033         * m4/cloexec.m4: New file.
77034
77035 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77036
77037         * lib/getopt.h: Sync with libc CVS.
77038
77039 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77040             Bruno Haible  <bruno@clisp.org>
77041
77042         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77043         mbswidth.
77044
77045 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77046             Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/mbswidth.h: Include <wchar.h> only if
77049         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77050         <wchar.h>.
77051         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77052
77053 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77054
77055         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77056         Sync with libc CVS.
77057         * lib/getopt_int.h: New file, also synced from libc.
77058
77059 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77060
77061         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77062         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77063         Bring back getopt.c, getopt.h, getopt1.c.
77064
77065 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77066
77067         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77068         All uses changed.  Check for sa_sigaction member; this fixes
77069         a bug first reported by Jason Andrade in
77070         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77071
77072 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77073
77074         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77075         '#if' expressions.  Unlike the code it replaces, it does not
77076         depend on (defined _SC_PAGESIZE).  However, it does depend on
77077         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77078         first reported by Jason Andrade in
77079         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77080
77081 2004-02-25  Simon Josefsson  <jas@extundo.com>
77082
77083         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77084
77085 2004-02-25  Simon Josefsson  <jas@extundo.com>
77086
77087         * lib/strdup.h: New file.
77088         * lib/strdup.c: Include it.
77089         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77090         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77091
77092 2004-02-23  Karl Berry  <karl@gnu.org>
77093
77094         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77095         (from fencepost.gnu.org:/gd/gnuorg).
77096
77097 2004-02-23  Karl Berry  <karl@gnu.org>
77098
77099         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77100         * config/srclist.txt: add maintain/standards documents.
77101
77102 2004-02-18  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77105         Reported by Derek Robert Price <derek@ximbiot.com>.
77106
77107 2004-02-16  Karl Berry  <karl@gnu.org>
77108
77109         * config/mkinstalldirs, install-sh: update from automake.
77110
77111 2004-02-06  Karl Berry  <karl@gnu.org>
77112
77113         * m4/po.m4: update from gettext 0.14.1.
77114
77115 2004-02-06  Karl Berry  <karl@gnu.org>
77116
77117         * lib/config.charset: update from gettext 0.14.1.
77118
77119 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77120
77121         Add comments and code, prompted by suggestions from Bruno Haible
77122         for sh-quote.
77123         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77124         describing the enum quoting_style values.
77125         * lib/quotearg.c (quotearg_alloc): New function.
77126         (quotearg_buffer_restyled): Treat lone { and } as special.
77127         Treat = as special.  Work around bug with older shells
77128         that "see" a '\' that is really the 2nd byte of a multibyte char.
77129         Quote empty string with shell_quoting_style.
77130
77131 2004-02-03  Bruno Haible  <bruno@clisp.org>
77132
77133         * m4/pipe.m4: New file, from GNU gettext.
77134
77135 2004-02-03  Bruno Haible  <bruno@clisp.org>
77136
77137         * lib/pipe.h: New file, from GNU gettext.
77138         * lib/pipe.c: New file, from GNU gettext.
77139
77140 2004-01-27  Bruno Haible  <bruno@clisp.org>
77141
77142         * m4/execute.m4: New file, from GNU gettext.
77143
77144 2004-01-27  Bruno Haible  <bruno@clisp.org>
77145
77146         * lib/execute.h: New file, from GNU gettext.
77147         * lib/execute.c: New file, from GNU gettext.
77148         * lib/w32spawn.h: New file, from GNU gettext.
77149
77150 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77151
77152         Merge from diffutils.
77153
77154         * lib/file-type.c (file_type): Add typed memory objects.
77155         * lib/file-type.h (S_TYPEISTMO): New macro.
77156
77157         * lib/c-stack.h (c_stack_action): Remove argv argument.
77158         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77159         (die): Don't calculate message unless segv_action returns.
77160         (get_stack_location, min_address_from_argv, max_address_from_argv,
77161         volatile stack_base, volatile_stack_size): Remove.
77162         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77163         that every segmentation violation is a stack overflow.  (Ouch!)
77164         See Debian bug 136249 (still outstanding) for more info about why
77165         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77166
77167 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77168
77169         Exit-status fix from coreutils.
77170
77171         Use exit_failure consistently in place of EXIT_FAILURE,
77172         so that program exit statuses are consistent on failure.
77173
77174         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77175         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77176         * lib/argmatch.h: Comment fix to match the above.
77177         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77178         Now a macro referring to exit_failure, instead of a separate
77179         variable.  Include "exitfail.h" to get it.
77180         * lib/xstrtol.h: Include "exitfail.h".
77181         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77182
77183         * lib/long-options.c (parse_long_options): Use prototype
77184         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77185         for clarity.
77186
77187 2004-01-21  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77190         so as not to conflict with a different-sized __mktime_internal
77191         function in GNU libc.
77192         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77193         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77194
77195 2004-01-20  Karl Berry  <karl@gnu.org>
77196
77197         * config/config.guess: update from config.
77198
77199         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77200
77201 2004-01-20  Bruno Haible  <bruno@clisp.org>
77202
77203         Safer stack allocation.
77204         * lib/setenv.c: Include allocsa.h.
77205         (alloca): Remove fallback definition.
77206         (freea): Remove macro.
77207         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77208         instead of freea.
77209
77210 2004-01-20  Bruno Haible  <bruno@clisp.org>
77211
77212         * m4/eealloc.m4: New file, from GNU gettext.
77213
77214 2004-01-20  Bruno Haible  <bruno@clisp.org>
77215
77216         * m4/allocsa.m4: New file, from GNU gettext.
77217
77218 2004-01-20  Bruno Haible  <bruno@clisp.org>
77219
77220         * lib/xallocsa.h: New file, from GNU gettext.
77221         * lib/xallocsa.c: New file, from GNU gettext.
77222
77223 2004-01-20  Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77226
77227 2004-01-20  Bruno Haible  <bruno@clisp.org>
77228
77229         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77230         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77231         specially.
77232
77233 2004-01-20  Bruno Haible  <bruno@clisp.org>
77234
77235         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77236         patch.
77237
77238 2004-01-20  Bruno Haible  <bruno@clisp.org>
77239
77240         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77241
77242 2004-01-20  Bruno Haible  <bruno@clisp.org>
77243
77244         * lib/eealloc.h: New file.
77245
77246 2004-01-20  Bruno Haible  <bruno@clisp.org>
77247
77248         * lib/binary-io.h: Avoid warnings on Cygwin.
77249
77250 2004-01-20  Bruno Haible  <bruno@clisp.org>
77251
77252         * lib/allocsa.h: New file, from GNU gettext.
77253         * lib/allocsa.c: New file, from GNU gettext.
77254
77255 2004-01-18  Karl Berry  <karl@gnu.org>
77256
77257         * doc/gpl.texi, doc/lgpl.texi: new files.
77258
77259 2004-01-18  Karl Berry  <karl@gnu.org>
77260
77261         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77262         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77263
77264 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77265
77266         Merge from coreutils.
77267
77268         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77269         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77270         (gl_DEFAULT_POSIX2_VERSION): Move
77271         the documentation from 'configure' into 'config.hin',
77272         so that 'configure --help' isn't burdened by it and
77273         we don't have to worry about its formatting there.
77274         Reword the documentation so that it's more succinct
77275         and can be run together into a single paragraph.
77276         * m4/same.m4 (gl_SAME): Check for pathconf.
77277
77278 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77279
77280         Merge from coreutils.
77281
77282         * lib/posixver.c: Include posixver.h.
77283
77284         * lib/same.c: Include <stdbool.h>, <limits.h>.
77285         (_POSIX_NAME_MAX): Define if not defined.
77286         (MIN): New macro.
77287         (same_name): If file names are silently truncated, report
77288         that the file names are the same if they are the same after
77289         the silent truncation.
77290
77291         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77292         conversion function.
77293         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77294         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77295         longer needed.
77296
77297 2004-01-15  Jim Meyering  <jim@meyering.net>
77298
77299         Merge from coreutils.
77300
77301         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77302         if no library is required.
77303         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77304         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77305         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77306         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77307         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77308         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77309         value, $ac_cv_search_crypt, if it's "none required".
77310         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77311         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77312         not gl_FUNC_GETLOADAVG.
77313         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77314         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77315
77316 2004-01-15  Jim Meyering  <jim@meyering.net>
77317
77318         Merge from coreutils.
77319
77320         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77321         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77322         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77323
77324         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77325         optional configure-time default.
77326
77327         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77328
77329         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77330
77331 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77332
77333         Merge from coreutils.
77334
77335         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77336         value, $ac_cv_search_nanosleep, if it's "none required".
77337
77338 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77339
77340         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77341         with like-named macro in fnmatch.c.
77342         (EXT): Use an internal constant instead.
77343
77344         Merge fnmatch patches from glibc.
77345         * lib/fnmatch.c (mbsinit): Remove define.
77346         Add libc_hidden_ver (__fnmatch, fnmatch).
77347         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77348         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77349
77350 2004-01-14  Karl Berry  <karl@gnu.org>
77351
77352         * config/install-sh: update from automake.
77353
77354 2004-01-13  Karl Berry  <karl@gnu.org>
77355
77356         * config/install-sh: update from automake.
77357
77358 2004-01-09  Karl Berry  <karl@gnu.org>
77359
77360         * config/install-sh: update from automake.
77361
77362 2004-01-05  Karl Berry  <karl@gnu.org>
77363
77364         * config/config.{sub,guess}: update from config.
77365
77366 2003-12-31  Karl Berry  <karl@gnu.org>
77367
77368         * config/depcomp: update from automake.
77369
77370 2003-12-14  Karl Berry  <karl@gnu.org>
77371
77372         * lib/config.charset: update from gettext-runtime.
77373
77374 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77375
77376         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77377         Bug reported by Alfred M. Szmidt.
77378
77379 2003-12-03  Bruno Haible  <bruno@clisp.org>
77380
77381         * m4/gettext.m4: Upgrade from gettext-0.13.
77382         * m4/po.m4: Upgrade from gettext-0.13.
77383         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77384         * m4/intmax.m4: New file, from gettext-0.13.
77385         * m4/printf-posix.m4: New file, from gettext-0.13.
77386
77387 2003-11-29  Karl Berry  <karl@gnu.org>
77388
77389         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77390
77391 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77392             Bruno Haible  <bruno@clisp.org>
77393
77394         * lib/printf-parse.h: Don't include sys/types.h.
77395         (ARG_NONE): New macro.
77396         (char_directive): Change type of *arg_index fields to size_t.
77397         * lib/printf-parse.c: Don't include sys/types.h.
77398         (SSIZE_MAX): Remove macro.
77399         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77400         Remove unnecessary overflow check.
77401         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77402         fields.
77403
77404 2003-11-25  Bruno Haible  <bruno@clisp.org>
77405
77406         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77407
77408 2003-11-25  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77411         gt_TYPE_SSIZE_T.
77412
77413 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77414
77415         * modules/alloca: Remove dependency on xalloc.
77416
77417 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77418
77419         * lib/alloca.c: Remove dependency on xalloc module.
77420         (xalloc_die): Remove.
77421         (memory_full) [!defined emacs]: New macro.
77422         [!defined emacs]: Don't include xalloc.h.
77423         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77424         address arithmetic overflows.  Change datatypes a bit to avoid
77425         unnecessary casts.
77426
77427 2003-11-22  Jim Meyering  <jim@meyering.net>
77428
77429         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77430         s/size/size_t/.
77431
77432 2003-11-21  Karl Berry  <karl@gnu.org>
77433
77434         * config/config.{sub,guess}: update from config.
77435
77436 2003-11-18  Karl Berry  <karl@gnu.org>
77437
77438         * config/config.{sub,guess}: update from config.
77439
77440         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77441
77442 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77443
77444         * README: Mention that S+T cannot overflow if S is the size of
77445         an existing object and T is sufficiently small.
77446
77447 2003-11-17  Jim Meyering  <jim@meyering.net>
77448
77449         On systems without utime and without a utimes function capable of
77450         dealing with a NULL struct utimbuf* argument, this utime replacement
77451         could -- in unusual circumstances -- leak a file descriptor.
77452         * lib/utime.c: Include <unistd.h> and <errno.h>.
77453         (utime_null): Be sure to close `fd' and to preserve errno.
77454         Reported by Geoff Collyer via Arnold Robbins.
77455
77456 2003-11-17  Bruno Haible  <bruno@clisp.org>
77457
77458         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77459         (Depends-on): Add xsize.
77460
77461 2003-11-17  Bruno Haible  <bruno@clisp.org>
77462
77463         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77464
77465 2003-11-17  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/vasnprintf.c (alloca): Remove fallback definition.
77468         (freea): Remove definition.
77469         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77470         Reported by Paul Eggert.
77471
77472 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77473             Bruno Haible  <bruno@clisp.org>
77474
77475         Protect against address arithmetic overflow.
77476         * lib/printf-args.h: Include stddef.h.
77477         (arguments): Change type of field 'count' to size_t.
77478         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77479         'unsigned int' where appropriate.
77480         * lib/printf-parse.h: Include sys/types.h.
77481         (char_directive): Change type of *arg_index fields to ssize_t.
77482         (char_directives): Change type of fields 'count', max_*_length to
77483         size_t.
77484         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77485         (SSIZE_MAX): Define fallback value.
77486         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77487         instead of 'int' where appropriate. Check a_allocated, d_allocated
77488         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77489         * lib/vasnprintf.c: Include xsize.h.
77490         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77491         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77492         overflow. Avoid wraparound when converting a width or precision from
77493         decimal to binary.
77494
77495 2003-11-16  Bruno Haible  <bruno@clisp.org>
77496
77497         Update from GNU gettext.
77498         * lib/printf-parse.c: Generalize to it can be compiled for wide
77499         strings.
77500         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77501         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77502         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77503         SNPRINTF): New macros.
77504         Don't include <alloca.h> if the file is used inside libintl.
77505         (local_wcslen): New function, for Solaris 2.5.1.
77506         (VASNPRINTF): Use it instead of wcslen.
77507
77508 2003-11-16  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/xsize.h (xmax): New function.
77511         (xsum, xsum3, xsum4): Declare as "pure" functions.
77512
77513 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77514
77515         * modules/xalloc (Files): Undo latest change, since xalloc.h
77516         no longer needs SIZE_MAX or PTRDIFF_MAX.
77517
77518 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77519
77520         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77521         gl_PTRDIFF_MAX.
77522
77523 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77524
77525         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77526         "return", to pacify some unknown compiler.  Problem reported
77527         by Joerg Schilling.
77528
77529 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77530
77531         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77532         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77533         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77534         heuristic is just as accurate as far as we know, and it removes a
77535         dependency on size_max.m4 and ptrdiff_max.m4.
77536
77537 2003-11-11  Bruno Haible  <bruno@clisp.org>
77538
77539         * modules/xsize (Files): Add m4/size_max.m4.
77540         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77541
77542 2003-11-11  Bruno Haible  <bruno@clisp.org>
77543
77544         * m4/size_max.m4: New file.
77545         * m4/ptrdiff_max.m4: New file.
77546         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77547         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77548         (gl_XALLOC): Invoke it.
77549
77550 2003-11-11  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77553         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77554         defined.
77555
77556 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77557
77558         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77559         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77560         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77561         From Bruno Haible.
77562         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77563         not (size_t) -1, since it's defined here.
77564
77565 2003-11-09  Karl Berry  <karl@gnu.org>
77566
77567         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77568
77569 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77570
77571         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77572         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77573         Reject sizes of exactly SIZE_MAX bytes.
77574         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77575         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77576
77577 2003-11-05  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77580         SIZE_MAX defined in <limits.h> on Solaris.
77581
77582 2003-11-04  Jim Meyering  <jim@meyering.net>
77583
77584         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77585         variable names, rather than @VAR@.
77586         * modules/poll: Likewise.
77587
77588 2003-11-04  Bruno Haible  <bruno@clisp.org>
77589
77590         * modules/xsize: New file.
77591         * modules/linebreak: Depend on xsize.
77592         * MODULES.html.sh (func_all_modules): Add xsize.
77593
77594 2003-11-04  Bruno Haible  <bruno@clisp.org>
77595
77596         * m4/xsize.m4: New file.
77597
77598 2003-11-04  Bruno Haible  <bruno@clisp.org>
77599
77600         * lib/xsize.h: New file.
77601         * lib/linebreak.c: Include xsize.h.
77602         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77603         argument for overflow.
77604         Suggested by Paul Eggert.
77605
77606 2003-11-03  Karl Berry  <karl@gnu.org>
77607
77608         * config/config.{guess,sub}: update from config.
77609
77610 2003-11-03  Jim Meyering  <jim@meyering.net>
77611
77612         * modules/userspec (lib_SOURCES): Add userspec.h.
77613         (Include): Add "userspec.h".
77614         Improve description.
77615
77616 2003-11-03  Jim Meyering  <jim@meyering.net>
77617
77618         * lib/userspec.c: Include "userspec.h".
77619         * lib/userspec.h: New file.
77620
77621 2003-11-03  Bruno Haible  <bruno@clisp.org>
77622
77623         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77624
77625 2003-11-03  Bruno Haible  <bruno@clisp.org>
77626
77627         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77628         available, to avoid (extremely rare) race condition.
77629         Suggested by Paul Eggert.
77630
77631 2003-11-02  Karl Berry  <karl@gnu.org>
77632
77633         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77634
77635 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77636
77637         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77638         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77639         (read_filesystem_list): Set and use me_type_malloced.
77640         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77641         whatever the type happens to be), for brevity and consistency.
77642         Check for size calculation overflow on Alphas running OSF/1.
77643
77644 2003-10-31  Jim Meyering  <jim@meyering.net>
77645
77646         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77647
77648         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77649
77650 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77651             Bruno Haible  <bruno@clisp.org>
77652
77653         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77654         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77655
77656 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77659         netbsd*-gnu*.  Suggested by Robert Millan.
77660
77661 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77662
77663         * modules/group-member: Depend on stdbool.
77664
77665 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77666
77667         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77668
77669 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77670
77671         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77672         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77673         after the 'gnu' in these cases.  This fixes some bugs in the
77674         previous change, and is based on suggestions by Robert Millan.
77675
77676 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77677
77678         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77679         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77680         no longer needed.
77681         * lib/quotearg.c (quotearg_n_options): Use it.
77682         * lib/group-member.c: Include <stdbool.h>.
77683         (free_group_info): Arg is now const *; don't free arg.
77684         (get_group_info): Now returns bool and accepts struct group_info *,
77685         rather than returning a malloc'ed struct group_info *.
77686         All uses changed.  Check for overflow in internal size calculation.
77687
77688         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77689         rather than xmalloc/xrealloc.
77690         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77691         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77692         conformance bug: the old code used a pointer after freeing the
77693         storage that it addressed.
77694         * lib/hash.c (hash_initialize): Simplify the code by using
77695         xalloc_oversized rather than doing it by hand.
77696         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77697         the buffer preserved.  Use free and xmalloc instead.
77698         * lib/quotearg.c (quotearg_n_options): Likewise.
77699         Use a simpler test for size overflow.  Don't use xalloc_oversized
77700         because unsigned int might be wider than size_t (!); this suggests
77701         that we should switch from unsigned int to size_t for slot numbers.
77702
77703 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77704
77705         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77706         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77707         NetBSD kernels.  Requested by Richard Stallman.
77708
77709 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77710
77711         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77712         to allocate the returned structure.  Do not allocate a subarray,
77713         as x2nrealloc will do that.
77714         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77715         instead of xnrealloc.
77716         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77717
77718 2003-10-27  Bruno Haible  <bruno@clisp.org>
77719
77720         * lib/stdbool_.h: Better support for BeOS.
77721
77722 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77723
77724         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77725         now uses inline.
77726
77727 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77728
77729         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77730         callers that want to do their own size-overflow checking.  Include
77731         <stdbool.h>, since xalloc_oversized returns bool.
77732         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77733         to use xalloc_oversized.
77734
77735         Add two functions x2realloc, x2nrealloc, for programs that grow
77736         arrays dynamically by doubling their sizes.
77737         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77738         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77739         New functions.
77740
77741         Port to C99 semantics for 'inline' of external functions.
77742         Bug reported by Bruno Haible.
77743         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77744         with the old contents of xnmalloc.
77745         (xnmalloc, xmalloc): Use it.
77746         (xnrealloc_inline): New static inline function,
77747         with the old contents of xnrealloc.
77748         (xnrealloc, xrealloc): Use it.
77749
77750         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77751         that.
77752
77753 2003-10-26  Karl Berry  <karl@gnu.org>
77754
77755         * config/srclist.txt (COPYING.DOC): no longer available from
77756         /gd/gnuorg; don't know where the ultimate source is.
77757
77758 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77759
77760         Fix several address-calculation bugs in the hash modules,
77761         plus some minor code cleanup.
77762
77763         * lib/hash.h: Include <stdbool.h>, for bool.
77764         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77765         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77766         hash_get_n_entries, hash_get_max_bucket_length,
77767         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77768         hash_rehash): Use size_t rather than unsigned.
77769         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77770         hash_get_n_buckets_used, hash_get_n_entries,
77771         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77772         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77773         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77774         Likewise.
77775         (SIZE_MAX): Define if not defined.
77776         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77777         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77778         hash_print):
77779         Use const * when possible.
77780         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77781         (check_tuning): Fix bug: if tuning parameters were very close to
77782         0 or 1, rounding errors could have caused subscript violations.
77783         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77784         (hash_initialize): Add 'fail:' label
77785         to free table and return NULL, and use it to simplify code.
77786         Use calloc rather than clearing the storage ourself.
77787         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77788         buffer size calculations.
77789         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77790         Include <stddef.h>, for size_t.
77791         * lib/hash-pjw.c (hash_pjw): Likewise.
77792         Switch to method described by Bruno Haible.
77793         Include <limits.h>, for CHAR_BIT.
77794         (SIZE_BITS): New macro.
77795
77796 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77797
77798         * m4/getline.m4 (AM_FUNC_GETLINE):
77799         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77800         hosts.  Problem reported by Derek Robert Price in
77801         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77802         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77803         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77804
77805 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77806
77807         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77808         ceiling the allocation at NMAX bytes rather than silently
77809         discarding input bytes before NMAX is reached.  This makes
77810         a difference only if NMAX exceeds SIZE_MAX / 2.
77811
77812         * lib/obstack.c: Merge from glibc.
77813         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77814         Add libc_hidden_def (_obstack_newchunk).
77815         (_obstack_free) [! defined _LIBC]: Remove.
77816         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77817         a clone of the function body.
77818         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77819         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77820
77821         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77822         glibc.
77823         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77824         arg to memcpy.
77825
77826         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77827         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77828         Don't use lvalue casts, as GCC plans to remove support for them
77829         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77830         was also present in the non-GCC version, indicating that this
77831         code had always been buggy and had never been widely used.
77832         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77833         Use the fast variant of each macro, rather than copying the
77834         definiens of the fast variant; that way, we'll be more likely to
77835         catch future bugs in the fast variants.
77836
77837 2003-10-20  Bruno Haible  <bruno@clisp.org>
77838
77839         * modules/wait-process: New file.
77840         * MODULES.html.sh (func_all_modules): Add wait-process.
77841
77842 2003-10-20  Bruno Haible  <bruno@clisp.org>
77843
77844         * m4/wait-process.m4: New file.
77845
77846 2003-10-20  Bruno Haible  <bruno@clisp.org>
77847
77848         * lib/wait-process.h: New file, from GNU gettext.
77849         * lib/wait-process.c: New file, from GNU gettext.
77850
77851 2003-10-19  Jim Meyering  <jim@meyering.net>
77852
77853         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77854         HPUX 10.20.
77855
77856 2003-10-18  Karl Berry  <karl@gnu.org>
77857
77858         * config/config.guess: update from config.
77859
77860 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77861
77862         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77863         (getgroups): First arg is int, not size_t.
77864         Don't let 'free' mangle errno.
77865
77866 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77867
77868         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77869
77870 2003-10-16  Karl Berry  <karl@gnu.org>
77871
77872         * config/config.{guess,sub}: update from config.
77873
77874 2003-10-16  Jim Meyering  <jim@meyering.net>
77875
77876         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77877         memcpy.
77878
77879 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77880
77881         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77882         (SIZE_MAX): Remove.
77883         (new_exclude, add_exclude_file): Initial size no longer needs to
77884         be a power of 2.
77885         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77886         our own address arithmetic overflow checking.
77887
77888         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77889         (fnmatch): Do not alloca more than 2000 wide characters;
77890         instead, use malloc for large buffers.
77891         Check for address arithmetic overflow, and return -1
77892         with errno set to ENOMEM in that case.
77893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77894         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77895         instead, return -1.  Check for address arithmetic overflow.
77896
77897 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77898
77899         Handle invalid suffixes and overflow independently, so that
77900         callers can treat them independently as needed.  Fix some bugs in
77901         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77902         suffix for a human-readable blocksize.  The major caller-visible
77903         change is the addition of a new
77904         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77905         that both overflow and suffix chars were found.
77906
77907         * lib/human.c (humblock): Don't check separately for invalid suffix
77908         char; that is xstrtoumax's job (now that its bug is fixed).
77909         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77910         INTMAX_MAX]: New macros.
77911         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77912         TYPE_MAXIMUM): New macros.
77913         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77914         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77915         if overflow occurs, as it's what __strtol does and it's more useful
77916         in practice.
77917         (__xstrtol): If __strtol reports some error other than ERANGE,
77918         reflect it to the caller as LONGINT_INVALID.  If it reports
77919         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77920         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77921         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77922         value.
77923         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77924         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77925         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77926         [defined UINTMAX_MAX]: New macros.
77927
77928 2003-10-14  Bruno Haible  <bruno@clisp.org>
77929
77930         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77931
77932 2003-10-14  Bruno Haible  <bruno@clisp.org>
77933
77934         * m4/sig_atomic_t: New file, from GNU gettext.
77935         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77936
77937 2003-10-14  Bruno Haible  <bruno@clisp.org>
77938
77939         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77940         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77941         Also use volatile where needed.
77942
77943 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77944
77945         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77946         Change maintainer from Bruno Haible to 'all'.
77947
77948 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77949
77950         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77951
77952 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77953
77954         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77955         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77956         and define in terms of the other primitives.
77957         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77958         (SIZE_MAX): Define if not already defined.
77959         (array_size_overflow): New function.
77960         (xalloc_die): Abort instead of exiting if 'error' returns.
77961         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77962         (xmalloc, xrealloc): Use them.
77963         (xcalloc): Check for address arithmetic overflow.
77964         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77965         a bit faster than strcpy.
77966
77967 2003-10-10  Simon Josefsson  <jas@extundo.com>
77968
77969         * modules/argp (Depends-on): Add restrict and strcase.
77970
77971 2003-10-10  Simon Josefsson  <jas@extundo.com>
77972
77973         * m4/argp.m4: Add AC_C_INLINE.
77974
77975 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77976
77977         Merge getpass from libc, plus a few fixes.
77978
77979         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77980         Include <stdbool.h>.
77981         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77982         __fsetlocking to empty.
77983         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77984         do include <bits/libc-lock.h>.
77985         Do not include <fcntl.h>; not needed.
77986         [_LIBC]: Include <wchar.h>.
77987         (NOTCANCEL_MODE): New macro.
77988         (flockfile, funlockfile) [_LIBC]: New macros.
77989         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77990         [!_LIBC]: New macros.
77991         (call_fclose): New function.
77992         (getpass): Use it.  Save tty stream separately; this simplifies the
77993         code and makes it more reliable if stdin happens to equal stdout.
77994         Invoke __fsetlocking on tty.
77995         Handle thread cancellation if needed.
77996         Namespace cleanup (use __tcgetattr, __getline).
77997         Use bool for Booleans.
77998         [USE_IN_LIBIO]: Handle wide streams.
77999         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78000         stream might go where.
78001
78002         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78003         doesn't have to include <stdio.h> before us.
78004         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78005         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78006         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78007         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78008         if not declared, so that we can use getpass.c code from libc without
78009         rewriting it.
78010         (flockfile, ftrylockfile, funlockfile): New macros.
78011
78012 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78013
78014         * modules/getpass: Depend on stdbool.
78015
78016 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78017
78018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78019
78020 2003-10-07  Karl Berry  <karl@gnu.org>
78021
78022         * config/config.{guess,sub}: update from config.
78023
78024 2003-10-06  Jim Meyering  <jim@meyering.net>
78025             Bruno Haible  <bruno@clisp.org>
78026
78027         This lets translators provide better translations for the
78028         "Written by ..." part of --version output.
78029         * lib/version-etc.h: Include stdarg.h.
78030         (version_etc_copyright): Declare as readonly.
78031         (version_etc): Make this function variadic with a NULL-terminated list
78032         of author name strings.
78033         (version_etc_va): New declaration.
78034         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78035         (version_etc_copyright): Declare as readonly.
78036         (version_etc_va): New function. Provide a different translatable string
78037         for each possible number of authors < 10. Abbreviate when there are 10
78038         authors or more.
78039         (version_etc): Make this function variadic. Call version_etc_va.
78040         Suggestion from Gary V. Vaughan.
78041
78042         * lib/long-options.h (parse_long_options): Change prototype: the
78043         authors string is moved to the end and becomes variadic.
78044         * lib/long-options.c: Include stdarg.h.
78045         (parse_long_options): Make this function variadic, too.
78046         Call version_etc_va, not version_etc.
78047
78048 2003-10-06  Bruno Haible  <bruno@clisp.org>
78049
78050         * modules/version-etc-2: Remove file.
78051         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78052
78053 2003-10-06  Bruno Haible  <bruno@clisp.org>
78054
78055         * modules/fatal-signal: New file.
78056         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78057
78058 2003-10-06  Bruno Haible  <bruno@clisp.org>
78059
78060         * m4/fatal-signal.m4: New file.
78061         * m4/signalblocking.m4: New file, from GNU gettext.
78062
78063 2003-10-06  Bruno Haible  <bruno@clisp.org>
78064
78065         * lib/version-etc-2.h: Remove file.
78066         * lib/version-etc-2.c: Remove file.
78067
78068 2003-10-06  Bruno Haible  <bruno@clisp.org>
78069
78070         * lib/fatal-signal.h: New file, from GNU gettext.
78071         * lib/fatal-signal.c: New file, from GNU gettext.
78072
78073 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78074
78075         * README: Rework advice for preventing empty .o files.
78076         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78077         not <sys/types.h>.
78078
78079 2003-10-04  Karl Berry  <karl@gnu.org>
78080
78081         * lib/argp*: update from libc.
78082
78083 2003-10-04  Karl Berry  <karl@gnu.org>
78084
78085         * config/config.{guess,sub}: update from config.
78086
78087 2003-10-02  Bruno Haible  <bruno@clisp.org>
78088
78089         * modules/lchown (Include): Add lchown.h.
78090         * modules/time_r (Include): Use "..." syntax.
78091         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78092
78093 2003-10-01  Simon Josefsson  <jas@extundo.com>
78094
78095         * MODULES.html.sh (func_all_modules): Move gethostname from section
78096         'based on' to section 'lacking' POSIX:2001.
78097
78098 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78099
78100         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78101         to output mode on the same stream.
78102
78103 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78104
78105         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78106         Fix arg typo in previous patch.
78107
78108 2003-09-28  Jim Meyering  <jim@meyering.net>
78109
78110         * lib/error.c: Correct cpp indentation.
78111
78112 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78113
78114         * modules/free: New file.
78115
78116 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78117
78118         * m4/free.m4: New file.
78119
78120 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78121
78122         * lib/minmax.h (MIN, MAX)
78123         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78124         Omit the special code that used __typeof__, since we worry that
78125         it could be more trouble than it's worth.  See:
78126         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78127         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78128
78129         * lib/free.c: New file.
78130
78131 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78132
78133         Trivial fixes to Makefile.am parts of module listings.
78134         * modules/strstr: Append strstr.h to lib_SOURCES.
78135         * modules/strcase: Likewise, for strcase.h.
78136
78137 2003-09-27  Karl Berry  <karl@gnu.org>
78138
78139         * config/mkinstalldirs: update from automake.
78140
78141 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78142
78143         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78144         (error_tail): Do not loop, reallocating temporary buffer, since
78145         the output cannot contain more wide characters than the input
78146         contains bytes, the size must be big enough already.  This avoids
78147         one potential size overflow calculation.  Check for size overflow
78148         when calculating temporary buffer size.  Free temporary buffer
78149         when done, if it was allocated with malloc; this plugs a memory
78150         leak.  Remove casts from void * to pointers, that are no longer
78151         needed now that we're assuming C89 or better.
78152
78153         Merge error changes from glibc.
78154
78155         * lib/error.c, error.h: Update copyright notice header to match glibc.
78156         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78157         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78158         Disable cancellation while printing error.
78159         * lib/error.h: Prepend __ to parameter names.
78160
78161 2003-09-26  Jim Meyering  <jim@meyering.net>
78162
78163         * lib/error.c (error_tail): Move some declarations
78164         into inner scope where the local variables are used.
78165
78166 2003-09-26  Bruno Haible  <bruno@clisp.org>
78167
78168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78169         stpncpy().
78170         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78171
78172 2003-09-26  Bruno Haible  <bruno@clisp.org>
78173
78174         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78175         (stpncpy): Define as alias for gnu_stpncpy.
78176         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78177
78178 2003-09-25  Simon Josefsson  <jas@extundo.com>
78179
78180         * lib/xgetdomainname.h: New file.
78181         * lib/xgetdomainname.c: New file.
78182
78183 2003-09-25  Simon Josefsson  <jas@extundo.com>
78184             Bruno Haible  <bruno@clisp.org>
78185
78186         * modules/getdomainname: New file.
78187         * modules/xgetdomainname: New file.
78188         * MODULES.html.sh (func_all_modules): Add getdomainname,
78189         xgetdomainname.
78190
78191 2003-09-25  Simon Josefsson  <jas@extundo.com>
78192             Bruno Haible  <bruno@clisp.org>
78193
78194         * m4/getdomainname.m4: New file.
78195
78196 2003-09-25  Simon Josefsson  <jas@extundo.com>
78197             Bruno Haible  <bruno@clisp.org>
78198
78199         * lib/getdomainname.h: New file.
78200         * lib/getdomainname.c: New file.
78201
78202 2003-09-25  Karl Berry  <karl@gnu.org>
78203
78204         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78205
78206 2003-09-25  Karl Berry  <karl@gnu.org>
78207
78208         * config/install-sh: update from automake.
78209
78210 2003-09-25  Bruno Haible  <bruno@clisp.org>
78211
78212         * modules/version-etc-2: New file, from modules/version-etc with
78213         modifications.
78214         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78215
78216 2003-09-25  Bruno Haible  <bruno@clisp.org>
78217
78218         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78219         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78220
78221 2003-09-24  Simon Josefsson  <jas@extundo.com>
78222
78223         * modules/xgethostname: Add xgethostname.h.
78224
78225 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78226
78227         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78228         the buffer associated with the argument.  Bug reported by
78229         Simon Josefsson.
78230
78231 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78232
78233         * README: Document assumptions that 'int' is at least 32 bits
78234         wide, that integer arithmetic is 2's complement without overflow,
78235         that there are no holes in integer values, that adding sizes of
78236         two nonoverlapping objects can't overflow, and that all-bits-zero
78237         yields scalar zero.  Fix spelling and capitalization typos.
78238
78239 2003-09-19  Karl Berry  <karl@gnu.org>
78240
78241         * lib/argp.h: update from libc.
78242
78243 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78244
78245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78246         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78247         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78248
78249 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78250
78251         * gnulib-tool: Use "test -h", not "test -L", for portability
78252         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78253         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78254         (sed_extract_prog): Issue s commands one-by-one, rather than
78255         using \| in one s command.
78256
78257 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78258
78259         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78260         input error, instead of returning NULL the next time we are called
78261         (and therefore losing track of errno).
78262
78263 2003-09-16  Bruno Haible  <bruno@clisp.org>
78264
78265         * gnulib-tool (func_create_testdir): Warn about duplicated
78266         dependencies.
78267
78268 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78269
78270         * modules/argmatch, modules/fatal, modules/obstack,
78271         modules/xalloc, modules/xgethostname: Sort dependencies by
78272         importance, not alphabetically.
78273
78274 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78275
78276         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78277         fails, so that the caller gets the proper errno.
78278
78279         * lib/readutmp.c (read_utmp): Likewise.
78280         Check for fstat error.  Close stream and free storage
78281         when failing.
78282
78283 2003-09-14  Karl Berry  <karl@gnu.org>
78284
78285         * config/srclist.txt (strdup.c): disable for c89 changes.
78286
78287 2003-09-14  Jim Meyering  <jim@meyering.net>
78288
78289         * lib/getloadavg.c: Correct cpp indentation.
78290         * lib/strdup.c: Likewise.
78291         * lib/vasnprintf.c: Likewise.
78292
78293 2003-09-14  Bruno Haible  <bruno@clisp.org>
78294
78295         * modules/fwriteerror: New file.
78296         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78297
78298 2003-09-14  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/fwriteerror.h: New file.
78301         * lib/fwriteerror.c: New file.
78302
78303 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78304
78305         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78306         modules/xgethostname, modules/xalloc: Depend on exit.
78307
78308 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78309
78310         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78311
78312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78313         and AC_MINIX, too, so that their extensions are available.
78314
78315         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78316         This macro has been superseded by gl_BACKUPFILE.
78317
78318         More patches to assume C89 or better.
78319
78320         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78321
78322         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78323         unconditionally.
78324         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78325         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78326         Include <string.h>, <stdlib.h> unconditionally.
78327         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78328         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78329         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78330         headers or for string.h.
78331         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78332         or strtoul.
78333
78334         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78335         headers.
78336         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78337         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78338         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78339         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78341         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78342         memcpy, memset.
78343         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78344         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78345         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78346         strtol.
78347         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78348         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78350         strtoul.
78351
78352 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78353
78354         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78355         * lib/obstack.c [!defined _LIBC]: Likewise.
78356         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78357         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78358         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78359
78360         More changes to assume C89 or better.
78361
78362         * lib/error.c (error_tail): Assume vprintf.
78363
78364         * lib/argmatch.c (getenv): Remove decl.
78365         * lib/progreloc.c (get_full_program_name): Define via prototype.
78366         * lib/setenv.c (clearenv): Likewise.
78367         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78368         needed.
78369         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78370         (malloc, memcpy): Remove decls.
78371         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78372         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78373         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78374         (memcpy): Remove macro.
78375         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78376         (__P): Remove.  All uses removed.
78377         (PTR): Remove.  All uses changed to void *.
78378         (CHAR_BIT, NULL): Remove.
78379         (spaces, zeros, memset_space, memset_zero)
78380         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78381         Remove.
78382         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78383         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78384         Define with prototype.
78385         Remove now-unnecessary prototype decl.
78386         (extra_args_spec): Assume ANSI C.  All uses changed.
78387         (extra_args_spec_iso): Remove.
78388         (my_strftime, emacs_strftimeu): Define via prototype.
78389         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78390         unconditionally.
78391         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78392         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78393         (strtoul, strtol): Remove decls.
78394         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78395         LONG_MAX): Remove.
78396         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78397         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78398         (LOCALE_PARAM_PROTO): New macro.
78399         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78400         (INTERNAL (strtol), strtol): Define with a prototype.
78401         (PARAMS): Remove.  All uses removed.
78402         * lib/tempname.c: Include <string.h> unconditionally.
78403         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78404         * lib/xgethostname.c (main): Define with a prototype.
78405         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78406         Include <stdlib.h> unconditionally.
78407         (calloc, malloc, realloc, free): Remove decls.
78408         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78409         Include <stdlib.h> unconditionally.  Sort include file names.
78410         (strtod): Remove.
78411         (xstrtod): Define with a prototype.
78412         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78413         (strtol, strtoul): Remove decls.
78414
78415 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78416
78417         More patches to assume C89 or better.
78418         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78419         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78420         string.h, memchr, STDC_HEADERS.
78421
78422 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78423
78424         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78425         Include <stdlib.h>, <string.h> unconditionally.
78426         Remove now-unnecessary cast to char *.
78427         * lib/strnlen.c: Include <string.h> unconditionally.
78428         * lib/yesno.c (yesno): Define with a prototype.
78429
78430 2003-09-11  Bruno Haible  <bruno@clisp.org>
78431
78432         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78433
78434 2003-09-10  Jim Meyering  <jim@meyering.net>
78435
78436         * lib/error.c: Correct indentation of cpp directives.
78437
78438 2003-09-10  Bruno Haible  <bruno@clisp.org>
78439
78440         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78441         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78442         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78443         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78444         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78445         <stdlib.h> and <string.h> checks.
78446         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78447         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78448
78449 2003-09-10  Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/strcspn.c: Include <string.h> unconditionally.
78452         * lib/strpbrk.c: Include <string.h> unconditionally.
78453         * lib/strstr.c: Include <string.h> unconditionally.
78454         * lib/unicodeio.c: Include <string.h> unconditionally.
78455         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78456         * lib/unsetenv.c: Likewise.
78457         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78458         * lib/yesno.c: Include <stdlib.h> unconditionally.
78459         (rpmatch): Add prototype.
78460
78461 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78462
78463         More patches to assume C89 or better.
78464         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78465         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78466         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78467         or for string.h.
78468         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78469         stdlib.h.
78470         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78471         C headers.
78472         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78473         string.h.
78474         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78475         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78476         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78477         or for string.h.
78478         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78479         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78480         C headers.
78481         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78482         memcpy.
78483         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78484         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78485         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78486         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78487         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78488         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78489         string.h, free.
78490         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78491         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78492         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78493         C headers, or for string.h.
78494         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78495         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78496         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78497         headers, memory.h, stdlib.h, string.h, strings.h.
78498         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78499         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78500         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78501         strchr.
78502         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78503         headers, memory.h, string.h.
78504         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78505         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78506         free.
78507         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78508         headers.
78509         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78510         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78511         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78512         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78513         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78514
78515 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78516
78517         More K&R removal.
78518
78519         * lib/acosl.c (main): Use a prototype.
78520         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78521         tanl.c: Likewise.
78522
78523         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78524
78525         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78526         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78527         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78528         with a prototype.
78529         * lib/getopt.c (const): Remove macro.
78530         Include <string.h> unconditionally.
78531         (my_index): Remove; all uses changed to strchr.
78532         (strlen): Remove decl.
78533         (exchange): Remove forward decl; no longer needed.
78534         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78535         Define with prototype.
78536         * lib/getopt1.c (const): Remove macro.
78537         (getopt_long, getopt_long_only, main): Define with prototype.
78538
78539         * lib/getugroups.c: Include <string.h> unconditionally.
78540
78541         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78542         (getusershell, setusershell, endusershell, readname, main):
78543         Define with prototypes.
78544
78545         * lib/group-member.c: Include group-member.h first.
78546         Include <stdlib.h> unconditionally.
78547
78548         * lib/hard-locale.c: Include hard-locale.h first.
78549         Include <stdlib.h>, <string.h> unconditionally.
78550
78551         * lib/hash.c (free, malloc): Remove decls.
78552         Include <stdlib.h> unconditionally.
78553
78554         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78555         (getenv): Do not declare.
78556
78557         * lib/idcache.c: Include <string.h> unconditionally.
78558
78559         * lib/long-options.c: Include long-options.h first, to test interface.
78560         Include <stdlib.h> unconditionally.
78561
78562         * lib/makepath.c: Include makepath.h first, to test interface.
78563         Include <stdlib.h> and <string.h> unconditionally.
78564
78565         * lib/linebuffer.c: Include <stdlib.h>.
78566         (free): Remove decl.
78567
78568         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78569         stddef.h. rpl_malloc returns void *, not char *.
78570         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78571         prototype.
78572
78573         * lib/md5.h: Include <limits.h> unconditionally.
78574         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78575         (__P): Remove; all uses removed.
78576         * lib/md5.c: Include "md5.h" first.
78577         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78578         md5_buffer, md5_process_bytes, md5_process_block):
78579         Define with prototypes.
78580         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78581         * lib/sha.c: Include "sha.h" first.
78582         Include <stdlib.h>, <string.h> unconditionally.
78583
78584         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78585         * lib/memcmp.c (__ptr_t): Likewise.
78586         * lib/memrchr.c (__ptr_t): Likewise.
78587         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78588         Include <string.h> unconditionally.
78589         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78590         * lib/memchr.c: Include <stdlib.h> unconditionally.
78591         * lib/memchr.c (LONG_MAX): Remove.
78592         * lib/memrchr.c (LONG_MAX): Likewise.
78593         * lib/memchr.c (__memchr): Define via a prototype.
78594         * lib/memrchr.c (__memrchr): Likewise.
78595         * lib/memcmp.c (__P): Remove, and remove all uses.
78596         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78597         Remove forward decls; no longer needed.
78598         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78599         Use types required by C89 in prototype.
78600
78601         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78602         * lib/savedir.c: Likewise.
78603         * lib/mkdir.c (free): Remove decl.
78604         * lib/rmdir.c (rmdir): Define with a prototype.
78605         * lib/savedir.c: Include savedir.h first, to test interface.
78606
78607         * lib/mktime.c (STDC_HEADERS): Remove.
78608         Include <stdlib.h>, <string.h> unconditionally.
78609
78610         * lib/modechange.c: Include <stdlib.h> unconditionally.
78611         (malloc): Remove decl.
78612
78613         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78614         (free): Remove decl.
78615
78616         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78617         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78618         (This type really should be intptr_t, but that's a C99ism.)
78619         (_obstack_memcpy): Remove: all uses changed to memcpy.
78620         Include <string.h> unconditionally.
78621         (struct obstack): Assume __STDC__ for types of members
78622         chunkfun, freefun, extra_arg.
78623         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78624         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78625         obstack_begin, obstack_specify_allocation,
78626         obstack_specify_allocation_with_arg, obstack_chunkfun,
78627         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78628         Remove unprototyped decls and the macros that use them.
78629         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78630         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78631         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78632         (defined __STDC__ && __STDC__)]:
78633         Remove nonprototyped code.
78634         Include <stdlib.h> unconditionally.
78635         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78636         _obstack_allocated_p, _obstack_free, obstack_free,
78637         _obstack_memory_used, print_and_abort):
78638         Define using prototypes.
78639         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78640         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78641         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78642         obstack_next_free, obstack_object_size, obstack_room) [0]:
78643         Remove unused, unprototyped code.
78644
78645         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78646
78647         * lib/physmem.c (physmem_total, physmem_available, main): Define
78648         with prototypes.
78649
78650         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78651         (main): Define with a prototype.
78652
78653         * lib/posixver.c (getenv): Remove decl.
78654
78655         * lib/putenv.c (malloc): Returns void *, not char *.
78656         Include <string.h> unconditionally.
78657         (strchr, memcpy, NULL): Do not define.
78658
78659         * lib/readtokens.c: Include readtokens.h first, to test interface.
78660         Include <stdlib.h>, <string.h> unconditionally.
78661         (init_tokenbuffer): Define with a prototype.
78662
78663         * lib/regex.c (PARAMS): Remove.  All uses removed.
78664         All uses of _RE_ARGS removed, too.
78665         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78666         unconditionally.
78667         (bzero): Assume memset exists.
78668         (memcmp, memcpy, NULL): Remove.
78669         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78670         char, or assignments to local vars of type signed char.
78671         (init_syntax_once, PREFIX(extract_number_and_incr),
78672         PREFIX(print_partial_compiled_pattern),
78673         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78674         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78675         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78676         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78677         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78678         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78679         wcs_compile_range, byte_compile_range, truncate_wchar,
78680         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78681         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78682         count_mbs_length, wcs_re_match_2_internal,
78683         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78684         PREFIX(alt_match_null_string_p),
78685         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78686         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78687         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78688         now-unnecessary declaration, if any.
78689         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78690         regcomp, regexec):
78691         Remove now-unnecessary casts among pointer types.
78692         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78693
78694         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78695         (free): Remove decl.
78696
78697         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78698
78699         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78700         (free): Remove decl.
78701
78702         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78703         * lib/xgetcwd.c: Likewise.
78704
78705         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78706         (free): Remove decl.
78707
78708         * lib/strchrnul.c (strchrnul): Define with a prototype.
78709         Fix bug: c_in was not converted to char before searching.
78710
78711         The following changes are not K&R related:
78712
78713         * lib/group-member.h: Include <sys/types.h>, so that this file is
78714         self-contained.
78715         * lib/makepath.h: Likewise.
78716
78717         * lib/getusershell.c (readname, default_index, line_size, readname):
78718         Use size_t, not int, for sizes.
78719         (readname): If the size overflows, report an error instead of
78720         looping forever.
78721
78722 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78723
78724         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78725         libc.
78726
78727 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78728
78729         * README: New section: portability guidelines.
78730
78731 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78732
78733         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78734         C89 spec.
78735
78736 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78737
78738         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78739
78740 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78741
78742         Assume C89 or better; remove K&R cruft.
78743         A few of these changes were first proposed by Derek Robert Price
78744         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78745
78746         * lib/addext.c: Include <string.h> unconditionally.
78747         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78748         Don't declare getenv or malloc.
78749
78750         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78751         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78752         (NULL): Remove.
78753         (find_stack_direction, alloca): Use prototypes.
78754
78755         * lib/atexit.c (atexit): Define using a prototype.
78756
78757         * lib/basename.c, dirname.c, stripslash.c:
78758         Include <string.h> unconditionally.
78759
78760         * lib/bcopy.c: Include <stddef.h>.
78761         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78762
78763         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78764
78765         * lib/error.h (error, error_at_line, error_print_progname)
78766         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78767         * lib/error.c: Include error.h first, to check interface.
78768         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78769         (VA_START): Remove; all uses changeed to va_start.
78770         (exit, strerror): Remove decls.
78771         (error_print_progname): Prototype uncondionally.
78772         Don't include <errno.h>; no longer needed.
78773         (private_strerror): Remove.
78774         (error_tail): Always define.
78775         (error, error_at_line): Assume C89 or better; always use prototypes.
78776         * lib/fatal.c: Include "fatal.h" first, to test interface.
78777         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78778         (VA_START): Remove; all uses changed to va_start.
78779         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78780         this case.
78781         (exit): Remove decl.
78782         (fatal): Prototype unconditionally.  Assume va_start works.
78783         Abort at end, to pacify gcc.
78784
78785         * lib/euidaccess.c (main): Define with a prototype.
78786
78787         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78788
78789         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78790
78791         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78792         prototypes.
78793         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78794         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78795         (getenv): Remove decl.
78796         (fnmatch): Define using a prototype.
78797         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78798         (FCT): Define using a prototype.
78799
78800         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78801
78802         * lib/gethostname.c: Include <stddef.h>.
78803         (gethostname): Define with prototype.  Length is size_t, not int.
78804
78805 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78806
78807         Assume C89 or better; remove K&R cruft.
78808         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78809         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78810         string.h, getenv, malloc.
78811         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78812         headers.
78813         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78814         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78815         do not check for strerror.
78816         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78817         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78818         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78819         do not check for doprnt or vprintf.
78820         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78821         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78822
78823 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78824
78825         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78826         getversion.c should have been removed then, but was accidentally
78827         preserved.
78828
78829         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78830         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78831
78832 2003-09-08  Karl Berry  <karl@gnu.org>
78833
78834         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78835                 config, forget about prep.
78836
78837         * config/depcomp, missing: update from automake.
78838
78839 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78840
78841         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78843
78844 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78845
78846         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78847         copy_tm_result.  Bug reported by Simon Josefsson in
78848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78849
78850 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78851
78852         * m4/time_r.m4: New file.
78853         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78854         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78855         is. Check for timegm declaration.
78856         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78857         Do not check for gmtime_r.
78858         Replace mktime if __mktime_internal does not exist and if mktime
78859         hasn't been replaced already.
78860
78861 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78862
78863         * lib/time_r.c, lib/time_r.h: New files.
78864
78865         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78866         __localtime_r.
78867         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78868         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78869
78870         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78871         __gmtime_r.
78872         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78873         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78874         Include <time_r.h>.
78875
78876         * lib/timegm.c: Switch to glibc implementation, with the following
78877         changes:
78878         [defined HAVE_CONFIG_H]: Include <config.h>.
78879         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78880         (__mktime_internal) [!defined _LIBC]: New decl.
78881         (__gmtime_r) [!defined _LIBC]: New macro and function.
78882         (timegm): Use a prototype, since gnulib assumes C89.
78883         Do not bother declaring tmp to be const, as it's not really usefu.
78884         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78885         (timegm): Declare only if HAVE_DECL_TIMEGM.
78886
78887 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78888
78889         * MODULES.html.sh (func_all_modules): Add time_r.
78890         * modules/time_r: New file.
78891         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78892         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78893
78894 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78895
78896         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78897         Bug reported by Lute Kamstra in
78898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78899
78900         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78901         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78902         course with correspondingly smaller numbers for tomorrow and
78903         yesterday.  From Tadayoshi Funaba.  Originally installed into
78904         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78905         coreutils merge?).
78906
78907 2003-08-31  Simon Josefsson  <jas@extundo.com>
78908
78909         * modules/timegm: New file.
78910         * MODULES.html.sh (func_all_modules): Add timegm.
78911
78912 2003-08-31  Simon Josefsson  <jas@extundo.com>
78913
78914         * m4/timegm.m4: New file.
78915
78916 2003-08-31  Simon Josefsson  <jas@extundo.com>
78917
78918         * lib/timegm.h: New file.
78919         * lib/timegm.c: New file.  Based on
78920         wget-1.8.2/src/http.c:mktime_from_utc.
78921
78922 2003-08-31  Karl Berry  <karl@gnu.org>
78923
78924         * lib/argp.h: update from libc.
78925
78926 2003-08-28  Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78929         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78930         followed by '#define fnmatch fnmatch_posix' gives an error.
78931
78932 2003-08-28  Bruno Haible  <bruno@clisp.org>
78933
78934         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78935         warning on QNX, which defines O_BINARY to 000000.
78936
78937 2003-08-27  Jim Meyering  <jim@meyering.net>
78938
78939         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78940         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78941         would fail after 32.  Reported by Danny Levinson.  Details here:
78942         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78943
78944 2003-08-24  Bruno Haible  <bruno@clisp.org>
78945
78946         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78947         MSVC7 <stdio.h> is included later.
78948
78949 2003-08-22  Simon Josefsson  <jas@extundo.com>
78950
78951         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78952
78953 2003-08-20  Karl Berry  <karl@gnu.org>
78954
78955         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78956
78957 2003-08-20  Bruno Haible  <bruno@clisp.org>
78958
78959         * modules/progname: New file.
78960         * MODULES.html.sh (func_all_modules): Add progname.
78961
78962 2003-08-20  Bruno Haible  <bruno@clisp.org>
78963
78964         * lib/progname.h: New file, from GNU gettext.
78965         * lib/progname.c: New file, from GNU gettext.
78966         * lib/progreloc.c: New file, from GNU gettext.
78967
78968 2003-08-19  Jim Meyering  <jim@meyering.net>
78969
78970         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78971         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78972
78973 2003-08-19  Bruno Haible  <bruno@clisp.org>
78974
78975         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78976         more.
78977
78978 2003-08-19  Bruno Haible  <bruno@clisp.org>
78979
78980         * lib/xstrdup.c: Assume <string.h> exists.
78981
78982 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78983
78984         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78985         in makefile rules.
78986
78987 2003-08-18  Jim Meyering  <jim@meyering.net>
78988
78989         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78990         * m4/lib-ld.m4: Likewise.
78991
78992 2003-08-18  Jim Meyering  <jim@meyering.net>
78993
78994         * lib/setenv.h: Indent nested cpp directive.
78995         * lib/vasnprintf.c: Remove trailing blanks.
78996
78997 2003-08-17  Simon Josefsson  <jas@extundo.com>
78998
78999         * modules/xstrndup: New file.
79000         * MODULES.html.sh (func_all_modules): Add xstrndup.
79001
79002 2003-08-17  Simon Josefsson  <jas@extundo.com>
79003
79004         * modules/argp: Fix autoconf macro name. Add more dependencies.
79005
79006 2003-08-17  Simon Josefsson  <jas@extundo.com>
79007
79008         * m4/xstrndup.m4: New file.
79009
79010 2003-08-17  Simon Josefsson  <jas@extundo.com>
79011
79012         * m4/argp.m4: New file.
79013
79014 2003-08-17  Simon Josefsson  <jas@extundo.com>
79015             Bruno Haible  <bruno@clisp.org>
79016
79017         * lib/xstrndup.h: New file.
79018         * lib/xstrndup.c: New file.
79019
79020 2003-08-17  Bruno Haible  <bruno@clisp.org>
79021
79022         * modules/strndup (Files, Include): Add lib/strndup.h.
79023
79024 2003-08-17  Bruno Haible  <bruno@clisp.org>
79025
79026         * modules/euidaccess (Files): Add lib/euidaccess.h.
79027
79028 2003-08-17  Bruno Haible  <bruno@clisp.org>
79029
79030         * lib/strndup.h: New file.
79031
79032 2003-08-17  Bruno Haible  <bruno@clisp.org>
79033
79034         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79035         like AC_GNU_SOURCE.
79036         * modules/extensions (configure.ac): Comment out the invocation of
79037         gl_USE_SYSTEM_EXTENSIONS.
79038
79039 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79040
79041         Merges from coreutils, etc.
79042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79043         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79044         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79045         fixing a typo.
79046         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79047         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79048
79049 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79050
79051         Document merge from coreutils.
79052         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79053         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79054         * modules/utime: Add m4/utimes-null.m4.
79055
79056 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79057
79058         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79059         space, undoing this 2003-08-12 change:
79060         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79061
79062 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79063
79064         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79065         strtoul.c from libc, undoing this 2003-08-12 change:
79066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79067
79068 2003-08-16  Jim Meyering  <jim@meyering.net>
79069
79070         Merges from coreutils.
79071         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79072         prefix.  Adjust cache variables similarly.  Create 500 rather than
79073         just 300 files, to exercise bug on Darwin6.5, too.
79074         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79075         $missing_dir.
79076         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79077         AM_SYS_POSIX_TERMIOS.
79078         Reported by mkc@mathdogs.com.
79079         Also change use of $am_cv_sys_posix_termios
79080         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79081         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79082         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79083         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79084         in /proc/mounts until it finds one with matching device number.  This
79085         is unnecessary when the FILE argument *is* a mount point.  No stat call
79086         is necessary in that case.  So, disable the statvfs-testing code on
79087         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79088         as RedHat bug# 84846.
79089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79090         to 1MB, so as not to render systems with no stack size limit (e.g.,
79091         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79092         Include <unistd.h>.  On some systems,
79093         it is required for the definition of _SC_PAGESIZE.
79094
79095 2003-08-16  Jim Meyering  <jim@meyering.net>
79096
79097         Merge from coreutils.
79098         * lib/xstrtoimax.c: #else #if -> #elif.
79099         * lib/xstrtoumax.c: Likewise.
79100
79101 2003-08-16  Jim Meyering  <jim@meyering.net>
79102
79103         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79104         * m4/utimes.m4: Removed.
79105         * m4/utimes-null.m4: Renamed from utimes.m4.
79106
79107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79108         to 1MB, so as not to render systems with no stack size limit (e.g.,
79109         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79110         Include <unistd.h>.  On some systems,
79111         it is required for the definition of _SC_PAGESIZE.
79112
79113 2003-08-16  Jim Meyering  <jim@meyering.net>
79114         and Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         Merges from coreutils, etc.
79117
79118         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79119         using the latest version from cvs.  This avoids problems with #line
79120         directives using a vendor (Sun) compiler.
79121         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79122         Don't set GETGROUPS_LIB here; now it's
79123         done via getgroups.m4's wrapper function.
79124         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79125         rather than just in sh-util/configure.in, so that the
79126         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79127         same.
79128         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79129         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79130         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79131         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79132         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79133         Remove code that is now done by the newly-required macros.
79134         Append $(EXEEXT) to DF_PROG.
79135         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79136         Do not invoke or require the following here,
79137         since prereq.m4 or some gnulib .m4 now does this for us:
79138         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79139         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79140         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79141         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79142         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79143         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79144         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79145         AC_FUNC_OBSTACK.
79146         Do not replace the following functions, as this is now the job
79147         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79148         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79149         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79150         atexit getpass, strdup, getpagesize.
79151         Replace 'raise'.
79152         Do not check for the following functions, as this is now the job
79153         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79154         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79155         setregid.
79156         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79157         Check for sys/sysctl.h.
79158         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79159         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79160         of checking for ssize_t ourselves.
79161
79162         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79163         Require every macro that gnulib/modules/* suggests for us.
79164         (jm_PREREQ_ADDEXT): New macro.
79165         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79166         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79167
79168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79169         (gl_PHYSMEM): Use it.
79170         Also check for `table' function.
79171         Check for new headers and functions.
79172         Add check for sys/sysmp.h.
79173         With suggestions from Kaveh Ghazi.
79174         Ignore headers that are present but cannot be compiled.  This
79175         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79176         C 5.4.
79177
79178 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79179
79180         Document merge from coreutils.
79181         * modules/userspec: Depend on posixver.
79182         * modules/strftime: Depend on tzset.
79183
79184 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79185
79186         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79187         rather than tab, after '#' in shell-script copyright notices.
79188         Suggested by Bruno Haible.
79189
79190 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79191
79192         * config/srclist-update: Use three spaces, rather than tab, after '#'
79193         in shell-script copyright notices.  Suggested by Bruno Haible.
79194         Remove unnecessary parenthesization in regular expression.
79195
79196 2003-08-15  Jim Meyering  <jim@meyering.net>
79197
79198         Merge from coreutils.
79199         * lib/xgethostname.c: Include <stdlib.h>.
79200         (xghostname): Don't exit for anything other than memory-related
79201         failure; just return NULL.
79202         * lib/userspec.c: Include "posixver.h".
79203         (parse_user_spec): Accept `.' as a separator only
79204         in pre-POSIX-200112 mode.
79205         * lib/strtoimax.c: Use #elif rather than #else #if.
79206         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79207         Remove function, now that we can rely on a working tzset function.
79208         [!_LIBC]: Ensure that the required autoconf test has been run.
79209         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79210         Use underlying_strftime for %r.
79211         * lib/sha.c: Merge in some clean-up and optimization changes from
79212         glibc.
79213         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79214         Ensure that it is a multiple of 64.
79215         Rearrange loop exit tests so as to avoid performing an
79216         additional fread after encountering an error or EOF.
79217         * lib/realloc.c: Update copyright date.
79218
79219 2003-08-15  Jim Meyering  <jim@meyering.net>
79220         and Paul Eggert  <eggert@twinsun.com>
79221
79222         Merge from coreutils.
79223         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79224         member but strut utmpx does not.  Needed for AIX 4.3.3.
79225         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79226
79227 2003-08-15  Jim Meyering  <jim@meyering.net>
79228         and Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         Merges from coreutils, etc.
79231         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79232         Require gl_FUNC_TZSET_CLOBBER.
79233         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79234         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79235         members.
79236
79237 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79238
79239         Help the merge from coreutils.
79240         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79241         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79242         * m4/tzset.m4: Use it too.
79243
79244 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79245
79246         * modules/tzset: New file.
79247
79248 2003-08-14  Jim Meyering  <jim@meyering.net>
79249
79250         Merges from coreutils.
79251         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79252         variable names, rather than @FNMATCH_H@.
79253         * modules/alloca: Likewise for $(ALLOCA_H).
79254
79255         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79256         the three copies of the literal target, `fnmatch.h'.
79257         * modules/alloca (alloca.h): Likewise.
79258
79259 2003-08-14  Jim Meyering  <jim@meyering.net>
79260
79261         Merge from coreutils.
79262         * m4/tzset.m4: New file.
79263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79264         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79265         otherwise, AIX 5.1 systems would end up using the latter.
79266         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79267         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79268         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79269         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79270
79271 2003-08-14  Jim Meyering  <jim@meyering.net>
79272
79273         Merge from coreutils.
79274         * lib/obstack.h: Whitespace changes.
79275         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79276         and xcalloc return values.
79277         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79278         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79279         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79280         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79281         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79282         error from mntctl.
79283         Use mntctl's return value to drive the entry-processing loop, since
79284         we can't rely on the value of the vmt_length member in the last
79285         entry.  On some systems doing so could result in exhausting
79286         virtual memory.  Based in part on a patch from Mike Jetzer.
79287
79288 2003-08-14  Jim Meyering  <jim@meyering.net>
79289         and Paul Eggert  <eggert@twinsun.com>
79290
79291         Merges from coreutils, plus other fixes.
79292         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79293         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79294         for credits and details.  Thanks to Kaveh Ghazi for helping
79295         to keep these files in sync.
79296         (ARRAY_SIZE): Define it.
79297         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79298         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79299         (memcasecmp): Don't assume size_t fits in unsigned int.
79300         Remove casts and duplicate code.
79301         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79302         (memcpy): Remove definition.
79303         Merge in some clean-up and optimization changes from glibc.
79304         [BLOCKSIZE]: Move definition to top of file.
79305         Ensure that it is a multiple of 64.
79306         Rearrange loop exit tests so as to avoid performing an
79307         additional fread after encountering an error or EOF.
79308         * lib/md5.h (md5_uintptr): Define.
79309         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79310         return to the initial working directory.  Preserve errno
79311         for caller.
79312         * lib/idcache.c: Include "xalloc.h".
79313         (xmalloc, xrealloc): Remove decls.
79314         (getuser): Remove casts no longer required in C89.
79315         * lib/human.c: Include stdio.h, for sprintf.
79316         * lib/group-member.c: Include "xalloc.h".
79317         (xmalloc, xrealloc): Remove decls.
79318         (get_group_info): Remove casts no longer required in C89.
79319         * lib/getusershell.c (readname): Remove casts no longer required in
79320         C89.
79321         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79322         * lib/getline.c: Whitespace fix, from coreutils.
79323
79324 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79325
79326         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79327         Check for isascii.
79328
79329         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79330         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79331         Undo previous (whitespace-only) change.
79332
79333 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79334
79335         * lib/exclude.c: Include <ctype.h>
79336         (IN_CTYPE_DOMAIN): New macro.
79337         (is_space): New fn.
79338         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79339         and empty lines.
79340
79341         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79342         Undo previous (whitespace-only) change.
79343
79344 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79345
79346         * config/srclist-update: Change update back to the old behavior,
79347         leaving whitespace alone.  Use one 'sed' command rather than a
79348         pipeline.
79349         (fixlicense): Now a variable, not a function.
79350         (remove_trailing_blanks): Remove.
79351         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79352         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79353         Undo previous (whitespace-only) change.
79354
79355 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79356
79357         Merge from coreutils.
79358         * modules/euidaccess: Add lib_SOURCES, include for new
79359         file euidaccess.h
79360
79361 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79362
79363         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79364         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79365         Normalize leading white space and remove trailing white space.
79366
79367         Merge from coreutils
79368         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79369
79370         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79371         0.12.1.  These files are now being upgraded automatically by
79372         ../config/srclist-update.
79373
79374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79375
79376         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79377         Normalize leading white space and remove trailing white space.
79378         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79379         notice, as per ../config/srclist-update.
79380
79381         Merge from coreutils.
79382         * lib/euidaccess.h: New file.
79383         * lib/euidaccess.c: Include it.
79384         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79385         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79386         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79387
79388 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79389
79390         * config/srclist-update: Add copyright notice.
79391         (remove_id_lines, remove_trailing_blanks): New constants.
79392         (fixfile): Use them to normalize spacing a bit in copied files.
79393         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79394         Normalize leading white space and remove trailing white space.
79395
79396         * config/texinfo.tex: Sync with texinfo.
79397
79398         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79399         strtoul.c from libc, to merge coreutils whitespace changes.
79400
79401         * config/srclist.txt: Get the following m4 files from gettext:
79402         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79403         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79404         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79405         wint_t.m4.
79406
79407 2003-08-12  Karl Berry  <karl@gnu.org>
79408
79409         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79410         been made.
79411
79412 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79413
79414         * modules/gnu-source, m4/gnu-source.m4:
79415         Remove; we're assuming Autoconf 2.54 or later now.
79416         Suggested by Bruno Haible.
79417         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79418
79419 2003-08-11  Bruno Haible  <bruno@clisp.org>
79420
79421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79422
79423 2003-08-11  Bruno Haible  <bruno@clisp.org>
79424
79425         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79426         (vasnprintf): Use it instead of wcslen.
79427
79428 2003-08-11  Bruno Haible  <bruno@clisp.org>
79429
79430         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79431         value to ensure that _Bool promotes to int. Use #define for _Bool when
79432         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79433
79434 2003-08-10  Karl Berry  <karl@gnu.org>
79435
79436         * lib/regex.h: update from libc (whitespace fix).
79437
79438 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79439
79440         Merge some files from coreutils.  These changes were
79441         originally made by Jim Meyering.
79442         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79443         many older Unixes require this.
79444         * lib/alloca.c (alloca): Remove cast to argument of free;
79445         no longer needed in C89.
79446         * lib/alloca_.h, regex.h: Fix white space to match
79447         what GNU indent does.
79448
79449 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79450
79451         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79452         apparently Emacs's Unicode mode got confused before my 2003-08-05
79453         checkin.
79454
79455 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79456
79457         * m4/extensions.m4: New file.
79458         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79459         Require gl_USE_SYSTEM_EXTENSIONS.
79460         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79461         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79462
79463 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79464
79465         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79466         * modules/extensions, modules/gnu-source: New files.
79467         * modules/timespec, modules/unlocked-io: Depend on extensions.
79468
79469 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79470
79471         * modules/restrict: New file.
79472         * MODULES.html.sh (func_all_modules): Add restrict.
79473         * modules/regex: Depend on restrict.
79474
79475 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79476
79477         * m4/restrict.m4: New file.
79478         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79479
79480 2003-08-07  Bruno Haible  <bruno@clisp.org>
79481
79482         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79483         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79484
79485 2003-08-07  Bruno Haible  <bruno@clisp.org>
79486
79487         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79488         makes the module 'getndelim2' compatible with the module 'getline'.
79489
79490 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79491
79492         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79493         byte with "\201" to avoid glitches when editing that source file
79494         with multi-gnome-terminal.
79495
79496 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79497
79498         * lib/bumpalloc.h: Remove.
79499
79500 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79501
79502         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79503         * modules/bumpalloc: Remove.
79504
79505 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79506
79507         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79508         GNU coding style.
79509
79510         Merge from coreutils.
79511         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79512         1. From glibc.
79513         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79514         from Karl Berry, implemented by Jim Meyering.
79515         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79516         from Dmitry V. Levin.
79517         Remove anachronistic cast of xrealloc.
79518         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79519         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79520         type. Otherwise, it wouldn't compile with at least /bin/cc on
79521         ymp-cray-unicos9.0.2.X.
79522         Combine two mostly-identical uses of alloca into one.
79523         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79524
79525 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79526
79527         [From Emacs.]
79528
79529         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79530         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79531         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79532         obsolete NLIST_NAME_UNION.
79533         [__GNU__]: Undef BSD and FSCALE.
79534         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79535
79536 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79537
79538         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79539         an enum type, so that it's guaranteed to promote to int.  See:
79540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79541
79542 2003-08-03  Karl Berry  <karl@gnu.org>
79543
79544         * config/depcomp: update from automake.
79545
79546 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79547
79548         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79549         (strerror): Don't assume that a printable int fits in 14 bytes.
79550
79551 2003-07-31  Bruno Haible  <bruno@clisp.org>
79552
79553         * modules/getpass-gnu: New file.
79554         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79555
79556 2003-07-31  Bruno Haible  <bruno@clisp.org>
79557
79558         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79559
79560 2003-07-24  Karl Berry  <karl@gnu.org>
79561
79562         * config/missing: update from automake.
79563
79564 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79565             Bruno Haible  <bruno@clisp.org>
79566
79567         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79568         * lib/getline.c (getline, getdelim): Likewise.
79569         Remove _GNU_SOURCE define; now it's defined in config.h through
79570         m4/getline.m4.
79571
79572 2003-07-23  Karl Berry  <karl@gnu.org>
79573
79574         * config/config.sub: update from prep.
79575
79576 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79577
79578         * modules/xalloc (Depends-on): Add exitfail.
79579         * modules/xmemcoll: Likewise.
79580
79581 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79582
79583         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79584         over-parenthesization in macros.
79585
79586         Sync with coreutils.
79587
79588         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79589         required by C99.
79590
79591         Use `exit_failure' for xalloc and xmemcoll instead of their own
79592         private exit-failure variables.
79593         * lib/xalloc.h (xalloc_exit_failure): Remove.
79594         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79595         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79596         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79597         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79598         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79599
79600 2003-07-20  Jim Meyering  <jim@meyering.net>
79601
79602         * modules/closeout (Depends-on): Add exitfail.
79603         Suggestion from Bruno Haible.
79604
79605 2003-07-19  Karl Berry  <karl@gnu.org>
79606
79607         * config/config.sub: update from prep.
79608
79609 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79610
79611         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79612         Remove.
79613         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79614         to test that it can stand by itself.  Include "exitfail.h".
79615         Clients should set exit_failure instead.
79616         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79617
79618 2003-07-18  Bruno Haible  <bruno@clisp.org>
79619
79620         * modules/getndelim2: New file.
79621         * modules/getline: Share files with module getndelim2.
79622         * modules/getnline: Depend on getndelim2 instead of sharing files with
79623         it. Add getnline.c to lib_SOURCES.
79624         * MODULES.html.sh (func_all_modules): Add getndelim2.
79625
79626 2003-07-18  Bruno Haible  <bruno@clisp.org>
79627
79628         * m4/getndelim2.m4: New file.
79629         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79630         invoke gl_PREREQ_GETNDELIM2.
79631         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79632         gl_PREREQ_GETNDELIM2.
79633         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79634         gl_GETNDELIM2.
79635
79636 2003-07-18  Bruno Haible  <bruno@clisp.org>
79637
79638         * lib/getndelim2.h: New file.
79639         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79640         getndelim2.h.
79641         (getndelim2): Make non-static. Change return type to ssize_t.
79642         * lib/getline.h: Change argument names.
79643         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79644         * lib/getnline.c: Include getndelim2.h.
79645
79646 2003-07-18  Andreas Schwab  <schwab@suse.de>
79647
79648         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79649
79650 2003-07-17  Karl Berry  <karl@gnu.org>
79651
79652         * config/config.sub: update from prep.
79653
79654 2003-07-17  Bruno Haible  <bruno@clisp.org>
79655
79656         * modules/getnline: New file.
79657         * modules/getline: Add lib/getndelim2.c to source file list.
79658         * MODULES.html.sh (func_all_modules): Add getnline.
79659
79660 2003-07-17  Bruno Haible  <bruno@clisp.org>
79661
79662         * m4/getnline.m4: New file.
79663
79664 2003-07-17  Bruno Haible  <bruno@clisp.org>
79665
79666         * m4/Makefile.am.in: Remove file.
79667         * m4/Makefile.am: Remove file.
79668         * m4/Makefile.in: Remove file.
79669
79670 2003-07-17  Bruno Haible  <bruno@clisp.org>
79671
79672         * lib/getnline.h: New file.
79673         * lib/getnline.c: New file.
79674         * lib/getndelim2.c: New file, extracted from getline.c.
79675         (getndelim2): Renamed from getdelim2, with added nmax argument.
79676         * lib/getline.c: Include getndelim2.c.
79677         (getdelim2): Moved out to getndelim2.c.
79678         (getline, getdelim): Update.
79679
79680 2003-07-17  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/Makefile.am: Remove file.
79683         * lib/Makefile.in: Remove file.
79684
79685 2003-07-17  Bruno Haible  <bruno@clisp.org>
79686
79687         * configure.in: Remove file.
79688         * Makefile.in: Remove file.
79689
79690 2003-07-17  Bruno Haible  <bruno@clisp.org>
79691
79692         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79693
79694 2003-07-16  Karl Berry  <karl@gnu.org>
79695
79696         * config/srclist-update: was running fixlicense twice, which caused
79697                 texinfo.tex to be nullified for some reason.  Simplify,
79698                 $gplsrc is no longer needed as far as I can see?
79699
79700 2003-07-16  Jim Meyering  <jim@meyering.net>
79701
79702         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79703
79704 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79705
79706         * config/srclist.txt: Get the following files from gettext-runtime/intl
79707         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79708         ref-del.sin.  From Bruno Haible.
79709         * config/srclist-update (fixfile): Change grep pattern again, since the
79710         previous fix didn't work (there was another trailing $).  Use
79711         '[$]' to escape the $s.
79712
79713 2003-07-15  Karl Berry  <karl@gnu.org>
79714
79715         * lib/vasnprintf.c: update from gettext.
79716
79717 2003-07-15  Karl Berry  <karl@gnu.org>
79718
79719         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79720         gets expanded when surrounded by '$'.
79721
79722 2003-07-15  Jim Meyering  <jim@meyering.net>
79723
79724         * modules/save-cwd: Don't depend on error.  From Derek Price.
79725
79726 2003-07-15  Jim Meyering  <jim@meyering.net>
79727
79728         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79729
79730 2003-07-14  Simon Josefsson  <jas@extundo.com>
79731
79732         * modules/mempcpy: New file.
79733         * MODULES.html.sh (func_all_modules): Add mempcpy.
79734
79735 2003-07-14  Simon Josefsson  <jas@extundo.com>
79736
79737         * m4/mempcpy.m4: New file.
79738
79739 2003-07-14  Simon Josefsson  <jas@extundo.com>
79740
79741         * lib/mempcpy.h: New file.
79742         * lib/mempcpy.c: New file.
79743
79744 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79745
79746         * modules/getdate, modules/posixtm: Depend on mktime.
79747
79748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79749
79750         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79751         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79752         unicodeio.c, unicodeio.h, unlocked-io.h:
79753         Switch from LGPL to GPL.
79754
79755 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79756
79757         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79758         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79759         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79760         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79761         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79762         updated automatically by ../config/srclist-update.  This changes
79763         their license from LPGL to GPL.
79764
79765 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79766
79767         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79768         assumed to refer to the root of the most recent stable gettext version.
79769         * config/srclistvars.sh: Add defaults for eggert.
79770         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79771         Match "This program" as well as "The program".  This is needed
79772         for gettext.
79773
79774 2003-07-14  Jim Meyering  <jim@meyering.net>
79775
79776         Don't emit diagnostics.  Let callers do that.
79777         * lib/save-cwd.c: Don't include "error.h".
79778         (save_cwd): Don't call error.  Ensure that errno is valid
79779         when returning nonzero.
79780
79781         * lib/save-cwd.h (restore_cwd): Update prototype.
79782         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79783         Simplify.  Don't call error upon failure.  Let callers do that.
79784         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79785         when auditing is enabled.  But don't bother updating the #if.
79786
79787 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79788
79789         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79790         it breaks C++ compilation.
79791         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79792
79793 2003-07-10  Simon Josefsson  <jas@extundo.com>
79794
79795         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79796
79797 2003-07-10  Jim Meyering  <jim@meyering.net>
79798
79799         * m4/clock_time.m4: Remove trailing blank.
79800         * m4/intmax_t.m4: Likewise.
79801
79802 2003-07-10  Jim Meyering  <jim@meyering.net>
79803
79804         * lib/vasnprintf.c: Remove trailing blanks.
79805         Make cpp indentation consistent.
79806
79807 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79808
79809         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79810         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79811         Switch from LGPL to GPL.
79812
79813 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79814
79815         * config/srclist.txt: Sort sublists.  Add
79816         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79817         that differ from gnulib for one reason or another; we'd like this list
79818         to be smaller but for now let's document what we have.
79819
79820 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79821
79822         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79823         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79824         and sweeter "eval x=$x".
79825         * config/srclist.txt: Get lib/argp* from glibc.
79826
79827 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79828
79829         * lib/mktime.c: Fix some boundary cases and remove need for floating
79830         point.
79831
79832         Issue a compile-time diagnostic if time_t is floating point, or if
79833         two's complement arithmetic is not in effect, or if arithmetic
79834         right shift does not propagate the sign.  These assumptions were
79835         all in the original code but they weren't checked.
79836
79837         (TIME_T_MIDPOINT, verify): New macros.
79838         (__isleap): Remove; it has integer overflow problems.
79839         (leapyear): New function, without those problems.
79840         (ydhms_tm_diff): Remove; splitting into two parts.
79841         (ydhms_diff): New function, containing the arithmetic part of
79842         the old ydhms_tm_diff function.  Issue a compile-time
79843         diagnostic if we are not using C99 integer division.
79844         Avoid casts when possible.
79845         (guess_time_tm): New function, containing the checking part of
79846         the old ydhms_tm_diff function.  Return the new value, rather than
79847         the difference between it and the old.  Accept a new argument T
79848         so that *T specifies the old value.  Check for overflow in the result.
79849
79850         (__mktime_internal): Use a time_t offset, not a long int offset.
79851         This undoes the 2003-06-04 change, which is no longer needed now
79852         that we have better overflow checking.
79853         (localtime_offset): Likewise.
79854
79855         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79856         and long are 64-bit but int is only 32-bit.
79857         (ydhms_diff): Use long int to store year1 and yday1.
79858         Issue a compile-time diagnostic if long int is not wide enough.
79859
79860         (__mktime_internal): Use long int to store adjusted year and yday.
79861         Use plain C rather than preprocessor commands, if that doesn't
79862         affect efficiency.
79863         Check for overflow (and try to repair) after each probe
79864         rather than checking only at the very end.  This avoids some bugs
79865         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79866         does not equal GMT offset at maximum time).
79867         Use integer to check for overflow rather than floating point; this
79868         is more portable to non-IEEE hosts, and is a tad faster.
79869         When we detect that we are oscillating between two values,
79870         don't check whether tm_isdst has the requested value, since
79871         we already know the answer.  When tm_isdst has the wrong value,
79872         use a different heuristic to find the right one, based on the
79873         extreme values actually observed in practice in tz2003a,
79874         rather than the (overly optimistic) "previous 3 calendar quarters".
79875
79876         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79877         "T const" to accommodate glibc style.
79878         (check_result): Use less-confusing report format.  "long" -> "long int.
79879         (main): Likewise.
79880         Don't loop if the iteration overflows time_t.
79881         Allow a negative step in the iteration.
79882
79883 2003-07-06  Karl Berry  <karl@gnu.org>
79884
79885         * config/depcomp: update from automake.
79886         * config/config.sub: update from prep.
79887
79888 2003-07-03  Karl Berry  <karl@gnu.org>
79889
79890         * config/config.guess: update from prep.
79891
79892 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79893
79894         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79895         xreadlink.c now includes it unconditionally.
79896
79897 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79898
79899         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79900         having it depend on HAVE_SYS_TYPES_H.
79901
79902 2003-07-01  Bruno Haible  <bruno@clisp.org>
79903
79904         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79905         <sys/types.h> should be sufficient.
79906         Reported by Paul Eggert.
79907
79908 2003-06-26  Karl Berry  <karl@gnu.org>
79909
79910         * config/depcomp: update from automake.
79911
79912 2003-06-26  Bruno Haible  <bruno@clisp.org>
79913
79914         * modules/human: Depend on module stdbool.
79915
79916 2003-06-25  Bruno Haible  <bruno@clisp.org>
79917
79918         * modules/readlink: New file.
79919         * modules/xreadlink: Depend on it.
79920         * MODULES.html.sh (func_all_modules): Add readlink.
79921
79922 2003-06-25  Bruno Haible  <bruno@clisp.org>
79923
79924         * m4/readlink.m4: New file.
79925
79926 2003-06-25  Bruno Haible  <bruno@clisp.org>
79927
79928         * lib/readlink.c: New file.
79929
79930 2003-06-22  Karl Berry  <karl@gnu.org>
79931
79932         * config/srclist.txt: update mkinstalldirs from automake.
79933         * config/mkinstalldirs: update.
79934
79935 2003-06-22  Bruno Haible  <bruno@clisp.org>
79936
79937         Portability to mingw32.
79938         * m4/ssize_t.m4: New file, from GNU gettext.
79939         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79940         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79941
79942 2003-06-22  Bruno Haible  <bruno@clisp.org>
79943
79944         * modules/safe-read: Add m4/ssize_t.m4.
79945         * modules/xreadlink: Add m4/ssize_t.m4.
79946
79947 2003-06-20  Bruno Haible  <bruno@clisp.org>
79948
79949         Assume C89, so PARAMS isn't needed.
79950         * lib/unicodeio.h (PARAMS): Remove.
79951         * lib/unicodeio.c: Don't use PARAMS.
79952
79953 2003-06-18  Karl Berry  <karl@gnu.org>
79954
79955         * config/config.{guess,sub}: update from prep.
79956
79957 2003-06-18  Jim Meyering  <jim@meyering.net>
79958
79959         Merge changes from coreutils.
79960         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79961         Remove explicit declarations of xmalloc and realloc.
79962         Include xalloc.h.
79963         (read_utmp): Remove anachronistic cast of xmalloc.
79964
79965 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79966
79967         Assume C89, so PARAMS isn't needed.
79968         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79969         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79970         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79971         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79972         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79973         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79974         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79975         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79976         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79977         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79978         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79979         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79980         no longer needed. Anyway, config.h should always be included before any
79981         other file.
79982
79983 2003-06-11  Simon Josefsson  <jas@extundo.com>
79984
79985         * modules/sysexits: New file.
79986         * MODULES.html.sh (func_all_modules): Add sysexits.
79987
79988 2003-06-11  Simon Josefsson  <jas@extundo.com>
79989
79990         * lib/sysexit_.h: New file.
79991
79992 2003-06-11  Derek Price  <derek@ximbiot.com>
79993
79994         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79995         necessary.
79996
79997 2003-06-11  Bruno Haible  <bruno@clisp.org>
79998
79999         * m4/sysexits.m4: New file.
80000
80001 2003-06-10  Simon Josefsson  <jas@extundo.com>
80002
80003         * lib/argp.h: New file, from glibc.
80004         * lib/argp-ba.c: New file, from glibc.
80005         * lib/argp-eexst.c: New file, from glibc.
80006         * lib/argp-fmtstream.c: New file, from glibc.
80007         * lib/argp-fmtstream.h: New file, from glibc.
80008         * lib/argp-fs-xinl.c: New file, from glibc.
80009         * lib/argp-help.c: New file, from glibc.
80010         * lib/argp-namefrob.h: New file, from glibc.
80011         * lib/argp-parse.c: New file, from glibc.
80012         * lib/argp-pv.c: New file, from glibc.
80013         * lib/argp-pvh.c: New file, from glibc.
80014         * lib/argp-xinl.c: New file, from glibc.
80015
80016 2003-06-10  Simon Josefsson  <jas@extundo.com>
80017
80018         * modules/strchrnul: New file.
80019
80020 2003-06-10  Simon Josefsson  <jas@extundo.com>
80021
80022         * modules/argp: New file.
80023
80024 2003-06-10  Simon Josefsson  <jas@extundo.com>
80025
80026         * m4/strchrnul.m4: New file.
80027
80028 2003-06-10  Simon Josefsson  <jas@extundo.com>
80029
80030         * lib/strchrnul.h: New file.
80031         * lib/strchrnul.c: New file.
80032
80033 2003-06-10  Bruno Haible  <bruno@clisp.org>
80034
80035         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80036
80037 2003-06-07  Karl Berry  <karl@gnu.org>
80038
80039         * config/config.{guess,sub}: update from prep.
80040
80041 2003-06-07  Jim Meyering  <jim@meyering.net>
80042
80043         * modules/strtod: Use $(...) notation, not @...@ for
80044         AC_REPLACE'd variables.
80045         * modules/localcharset: Likewise.
80046
80047 2003-06-07  Jim Meyering  <jim@meyering.net>
80048
80049         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80050         in place of my name in the copyright comment.
80051         Remove definition and uses of __P.
80052
80053         From coreutils.
80054         * lib/stat.c: Don't declare xmalloc explicitly.
80055         Instead, include "xalloc.h".
80056         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80057         xrealloc, and xcalloc return values.
80058         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80059         Improve comment.
80060         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80061
80062 2003-06-07  Bruno Haible  <bruno@clisp.org>
80063
80064         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80065         avoid AC_CONFIG_LINKS.
80066         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80067         fnmatch.h, to avoid AC_CONFIG_LINKS.
80068         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80069
80070 2003-06-07  Bruno Haible  <bruno@clisp.org>
80071
80072         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80073         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80074         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80075         directory.
80076         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80077         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80078         directory.
80079
80080 2003-06-06  Jim Meyering  <jim@meyering.net>
80081
80082         Merge from coreutils.
80083         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80084         Consolidate declarations and initializations of *_base* locals.
80085
80086         Merge from coreutils.
80087         This avoids a core dump on systems without GNU putenv,
80088         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80089         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80090         (unsetenv): New static function, from GNU libc.
80091         (rpl_putenv): Use it.
80092
80093         * lib/modechange.c: Remove trailing blanks.
80094
80095         Merge from coreutils.
80096         * lib/fsusage.c: Remove declaration of statfs.
80097         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80098
80099         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80100
80101 2003-06-06  Jim Meyering  <jim@meyering.net>
80102
80103         * lib/stdbool_.h: Renamed from stdbool.h.in.
80104
80105 2003-06-06  Jim Meyering  <jim@meyering.net>
80106             Bruno Haible  <bruno@clisp.org>
80107
80108         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80109         Adjust Makefile.am snippet not to redirect directly to target.
80110         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80111
80112 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80113
80114         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80115         mismatch, look in future quarters as well as past.  This fixes a
80116         bug when processing fall-backwards gaps immediately after a long
80117         period of daylight-saving time.
80118
80119         * lib/mktime.c: Assume freestanding C89 or better.
80120         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80121         (__P): Remove; not used.
80122         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80123         (mktime, not_equal_tm, print_tm, check_result,
80124         main): Use prototypes.  Use const * where appropriate.
80125         (main): Fix typo in testing code that uncovered by above changes.
80126         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80127
80128 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80129
80130         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80131         locale.h, localeconv.  This merges changes from coreutils.
80132
80133         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80134         It can be removed after the next Autoconf is released.
80135         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80136         needed.
80137
80138 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80139
80140         * lib/mktime.c: Fix Debian bug 177940
80141         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80142         (localtime_offset): Now long int, not time_t, because we want it
80143         to be guaranteed to be signed.  All uses changed.
80144         (__mktime_internal): If overflow would occur when adding offset,
80145         don't add it.
80146
80147         Merge 'human' changes from coreutils.  Rewrite to support
80148         locale-specific notations like thousands separators.
80149         * lib/human.c: Simplify authorship notice.
80150         Include human.h immediately after config.h.
80151         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80152         <limits.h>: Do not include, since human.h does.
80153         (SIZE_MAX, UINTMAX_MAX): New macros.
80154         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80155         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80156         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80157         (power_letter): Renamed from suffixes.
80158         (generate_suffix_backwards): Remove.
80159         (adjust_value): Now takes int style (because of human.h changes)
80160         and long double value (for greater precision on some platforms).
80161         (group_number): New function.
80162         (human_readable): Use it.  Use integer options, not enum.
80163         Put the options before the sizes in the arg list.
80164         Support all the new options.
80165         The old human_readable function has been removed;
80166         use inttostr.h instead.
80167         (human_readable, default_block_size, humblock):
80168         Use uintmax_t, not int, for block sizes.
80169         (human_readable_inexact, block_size_types): Remove.
80170         (block_size_opts): New constant.
80171         (human_options): Renamed from human_block_size, with new signature
80172         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80173         * lib/human.h: Add copyright and authorship notice.
80174         Include <limits.h> and <stdbool.h> unconditionally.
80175         (PARAMS): Remove.  All uses removed.
80176         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80177         (enum human_inexact_style): Remove tag; now a nameless enum.
80178         (human_floor, human_ceiling, human_round_to_even): Now have
80179         values 2, 0, 1 rather than -1, 1, 0.
80180         (human_group_digits, human_suppress_point_zero, human_autoscale,
80181         human_base_1024, human_SI, human_B): New constants.
80182         (human_readable_inexact, human_block_size): Remove.
80183         (human_readable): Size args are now uintmax_t, not int.
80184         (human_options): New decl.
80185
80186         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80187         unnecessary now that we assume C89 or better.  This change
80188         imported from coreutils.
80189
80190         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80191         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80192         in the 2003-05-30 sync from glibc.
80193
80194         .h files should stand alone, but we shouldn't include <sys/types.h>
80195         if we can get away with just <stddef.h>.
80196
80197         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80198         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80199         rather than <sys/types.h>, as we merely need size_t.
80200         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80201         to get size_t.
80202         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80203         Include <stdio.h>, to get FILE.
80204         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80205         memcasecmp.h has included <stddef.h> and all we need is size_t.
80206         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80207         our interface, instead of including <sys/types.h>
80208
80209 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80210
80211         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80212         now, as glibc mktime is buggy on non-glibc systems.
80213
80214 2003-06-03  Karl Berry  <karl@gnu.org>
80215
80216         * config/config.sub: update from prep.
80217
80218 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80219
80220         [from coreutils]
80221         Fix some minor time-related bugs with POSIX time arguments.
80222         Some valid time stamps were being rejected (notably -1, and
80223         time stamps before 1900 on 64-bit hosts).  And some invalid
80224         time stamps were being accepted, e.g. September 31.
80225
80226         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80227         that we can return (time_t) -1 successfully.
80228         * lib/posixtm.c: Likewise.
80229         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80230         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80231         (t): Remove static var.
80232         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80233         of static var.  All uses changed.
80234         (year): Do not reject years before 1900; they can occur with
80235         64-bit time_t.
80236         (posix_time_parse): Do not check for out-of-range components;
80237         that is now the caller's responsibility, since our checks were
80238         only approximations.
80239         (posixtime): Use mktime to check for out-of-range components,
80240         since it knows them exactly.
80241         If mktime returns (time_t) -1, check whether an error actually occurred
80242         by invoking localtime on -1.
80243         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80244         posixtime failures better.
80245         Improve the test data (in comments only).
80246
80247 2003-06-02  Karl Berry  <karl@gnu.org>
80248
80249         * config/mkinstalldirs (version): new variable.
80250         (--version): new option.
80251         (usage): improve message.
80252
80253 2003-05-30  Karl Berry  <karl@gnu.org>
80254
80255         * lib/mktime.c: update from libc.
80256
80257 2003-05-30  Bruno Haible  <bruno@clisp.org>
80258
80259         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80260         * config/config.rpath: Upgrade to gettext-0.12.1.
80261
80262 2003-05-30  Bruno Haible  <bruno@clisp.org>
80263
80264         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80265         * m4/nls.m4: New file, from gettext-0.12.1.
80266         * m4/po.m4: New file, from gettext-0.12.1.
80267         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80268
80269 2003-05-30  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80272         * lib/localcharset.h: Likewise.
80273         * lib/localcharset.c: Likewise.
80274
80275 2003-05-29  Karl Berry  <karl@gnu.org>
80276
80277         * config/config.rpath: update from gettext.
80278
80279 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80280
80281         Assume the headers required for C89 freestanding compilers.
80282         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80283         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80284         * m4/human.m4 (gl_HUMAN): Likewise.
80285         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80286         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80287         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80288         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80290         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80291
80292 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80293
80294         Assume the headers required for C89 freestanding compilers.
80295         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80296         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80297         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80298         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80299         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80300         define, since <limits.h> is guaranteed to do that.
80301         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80302         * lib/exclude.c: Include <stdbool.h> unconditionally.
80303         * lib/tempname.c: Include <stddef.h> unconditionally.
80304         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80305         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80306         <stddef.h> does that.
80307         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80308         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80309         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80310         needed.
80311         * lib/xstrtol.c: Likewise.
80312         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80313         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80314
80315         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80316         warnings on some platforms.
80317
80318         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80319         arbitrarily.
80320
80321 2003-05-26  Jim Meyering  <jim@meyering.net>
80322
80323         Merge in a change from coreutils:
80324         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80325         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80326         that condition, rather than `-1' which is slightly misleading.
80327         Change the name of the cache variable to have the gl_ prefix.
80328         Prompted by a patch from Richard Dawe for DJGPP.
80329
80330 2003-05-24  Karl Berry  <karl@gnu.org>
80331
80332         * config/config.guess: update from prep.
80333
80334 2003-05-22  Karl Berry  <karl@gnu.org>
80335
80336         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80337
80338 2003-05-20  Karl Berry  <karl@gnu.org>
80339
80340         * config/config.guess: update from prep.
80341
80342 2003-05-18  Karl Berry  <karl@gnu.org>
80343
80344         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80345         might actually be set by the user.
80346
80347         * config/depcomp, install-sh, mdate-sh: update from automake.
80348
80349 2003-05-17  Bruno Haible  <bruno@clisp.org>
80350
80351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80352         invalid expansion for AC_EGREP_CPP.
80353         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80354         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80355         Suggested by Akim Demaille <akim@epita.fr> in
80356         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80357
80358 2003-05-12  Jim Meyering  <jim@meyering.net>
80359
80360         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80361         the space-padded-by-default conversion specifiers, %e, %k, %l.
80362
80363 2003-05-12  Bruno Haible  <bruno@clisp.org>
80364
80365         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80366         the string is longer than 4 KB.
80367
80368 2003-05-11  Karl Berry  <karl@gnu.org>
80369
80370         * config/config.{guess,sub}: update from prep.
80371
80372 2003-05-09  Bruno Haible  <bruno@clisp.org>
80373
80374         * modules/error: Add m4/strerror_r.m4 to file list.
80375
80376 2003-05-03  Bruno Haible  <bruno@clisp.org>
80377
80378         Upgrade to Unicode-4.0.
80379         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80380         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80381         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80382         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80383         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80384         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80385         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80386         Change width of U+E0100..U+E01EF from 1 to 0.
80387
80388 2003-04-25  Jim Meyering  <jim@meyering.net>
80389
80390         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80391         of type size_t, not int.
80392
80393 2003-04-25  Bruno Haible  <bruno@clisp.org>
80394
80395         * lib/copy-file.c: Include <stddef.h>, for size_t.
80396
80397 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80398
80399         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80400         code which expansion is under static control.  Patch imported from
80401         Akim Demaille's patch to Bison; see
80402         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80403
80404 2003-04-14  Bruno Haible  <bruno@clisp.org>
80405
80406         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80407
80408 2003-04-11  Jim Meyering  <jim@meyering.net>
80409
80410         Merge changes from Coreutils.
80411
80412         2003-03-22  Jim Meyering  <jim@meyering.net>
80413
80414         * lib/strftime.c (widen): Cast alloca return value to proper type.
80415
80416         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80417
80418         From GNU libc.
80419         * lib/strftime.c (my_strftime): Handle very large width
80420         specifications for numeric values correctly.  Improve checks for
80421         overflow.
80422
80423         2003-01-19  Jim Meyering  <jim@meyering.net>
80424
80425         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80426         definitions.
80427         (nl_get_alt_digit) [! defined my_strftime]: Define.
80428         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80429         _nl_get_alt_digit and _nl_get_walt_digit.
80430
80431         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80432         libc. These changes have no effect outside of _LIBC.
80433
80434 2003-04-10  Bruno Haible  <bruno@clisp.org>
80435
80436         * modules/findprog: New file.
80437         * MODULES.html.sh (func_all_modules): Add it.
80438
80439 2003-04-10  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/findprog.m4: New file.
80442         * m4/eaccess.m4: New file.
80443
80444 2003-04-10  Bruno Haible  <bruno@clisp.org>
80445
80446         * lib/findprog.h: New file, from GNU gettext.
80447         * lib/findprog.c: New file, from GNU gettext.
80448
80449 2003-04-05  Jim Meyering  <jim@meyering.net>
80450
80451         Merge changes from Coreutils.
80452
80453         * lib/exclude.h (PARAMS): Remove definition and uses.
80454         * lib/exclude.c: Remove uses of `PARAMS'.
80455
80456         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80457         Add test-cases for DOS filenames. Declare program_name.
80458         (main): Set up program_name.  Patch by Rich Dawe.
80459
80460         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80461         error from mntctl.
80462         Use mntctl's return value to drive the entry-processing loop, since
80463         we can't rely on the value of the vmt_length member in the last
80464         entry.  On some systems doing so could result in exhausting
80465         virtual memory.  Based in part on a patch from Mike Jetzer.
80466
80467 2003-04-04  Bruno Haible  <bruno@clisp.org>
80468
80469         * modules/linebreak: New file.
80470         * MODULES.html.sh (func_all_modules): Add it.
80471
80472 2003-04-04  Bruno Haible  <bruno@clisp.org>
80473
80474         * m4/linebreak.m4: New file.
80475
80476 2003-04-04  Bruno Haible  <bruno@clisp.org>
80477
80478         * lib/linebreak.h: New file, from GNU gettext.
80479         * lib/linebreak.c: New file, from GNU gettext with slight
80480         modifications.
80481         * lib/lbrkprop.h: New file, from GNU gettext.
80482
80483 2003-04-03  Bruno Haible  <bruno@clisp.org>
80484
80485         * modules/utf8-ucs4: New file.
80486         * modules/utf16-ucs4: New file.
80487         * modules/ucs4-utf8: New file.
80488         * modules/ucs4-utf16: New file.
80489         * MODULES.html.sh (func_all_modules): Add them.
80490
80491 2003-04-03  Bruno Haible  <bruno@clisp.org>
80492
80493         * m4/utf-ucs4.m4: New file.
80494         * m4/ucs4-utf.m4: New file.
80495
80496 2003-04-03  Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/utf8-ucs4.h: New file, from GNU gettext.
80499         * lib/utf16-ucs4.h: New file, from GNU gettext.
80500         * lib/ucs4-utf8.h: New file, from GNU gettext.
80501         * lib/ucs4-utf16.h: New file, from GNU gettext.
80502
80503 2003-04-02  Bruno Haible  <bruno@clisp.org>
80504
80505         * modules/binary-io: New file.
80506         * MODULES.html.sh (func_all_modules): Add it.
80507
80508 2003-04-02  Bruno Haible  <bruno@clisp.org>
80509
80510         * lib/binary-io.h: New file, from GNU gettext.
80511
80512 2003-04-01  Bruno Haible  <bruno@clisp.org>
80513
80514         * modules/pathname: New file.
80515         * MODULES.html.sh (func_all_modules): Add it.
80516
80517 2003-04-01  Bruno Haible  <bruno@clisp.org>
80518
80519         * lib/pathname.h: New file, from GNU gettext.
80520         * lib/concatpath.c: New file, from GNU gettext.
80521
80522 2003-03-30  Bruno Haible  <bruno@clisp.org>
80523
80524         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80525
80526 2003-03-30  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80529         function chown() doesn't exist.
80530
80531 2003-03-28  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/copy-file: New file.
80534         * MODULES.html.sh (func_all_modules): Add it.
80535
80536 2003-03-28  Bruno Haible  <bruno@clisp.org>
80537
80538         * m4/copy-file.m4: New file.
80539
80540 2003-03-28  Bruno Haible  <bruno@clisp.org>
80541
80542         * lib/copy-file.h: New file, from GNU gettext.
80543         * lib/copy-file.c: New file, from GNU gettext.
80544
80545 2003-03-18  Jim Meyering  <jim@meyering.net>
80546
80547         * lib/quote.c (quote_n): Fix typo in comment.
80548
80549 2003-03-18  Bruno Haible  <bruno@clisp.org>
80550
80551         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80552         checking.
80553         * m4/onceonly_2_57.m4: Likewise.
80554
80555 2003-03-17  Bruno Haible  <bruno@clisp.org>
80556
80557         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80558         (m4_quote): Remove macro.
80559         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80560
80561 2003-03-14  Jim Meyering  <jim@meyering.net>
80562
80563         Merge changes from Coreutils.
80564         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80565         to be const, in order to avoid warnings.
80566         (obstack_room): Likewise.
80567         (obstack_empty_p): Likewise.
80568
80569 2003-03-14  Bruno Haible  <bruno@clisp.org>
80570
80571         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80572         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80573
80574 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80575
80576         Merge changes from Bison.
80577         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80578         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80579         when compiling Bison 1.875's `bitset bset = obstack_alloc
80580         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80581         * lib/hash.c: Include <stdbool.h> unconditionally.
80582
80583 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80584
80585         * m4/onceonly.m4 (m4_quote): New macro.
80586         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80587         Quote AC_FOREACH variable-expansions properly.
80588
80589 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80590
80591         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80592
80593 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80594
80595         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80596         Reported by Bruce Becker; see:
80597         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80598
80599 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80600             Bruno Haible  <bruno@clisp.org>
80601
80602         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80603         Reported by John Hughes, see
80604         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80605
80606 2003-02-20  Bruno Haible  <bruno@clisp.org>
80607
80608         * MODULES.html.sh (func_all_modules): Add poll.
80609
80610 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80611
80612         * modules/poll: New file.
80613
80614 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80615
80616         * lib/poll_.h: New file.
80617         * lib/poll.c: New file.
80618
80619 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80620
80621         * m4/poll.m4: New file.
80622
80623 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80624
80625         * modules/mathl: New file.
80626
80627 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80628
80629         * lib/mathl.h: New file.
80630         * lib/acosl.c: New file.
80631         * lib/asinl.c: New file.
80632         * lib/atanl.c: New file.
80633         * lib/ceill.c: New file.
80634         * lib/cosl.c: New file.
80635         * lib/expl.c: New file.
80636         * lib/floorl.c: New file.
80637         * lib/frexpl.c: New file.
80638         * lib/ldexpl.c: New file.
80639         * lib/logl.c: New file.
80640         * lib/sincosl.c: New file.
80641         * lib/sinl.c: New file.
80642         * lib/sqrtl.c: New file.
80643         * lib/tanl.c: New file.
80644         * lib/trigl.c: New file.
80645         * lib/trigl.h: New file.
80646
80647 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80648
80649         * m4/mathl.m4: New file.
80650
80651 2003-02-18  Bruno Haible  <bruno@clisp.org>
80652
80653         * MODULES.html.sh (func_all_modules): Add mathl.
80654
80655 2003-02-17  Bruno Haible  <bruno@clisp.org>
80656
80657         * modules/mkdtemp: New module.
80658         * MODULES.html.sh (func_all_modules): Add it.
80659
80660 2003-02-17  Bruno Haible  <bruno@clisp.org>
80661
80662         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80663
80664 2003-02-17  Bruno Haible  <bruno@clisp.org>
80665
80666         * lib/mkdtemp.h: New file, from GNU gettext.
80667         * lib/mkdtemp.c: New file, from GNU gettext.
80668
80669 2003-02-02  Jim Meyering  <jim@meyering.net>
80670
80671         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80672         e.g. glibc-2.2.93.
80673
80674 2003-01-31  Bruno Haible  <bruno@clisp.org>
80675
80676         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80677         'rpl_rename'.
80678         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80679         'rpl_strnlen'.
80680         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80681         'rpl_strtod'.
80682         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80683         'rpl_utime'.
80684
80685 2003-01-31  Bruno Haible  <bruno@clisp.org>
80686
80687         * lib/rename.c: #undef rename before defining rpl_rename.
80688         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80689
80690 2003-01-30  Bruno Haible  <bruno@clisp.org>
80691
80692         * modules/vasnprintf, modules/vasprintf: New modules.
80693         * MODULES.html.sh (func_all_modules): Add them.
80694
80695 2003-01-30  Bruno Haible  <bruno@clisp.org>
80696
80697         * m4/signed.m4: New file, from GNU gettext.
80698         * m4/longdouble.m4: New file, from GNU gettext.
80699         * m4/wchar_t.m4: New file, from GNU gettext.
80700         * m4/wint_t.m4: New file, from GNU gettext.
80701         * m4/vasnprintf.m4: New file.
80702         * m4/vasprintf.m4: New file.
80703
80704 2003-01-30  Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/printf-args.h: New file, from GNU gettext.
80707         * lib/printf-args.c: New file, from GNU gettext.
80708         * lib/printf-parse.h: New file, from GNU gettext.
80709         * lib/printf-parse.c: New file, from GNU gettext.
80710         * lib/vasnprintf.h: New file, from GNU gettext.
80711         * lib/vasnprintf.c: New file, from GNU gettext.
80712         * lib/asnprintf.c: New file, from GNU gettext.
80713         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80714         * lib/vasprintf.c: New file, from GNU gettext.
80715         * lib/asprintf.c: New file, from GNU gettext.
80716
80717 2003-01-29  Bruno Haible  <bruno@clisp.org>
80718
80719         * modules/stpncpy: New module.
80720         * MODULES.html.sh (func_all_modules): Add it.
80721
80722 2003-01-29  Bruno Haible  <bruno@clisp.org>
80723
80724         * m4/stpncpy.m4: New file.
80725
80726 2003-01-29  Bruno Haible  <bruno@clisp.org>
80727
80728         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80729         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80730
80731 2003-01-28  Bruno Haible  <bruno@clisp.org>
80732
80733         * modules/c-ctype: New module.
80734         * MODULES.html.sh (func_all_modules): Add it.
80735
80736 2003-01-28  Bruno Haible  <bruno@clisp.org>
80737
80738         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80739         Paul Eggert.
80740         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80741         Paul Eggert.
80742
80743 2003-01-27  Bruno Haible  <bruno@clisp.org>
80744
80745         * modules/xsetenv: New module.
80746         * MODULES.html.sh (func_all_modules): Add it.
80747
80748 2003-01-27  Bruno Haible  <bruno@clisp.org>
80749
80750         * lib/xsetenv.h: New file, from GNU gettext.
80751         * lib/xsetenv.c: New file, from GNU gettext.
80752
80753 2003-01-23  Jim Meyering  <jim@meyering.net>
80754
80755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80756         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80757
80758 2003-01-23  Bruno Haible  <bruno@clisp.org>
80759
80760         * modules/minmax: New module.
80761         * MODULES.html.sh (func_all_modules): Add it.
80762
80763 2003-01-23  Bruno Haible  <bruno@clisp.org>
80764
80765         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80766         Eggert.
80767
80768 2003-01-22  Bruno Haible  <bruno@clisp.org>
80769
80770         * modules/exit: New module.
80771         * MODULES.html.sh (func_all_modules): Add it.
80772
80773 2003-01-22  Bruno Haible  <bruno@clisp.org>
80774
80775         * lib/exit.h: New file, from GNU gettext.
80776
80777 2003-01-19  Bruno Haible  <bruno@clisp.org>
80778
80779         * gnulib-tool: Recognize option --extract-maintainer.
80780         (func_get_maintainer): New function.
80781         * modules/*: Add Maintainer entry.
80782
80783 2003-01-16  Jim Meyering  <jim@meyering.net>
80784
80785         * m4/regex.m4: The `regex' struct is both input and output.
80786         Initialize it before each use.  Patch by Tim Waugh.
80787
80788 2003-01-16  Bruno Haible  <bruno@clisp.org>
80789
80790         * MODULES.html.sh: Add a table of contents. Add the module name as
80791         leftmost column. Add hyperlinks.
80792
80793 2003-01-15  Bruno Haible  <bruno@clisp.org>
80794
80795         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80796
80797 2003-01-15  Bruno Haible  <bruno@clisp.org>
80798
80799         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80800         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80801         suffix.
80802
80803 2003-01-15  Bruno Haible  <bruno@clisp.org>
80804
80805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80806
80807 2003-01-15  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80810         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80811
80812 2003-01-14  Jim Meyering  <jim@meyering.net>
80813
80814         * lib/same.c (same_name): Tweak a comment.
80815
80816 2003-01-14  Bruno Haible  <bruno@clisp.org>
80817
80818         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80819         when a string comparison is sufficient.
80820
80821 2003-01-14  Bruno Haible  <bruno@clisp.org>
80822
80823         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80824         'unsigned int'.
80825
80826 2003-01-14  Bruno Haible  <bruno@clisp.org>
80827
80828         * lib/hash-pjw.c: Add comment about low quality of this function.
80829
80830 2003-01-13  Bruno Haible  <bruno@clisp.org>
80831
80832         * modules/stpcpy: Distribute lib/stpcpy.h.
80833         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80834
80835 2003-01-13  Bruno Haible  <bruno@clisp.org>
80836
80837         * modules/*: Add a description.
80838         * modules/strpbrk: Fix Makefile.am snippet.
80839         * modules/strtoimax: Fix dependencies.
80840         * modules/strtoumax: Likewise.
80841
80842 2003-01-13  Bruno Haible  <bruno@clisp.org>
80843
80844         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80845         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80846         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80847
80848 2003-01-13  Bruno Haible  <bruno@clisp.org>
80849
80850         * gnulib-tool (func_create_testdir): Store config/* files in the main
80851         directory.
80852         * config.rpath: Move to ...
80853         * config/config.rpath: ... here.
80854         * modules/gettext: Contains config/config.rpath, not config.rpath.
80855         * modules/iconv: Likewise.
80856
80857 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80858
80859         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80860         to avoid collisions with libcurses and libreadline.
80861
80862         * m4/getstr.m4: Remove.
80863         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80864
80865 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80866
80867         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80868         to avoid collisions with libcurses and libreadline.
80869
80870         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80871         * lib/getstr.h, getstr.c: Remove.
80872         * lib/getline.c: Include "getline.h", to check interface.
80873         Move body of old getstr.c here: this defines MIN_CHUNK and
80874         declares getdelim2, which is renamed from getstr.
80875         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80876
80877         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80878         All uses changed.
80879         * lib/linebuffer.h: Likewise.
80880         (readline): Remove backward-compatibility macro.
80881
80882 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80883
80884         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80885         to avoid collisions with libcurses and libreadline.
80886         * getstr: Remove.
80887         * MODULES.html.sh: Remove getstr.
80888         * modules/getline: Depend on unlocked-io, not getstr.
80889
80890 2003-01-12  Jim Meyering  <jim@meyering.net>
80891
80892         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80893
80894 2003-01-10  Bruno Haible  <bruno@clisp.org>
80895
80896         * modules/alloca: Change Makefile.am requirements. Simplify Include
80897         requirements. Add lib/alloca_.h to file list.
80898
80899 2003-01-10  Bruno Haible  <bruno@clisp.org>
80900
80901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80902
80903 2003-01-10  Bruno Haible  <bruno@clisp.org>
80904
80905         * lib/alloca_.h: New file.
80906         * lib/getdate.y: Unconditionally include alloca.h.
80907         * lib/makepath.c: Likewise.
80908         * lib/setenv.c: Likewise.
80909         * lib/userspec.c: Likewise.
80910
80911 2003-01-09  Karl Berry  <karl@gnu.org>
80912
80913         * MODULES.html.sh: include `dirname $0` in PATH, to find
80914         gnulib-tool.
80915
80916 2003-01-09  Bruno Haible  <bruno@clisp.org>
80917
80918         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80919         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80920
80921 2003-01-09  Bruno Haible  <bruno@clisp.org>
80922
80923         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80924
80925 2003-01-09  Bruno Haible  <bruno@clisp.org>
80926
80927         * lib/stdbool.h.in: New file.
80928
80929 2003-01-09  Bruno Haible  <bruno@clisp.org>
80930
80931         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80932         * MODULES.html.sh: Likewise.
80933
80934 2003-01-08  Jim Meyering  <jim@meyering.net>
80935
80936         * lib/full-write.c: Undefine and define-away `const' after inclusion
80937         of errno.h, not before.  Suggestion from Bruno Haible.
80938
80939 2003-01-08  Bruno Haible  <bruno@clisp.org>
80940
80941         * modules/full-read: Depend on full-write.
80942
80943 2003-01-08  Bruno Haible  <bruno@clisp.org>
80944
80945         * lib/safe-read.c: Include specification header first, to ensure its
80946         selfcontainedness.
80947         * lib/full-write.c: Likewise.
80948
80949 2003-01-07  Jim Meyering  <jim@meyering.net>
80950
80951         * lib/full-write.c: Rework so that it may serve to define full_read,
80952         too.
80953         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80954
80955 2003-01-07  Bruno Haible  <bruno@clisp.org>
80956
80957         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80958         <inttypes.h>.
80959         * lib/xstrtol.h: Likewise.
80960         * lib/xstrtoimax.c: Likewise.
80961         * lib/xstrtoumax.c: Likewise.
80962         * lib/human.h: Likewise.
80963
80964         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80965         on systems that have <inttypes.h> but not <stdint.h>.
80966
80967 2003-01-07  Bruno Haible  <bruno@clisp.org>
80968
80969         * MODULES.html.sh: Add copyright notice.
80970         (missed_files): Omit CVS directory entries.
80971         (func_module): Make it work with sed-3.02.
80972         * MODULES.txt: Remove file.
80973
80974 2003-01-06  Jim Meyering  <jim@meyering.net>
80975
80976         * lib/version-etc.c: Update year in translatable copyright string.
80977
80978 2003-01-03  Karl Berry  <karl@gnu.org>
80979
80980         * config/config.{guess,sub}: update from prep.
80981
80982 2003-01-02  Karl Berry  <karl@gnu.org>
80983
80984         * doc/COPYING.DOC: belatedly updated to 1.2.
80985
80986 2003-01-01  Karl Berry  <karl@gnu.org>
80987
80988         * gnulib-tool (func_verify_module): report module name $module in
80989         error message, not $1.
80990         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80991         be created, only if it doesn't exist.
80992         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80993
80994 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80995
80996         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80997
80998 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80999
81000         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81001         memcmp if strcoll doesn't work.
81002
81003 2002-12-31  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81006         nonempty.
81007
81008 2002-12-31  Bruno Haible  <bruno@clisp.org>
81009
81010         * lib/memcoll.c (STRCOLL): New macro.
81011         (memcoll): Use it.
81012
81013 2002-12-31  Bruno Haible  <bruno@clisp.org>
81014
81015         * lib/localcharset.h: New file.
81016         * lib/localcharset.c: Include it.
81017         * lib/unicodeio.c: Likewise.
81018
81019 2002-12-31  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81022         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81023
81024 2002-12-31  Bruno Haible  <bruno@clisp.org>
81025
81026         * lib/getline.h: Include <stddef.h>, for size_t.
81027
81028         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81029         * lib/unicodeio.c: Don't include <stddef.h>.
81030
81031 2002-12-31  Bruno Haible  <bruno@clisp.org>
81032
81033         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81034         HAVE_TM_ZONE.
81035
81036 2002-12-24  Karl Berry  <karl@gnu.org>
81037
81038         * config/config.guess: update from prep.
81039
81040 2002-12-24  Bruno Haible  <bruno@clisp.org>
81041
81042         General infrasructure.
81043         * m4/README: Rewritten.
81044         * m4/onceonly.m4: New file.
81045         * m4/onceonly_2_57.m4: New file.
81046
81047         Module atexit.
81048         * m4/atexit.m4: New file.
81049
81050         Module strtod.
81051         * m4/strtod.m4: New file.
81052
81053         Module strtol.
81054         * m4/strtol.m4: New file.
81055
81056         Module strtoul.
81057         * m4/strtoul.m4: New file.
81058
81059         Module memchr.
81060         * m4/memchr.m4: New file.
81061
81062         Module memcmp.
81063         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81064         (jm_FUNC_MEMCMP): Invoke it.
81065
81066         Module memcpy.
81067         * m4/memcpy.m4: New file.
81068
81069         Module memmove.
81070         * m4/memmove.m4: New file.
81071
81072         Module memset.
81073         * m4/memset.m4: New file.
81074
81075         Module strcspn.
81076         * m4/strcspn.m4: New file.
81077
81078         Module strpbrk.
81079         * m4/strpbrk.m4: New file.
81080
81081         Module strstr.
81082         * m4/strstr.m4: New file.
81083
81084         Module strerror.
81085         * m4/strerror.m4: New file.
81086
81087         Module mktime.
81088         * m4/mktime.m4: Renamed from jm-mktime.m4.
81089         (gl_PREREQ_MKTIME): New macro.
81090         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81091
81092         Module malloc.
81093         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81094         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81095         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81096
81097         Module realloc.
81098         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81099         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81100         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81101
81102         Module strftime.
81103         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81104         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81105         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81106         gl_TM_GMTOFF.
81107         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81108
81109         Module xalloc.
81110         * m4/xalloc.m4: New file.
81111
81112         Module alloca.
81113         * m4/alloca.m4: New file.
81114
81115         Module putenv.
81116         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81117         (jm_FUNC_PUTENV): Invoke it.
81118
81119         Module setenv.
81120         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81121         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81122         when invoked twice.
81123         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81124         gt_FUNC_SETENV.
81125
81126         Module memrchr.
81127         * m4/memrchr.m4: New file.
81128
81129         Module stpcpy.
81130         * m4/stpcpy.m4: New file.
81131
81132         Module strcase.
81133         * m4/strcase.m4: New file.
81134
81135         Module strdup.
81136         * m4/strdup.m4: New file.
81137
81138         Module strnlen.
81139         * m4/strnlen.m4: New file.
81140
81141         Module strndup.
81142         * m4/strndup.m4: New file.
81143
81144         Module xstrtod.
81145         * m4/xstrtod.m4: New file.
81146
81147         Module xstrtol.
81148         * m4/xstrtol.m4: New file.
81149
81150         Module getdate.
81151         * m4/getdate.m4: New file.
81152
81153         Module unlocked-io.
81154         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81155         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81156         * m4/jm-glibc-io.m4n: Remove file.
81157
81158         Module long-options.
81159         * m4/long-options.m4: New file.
81160
81161         Module md5.
81162         * m4/md5.m4: New file.
81163
81164         Module sha.
81165         * m4/sha.m4: New file.
81166
81167         Module getstr.
81168         * m4/getstr.m4: New file.
81169
81170         Module getline.
81171         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81172         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81173         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81174         simply getline. Infoke gl_PREREQ_GETLINE.
81175
81176         Module obstack.
81177         * m4/obstack.m4: New file.
81178
81179         Module hash.
81180         * m4/hash.m4: New file.
81181
81182         Module readtokens.
81183         * m4/readtokens.m4: New file.
81184
81185         Module strverscmp.
81186         * m4/strverscmp.m4: New file.
81187
81188         Module stdbool.
81189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81190         OSF/1.
81191
81192         Module strtoll.
81193         * m4/strtoll.m4: New file.
81194
81195         Module strtoull.
81196         * m4/strtoull.m4: New file.
81197
81198         Module strtoimax.
81199         * m4/strtoimax.m4: New file.
81200
81201         Module strtoumax.
81202         * m4/strtoumax.m4: New file.
81203
81204         Module xstrtoimax.
81205         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81206         jm_AC_PREREQ_XSTRTOIMAX.
81207         Moved the strtol prerequisites to strtol.m4.
81208         Moved the strtoll prerequisites to strtoll.m4.
81209         Moved the strtoimax prerequisites to strtoimax.m4.
81210
81211         Module xstrtoumax.
81212         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81213         jm_AC_PREREQ_XSTRTOUMAX.
81214         Moved the strtoul prerequisites to strtoul.m4.
81215         Moved the strtoull prerequisites to strtoull.m4.
81216         Moved the strtoumax prerequisites to strtoumax.m4.
81217
81218         Module chown.
81219         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81220         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81221
81222         Module dup2.
81223         * m4/dup2.m4: New file.
81224
81225         Module ftruncate.
81226         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81227         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81228
81229         Module getgroups.
81230         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81231         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81232
81233         Module gettimeofday.
81234         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81235         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81236         gl_PREREQ_GETTIMEOFDAY.
81237
81238         Module mkdir.
81239         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81240         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81241
81242         Module mkstemp.
81243         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81244         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81245         jm_AC_TYPE_UINTMAX_T.
81246         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81247
81248         Module stat.
81249         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81250         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81251
81252         Module lstat.
81253         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81254         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81255
81256         Module timespec.
81257         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81258         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81259         * m4/st_mtim.m4: Indentation.
81260
81261         Module nanosleep.
81262         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81263         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81264         gl_PREREQ_NANOSLEEP.
81265
81266         Module regex.
81267         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81268         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81269         (gl_REGEX): New macro.
81270
81271         Module rename.
81272         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81273         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81274
81275         Module rmdir.
81276         * m4/rmdir.m4: New file.
81277
81278         Module utime.
81279         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81280         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81281         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81282
81283         Module dirname.
81284         * m4/dirname.m4: New file.
81285
81286         Module getopt.
81287         * m4/getopt.m4: New file.
81288
81289         Module unistd-safer.
81290         * m4/unistd-safer.m4: New file.
81291
81292         Module fnmatch.
81293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81294         declaration.
81295         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81296         (gl_FUNC_FNMATCH_POSIX): New macro.
81297         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81298         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81299         simply fnmatch.
81300
81301         Module exclude.
81302         * m4/exclude.m4: New file.
81303
81304         Module human.
81305         * m4/human.m4: New file.
81306
81307         Module acl.
81308         * m4/acl.m4: Nop.
81309
81310         Module backupfile.
81311         * m4/backupfile.m4: New file.
81312         * m4/d-ino.m4: Indentation.
81313
81314         Module fsusage.
81315         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81316         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81317         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81318
81319         Module dirfd.
81320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81321         requirements.
81322
81323         Module euidaccess.
81324         * m4/euidaccess.m4: New file.
81325
81326         Module file-type.
81327         * m4/file-type.m4: New file.
81328
81329         Module fileblocks.
81330         * m4/fileblocks.m4: New file.
81331
81332         Module filemode.
81333         * m4/filemode.m4: New file.
81334
81335         Module isdir.
81336         * m4/isdir.m4: New file.
81337
81338         Module lchown.
81339         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81340         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81341
81342         Module makepath.
81343         * m4/makepath.m4: New file.
81344
81345         Module modechange.
81346         * m4/modechange.m4: New file.
81347
81348         Module mountlist.
81349         * m4/mountlist.m4: New file.
81350         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81351         Indentation.
81352
81353         Module path-concat.
81354         * m4/path-concat.m4: New file.
81355
81356         Module pathmax.
81357         * m4/pathmax.m4: New file.
81358
81359         Module same.
81360         * m4/same.m4: New file.
81361
81362         Module save-cwd.
81363         * m4/save-cwd.m4: New file.
81364
81365         Module savedir.
81366         * m4/savedir.m4: New file.
81367
81368         Module xgetcwd.
81369         * m4/xgetcwd.m4: New file.
81370         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81371
81372         Module xreadlink.
81373         * m4/xreadlink.m4: New file.
81374
81375         Module safe-read.
81376         * m4/safe-read.m4: New file.
81377
81378         Module safe-write.
81379         * m4/safe-write.m4: New file.
81380
81381         Module closeout.
81382         * m4/closeout.m4: New file.
81383
81384         Module stdio-safer.
81385         * m4/stdio-safer.m4: New file.
81386
81387         Module getpass.
81388         * m4/getpass.m4: New file.
81389
81390         Module getugroups.
81391         * m4/getugroups.m4: New file.
81392
81393         Module group-member.
81394         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81395         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81396
81397         Module idcache.
81398         * m4/idcache.m4: New file.
81399
81400         Module userspec.
81401         * m4/userspec.m4: New file.
81402
81403         Module gettime.
81404         * m4/clock_time.m4: New file.
81405         * m4/gettime.m4: New file.
81406
81407         Module settime.
81408         * m4/settime.m4: New file.
81409
81410         Module posixtm.
81411         * m4/posixtm.m4: New file.
81412
81413         Module gethostname.
81414         * m4/gethostname.m4: New file.
81415
81416         Module canon-host.
81417         * m4/canon-host.m4: New file.
81418
81419         Module gettext.
81420         * m4/codeset.m4: New file, from gettext-0.11.5.
81421         * m4/gettext.m4: New file, from gettext-0.11.5.
81422         * m4/glibc21.m4: New file, from gettext-0.11.5.
81423         * m4/iconv.m4: New file, from gettext-0.11.5.
81424         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81425         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81426         * m4/inttypes.m4: New file, from gettext-0.11.5.
81427         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81428         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81429         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81430         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81431         * m4/lib-link.m4: New file, from gettext-0.11.5.
81432         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81433         * m4/progtest.m4: New file, from gettext-0.11.5.
81434         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81435         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81436         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81437
81438         Module localcharset.
81439         * m4/localcharset.m4: New file.
81440
81441         Module hard-locale.
81442         * m4/hard-locale.m4: New file.
81443
81444         Module mbswidth.
81445         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81446         onceonly macros.
81447         * m4/mbrtowc.m4: Add comment.
81448
81449         Module memcasecmp.
81450         * m4/memcasecmp.m4: New file.
81451
81452         Module memcoll.
81453         * m4/memcoll.m4: New file.
81454
81455         Module unicodeio.
81456         * m4/unicodeio.m4: New file.
81457
81458         Module rpmatch.
81459         * m4/rpmatch.m4: New file.
81460
81461         Module yesno.
81462         * m4/yesno.m4: New file.
81463
81464         Module exitfail.
81465         * m4/exitfail.m4: New file.
81466
81467         Module c-stack.
81468         * m4/c-stack.m4 (gl_C_STACK): New macro.
81469         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81470
81471         Module error.
81472         * m4/error.m4 (gl_ERROR): New macro.
81473         (jm_PREREQ_ERROR): Use onceonly macros.
81474
81475         Module fatal.
81476         * m4/fatal.m4: New file.
81477
81478         Module getloadavg.
81479         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81480         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81481
81482         Module getpagesize.
81483         * m4/getpagesize.m4: New file.
81484
81485         Module getusershell.
81486         * m4/getusershell.m4: New file.
81487
81488         Module physmem.
81489         * m4/physmem.m4: New file.
81490
81491         Module posixver.
81492         * m4/posixver.m4: New file.
81493
81494         Module quotearg.
81495         * m4/quotearg.m4: New file.
81496
81497         Module quote.
81498         * m4/quote.m4: New file.
81499
81500         Module readutmp.
81501         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81502
81503         Module sig2str.
81504         * m4/sig2str.m4: New file.
81505
81506         Other.
81507         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81508         ulonglong.m4.
81509         * m4/intmax_t.m4: New file.
81510         * m4/d-type.m4: Indentation.
81511         * m4/jm-macros.m4: Update.
81512         * m4/prereq.m4 (jm_PREREQ): Update.
81513         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81514         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81515         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81516         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81517         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81518         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81519         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81520         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81521         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81522         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81523         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81524         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81525         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81526         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81527         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81528         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81529         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81530         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81531         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81532
81533 2002-12-24  Bruno Haible  <bruno@clisp.org>
81534
81535         * MODULES.txt: Update according to m4/ changes.
81536
81537         Module gettext.
81538         * config.rpath: New file, from gettext-0.11.5.
81539
81540         * modules/*: New module descriptions.
81541         * gnulib-tool: New file.
81542         * MODULES.html.sh: New file.
81543
81544 2002-12-21  Karl Berry  <karl@gnu.org>
81545
81546         * doc/fdl.texi: update to version 1.2.
81547
81548 2002-12-19  Karl Berry  <karl@gnu.org>
81549
81550         * config/config.guess: update from prep.
81551
81552 2002-12-18  Bruno Haible  <bruno@clisp.org>
81553
81554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81555         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81556
81557 2002-12-17  Bruno Haible  <bruno@clisp.org>
81558
81559         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81560         stdlib.h, string.h.
81561
81562 2002-12-17  Bruno Haible  <bruno@clisp.org>
81563
81564         * lib/canon-host.c (strdup): Remove unused declaration.
81565
81566         * lib/fsusage.c: Include full_read.h.
81567         (get_fs_usage): Use full_read instead of safe_read.
81568
81569         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81570
81571 2002-12-12  Karl Berry  <karl@gnu.org>
81572
81573         * config/config.guess: update from prep.
81574
81575 2002-12-11  Bruno Haible  <bruno@clisp.org>
81576
81577         * m4/setenv.m4: New file, from gettext-0.11.5.
81578
81579 2002-12-11  Bruno Haible  <bruno@clisp.org>
81580
81581         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81582         not unsetenv().
81583         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81584         modifications:
81585
81586         2002-12-11  Bruno Haible  <bruno@clisp.org>
81587
81588                 * setenv.c (alloca): Fall back to malloc.
81589                 (freea): New macro.
81590                 (setenv): Use freea() to free memory allocated with alloca().
81591
81592         2002-11-13  Bruno Haible  <bruno@clisp.org>
81593
81594                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81595                 function declarations.
81596                 * unsetenv.c (unsetenv): Likewise.
81597
81598         2002-03-04  Bruno Haible  <bruno@clisp.org>
81599
81600                 Portability to AIX 4.3.3.
81601                 * unsetenv.c: New file, extracted from setenv.c.
81602                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81603
81604         2001-12-20  Bruno Haible  <bruno@clisp.org>
81605
81606                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81607                 use malloc instead. For SunOS 4.
81608
81609         2001-12-11  Bruno Haible  <bruno@clisp.org>
81610
81611                 * setenv.c: Declare alloca.
81612                 (compar_fn_t): New typedef.
81613                 (KNOWN_VALUE, STORE_VALUE): Use it.
81614
81615         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81616         setenv.h.
81617
81618 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81619
81620         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81621         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81622         Choose values that are less likely to collide with system fnmatch
81623         options.
81624         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81625         defined (e.g., a pure POSIX system).
81626         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81627         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81628
81629 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81630
81631         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81632         a pain in practice to deal with generated m4 files.  This change
81633         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81634
81635         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81636         and jm-glibc-io.m4, as they are no longer a special case.
81637         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81638         kludge and the auto-generation stuff.  Check only whether the
81639         functions are declared, not whether they exist, since older hosts
81640         that don't declare the functions can't use the optimization anyway.
81641
81642 2002-12-06  Jim Meyering  <jim@meyering.net>
81643
81644         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81645
81646         Merge in changes from libc's misc/error.c, in preparation
81647         for the merge of gnulib's changes back into libc.
81648
81649         * lib/error.c (_): Define only if not already defined.
81650         Move definition to follow all #include directives.
81651         Include unlocked-io.h only if !_LIBC.
81652         [_LIBC]: Include <libio/libioP.h>.
81653         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81654         (fflush): Tweak definition to use INTUSE.
81655         (putc): Define.
81656
81657 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81658
81659         * lib/alloca.c [defined emacs]: Include "lisp.h".
81660         (xalloc_die) [defined emacs]: New macro.
81661         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81662         [! defined emacs]: Include <xalloc.h>.
81663         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81664         (pointer): Typedef to POINTER_TYPE *.
81665         (malloc): Remove decl; we now always use xmalloc.
81666         (alloca): Use old-style definition, since Emacs needs this.
81667         Check for arithmetic overflow when computing combined size.
81668
81669 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81670
81671         Do not generate unlocked-io.h automatically, since it's easier to
81672         maintain it by hand.
81673
81674         * lib/unlocked-io.h: New file, from GNU diffutils,
81675         but with proper copyright notice and attribution.
81676         * lib/gen-uio: Remove.
81677         * lib/Makefile.am: Add copyright notice.
81678         (libfetish_a_SOURCES): Add unlocked-io.h.
81679         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81680         (DISTCLEANFILES, io_functions): Remove macros.
81681         (EXTRA_DIST): Remove gen_uio.
81682         (unlocked-io.h): Remove rule.
81683
81684 2002-12-04  Jim Meyering  <jim@meyering.net>
81685
81686         Reflect the fact that stat.c and lstat.c are no longer generated.
81687         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81688         (DISTCLEANFILES): Likewise.
81689         (EXTRA_DIST): Likewise.
81690         (all_local): Don't depend on stat.c or lstat.c.
81691         (stat.c, lstat.c): Remove rules.
81692         (EXTRA_DIST): Remove xstat.in.
81693
81694         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81695         * lib/stat.c: New file.  Contents mostly from xstat.in.
81696         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81697         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81698
81699         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81700         too.
81701         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81702
81703 2002-12-03  Jim Meyering  <jim@meyering.net>
81704
81705         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81706         but not semantics, to minimize the differences between these two files.
81707         (safe_read): Change comment to mention SAFE_READ_ERROR.
81708
81709         * lib/safe-read.c (IS_EINTR): Define.
81710         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81711
81712 2002-12-02  Jim Meyering  <jim@meyering.net>
81713
81714         * lib/safe-read.c (EINTR): Define.
81715         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81716         (INT_MAX): Provide fallback.
81717         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81718
81719         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81720
81721 2002-12-02  Bruno Haible  <bruno@clisp.org>
81722
81723         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81724         Define, taken from safe-read.c.
81725         (INT_MAX): Provide fallback.
81726         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81727         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81728
81729         * lib/safe-read.c (EINTR): Remove definition.
81730         (safe_read): Don't use EINTR if it is absent.
81731
81732 2002-12-01  Jim Meyering  <jim@meyering.net>
81733
81734         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81735         zero.
81736         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81737
81738 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81739
81740         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81741         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81742         with `if (! (value < limit)) abort ();', for readability.
81743
81744 2002-11-26  Karl Berry  <karl@gnu.org>
81745
81746         * lib/strdup.c: copy from libc again, with jim's ok.
81747         * lib/.cppi-disable: re-add strdup.c
81748
81749 2002-11-25  Karl Berry  <karl@gnu.org>
81750
81751         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81752         instead of "strtol.c".
81753
81754 2002-11-25  Karl Berry  <karl@gnu.org>
81755
81756         * config/install-sh: update from automake for variable quoting, $0 in
81757         error msgs, etc.
81758
81759         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81760         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81761         entry.
81762
81763 2002-11-25  Jim Meyering  <jim@meyering.net>
81764
81765         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81766
81767 2002-11-24  Karl Berry  <karl@gnu.org>
81768
81769         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81770         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81771
81772 2002-11-24  Jim Meyering  <jim@meyering.net>
81773
81774         Update from coreutils:
81775
81776         * lib/mktime.c: Merge in changes from libc.
81777
81778         Avoid a link-time failure on some Linux systems.
81779         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81780         (otherwise).
81781         (__mon_yday): Declare with the STATIC attribute.
81782         (__mktime_internal): Likewise.
81783         Based on a report from Greg Schafer.
81784
81785 2002-11-23  Jim Meyering  <jim@meyering.net>
81786
81787         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81788         Use `unsigned', not `int', as type of index.
81789
81790         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81791
81792         * lib/fsusage.c: Remove unneeded parentheses around operands of
81793         `defined'.
81794
81795 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81796
81797         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81798         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81799         so that we can be included first.
81800         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81801         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81802         No need to include stddef.h or sys/types.h any more.
81803         Surround local include files with "", not "<>".
81804         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81805         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81806         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81807         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81808         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81809         (ISPRINT): Remove; no longer needed now that we assume C89.
81810
81811         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81812         Preserve errno.
81813
81814         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81815         quotearg_char): Use SIZE_MAX rather than
81816         (size_t) -1 when we are talking about "infinity".
81817
81818         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81819
81820 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81821
81822         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81823         hint that one should use `if (! x) abort ();' rather than `assert
81824         (x);', and anyway it's one less thing to worry about configuring.
81825         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81826         hash_rehash, hash_insert): Use abort rather than assert.
81827
81828 2002-11-22  Bruno Haible  <bruno@clisp.org>
81829
81830         * lib/safe-read.h: Assume C89. Add comments.
81831         (safe_read): Change return type to size_t.
81832         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81833         byte counts > SSIZE_MAX correctly.
81834         * lib/safe-write.h: New file.
81835         * lib/safe-write.c: New file.
81836         * lib/full-read.h: New file.
81837         * lib/full-read.c: New file.
81838         * lib/full-write.h: Assume C89. Add comments.
81839         * lib/full-write.c: Include safe-write.h.
81840         (full_write): Rewritten to use safe_write.
81841         Suggested by Jim Meyering and Paul Eggert.
81842
81843 2002-11-21  Jim Meyering  <jim@meyering.net>
81844
81845         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81846
81847         Merge in changes from the coreutils.
81848
81849         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81850         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81851         <stdint.h>.
81852         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81853         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81854         int.  Work more efficiently if X is the same width as uintmax_t.
81855         Do not compare X to -1, to avoid bogus compiler warning.
81856         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81857         Don't assume that f_frsize and f_bsize are the same type.
81858
81859         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81860         warning on FreeBSD.
81861
81862         * lib/makepath.c (make_path): Restore umask *before* creating the final
81863         component.
81864         (make_path): Minor reformatting.
81865
81866         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81867         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81868         HAVE_MALLOC/HAVE_REALLOC.
81869
81870         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81871         dummy ones.  At least on GNU/Linux systems, `auto' means something
81872         else.
81873         From Michael Stone.
81874
81875 2002-11-21  Bruno Haible  <bruno@clisp.org>
81876
81877         Remove case insensitive option matching.
81878         * lib/argmatch.h (argcasematch): Remove declaration.
81879         (ARGCASEMATCH): Remove macro.
81880         (__xargmatch_internal): Remove case_sensitive argument.
81881         (XARGMATCH): Update.
81882         (XARGCASEMATCH): Remove macro.
81883         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81884         case_sensitive argument.
81885         (argcasematch): Remove function.
81886         (__xargmatch_internal): Remove case_sensitive argument.
81887         (main): Use XARGMATCH instead of XARGCASEMATCH.
81888
81889         * lib/xmalloc.c: Change compile-time error message. Add comment about
81890         required autoconf version.
81891
81892 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81893
81894         Merge argmatch cleanups from Bison.  Assume C89.
81895
81896         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81897         Include stdlib.h, for EXIT_FAILURE.
81898         Always include <string.h>, since we assume C89.
81899         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81900         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81901         Include <stddef.h> instead, since it's all we need for size_t.
81902         (PARAMS): Remove.  All uses removed.
81903         (ARRAY_CARDINALITY): Do not bother to #undef.
81904         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81905         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81906         Remove unnecessary parentheses.
81907         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81908         Insert necessary parentheses.
81909         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81910         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81911
81912 2002-11-19  Bruno Haible  <bruno@clisp.org>
81913
81914         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81915         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81916
81917         * lib/mbswidth.h (PARAMS): Remove macro.
81918         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81919         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81920
81921         * lib/gcd.h (PARAMS): Remove macro.
81922         (gcd): Use ANSI C function declarations.
81923         * lib/gcd.c (gcd): Likewise.
81924
81925 2002-11-15  Bruno Haible  <bruno@clisp.org>
81926
81927         * lib/strcspn.c: Include <stddef.h>.
81928         (strcspn): Use ANSI C function declaration. Change return type to
81929         size_t. Use NULL.
81930         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81931         (strpbrk): Use NULL.
81932         * lib/strpbrk.h (PARAMS): Remove macro.
81933         (strpbrk): Use ANSI C function declaration.
81934         * lib/strstr.c: Don't include <sys/types.h>.
81935         * lib/strstr.h (PARAMS): Remove macro.
81936         (strstr): Use ANSI C function declarations.
81937
81938 2002-11-14  Karl Berry  <karl@gnu.org>
81939
81940         * config/mkinstalldirs: `do' on separate line, instead of
81941         `for var; do'.
81942
81943 2002-11-06  Bruno Haible  <bruno@clisp.org>
81944
81945         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81946         * lib/gcd.c (gcd): Likewise.
81947
81948 2002-11-05  Bruno Haible  <bruno@clisp.org>
81949
81950         * lib/gcd.h: New file, from gettext-0.11.5.
81951         * lib/gcd.c: New file, from gettext-0.11.5.
81952
81953 2002-11-05  Bruno Haible  <bruno@clisp.org>
81954
81955         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81956         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81957         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81958         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81959
81960         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81961         <libintl.h>.
81962         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81963         <libintl.h>.
81964
81965         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81966         * lib/human.c: Include gettext.h instead of <libintl.h>.
81967         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81968         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81969         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81970         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81971         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81972         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81973         (textdomain): Remove definition.
81974         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81975
81976         * lib/long-options.c: Remove include of <libintl.h> and definition of
81977         _.
81978         * lib/same.c: Remove include of <libintl.h> and definition of _.
81979
81980 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81981
81982         * lib/config.charset: A few additions for Solaris.
81983
81984 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81985
81986         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81987         * lib/localcharset.c (locale_charset): Declare as extern "C".
81988
81989 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81990
81991         * lib/config.charset: msdos in uk_UA uses CP1125.
81992
81993 2002-11-04  Bruno Haible  <bruno@clisp.org>
81994
81995         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81996         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81997         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81998         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81999         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82000
82001 2002-11-04  Bruno Haible  <bruno@clisp.org>
82002
82003         * lib/localcharset.c (locale_charset): Don't return an empty string.
82004
82005 2002-11-04  Bruno Haible  <bruno@clisp.org>
82006
82007         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82008         aliases.
82009
82010 2002-11-04  Bruno Haible  <bruno@clisp.org>
82011
82012         * lib/config.charset: Update for newest glibc. Add canonical names
82013         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82014
82015 2002-11-04  Bruno Haible  <bruno@clisp.org>
82016
82017         * lib/config.charset: Add support for NetBSD.
82018
82019 2002-11-04  Bruno Haible  <bruno@clisp.org>
82020
82021         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82022
82023 2002-11-01  Bruno Haible  <bruno@clisp.org>
82024
82025         * configure.in: Add AC_CONFIG_AUX_DIR call.
82026         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82027         test/Makefile.
82028         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82029
82030 2002-09-28  Karl Berry  <karl@gnu.org>
82031
82032         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82033         installed automake until the next release, since changes have been
82034         made.
82035
82036 2002-09-25  Karl Berry  <karl@gnu.org>
82037
82038         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82039         * lib/getopt*: copy from libc/posix.
82040         * lib/gettext.h: copy from gettext.
82041         * lib/.cppi-disable: add strdup.c, gettext.h.
82042
82043 2002-09-25  Karl Berry  <karl@gnu.org>
82044
82045         * config/srclist.txt: enable gettext.h check.
82046         * config/config.{guess,sub}: update from prep.
82047         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82048                 from automake 1.6.3.
82049         See srclist*.
82050
82051 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82052
82053         * regex.c (PATFETCH): Remove the translating fetch.
82054         (PATFETCH_RAW): Rename to PATFETCH.
82055         (set_image_of_range): New fun.
82056         (SET_RANGE_TABLE_WORK_AREA): Use it.
82057         (regex_compile): Don't translate the pattern chars so eagerly.
82058         Only do it when inserting an `exactn' bytecode or when handling
82059         a char-range.
82060         (mutually_exclusive_p): Avoid empty statement.
82061
82062 2002-07-06  Jim Meyering  <meyering@lucent.com>
82063
82064         * m4/README: Don't mention Makefile.am.in.
82065         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82066
82067 2002-07-01  Jim Meyering  <meyering@lucent.com>
82068
82069         * lib/c-stack.c: Include sys/time.h.
82070         From Volker Borchert.
82071
82072 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82073
82074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82075
82076 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82077
82078         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82079         New macro.  Use it uniformly instead of
82080         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82081         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82082         reported by Vin Shelton.
82083
82084 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82085
82086         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82087         Do not assume SA_SIGINFO behavior.
82088         Bug reported by Jim Meyering on NetBSD 1.5.2.
82089
82090 2002-06-22  Jim Meyering  <meyering@lucent.com>
82091
82092         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82094
82095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82096         now that configure.ac uses AC_GNU_SOURCE.
82097         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82098         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82099
82100         Update to latest tools.  Suggestions from Paul Eggert.
82101         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82102         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82103         * m4/fnmatch.m4: Likewise.
82104         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82105         to AC_HEADER_STDBOOL
82106
82107 2002-06-22  Jim Meyering  <meyering@lucent.com>
82108
82109         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82110         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82111
82112 2002-06-22  Jim Meyering  <meyering@lucent.com>
82113
82114         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82115
82116         * lib/exitfail.c, exitfail.h: Likewise.
82117         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82118
82119         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82120         of fnmatch.h.
82121         (EXTRA_DIST): Add fnmatch_loop.c.
82122         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82123
82124         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82125         * lib/fnmatch.c: Update from diffutils-2.8.2.
82126         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82127         * lib/fnmatch.h: Remove file.
82128
82129 2002-06-21  Jim Meyering  <meyering@lucent.com>
82130
82131         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82132         * m4/mbrtowc.m4: Likewise.
82133
82134         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82135         * m4/mbswidth.m4: Reflect name change:
82136         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82138
82139         * m4/lib-link.m4: Update from gettext-0.11.2.
82140         * m4/gettext.m4: Likewise.
82141
82142         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82143         From Alfred M. Szmidt.
82144
82145 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82146
82147         * lib/file-type.h: Report an error if neither S_ISREG nor
82148         S_IFREG is defined, instead of using a test specific to glibc
82149         2.2.  This should be safe, since POSIX requires S_ISREG and
82150         Unix Version 7 had S_IFREG.  We don't need to check for
82151         <sys/types.h> since we don't use any symbols that it defines.
82152
82153 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82154
82155         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82156         $@-t, so that each temporary file name is unique and valid in the first
82157         8 characters, for operation under DOS.
82158
82159 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82160
82161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82162
82163 2002-06-15  Jim Meyering  <meyering@lucent.com>
82164
82165         Work even with DJGPP 2.03, which lacks support for symlinks.
82166         From Richard Dawe.
82167         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82168         is defined.
82169         * lib/lchown.c (S_ISLNK): Likewise.
82170
82171 2002-06-15  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82174         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82175         have been included before this file.
82176
82177 2002-06-14  Jim Meyering  <meyering@lucent.com>
82178
82179         * lib/file-type.h: Use the version from diffutils-2.8.2.
82180         * lib/file-type.c: Likewise.
82181
82182 2002-06-07  Jim Meyering  <meyering@lucent.com>
82183
82184         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82185         They're needed at least for NetBSD 1.5.2.
82186         ($statxfs_includes): Include those same headers.
82187         ($statxfs_includes): Include sys/vfs.h if available.
82188         ($statxfs_includes): Likewise for sys/statvfs.h.
82189         Check for the following members in both structs statfs and statvfs:
82190         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82191
82192 2002-06-01  Jim Meyering  <meyering@lucent.com>
82193
82194         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82195         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82196
82197 2002-05-28  Jim Meyering  <meyering@lucent.com>
82198
82199         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82200         Reported by Volker Borchert.
82201
82202 2002-05-27  Jim Meyering  <meyering@lucent.com>
82203
82204         Fix a problem seen only on nonconforming systems whereby ls.c's
82205         use of localtime, and then of gettimeofday would cause trouble:
82206         the localtime call used to initialize rpl_gettimeofday's save
82207         mechanism would clobber ls's current local time information so
82208         that in any long listing the first file would always be listed
82209         with date 1970-01-01.  Analysis by Volker Borchert.
82210
82211         * lib/gettimeofday.c (localtime): Undefine.
82212         (rpl_localtime): New function.
82213
82214 2002-05-27  Jim Meyering  <meyering@lucent.com>
82215
82216         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82217         localtime.
82218
82219         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82220         use the replacement function; it wouldn't resolve at link time.
82221         Reported by Volker Borchert.
82222
82223 2002-05-22  Jim Meyering  <meyering@lucent.com>
82224
82225         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82226         file-type.h.
82227         * lib/file-type.h: New file.
82228         * lib/file-type.c (file_type): New file/function.  Extracted from
82229         diffutils.
82230
82231 2002-04-30  Jim Meyering  <meyering@lucent.com>
82232
82233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82234
82235 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82236
82237         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82238
82239 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82240
82241         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82242         Do not check for alloca.h (no longer used) or stdbool.h (was never
82243         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82244
82245 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82246
82247         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82248
82249 2002-04-29  Jim Meyering  <meyering@lucent.com>
82250
82251         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82252         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82253         Use AC_FUNC_STRNLEN here instead.
82254
82255         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82256         With autoconf-2.53a, it's part of AC_PROG_CC.
82257
82258 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82259
82260         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82262
82263 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82264
82265         * lib/sig2str.h, lib/sig2str.c: New files.
82266         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82267
82268 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82271         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82272         of 127, since 64 is the largest conceivable number for ancient
82273         nonstandard hosts.
82274         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82275
82276 2002-04-28  Jim Meyering  <meyering@lucent.com>
82277
82278         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82279
82280 2002-04-24  Jim Meyering  <meyering@lucent.com>
82281
82282         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82283         (jm_PREREQ): Use it.
82284
82285         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82286         mach/mach.h fcntl.h.
82287         Check for this function: setlocale.
82288
82289 2002-04-24  Jim Meyering  <meyering@lucent.com>
82290
82291         * lib/gettext.h: New file, from Gettext.
82292         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82293         (libfetish_a_SOURCES): Add gettext.h.
82294
82295 2002-04-16  Jim Meyering  <meyering@lucent.com>
82296
82297         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82298         ut_pid, ut_id, ut_exit.
82299
82300 2002-04-16  Jim Meyering  <meyering@lucent.com>
82301
82302         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82303         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82304         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82305
82306 2002-04-12  Jim Meyering  <meyering@lucent.com>
82307
82308         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82309         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82310         existence of the getmntinfo function.  Needed for Darwin 5.3.
82311
82312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82313         This is necessary at least on Darwin 5.3.
82314
82315         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82316         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82317         strnlen.o in the library, and that makes some versions of ranlib
82318         object.
82319
82320 2002-04-12  Jim Meyering  <meyering@lucent.com>
82321
82322         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82323
82324 2002-04-09  Jim Meyering  <meyering@lucent.com>
82325
82326         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82327         to be more precise.  Rather than saying we're checking whether the
82328         function `works', say what we're testing.
82329         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82330         Reported by Bruno Haible.
82331
82332 2002-03-10  Jim Meyering  <meyering@lucent.com>
82333
82334         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82335         Suggestion from Santiago Vila.
82336
82337 2002-03-08  Jim Meyering  <meyering@lucent.com>
82338
82339         * lib/rename.c: Mention that this wrapper is needed also on
82340         mips-dec-ultrix4.4 systems.
82341
82342 2002-03-02  Jim Meyering  <meyering@lucent.com>
82343
82344         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82345         not HAVE_CLOCK_SETTIME.
82346
82347 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82348
82349         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82350         Check for clock_settime.
82351
82352 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82353
82354         * lib/nanosleep.h: Rename to....
82355         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82356
82357         * lib/gettime.c: New file.
82358         * lib/settime.c: New file.
82359         * lib/stime.c: Remove.
82360
82361         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82362         timespec.h.  Remove nanosleep.h.
82363
82364 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82365
82366         * m4/acl.m4: New file.
82367         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82368         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82369
82370 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82371
82372         * lib/acl.c, lib/acl.h: New files.
82373         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82374
82375 2002-02-24  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82378         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82379         cause trouble.  Reported by Nelson Beebe.
82380
82381 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82382
82383         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82384         compilers that don't know that xalloc_die never returns.
82385
82386 2002-02-20  Jim Meyering  <meyering@lucent.com>
82387
82388         * lib/getdate.c: Regenerate using bison-1.33.
82389
82390 2002-02-17  Jim Meyering  <meyering@lucent.com>
82391
82392         * config/config.guess (main): Don't use `head -1'; it's no longer
82393         portable. Use `sed 1q' instead.
82394
82395 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82396
82397         * m4/codeset.m4: Upgrade to gettext-0.11.
82398         * m4/gettext.m4: Upgrade to gettext-0.11.
82399         * m4/glibc21.m4: Upgrade to gettext-0.11.
82400         * m4/iconv.m4: Upgrade to gettext-0.11.
82401         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82402         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82403         * m4/lib-ld.m4: New file, from gettext-0.11.
82404         * m4/lib-link.m4: New file, from gettext-0.11.
82405         * m4/lib-prefix.m4: New file, from gettext-0.11.
82406         * m4/progtest.m4: Upgrade to gettext-0.11.
82407
82408 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82409
82410         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82411         (jm_PREREQ): Use it.
82412
82413 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/posixver.c, lib/posixver.h: New files.
82416         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82417
82418 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82419             Bruno Haible  <bruno@clisp.org>
82420
82421         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82422         (fwrite_success_callback): New declaration.
82423         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82424         print_unicode_char. Call failure callback instead of error.
82425         (fwrite_success_callback): New function.
82426         (exit_failure_callback): New function.
82427         (fallback_failure_callback): New function.
82428         (print_unicode_char): Call unicode_to_mb.
82429
82430 2002-01-26  Jim Meyering  <meyering@lucent.com>
82431
82432         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82433         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82434
82435 2002-01-26  Jim Meyering  <meyering@lucent.com>
82436
82437         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82438
82439 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82440
82441         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82442
82443 2002-01-22  Jim Meyering  <meyering@lucent.com>
82444
82445         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82446         Otherwise, some versions of automake would omit the rule that makes
82447         Makefile from Makefile.in.
82448
82449 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82450
82451         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82452         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82453         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82454         (memcoll): Set errno to zero if there is no error.
82455
82456         * lib/quotearg.c (quotearg_buffer_restyled):
82457         Fix bug with quoting buffers containing NUL when backslashing escapes.
82458         This bug was exposed by the other changes in this patch.
82459         (quotearg_n_options): New arg ARGSIZE.
82460         All callers changed.
82461         (quoting_options_from_style): New function.
82462         (quotearg_n_style): Use it.
82463         (quotearg_n_style_mem): New function.
82464
82465         * lib/quotearg.h (quotearg_n_style_mem): New function.
82466
82467 2002-01-19  Jim Meyering  <meyering@lucent.com>
82468
82469         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82470         Remove useless quotes: DF_PROG="df".
82471         * m4/strnlen.m4: New file.
82472
82473 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82474
82475         * lib/backupfile.c (ISDIGIT): Comment fix.
82476         * lib/getdate.y (ISDIGIT): Likewise.
82477         * lib/posixtm.c (ISDIGIT, year): Likewise.
82478         * lib/strverscmp.c (ISDIGIT): Likewise.
82479         * lib/userspec.c (ISDIGIT): Likewise.
82480
82481 2002-01-16  Jim Meyering  <meyering@lucent.com>
82482
82483         * lib/getdate.y: Add three semicolons, each just before a closing
82484         brace. Bison (as of version 1.31) no longer papers over that mistake.
82485
82486 2002-01-05  Jim Meyering  <meyering@lucent.com>
82487
82488         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82489
82490 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82491
82492         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82493         not silently exit merely because the output buffer happens to
82494         have nothing pending.
82495
82496 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82497
82498         See the big note in ../ChangeLog.
82499         * lib/human.c (suffixes): Prefer K to k for 1024.
82500         (generate_suffix_backwards): New function.
82501         (human_readable_inexact): Use it.
82502         * lib/xstrtol.c (__xstrtol): If there is no number but there
82503         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82504         Accept 'K' as well as 'k'.
82505
82506 2001-12-15  Jim Meyering  <meyering@lucent.com>
82507
82508         * lib/regex.h (__restrict_arr): Update from libc.
82509
82510         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82511         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82512         (STREQ): Define.
82513
82514 2001-12-14  Jim Meyering  <meyering@lucent.com>
82515
82516         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82517         Suggestion from Bruno Haible.
82518
82519 2001-12-10  Jim Meyering  <meyering@lucent.com>
82520
82521         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82522         xrealloc, Instead, include "xalloc.h".
82523         (initbuffer): Don't cast xmalloc return value to char*.
82524         (readline): Reword comment.
82525         Don't cast xrealloc return value to char*
82526         Return NULL, not 0.
82527
82528 2001-12-09  Jim Meyering  <meyering@lucent.com>
82529
82530         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82531         about `signed and unsigned type in conditional expression'.
82532         * lib/posixtm.c (posix_time_parse): Likewise.
82533
82534         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82535
82536         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82537         to avoid a pedantic warning.
82538
82539         * lib/getstr.c: Don't include assert.h.
82540         (getstr): Remove warning-evoking assertions.
82541         Return -1 if offset parameter is out of bounds.
82542         Change the type of a local from int to size_t.
82543
82544         * lib/strftime.c (my_strftime_localtime_r): Include this function
82545         definition in the `#if ! HAVE_TM_GMTOFF' block.
82546
82547         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82548         Include xalloc.h instead.
82549
82550 2001-12-02  Jim Meyering  <meyering@lucent.com>
82551
82552         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82553         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82554         included.
82555
82556         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82557         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82558
82559 2001-11-30  Akim Demaille  <akim@epita.fr>
82560
82561         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82562         before being defined.
82563
82564 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82565
82566         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82567         First arg is int, not unsigned.
82568         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82569         (SIZE_MAX, UINT_MAX): New macros.
82570         (quotearg_n_options): Abort if N is negative.
82571         Avoid overflow check on hosts where size_t is 64 bits and int
82572         is 32 bits, as overflow is impossible there.
82573         Fix off-by-one typo that caused unnecessary reallocation.
82574
82575 2001-11-27  Jim Meyering  <meyering@lucent.com>
82576
82577         * lib/tempname.c: Merge with version from libc.
82578         * lib/regex.c: Likewise.
82579
82580         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82581         systems for which STDC_HEADERS is 0, it was not included, resulting in
82582         a warning about an integer-to-pointer conversion problem with getenv.
82583         Reported by Volker Borchert.
82584
82585 2001-11-26  Jim Meyering  <meyering@lucent.com>
82586
82587         * lib/gtod.h: Remove file.
82588         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82589         * lib/gettimeofday.c: Don't include gtod.h.
82590         (GTOD_init): Remove function.
82591         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82592         Suggestion from Volker Borchert.
82593
82594 2001-11-23  Jim Meyering  <meyering@lucent.com>
82595
82596         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82597         it.
82598         * lib/hash.c (struct hash_table): Define it here instead.
82599
82600 2001-11-22  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82603
82604 2001-11-20  Jim Meyering  <meyering@lucent.com>
82605
82606         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82607         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82608
82609 2001-11-19  Jim Meyering  <meyering@lucent.com>
82610
82611         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82612         directory.  Use "conftestXXXXXX" as the template.
82613         Suggestion from Paul Eggert.
82614
82615         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82616         immediately, so the test doesn't mistakenly hit the max-open-files
82617         limit.
82618
82619 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82620
82621         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82622         (TEMPORARIES): New macro.
82623         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82624         removes an artificial limitation (e.g. HP-UX 10.20, where
82625         TMP_MAX is 17576).
82626
82627 2001-11-18  Jim Meyering  <meyering@lucent.com>
82628
82629         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82630
82631 2001-11-18  Jim Meyering  <meyering@lucent.com>
82632
82633         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82634         on SunOS 4.
82635
82636         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82637         files will be created before anything else.
82638
82639 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82640
82641         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82642         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82643
82644 2001-11-17  Jim Meyering  <meyering@lucent.com>
82645
82646         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82647         Prompted by a report from Bob Proulx.
82648
82649         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82650         Instead, require UTILS_FUNC_MKSTEMP.
82651
82652 2001-11-17  Jim Meyering  <meyering@lucent.com>
82653
82654         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82655         Now, that's done as part of AC_FUNC_STRTOD.
82656
82657 2001-11-17  Jim Meyering  <meyering@lucent.com>
82658
82659         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82660         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82661         rather than group writable.  Patch by Juan F. Codagnone.
82662
82663         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82664         xrealloc, Instead, include "xalloc.h".
82665
82666         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82667         Remove explicit declarations of xmalloc, xrealloc,
82668         and xstrdup.  Instead, include "xalloc.h".
82669
82670         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82671         unlocked-io.h.
82672         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82673         Likewise.
82674         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82675
82676         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82677         Reported by Padraig Brady.
82678
82679         * lib/mkstemp.c: #undef mkstemp.
82680         Include config.h.
82681         (rpl_mkstemp): Rename from mkstemp.
82682         Protoize.
82683
82684 2001-11-16  Jim Meyering  <meyering@lucent.com>
82685
82686         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82687         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82688         determine the amount of total physical memory, use pstat_getstatic.
82689         HPUX-11 doesn't define _SC_PHYS_PAGES.
82690         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82691         If sysconf couldn't be used to determine the amount of available
82692         physical memory, use both pstat_getstatic and pstat_getdynamic.
82693         Based on a patch from Bob Proulx.
82694
82695 2001-11-10  Jim Meyering  <meyering@lucent.com>
82696
82697         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82698         (jm_PREREQ): Use it.
82699
82700 2001-11-09  Jim Meyering  <meyering@lucent.com>
82701
82702         * m4/jm-macros.m4: Require autoconf-2.52f.
82703         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82704         Use these AC_-prefixed names, not the AM_-prefixed ones.
82705
82706         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82707
82708 2001-11-05  Jim Meyering  <meyering@lucent.com>
82709
82710         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82711
82712 2001-11-04  Jim Meyering  <meyering@lucent.com>
82713
82714         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82715         $DEFS.
82716
82717 2001-11-03  Jim Meyering  <meyering@lucent.com>
82718
82719         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82720         of AC_DEFUN.
82721
82722         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82723         know the name of the variable in the macro definition.
82724
82725 2001-11-03  Jim Meyering  <meyering@lucent.com>
82726
82727         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82728         in argmatch_to_argument call.
82729
82730         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82731         argument.
82732
82733         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82734         e.g., a fault due to an attempt to free a NULL pointer.
82735
82736 2001-11-01  Jim Meyering  <meyering@lucent.com>
82737
82738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82739         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82740
82741 2001-11-01  Jim Meyering  <meyering@lucent.com>
82742
82743         * lib/dirfd.c, lib/dirfd.h: New files.
82744         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82745
82746         * lib/hash.c (hash_print) [TESTING]: Clean up.
82747
82748 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82749
82750         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82751         to avoid a warning if -Wall.
82752
82753 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82754
82755         * README: New file
82756         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82757         (per RMS's instructions, this is now the canonical source)
82758         * lgpl/, gpl/: New directories.
82759
82760 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82761
82762         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82763
82764 2001-10-21  Jim Meyering  <meyering@lucent.com>
82765
82766         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82767         this code would end up calling gettext even in packages built
82768         with --disable-nls.
82769         * lib/getopt.c (_): Likewise.
82770         * lib/regex.c (_): Likewise.
82771
82772 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82773
82774         * m4/error.m4 (jm_PREREQ_ERROR):
82775         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82776         AC_FUNC_STRERROR_R does that.
82777         Check for strerror declaration.
82778
82779         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82780         are supposed to have them these days.
82781         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82782         Merge changes from latest Autoconf CVS.
82783         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82784         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82785         POSIX decided to standardize on the int flavor of strerror_r.
82786
82787 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82788
82789         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82790         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82791         Use strerror_r that is only a macro, even if it is not a function.
82792         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82793         (private_strerror): Use prototypes, not old-style function definition.
82794         (print_errno_message): New function.
82795         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82796         char*-flavored one.
82797         (error_tail, error, error_at_line): Use it.
82798
82799 2001-10-11  Jim Meyering  <meyering@lucent.com>
82800
82801         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82802         and quote_n (1, ... to avoid clobbering a buffer.
82803
82804 2001-10-05  Jim Meyering  <meyering@lucent.com>
82805
82806         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82807         hash-pjw.h.
82808         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82809         * lib/hash-pjw.h: New file.
82810
82811 2001-09-30  Jim Meyering  <meyering@lucent.com>
82812
82813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82814         `struct fsstat' has the `f_fstypename' member.
82815         Use that to define FS_TYPE, which is now used to make
82816         the getfsstat link test tighter.
82817
82818 2001-09-30  Jim Meyering  <meyering@lucent.com>
82819
82820         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82821         Include <sys/ucred.h>, for Apple Darwin.
82822         Include sys/mount.h and sys/fs_types.h only if available.
82823         (FS_TYPE): Define.
82824         (read_filesystem_list): Use FS_TYPE.
82825
82826 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82827
82828         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82829         a boolean context.
82830
82831 2001-09-29  Jim Meyering  <meyering@lucent.com>
82832
82833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82834         [one-argument getmntent function]): Include stdio.h before mntent.h.
82835         SunOS 4.1.x needs it for the declaration of `FILE'.
82836         Patch by Volker Borchert.
82837
82838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82839         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82840         sys/fs_types.h, and make the link-test for getfsstat guard #include
82841         directives with appropriate #if HAVE_*_H tests so that we can
82842         detect getfsstat on Apple Darwin1.3.7 systems.
82843         Reported by Nelson Beebe.
82844         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82845
82846 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82847
82848         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82849         #defines strtoimax.  Also treat the other strto* functions
82850         like strtoimax.
82851
82852         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82853         Check for strtoul and strtoumax,
82854         as those declarations are made even in the signed case.
82855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82856         Likewise, for strtol and strtoimax.
82857
82858 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82859
82860         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82861         #defines strtoimax.  Also treat the other strto* functions
82862         like strtoimax.
82863
82864         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82865         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82866         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82867
82868 2001-09-26  Jim Meyering  <meyering@lucent.com>
82869
82870         Most macros in unlocked-io.h had the wrong number of arguments.
82871         * lib/gen-uio: New script.
82872         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82873         * lib/unlocked-io.hin: Remove file.
82874         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82875         rather than trying to embed it here.
82876         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82877         Reported by Padraig Brady.
82878
82879 2001-09-25  Volker Borchert  <bt@teknon.de>
82880
82881         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82882         `result'.
82883
82884 2001-09-24  Jim Meyering  <meyering@lucent.com>
82885
82886         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82887
82888 2001-09-23  Jim Meyering  <meyering@lucent.com>
82889
82890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82891         instead of the mere test for existence of mntent.h.  The latter
82892         would get a false-positive on AIX 3.4 systems.
82893         In the outer getmntent if-block, don't die if neither of the getmntent
82894         tests succeeds.  Instead, just fall through and continue with the
82895         remaining tests.
82896
82897 2001-09-23  Jim Meyering  <meyering@lucent.com>
82898
82899         * lib/mountlist.c: Remove useless parentheses in #if directives.
82900         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82901         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82902
82903 2001-09-22  Jim Meyering  <meyering@lucent.com>
82904
82905         * m4/gettext.m4: New file.  From gettext.
82906         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82907         * m4/progtest.m4: Likewise
82908         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82909         * m4/glibc21.m4: Likewise.
82910
82911         * m4/libintl.m4: Remove.  No longer used.
82912
82913 2001-09-22  Jim Meyering  <meyering@lucent.com>
82914
82915         * lib/localcharset.c: Update from latest gettext.
82916         * lib/config.charset: Likewise.
82917
82918 2001-09-20  Jim Meyering  <meyering@lucent.com>
82919
82920         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82921         strtoimax.
82922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82923         strtoumax.
82924
82925 2001-09-20  Jim Meyering  <meyering@lucent.com>
82926
82927         * lib/xstrtol.c (strtoimax): Guard declaration with
82928         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82929         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82930         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82931         (strtoumax): Likewise, for completeness (it wasn't necessary).
82932
82933 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82934
82935         * lib/strtoimax.c (HAVE_LONG_LONG):
82936         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82937         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82938         to work around bug in IBM C compiler.
82939
82940 2001-09-17  Jim Meyering  <meyering@lucent.com>
82941
82942         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82943         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82944         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82945         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82946         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82947         whenever the right hand side need not be expanded by the shell.
82948
82949 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82950
82951         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82952         library.  It's not correct, as some older glibcs are buggy.
82953         fnmatch wasn't fixed until glibc 2.2.
82954
82955         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82956         special shell magic here.
82957
82958 2001-09-16  Jim Meyering  <meyering@lucent.com>
82959
82960         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82961         * m4/jm-macros.m4: Require it.
82962
82963 2001-09-16  Jim Meyering  <meyering@lucent.com>
82964
82965         * lib/mkdir.c: New file.
82966
82967 2001-09-15  Jim Meyering  <meyering@lucent.com>
82968
82969         * m4/jm-macros.m4: Check for help2man.
82970
82971 2001-09-11  Jim Meyering  <meyering@lucent.com>
82972
82973         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82974         The body, by Paul Eggert, was moved here from configure.in.
82975         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82976
82977 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82978
82979         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82980         (jm_PREREQ): Use it.
82981
82982 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82983
82984         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82985         Use ssize_t, not int, to store result of readlink.
82986         Check for ssize_t overflow as well as size_t overflow,
82987         as POSIX says the result of readlink is implementation-defined
82988         when ssize_t overflows.
82989         Remove unnecessary cast to char*.
82990         Use free+malloc instead of realloc, as the storage doesn't need
82991         to be preserved and it's clearer and can be more efficient that way.
82992         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82993         * lib/xreadlink.h (xreadlink): Update prototype.
82994
82995 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82996
82997         * lib/xgetcwd.c: Revert some of the previous change; intead,
82998         fix the HAVE_GETCWD_NULL code to behave more like the
82999         !HAVE_GETCWD_NULL code used to.
83000
83001         Include "xalloc.h".
83002         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83003         invoke xalloc_die.
83004
83005 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83006
83007         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83008         sys/param.h, as pathmax.h includes them.
83009
83010 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83011
83012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83013         (jm_PREREQ_XGETCWD): New macro.
83014
83015         * m4/getcwd.m4: New file.
83016
83017 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83018
83019         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83020         like the HAVE_GETCWD_NULL code.
83021         Include pathmax.h if not HAVE_GETCWD.
83022         Do not include xalloc.h.
83023         (INITIAL_BUFFER_SIZE): New symbol.
83024         Do not use xmalloc / xrealloc, since the caller is responsible for
83025         handling errors.  Preserve errno around `free' during failure.
83026         Do not overrun buffer when using getwd.
83027
83028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83029
83030         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83031         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83032         getcwd (NULL, 0).
83033
83034 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83035
83036         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83037         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83038         spotted by Jim Meyering.
83039
83040 2001-09-03  Jim Meyering  <meyering@lucent.com>
83041
83042         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83043         failure.
83044
83045 2001-09-02  Jim Meyering  <meyering@lucent.com>
83046
83047         * lib/error.c: Update from GNU libc.
83048
83049 2001-09-01  Jim Meyering  <meyering@lucent.com>
83050
83051         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83052         Used by df.
83053
83054 2001-09-01  Jim Meyering  <meyering@lucent.com>
83055
83056         * lib/xreadlink.c: New file.
83057         * lib/xreadlink.h: New file.
83058         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83059         xreadlink.h.
83060
83061         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83062         doesn't conflict with sparc Solaris 7's definition in
83063         /usr/include/sys/int_types.h.
83064
83065         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83066         files.
83067         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83068         and strncasecmp as r-values.  Unixware didn't have declarations.
83069
83070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83071
83072         * lib/xstrtol.h: Add copyright notice.
83073         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83074         LONGINT_INVALID_SUFFIX_CHAR.
83075
83076 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83077
83078         * lib/xstrtol.c (strtoimax): New decl.
83079
83080 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83081
83082         * lib/xgetcwd.c: Don't include pathmax.h.
83083         Include stdlib.h and unistd.h if available.
83084         Include xalloc.h.
83085         (xmalloc, xstrdup, free): Remove decls.
83086         (xgetcwd): Don't assume sizes fit in unsigned.
83087         Check for overflow when computing sizes.
83088         Simplify reallocation code.
83089
83090 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83091
83092         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83093         a directory's st_size can have an arbitrary value, so the old
83094         usage could waste an arbitrary amount of memory.  All uses
83095         changed.
83096         * lib/savedir.h: Update prototype.
83097
83098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83099
83100         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83101
83102         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83103         old strtoimax.c.
83104
83105         Also, make the following further changes to make this file's
83106         configuration more similar to that of strtol.c:
83107         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83108         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83109         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83110         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83111         changed to signed values.
83112
83113         And make the following changes as well:
83114         Fix copyright notice, as 1999 was missing.
83115         (verify): New macro.
83116         (strtoimax): Check sizes at compile-time, not run-time.
83117         Prefer strtol to strtoll if both work.
83118         (main): Remove; it was not that useful and was a pain to maintain.
83119
83120         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83121
83122 2001-08-31  Jim Meyering  <meyering@lucent.com>
83123
83124         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83125         Use an initial, malloc'd, buffer of length 128 rather than
83126         a statically allocated one of length 1024.
83127
83128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83129
83130         Simplify code, partly by assuming autoconf 2.52 semantics.
83131
83132         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83133
83134         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83135         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83136         All uses removed.
83137         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83138         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83139         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83140         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83141         jm_AC_HEADER_INTTYPES_H.
83142         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83143
83144         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83145
83146         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83147         Quote first arg of AC_DEFUN.
83148         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83149         since they are needed to parse the include file even if we need
83150         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83152         but with opposite signedness.
83153
83154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83155
83156         Merge 'exclude' changes from tar 1.13.22.
83157         This fixes one or two unlikely storage allocation overflow bugs,
83158         but doesn't change user-visible behavior otherwise.
83159
83160 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83161
83162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83163         (jm_PREREQ_EXCLUDE): New macro.
83164
83165 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83166
83167         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83168         tm to be declared.
83169
83170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83171
83172         * lib/hash.c: Remove '2001' from copyright notice.
83173
83174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83175
83176         * lib/full-write.h: New file.
83177         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83178         * lib/full-write.c: Correct credits, as cccp.c no longer
83179         exists and anyway it was so heavily changed from the old cccp
83180         code as to be unrecognizable.  Include full-write.h.
83181         (full_write): Return size_t, with short writes meaning failure.
83182         All callers changed.  This fixes a bug with large buffers
83183         on 64-bit hosts.
83184         * lib/utime.c: Include full-write.h.
83185
83186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83187
83188         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83189         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83190         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83191         Include if available.
83192         (<xalloc.h>): Include
83193         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83194         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83195         collide with FNM macros.
83196         (struct patopts): New struct.
83197         (struct exclude): Use it, as exclude patterns now come with options.
83198         (new_exclude): Support above changes.
83199         (new_exclude, add_exclude_file):
83200         Initial size must now be a power of two to simplify overflow checking.
83201         (free_exclude, fnmatch_no_wildcards): New function.
83202         (excluded_filename): No longer requires options arg, as the options
83203         are determined by add_exclude.  Now returns bool, not int.
83204         (excluded_filename, add_exclude):
83205         Add support for the fancy new exclusion options.
83206         (add_exclude, add_exclude_file): Now takes int options arg.
83207         Check for arithmetic overflow when computing sizes.
83208         (add_exclude_file): xrealloc might modify errno, so don't
83209         realloc until after errno might be used.
83210
83211         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83212         New macros.
83213         (free_exclude): New decl.
83214         (add_exclude, add_exclude_file): Now takes int options arg.
83215         (excluded_filename): No longer requires options arg, as the options
83216         are determined by add_exclude.  Now returns bool, not int.
83217
83218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83219
83220         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83221
83222 2001-08-27  Jim Meyering  <meyering@lucent.com>
83223
83224         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83225
83226         * lib/version-etc.c (N_): Remove definition.
83227         Revert most of last change.
83228         Instead, simply don't mark the `Copyright...' string for translation.
83229         Based on advice from Paul Eggert.
83230
83231         * lib/strtoxmax.c: Tweak comment.
83232
83233 2001-08-26  Jim Meyering  <meyering@lucent.com>
83234
83235         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83236
83237         * m4/xstrtoimax.m4: New file.
83238         * m4/xstrtoumax.m4: Add comments explaining why we
83239         AC_REPLACE_FUNCS(strtol).
83240
83241 2001-08-26  Jim Meyering  <meyering@lucent.com>
83242
83243         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83244         of copyright with `%s' so translators don't get an untranslated
83245         message in 2002.
83246         (COPYRIGHT_YEAR): Define.
83247         (version_etc): Use fprintf rather than fputs.
83248         Suggestion from Ulrich Drepper.
83249
83250         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83251
83252         * lib/strtoll.c: New file, from GNU libc.
83253         * lib/xstrtoimax.c: New file.
83254
83255         * lib/xstrtol.h: Add xstrtoimax.
83256         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83257         * lib/strtoimax.c: New file.  Likewise, but first define
83258         STRTOUXMAX_SIGNED.
83259
83260         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83261         ...
83262         * lib/strtoxmax.c: ... then renamed to this.
83263
83264 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83265
83266         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83267         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83268         (jm_AC_TYPE_INTMAX_T): New macro.
83269         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83270
83271         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83272
83273         * m4/longlong.m4: Renamed from ulonglong.m4.
83274         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83275         * m4/uintmax_t.m4: Removed.
83276
83277 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83278
83279         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83280         Port to Solaris 8, where 'sed' requires a space after the 'r'
83281         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83282         Redirect output to $tmp just once.
83283
83284 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83285
83286         * lib/addext.c (<errno.h>): Include.
83287         (errno): Declare if not defined.
83288         (addext): Work correctly when pathconf returns -1 and leaves
83289         errno alone because there is no limit.  Also, work even if
83290         pathconf returns a value greater than SIZE_MAX.
83291
83292 2001-08-12  Jim Meyering  <meyering@lucent.com>
83293
83294         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83295         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83296         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83297         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83298         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83299         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83300         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83301         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83302         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83303         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83304         utime.m4, utimes.m4, xstrtoumax.m4:
83305         Quote the first argument in each use of AC_DEFUN.
83306
83307 2001-08-12  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83310         Simply `return getcwd (NULL, 0);'.
83311         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83312         Use 1300 as initial value for length, not PATH_MAX.
83313
83314         * lib/pathmax.h: Clean up cpp syntax.
83315
83316 2001-08-12  Jim Meyering  <meyering@lucent.com>
83317
83318         * lib/gettimeofday.c: New file.
83319         * lib/gtod.h: New file.
83320         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83321
83322 2001-08-05  Jim Meyering  <meyering@lucent.com>
83323
83324         * m4/jm-macros.m4: Require autoconf-2.52.
83325
83326 2001-08-04  Jim Meyering  <meyering@lucent.com>
83327
83328         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83329         stmt, to get in sync with glibc.
83330
83331 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83332
83333         The following changes are from gettext 0.10.39 as maintained by
83334         Bruno Haible.
83335
83336         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83337         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83338         with inverted sense.  All uses changed.
83339
83340         * lib/mbswidth.c: Don't include <limits.h>.
83341         Include <stdlib.h> and <string.h> unconditionally.
83342         (iswcntrl, mbsinit, ISCNTRL): New macros.
83343         (mbsnwidth): Use K&R style function declarations.
83344         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83345         can optimize it when MB_CUR_MAX == 1.
83346         The width of control characters is zero, not 1.
83347
83348 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83349
83350         The following changes are from gettext 0.10.39 as maintained by
83351         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83352
83353         * m4/codeset.m4: Upgrade to serial AM1.
83354         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83355         all uses changed.  Quote first arg of AC_DEFUN.
83356         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83357
83358         * m4/iconv.m4: Upgrade to serial AM2.
83359         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83360         Add --with-libconv-prefix.
83361         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83362         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83363         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83364         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83365         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83366
83367         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83368         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83369         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83370         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83371         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83372         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83373         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83374         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83375         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83376
83377         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83378         string.h any more.
83379
83380         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83381         not the default value.
83382
83383         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83384         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83385         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83386         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83387         Also check for iswcntrl, used for wcwidth fallback.
83388         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83389         to Autoconf 2.13.
83390
83391 2001-08-03  Jim Meyering  <meyering@lucent.com>
83392
83393         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83394         as it was in the original.  Reported by Paul Eggert.
83395
83396 2001-07-16  Jim Meyering  <meyering@lucent.com>
83397
83398         * m4/gettimeofday.m4: New file.
83399         Prompted by a report from Bernhard Baehr.
83400
83401 2001-07-15  Jim Meyering  <meyering@lucent.com>
83402
83403         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83404         stuff. Now it's in ../Makefile.cfg.
83405
83406 2001-07-15  Jim Meyering  <meyering@lucent.com>
83407
83408         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83409         (BUILT_SOURCES): Add unlocked-io.h.
83410         (io_functions): Define.
83411         (unlocked-io.h): New rule.
83412         (DISTCLEANFILES): Add unlocked-io.h.
83413         (all-local): Depend on unlocked-io.h, to ensure it is created.
83414
83415         * lib/unlocked-io.hin: New file
83416
83417         * lib/regex.c: Update from glibc.
83418
83419 2001-07-05  Jim Meyering  <meyering@lucent.com>
83420
83421         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83422         recommendation.
83423         (libfetish_a_SOURCES): Put all .h files here instead.
83424         Remove a thus-exposed (better checks in automake) duplicate and
83425         two unnecessary .h files.
83426
83427 2001-07-04  Jim Meyering  <meyering@lucent.com>
83428
83429         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83430         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83431         distcheck failure.
83432
83433 2001-07-02  Jim Meyering  <meyering@lucent.com>
83434
83435         The following changes were prompted by suggestions from Bruno Haible.
83436
83437         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83438         is now generated.
83439         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83440         definition of EXTRA_DIST.
83441         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83442         ensure that the generated file is created/updated whenever the list
83443         of $(unlocked_functions) is changed.
83444         (jm-glibc-io.m4): New rule.
83445         (unlocked-io.h): New rule -- currently unused.
83446
83447 2001-06-24  Jim Meyering  <meyering@lucent.com>
83448
83449         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83450         unmatched right bracket, rather than kludging it with an extra,
83451         falsely-matching quote in a comment.  Patch by Akim Demaille.
83452
83453 2001-06-11  Jim Meyering  <meyering@lucent.com>
83454
83455         * lib/regex.c: Update from GNU libc.
83456
83457 2001-05-27  Jim Meyering  <meyering@lucent.com>
83458
83459         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83460         Check for ut_type in struct utmp.
83461
83462 2001-05-27  Jim Meyering  <meyering@lucent.com>
83463
83464         * lib/readutmp.h (UT_TYPE): Define.
83465
83466 2001-05-24  Jim Meyering  <meyering@lucent.com>
83467
83468         * lib/argmatch.c: Include "quote.h".
83469         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83470         quote function.  Reported by Göran Uddeborg.
83471
83472 2001-05-22  Jim Meyering  <meyering@lucent.com>
83473
83474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83475         now that we use the package-supplied version unconditionally.
83476         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83477
83478 2001-05-21  Jim Meyering  <meyering@lucent.com>
83479
83480         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83481         shell syntax errors.
83482
83483 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83484
83485         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83486
83487 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83488
83489         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83490         Don't bother to check library strftime, since
83491         we'll be using our own my_strftime function anyway.
83492         Define my_strftime instead of strftime.
83493
83494 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83495
83496         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83497         which is not yet declared.
83498
83499 2001-05-15  Jim Meyering  <meyering@lucent.com>
83500
83501         * m4/regex.m4: Use proper quoting so brackets appear in the test
83502         program.
83503         Reported by, and with help from, Bruno Haible.
83504
83505 2001-05-13  Jim Meyering  <meyering@lucent.com>
83506
83507         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83508         undefined.
83509
83510 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83511
83512         dirname code cleanup.  base_name now behaves more compatibly
83513         with POSIX basename when given file names that have trailing
83514         slashes, and similarly for dir_name.  Add new primitives
83515         base_len and dir_len.  Put the directory-name-related decls
83516         into dirname.h.
83517
83518         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83519         * lib/backupfile.c (base_name): Likewise.
83520         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83521         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83522         * lib/makepath.c (strip_trailing_slashes): Likewise.
83523         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83524         ISSLASH): Likewise.
83525         * lib/rename.c (strip_trailing_slashes): Likewise.
83526         * lib/same.c (base_name): Likewise.
83527         * lib/stripslash.c (ISSLASH): Likewise.
83528
83529         * lib/addext.c: Include <dirname.h> after size_t is defined.
83530         * lib/backupfile.c: Likewise.
83531
83532         * lib/addext.c (addext): Use base_len to trim redundant
83533         trailing slashes instead of doing it ourselves.
83534         But do not trim the last slash if it is not redundant.
83535
83536         * lib/backupfile.c (find_backup_file_name,
83537         max_backup_version): Use base_len instead of rolling it ourselves.
83538         Handle the case of "" and (on DOS) "C:" correctly.
83539
83540         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83541         needed. Include <string.h>, <dirname.h>.
83542         (base_name): Allow file names ending in slashes, other than names
83543         that are all slashes.  In this case, return the basename followed
83544         by the slashes.  This is more general, and can be used in places
83545         where the original base_name purposely had an assertion failure.
83546         (base_len): New function.
83547
83548         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83549         Do not include <assert.h>; no longer needed.
83550         Include xalloc.h.
83551         (memrchr): Remove decl.
83552         (dir_name_r): Remove.
83553         (dir_len): Renamed from dirlen.  All callers changed.
83554         Rewrite in terms of base_name, for simplicity and consistency.
83555         (dir_name): Never return NULL.  All callers changed.
83556         Do not include <stdlib.h> in test program; no longer needed.
83557         return 0; is fine for test program.
83558
83559         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83560         New macros.
83561         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83562
83563         * lib/path-concat.c (path_concat): Use base_len to compute
83564         base length, not strlen; this means we cannot rely on memcpy
83565         to null-terminate.
83566
83567         * lib/same.c (STREQ): Remove.
83568         (same_name): Handle the case where the basename ends in trailing '/'.
83569
83570         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83571         a slash was stripped.  Do not strip the last slash after a
83572         file system prefix.
83573
83574 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83575
83576         * lib/Makefile.am (libfetish_a_SOURCES):
83577         Add strftime.c, since we now compile it on all hosts.
83578
83579         * lib/strftime.c (my_strftime):
83580         Define to nstrftime if emacs, but only if my_strftime is not defined.
83581         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83582         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83583         Add one more extra argument: a nanoseconds value.
83584         All uses changed.
83585         (ns): New macro.
83586         (my_strftime function): Add %N format.
83587         (emacs_strftimeu): Renamed from emacs_strftime,
83588         with extra ut argument.
83589
83590 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83591
83592         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83593
83594 2001-04-21  Jim Meyering  <meyering@lucent.com>
83595
83596         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83597         doesn't interfere.
83598
83599 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83600
83601         * m4/ftruncate.m4: Check for chsize.
83602         Link with ftruncate.o unconditionally if ftruncate is missing.
83603         This was required when cross-compiling to i586-mingw32msvc.
83604
83605 2001-04-08  Jim Meyering  <meyering@lucent.com>
83606
83607         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83608         recomputed; that's necessary when the offset spans a DST transition.
83609         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83610
83611 2001-04-02  Jim Meyering  <meyering@lucent.com>
83612
83613         * lib/regex.h, regex.c: Update from GNU libc.
83614
83615 2001-03-24  Jim Meyering  <meyering@lucent.com>
83616
83617         * m4/jm-macros.m4: Require autoconf-2.49d.
83618
83619 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83620
83621         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83622
83623 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83624
83625         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83626
83627 2001-03-17  Jim Meyering  <meyering@lucent.com>
83628
83629         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83630         now that the version in autoconf is equivalent.
83631         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83632
83633         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83634         Suggestion from Akim Demaille.
83635
83636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83637         (jm_PREREQ_TEMPNAME): New function.
83638
83639 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83640
83641         * lib/tempname.c (uint64_t): Define to uintmax_t if
83642         not defined, and if UINT64_MAX is not defined.
83643         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83644         Reported by John David Anglin.
83645
83646 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83647
83648         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83649         resolve alias if codeset is empty.
83650         * lib/config.charset (BeOS): Use wildcard syntax.
83651
83652 2001-03-13  Jim Meyering  <meyering@lucent.com>
83653
83654         * lib/path-concat.c (path_concat)
83655         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83656         concatenating e.g., `C:' and `foo'.
83657         From Bruno Haible.
83658
83659 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83660
83661         * lib/localcharset.c (locale_charset): Don't use
83662         setlocale(LC_CTYPE,NULL). Don't return NULL.
83663         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83664
83665 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83666
83667         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83668         support for DOS/DJGPP.
83669
83670 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83671
83672         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83673         lacks mkstemp.  Compile our own tempname.c if we compile our own
83674         mkstemp.c, as mkstemp relies on tempname.
83675
83676 2001-03-01  Jim Meyering  <meyering@lucent.com>
83677
83678         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83679         AH_VERBATIM really does output its argument verbatim.
83680
83681 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83682
83683         * lib/Makefile.am (libfetish_a_SOURCES):
83684         Add dup-safer.c, fopen-safer.c.
83685         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83686
83687         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83688         * lib/unistd-safer.h: New files.
83689
83690 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83691
83692         The mkstemp replacement is taken from glibc 2.2.2, with some
83693         portability fixes for use outside glibc, as follows:
83694
83695         * lib/tempname.c (struct_stat64): New macro.
83696         (direxists, __gen_tempname): Use it.
83697         This avoids a portability problem with Solaris 8.
83698
83699         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83700         (<stddef.h>, <stdint.h>, <string.h>):
83701         Include only if STDC_HEADERS || _LIBC.
83702         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83703         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83704         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83705         (__set_errno): Define this macro if <errno.h> doesn't.
83706         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83707         Define these macros if <stdio.h> doesn't.
83708         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83709         Define these macros if <sys/stat.h>
83710         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83711         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83712         __xstat64): Define if not _LIBC.
83713         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83714         (__gen_tempname): Invoke gettimeofday only if
83715         HAVE_GETTIMEOFDAY || _LIBC;
83716         otherwise, fall back on plain "time".
83717         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83718
83719         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83720
83721         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83722
83723 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83724
83725         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83726
83727 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83728
83729         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83730         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83731         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83732         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83733
83734 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83735
83736         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83737         Remove workaround macros for hosts that have mbrtowc but not
83738         mbstate_t, as we now insist on proper declarations for both
83739         before using mbrtowc.
83740
83741 2001-02-17  Jim Meyering  <meyering@lucent.com>
83742
83743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83744         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83745         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83746         UnixWare 7.1.1.
83747
83748         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83749         rather than AC_CACHE_VAL.
83750
83751 2001-02-17  Jim Meyering  <meyering@lucent.com>
83752
83753         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83754         around included file name.
83755
83756         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83757
83758         * lib/strftime.c: Update from GNU libc (the only changes were to
83759         comments).
83760
83761 2001-02-17  Jim Meyering  <meyering@lucent.com>
83762
83763         * lib/regex.c: Update from libc.
83764
83765 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83766
83767         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83768         clash.
83769
83770 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83771
83772         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83773         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83774         Reported by Mark Hounschell via Paul Eggert.
83775
83776 2001-02-07  Jim Meyering  <meyering@lucent.com>
83777
83778         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83779
83780 2001-02-05  Jim Meyering  <meyering@lucent.com>
83781
83782         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83783         it includes the patch required for `large file' support with at least
83784         HP-UX's 10.20 /bin/cc.
83785
83786 2001-02-03  Jim Meyering  <meyering@lucent.com>
83787
83788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83789         AS_IF, now that it works once again (mysteriously).
83790         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83791
83792 2001-01-30  Jim Meyering  <meyering@lucent.com>
83793
83794         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83795         * m4/chown.m4: Rename conftestchown to conftest.chown.
83796         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83797         s/conftestdir2/conftest.d2/.
83798         * m4/utimes.m4: s/conftestdata/conftest.data/
83799         Inspired by Pavel Roskin's change in autoconf.
83800
83801 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83802
83803         * lib/config.charset: Update for FreeBSD 4.2.
83804
83805 2001-01-27  Jim Meyering  <meyering@lucent.com>
83806
83807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83808         a use of AS_IF.
83809         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83810
83811 2001-01-26  Jim Meyering  <meyering@lucent.com>
83812
83813         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83814         quotearg.c includes it.
83815
83816 2001-01-26  Jim Meyering  <meyering@lucent.com>
83817
83818         * lib/quotearg.c: Include stddef.h.
83819         * lib/quote.c: Include stddef.h.
83820         Reported by Axel Kittenberger.
83821
83822         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83823         line in double quotes so that it evokes a better diagnostic.
83824         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83825         Reported by Axel Kittenberger.
83826
83827 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83828
83829         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83830         as if it was a `charset'.
83831
83832 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83833
83834         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83835         has const.
83836
83837 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83838
83839         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83840         to avoid a warning.  Add back 'const' to inptr.
83841
83842 2001-01-20  Jim Meyering  <meyering@lucent.com>
83843
83844         Be sure that headers are checked before used in code compiled
83845         for the type checks.
83846         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83847         In place of that, invoke jm_CHECK_ALL_TYPES.
83848         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83849         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83850         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83851         The check for ssize_t was mistakenly run before the test for unistd.h.
83852
83853         The configure-time check for stdbool.h was missing.
83854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83855         (jm_PREREQ_HASH): New function.
83856
83857 2001-01-17  Jim Meyering  <meyering@lucent.com>
83858
83859         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83860         for autoconf-2.49c.
83861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83862
83863 2001-01-16  Jim Meyering  <meyering@lucent.com>
83864
83865         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83866         From Bruno Haible.
83867
83868 2001-01-14  Jim Meyering  <meyering@lucent.com>
83869
83870         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83871         foo and bar.  Create conftestdir/ in the script, not in the C code.
83872         Remove directories in the script, not in the C code.
83873         Remove conftestdir{,2} before trying to create the directory.
83874         Make the entire configure script fail if the mkdir fails.
83875
83876 2001-01-14  Jim Meyering  <meyering@lucent.com>
83877
83878         * lib/rename.c: New file.  From Volker Borchert.
83879         Include stdlib.h, string.h or strings.h, and xalloc.h.
83880         Use strip_trailing_slashes rather than open-coding it.
83881
83882 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83883
83884         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83885
83886 2001-01-03  Jim Meyering  <meyering@lucent.com>
83887
83888         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83889         of local `inptr' to avoid warning with some system declarations of
83890         iconv.
83891
83892 2001-01-02  Volker Borchert  <bt@teknon.de>
83893
83894         * m4/rename.m4: New file.
83895         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83896
83897 2001-01-01  Jim Meyering  <meyering@lucent.com>
83898
83899         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83900         even on systems with utmpx.h.  It's necessary for the declaration of
83901         utmp's ut_user member.  Reported by Andreas Jaeger.
83902
83903         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83904         available. They are required for the declarations of getgrgid and
83905         getpwuid resp.
83906         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83907         Reported by Andreas Jaeger.
83908
83909 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83910
83911         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83912         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83913         so `make install' also works in VPATH builds.
83914
83915 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83916
83917         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83918         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83919         can be used in subdirectories.
83920
83921 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83922
83923         * lib/modechange.c: Do not assume that mode_t uses the
83924         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83925         the other-execute bit of FOO even if S_IXOTH != 1.
83926
83927         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83928         WOTH, XOTH, ALLM): New macros.
83929         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83930          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83931         Use them.
83932         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83933         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83934         (mode_compile):
83935         No need to use uintmax_t; unsigned long is long enough.
83936         Don't bother to get suffix since we don't use it.
83937
83938 2000-12-26  Jim Meyering  <meyering@lucent.com>
83939
83940         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83941         better with autoheader.
83942
83943 2000-12-24  Jim Meyering  <meyering@lucent.com>
83944
83945         * lib/hash.c (is_prime): Return explicit boolean values.
83946         (hash_get_first): Return NULL to appease Irix5.6's 89.
83947         Reported by Nelson Beebe.
83948
83949 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83950
83951         * lib/localcharset.c (locale_charset): Add support for Win32.
83952
83953 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83954
83955         * lib/physmem.h, lib/physmem.c: New files.
83956
83957         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83958         (noinst_HEADERS): Add physmem.h.
83959
83960         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83961         't' for compatibility with Solaris 8 sort.
83962
83963 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83964
83965         * lib/config.charset: Add support for BeOS.
83966
83967 2000-12-17  Jim Meyering  <meyering@lucent.com>
83968
83969         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83970         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83971
83972 2000-12-16  Jim Meyering  <meyering@lucent.com>
83973
83974         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83975         N and M) would have treated it like `chown N:N FILE'.
83976
83977         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83978
83979 2000-12-16  Jim Meyering  <meyering@lucent.com>
83980
83981         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83982         SHELLS_FILE to a file name that's useful on djgpp systems.
83983         Include stdlib.h.
83984         (ADDITIONAL_DEFAULT_SHELLS): Define.
83985         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83986         Based mostly on a patch from Prashant TR.
83987
83988 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83989
83990         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83991         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83992         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83993
83994 2000-12-08  Andreas Schwab  <schwab@suse.de>
83995
83996         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83997         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83998
83999 2000-12-07  Jim Meyering  <meyering@lucent.com>
84000
84001         * lib/stripslash.c (ISSLASH): Define.
84002         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84003         `/'.
84004         From Prashant TR.
84005
84006         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84007         (dir_name_r): Declare this function as static.
84008         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84009         manifest itself on a name containing a mix of slashes and
84010         backslashes.
84011         Make this function work with names starting with a DOS-style
84012         drive letter and colon prefix.
84013         (dir_name): Append `.' if necessary.
84014         Based mostly on patches from Prashant TR and Eli Zaretskii.
84015
84016         * lib/dirname.h (dir_name_r): Remove prototype.
84017
84018 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84019
84020         * m4/off_t-format.m4: Remove this file.
84021         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84022
84023 2000-12-06  Jim Meyering  <meyering@lucent.com>
84024
84025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84026         replacement strtoull, we may well need the replacement strtoul, too.
84027         Check for declarations of strtoul and strtoull.
84028         Check for strtol.  Mainly as a cue to cause automake to include
84029         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84030         Check for limits.h -- strtol.c needs it.
84031
84032 2000-12-05  Jim Meyering  <meyering@lucent.com>
84033
84034         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84035
84036 2000-12-04  Jim Meyering  <meyering@lucent.com>
84037
84038         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84039         Also include memory.h, stdlib.h, unistd.h if appropriate.
84040         Reported by Andreas Jaeger (conflicting declaration of malloc).
84041
84042 2000-12-02  Jim Meyering  <meyering@lucent.com>
84043
84044         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84045         * m4/jm-macros.m4 (jm_MACROS): require it.
84046
84047 2000-12-02  Jim Meyering  <meyering@lucent.com>
84048
84049         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84050
84051 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84052
84053         * lib/memrchr.c: Include <config.h> before any system include file.
84054
84055 2000-11-30  Jim Meyering  <meyering@lucent.com>
84056
84057         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84058
84059 2000-11-30  Jim Meyering  <meyering@lucent.com>
84060
84061         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84062
84063 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84064
84065         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84066
84067 2000-11-26  Jim Meyering  <meyering@lucent.com>
84068
84069         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84070
84071 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84072
84073         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84074         size of (size_t) -1; it's not portable.
84075
84076 2000-11-17  Jim Meyering  <meyering@lucent.com>
84077
84078         * lib/strstr.c: Update from GNU libc.
84079
84080 2000-11-17  Akim Demaille  <akim@epita.fr>
84081
84082         * lib/obstack.h: Formatting changes.
84083         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84084         prevent type checking.
84085         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84086         cast the value to (void *): assigning a `foo *' to a `void *'
84087         variable is valid.
84088         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84089
84090 2000-11-16  Jim Meyering  <meyering@lucent.com>
84091
84092         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84093
84094 2000-11-11  Jim Meyering  <meyering@lucent.com>
84095
84096         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84097
84098 2000-11-10  Jim Meyering  <meyering@lucent.com>
84099
84100         * lib/obstack.h: Update from GNU libc.
84101         * lib/obstack.c: Likewise.
84102
84103 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84104
84105         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84106
84107 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84108
84109         * lib/getusershell.c (setusershell): Use rewind rather than
84110         fseek/fseeko, to avoid configuration hassles with fseeko.
84111         Don't bother opening SHELLS_FILE if shellstream is NULL;
84112         it's not necessary.
84113
84114 2000-11-05  Jim Meyering  <meyering@lucent.com>
84115
84116         * lib/makepath.h (make_dir): Declare.
84117         * lib/makepath.c (make_dir): Remove `static' attribute.
84118         Tweak a comment.
84119
84120 2000-11-04  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84123
84124 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84125
84126         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84127         last one in a bucket, advance to the next bucket.
84128
84129 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84130
84131         * lib/fnmatch.c: Do not comment out all the code if we are using
84132         the GNU C library, because in some cases we are replacing buggy
84133         code in the GNU C library itself.
84134
84135 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84136
84137         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84138         (regex_compile): Catch bogus \(\1\).
84139
84140 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84141
84142         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84143         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84144         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84145
84146 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84147
84148         * lib/error.h, getline.h, modechange.h:
84149         Remove "2000" from Copyright line, as the file hasn't been
84150         changed this year other than in the copyright notice.
84151
84152         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84153         was changed this year.
84154
84155 2000-10-29  Jim Meyering  <meyering@lucent.com>
84156
84157         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84158         renaming.
84159         * m4/ls-mntd-fs.m4: Likewise
84160
84161 2000-10-29  Jim Meyering  <meyering@lucent.com>
84162
84163         * lib/xstat.in: Fix grammar in comment.
84164
84165 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84166
84167         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84168         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84169         doesn't define __restrict_arr.
84170
84171 2000-10-28  Jim Meyering  <meyering@lucent.com>
84172
84173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84174         (jm_PREREQ_MEMCHR): New function.
84175
84176 2000-10-28  Jim Meyering  <meyering@lucent.com>
84177
84178         * lib/memchr.c: Update from libc.
84179         Adjust for portability:
84180         [HAVE_STDLIB_H]: Include stdlib.h.
84181         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84182         Undef __memchr, too.
84183         [!weak_alias]: Define __memchr to memchr.
84184
84185         * lib/regex.c: Update from libc.
84186         * lib/regex.h: Likewise.
84187         * lib/getopt1.c: Likewise.
84188         * lib/memcmp.c: Likewise.
84189
84190         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84191         Avoid using fseek, when possible -- it's broken by design.
84192         Patch by Ulrich Drepper.
84193
84194 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84195
84196         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84197         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84198         Giving in to popular pressure to shut up the compiler with casts.
84199
84200 2000-10-26  Jim Meyering  <meyering@lucent.com>
84201
84202         * lib/strftime.c: Update from libc.
84203
84204 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84205
84206         * regex.c: More `unsigned char' -> `re_char' changes.
84207         Also change several `int' into `re_wchar_t'.
84208         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84209         (PUSH_FAILURE_POINTER): Don't cast any more.
84210         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84211         We want GCC to complain, since this piece of code makes
84212         re_match non-reentrant, which *should* be fixed.
84213         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84214         (EXTEND_BUFFER): Use RETALLOC.
84215         (SET_LIST_BIT): Don't cast.
84216         (re_wchar_t): New type.
84217         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84218         that those two functions will always properly return.
84219         (IMMEDIATE_QUIT_CHECK): Cast to void.
84220         (analyse_first): Use recursion rather than an explicit stack.
84221         (re_compile_fastmap): Can't fail anymore.
84222         (re_search_2): Don't check re_compile_fastmap for failure.
84223         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84224         Now also sets the new value (passed in a new argument).
84225         (re_match_2_internal): Use it.
84226         Also, use a new var `reg' of type size_t when looping through regs
84227         rather than reuse the inappropriate `mcnt'.
84228
84229 2000-10-25  Jim Meyering  <meyering@lucent.com>
84230
84231         * lib/obstack.c: Update from libc.
84232
84233 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84234
84235         * regex.c (regex_compile): Change the way of handling a range from
84236         a char less than 256 to a char not less than 256.
84237
84238 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84239
84240         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84241         NT-Emacs only.
84242         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84243         so that re_search functions only quit when callers expect them to.
84244
84245 2000-10-23  Jim Meyering  <meyering@lucent.com>
84246
84247         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84248         wrong.  That set_locale call must not have any side effects.
84249         From Paul Eggert.
84250
84251 2000-10-22  Jim Meyering  <meyering@lucent.com>
84252
84253         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84254         [CYCLIC]: Remove now-unused definition.
84255
84256         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84257         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84258         Suggestion from Ulrich Drepper.
84259
84260 2000-10-21  Jim Meyering  <meyering@lucent.com>
84261
84262         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84263         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84264         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84265
84266 2000-10-21  Jim Meyering  <meyering@lucent.com>
84267
84268         * lib/dirname.c (memrchr): Declare if necessary.
84269         (dir_name): Remove the restriction that there be no
84270         trailing slashes.  Now, this code skips past them, effectively
84271         ignoring them.
84272         [TEST_DIRNAME] (main): New unit tests.
84273
84274         * lib/memrchr.c: New file from GNU libc.
84275         Undef __memrchr, too.
84276         [!weak_alias]: Define __memrchr to memrchr.
84277         Guard weak_alias use with `#ifdef weak_alias'.
84278
84279 2000-10-21  Jim Meyering  <meyering@lucent.com>
84280
84281         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84282         (dir_name): Use dir_name_r.
84283         * lib/dirname.h (dir_name_r): Declare it.
84284
84285 2000-10-17  Jim Meyering  <meyering@lucent.com>
84286
84287         * lib/quote.h (PARAMS): Define and use.
84288         Reported by Akim Demaille.
84289
84290         * lib/getopt.c: Update from libc.
84291
84292 2000-10-16  Jim Meyering  <meyering@lucent.com>
84293
84294         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84295         setlocale.
84296         From Jan Fedak.
84297
84298 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84299
84300         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84301
84302 2000-09-25  Jim Meyering  <meyering@lucent.com>
84303
84304         * lib/md5.h (rol): Define (from GnuPG).
84305
84306         * lib/sha.c: Give credit (GnuPG) where due.
84307         (M): Use rol rather than open-coding it.
84308         Add a FIXME comment.
84309
84310 2000-09-21  Jim Meyering  <meyering@lucent.com>
84311
84312         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84313         Reported by Michael Stone.
84314
84315 2000-09-20  Jim Meyering  <meyering@lucent.com>
84316
84317         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84318         (noinst_HEADERS): Add sha.h.
84319         Based on code from Scott G. Miller and from GnuPG.
84320
84321 2000-09-18  Jim Meyering  <meyering@lucent.com>
84322
84323         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84324         LIBS. Otherwise, everyone ends up linking with -lelf for some
84325         configurations.
84326         Reported by Mike Stone.
84327
84328 2000-09-15  Jim Meyering  <meyering@lucent.com>
84329
84330         * lib/regex.c: Update from libc.
84331
84332 2000-09-10  Jim Meyering  <meyering@lucent.com>
84333
84334         * lib/getopt.c (_getopt_internal): Update from glibc.
84335
84336 2000-09-09  Jim Meyering  <meyering@lucent.com>
84337
84338         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84339         think it should be used as a general replacement for isascii.
84340         * lib/fnmatch.c: Likewise.
84341         * lib/mbswidth.c: Likewise
84342         * lib/regex.c: Likewise.
84343
84344         Don't use atoi.
84345         * lib/userspec.c: Include sys/param.h and limits.h.
84346         Include xstrtol.h.
84347         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84348         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84349         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84350         UID, GID.  Check range.
84351
84352 2000-09-06  Jim Meyering  <meyering@lucent.com>
84353
84354         * lib/getopt.c (_getopt_internal): Update from glibc.
84355
84356 2000-08-30  Jim Meyering  <meyering@lucent.com>
84357
84358         * lib/strftime.c: Merge in changes from GNU libc.
84359
84360 2000-08-26  Jim Meyering  <meyering@lucent.com>
84361
84362         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84363         * m4/fpending.m4: New file.
84364
84365 2000-08-26  Jim Meyering  <meyering@lucent.com>
84366
84367         * lib/closeout.c: Include "__fpending.h".
84368         (close_stdout_status): Return right away if there's nothing to flush.
84369
84370         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84371         * lib/__fpending.c: New file.
84372         * lib/__fpending.h: New file.
84373
84374 2000-08-20  Jim Meyering  <meyering@lucent.com>
84375
84376         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84377         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84378         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84379
84380 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84381
84382         Improve fileutils installation on systems where running
84383         programs (like install) can't be unlinked.
84384         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84385         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84386
84387 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84388
84389         Standardize on "memory exhausted" instead of "Memory exhausted"
84390         or "virtual memory exhausted".
84391         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84392         "virtual memory exhausted".
84393         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84394         our own message.
84395         * lib/userspec.c (parse_user_spec): Likewise.
84396         * lib/bumpalloc.h: comment fix
84397         * lib/same.c, userspec.c: Include xalloc.h.
84398
84399         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84400         not char *const and pointing to a constant array.
84401         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84402         (xrealloc): Comment fix.
84403
84404         * lib/userspec.c (parse_user_spec):
84405         Don't translate a message until just before returning,
84406         to avoid unnecessary translation.
84407
84408 2000-08-07  Jim Meyering  <meyering@lucent.com>
84409
84410         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84411         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84412         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84413         getgroups.c, gethostname.c, getopt.h, group-member.c,
84414         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84415         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84416         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84417         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84418         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84419         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84420         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84421         yesno.c: Back out Copyright date changes for each file with no change
84422         this year.  This eases coordination with other programs using the same
84423         source code modules.  From Paul Eggert.
84424
84425 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84426
84427         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84428         not char, for compatibility with glibc 2.1.3 strftime.c.
84429
84430 2000-08-03  Greg McGary  <greg@mcgary.org>
84431
84432         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84433         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84434         (EXTEND_BUFFER): Use them.
84435
84436 2000-08-01  Jim Meyering  <meyering@lucent.com>
84437
84438         * lib/dirname.c (ISSLASH): Define.
84439         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84440         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84441         both `\' and `/' may be use as path separators.
84442         Based on a patch from Prashant TR.
84443
84444 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84445
84446         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84447         slot vector a constant, since it might get modified.
84448
84449 2000-07-31  Jim Meyering  <meyering@lucent.com>
84450
84451         * lib/xmalloc.c: Use `virtual memory exhausted', not
84452         `Memory exhausted'.
84453         * lib/obstack.c (print_and_abort): Likewise.
84454
84455 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84456
84457         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84458         buffer, so that the caller can always quote one small
84459         component of a "memory exhausted" message in slot 0.
84460         From a suggestion by Jim Meyering.
84461
84462 2000-07-30  Jim Meyering  <meyering@lucent.com>
84463
84464         * lib/makepath.c (make_path): Quote the other instance, too.
84465
84466         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84467         (STATIC_BUF_SIZE): Define.
84468         (quotearg_n_options): Use only statically allocated storage when
84469         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84470         than STATIC_BUF_SIZE.
84471
84472 2000-07-29  Jim Meyering  <meyering@lucent.com>
84473
84474         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84475         * lib/dirname.c (dir_name): Likewise.
84476
84477         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84478         `/'.
84479
84480         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84481         (dir_name): Assert that there are no trailing slashes.
84482
84483 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84484
84485         * lib/mbswidth.h (mbswidth): Add a flags argument.
84486         (mbswidth): New declaration.
84487         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84488         * lib/mbswidth.c (mbswidth): Add a flags argument.
84489         (mbsnwidth): New function.
84490
84491 2000-07-24  Jim Meyering  <meyering@lucent.com>
84492
84493         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84494
84495 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84496
84497         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84498
84499 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84500
84501         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84502         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84503         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84504         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84505         invoke multibyte primitives.
84506
84507 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84508
84509         * lib/quotearg.c:
84510         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84511         so that mbstate_t is always defined.
84512
84513         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84514         be 1 in at least one GCC installation, and this configuration
84515         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84516         performance on hosts that have mbrtowc but have only unibyte
84517         locales, but I assume these hosts are rare.
84518
84519 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84520
84521         * lib/mbswidth.c (_XOPEN_SOURCE):
84522         Don't define; this causes problems on Solaris 7.
84523         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84524
84525 2000-07-23  Jim Meyering  <meyering@lucent.com>
84526
84527         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84528         too: getgrgid, getpwuid, getuid.
84529
84530 2000-07-23  Jim Meyering  <meyering@lucent.com>
84531
84532         * lib/basename.c (base_name): Add an assertion.
84533
84534 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84535
84536         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84537         shadow its mbsinit function.
84538
84539 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84540
84541         * lib/mbswidth.h: New file.
84542         * lib/mbswidth.c: New file.
84543         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84544         (noinst_HEADERS): Add mbswidth.h.
84545
84546 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84547
84548         * lib/config.charset: Add support for FreeBSD. Improve support for
84549         HP-UX and IRIX 6.
84550
84551 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84552
84553         * m4/mbswidth.m4: New file.
84554         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84555
84556 2000-07-15  Jim Meyering  <meyering@lucent.com>
84557
84558         * lib/makepath.c: Include quote.h.
84559         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84560         corresponding argument in a `quote (...)' call.
84561         Give better diagnostics.
84562
84563         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84564         (noinst_HEADERS): Add quote.h.
84565
84566         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84567         from tar's src/misc.c.
84568         * lib/quote.h: New file.  Prototypes for same.
84569
84570 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84571
84572         From a suggestion by Bruno Haible.
84573         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84574         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84575         to decide whether to define the BeOS workaround macro;
84576         this adjusts to the change to AC_MBSTATE_T.
84577
84578 2000-07-14  Jim Meyering  <meyering@lucent.com>
84579
84580         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84581         jm_AC_TYPE_UINTMAX_T.
84582
84583 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84584
84585         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84586
84587         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84588         quotearg_buffer_restyled): Add support for
84589         clocale_quoting_style.  Undo previous change to
84590         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84591         and "{RIGHT QUOTATION MARK}" msgids.
84592
84593 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84594
84595         From a suggestion by Bruno Haible.
84596         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84597         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84598         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84599         and mbstate_t, to a single-part test that simply defines mbstate_t.
84600         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84601         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84602
84603 2000-07-10  Jim Meyering  <meyering@lucent.com>
84604
84605         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84606
84607         * m4/gnu-source.m4: Output to confdefs.h directly.
84608         Suggestion from Akim Demaille.
84609
84610 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84611
84612         The old behavior of quoting `like this' doesn't look good with
84613         newer, ISO-style fonts.  See:
84614         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84615
84616         Instead, quote "like this" by default.  Let the translator
84617         tailor the locale-specific quoting behavior by providing
84618         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84619
84620         * lib/quotearg.c (N_): New macro.
84621         (gettext_default): New function.
84622         (quotearg_buffer_restyled): Use
84623         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84624         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84625
84626 2000-07-09  Jim Meyering  <meyering@lucent.com>
84627
84628         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84629         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84630
84631         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84633
84634 2000-07-09  Jim Meyering  <meyering@lucent.com>
84635
84636         * lib/Most files: Update copyright dates to include 2000.
84637
84638 2000-07-08  Jim Meyering  <meyering@lucent.com>
84639
84640         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84641         if not defined.
84642         (xgethostname): Remove now-unnecessary #ifdef.
84643         Move declaration of `err' into loop where it's used.
84644
84645 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84646         and Bruno Haible  <haible@clisp.cons.org>
84647
84648         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84649         only if the test for an object-type mbstate_t fails.  This
84650         prevents us from mistakenly reporting that mbstate_t is a
84651         system object type after we "#define mbstate_t int" to work
84652         around its lack.
84653
84654 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84655         and Bruno Haible  <haible@clisp.cons.org>
84656
84657         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84658
84659 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84660
84661         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84662         to strerror_r.
84663         Include <ctype.h> for use of isalpha.
84664
84665 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84666
84667         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84668         by allocating a larger buffer. Test the gethostname return value for
84669         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84670         returns an error and ENAMETOOLONG isn't defined.
84671
84672 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84673
84674         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84675         dimension.
84676
84677 2000-07-04  Jim Meyering  <meyering@lucent.com>
84678
84679         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84680         of the deprecated AC_CHECKING.
84681
84682 2000-07-04  Jim Meyering  <meyering@lucent.com>
84683
84684         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84685         Reported by Bruno Haible.
84686
84687 2000-07-04  Jim Meyering  <meyering@lucent.com>
84688
84689         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84690         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84691         lacks mbrtowc.
84692
84693 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84694
84695         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84696         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84697
84698 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84699         and Bruno Haible  <haible@clisp.cons.org>
84700
84701         * lib/quotearg.c (mbrtowc):
84702         Assign to *pwc, and return 1 only if result is nonzero.
84703         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84704
84705 2000-07-03  Jim Meyering  <meyering@lucent.com>
84706
84707         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84708
84709 2000-07-03  Jim Meyering  <meyering@lucent.com>
84710
84711         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84712         This is necessary to get a definition of e.g., UTMP_FILE on
84713         HP-UX 10.20.
84714         From Bob Proulx.
84715
84716 2000-07-02  Jim Meyering  <meyering@lucent.com>
84717
84718         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84719
84720         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84721         AC_LIBOBJ(function_name).
84722         * m4/chown.m4: Likewise.
84723         * m4/fnmatch.m4: Likewise.
84724         * m4/ftruncate.m4: Likewise.
84725         * m4/getgroups.m4: Likewise.
84726         * m4/getline.m4: Likewise.
84727         * m4/group-member.m4: Likewise.
84728         * m4/jm-macros.m4: Likewise.
84729         * m4/lstat.m4: Likewise.
84730         * m4/malloc.m4: Likewise.
84731         * m4/memcmp.m4: Likewise.
84732         * m4/nanosleep.m4: Likewise.
84733         * m4/putenv.m4: Likewise.
84734         * m4/realloc.m4: Likewise.
84735         * m4/regex.m4: Likewise.
84736         * m4/stat.m4: Likewise.
84737         * m4/strftime.m4: Likewise.
84738
84739 2000-07-02  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/quotearg.c (mbstate_t): Don't define here.
84742
84743 2000-07-02  Jim Meyering  <meyering@lucent.com>
84744
84745         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84746
84747 2000-07-01  Jim Meyering  <meyering@lucent.com>
84748
84749         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84750
84751 2000-07-01  Jim Meyering  <meyering@lucent.com>
84752
84753         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84754         problem.
84755
84756 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84757
84758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84759         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84760
84761 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84762
84763         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84764         per change in ../m4/ls-mntd-fs.m4.
84765         (read_filesystem_list): Ignore symbolic links.
84766
84767 2000-06-29  Jim Meyering  <meyering@lucent.com>
84768
84769         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84770         for declaration of strcmp.
84771
84772         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84773
84774         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84775         Avoid warning by casting result to `char *' to remove `const'.
84776
84777 2000-06-28  Jim Meyering  <meyering@lucent.com>
84778
84779         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84780         included by quotearg.c, for which we perform this test.  From
84781         Bruno Haible.
84782
84783 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84784
84785         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84786         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84787         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84788
84789 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84790
84791         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84792
84793 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84794
84795         savedir now sets errno on failure and invokes xmalloc to get memory.
84796         Fix a couple of other minor bugs while we're at it.
84797
84798         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84799         (NAMLEN): Remove macro.
84800         (malloc, realloc): Remove decls.
84801         (stpcpy): Likewise.
84802         ("xalloc.h"): Include.
84803         (NAME_SIZE_DEFAULT): New macro.
84804         (savedir): Use xmalloc / xrealloc to allocate memory.
84805         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84806         Skip "" directory entries.
84807         Use strlen to calculate directory entry length, since the old method
84808         is rarely used these days and isn't worth supporting.
84809         Don't use a pointer after freeing it.
84810         Check for integer overflow when calculating allocation size.
84811         Use memcpy to copy entries, instead of stpcpy.
84812         Set errno properly when returning NULL.
84813         Check for readdir error.
84814
84815 2000-06-26  Jim Meyering  <meyering@lucent.com>
84816
84817         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84818
84819 2000-06-25  Jim Meyering  <meyering@lucent.com>
84820
84821         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84822         Linux header bug when _XOPEN_SOURCE is defined to 500.
84823
84824 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84825
84826         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84827         deficiency.
84828
84829 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84830
84831         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84832         Include xalloc.h.
84833         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84834
84835 2000-06-24  Jim Meyering  <meyering@lucent.com>
84836
84837         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84838         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84839         for which strerror does return char*, but which lacks a conveniently
84840         accessible declaration of the function.  If the compile-test says
84841         strerror_r doesn't work, then resort to a `run'-test that works on
84842         BeOS and segfaults on DEC Unix.
84843
84844 2000-06-24  Jim Meyering  <meyering@lucent.com>
84845
84846         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84847
84848 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84849
84850         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84851         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84852
84853 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84854
84855         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84856         (mbrtowc, mbstate_t): Define substitutes if
84857         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84858         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84859         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84860
84861 2000-06-23  Jim Meyering  <meyering@lucent.com>
84862
84863         * m4/afs.m4: Add missing AC_MSG_RESULT.
84864         Reported by Bruno Haible.
84865
84866         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84867         Suggestion from Bruno Haible.
84868
84869 2000-06-23  Jim Meyering  <meyering@lucent.com>
84870
84871         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84872
84873 2000-06-21  Jim Meyering  <meyering@lucent.com>
84874
84875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84876
84877 2000-06-21  Jim Meyering  <meyering@lucent.com>
84878
84879         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84880         (noinst_HEADERS): Add getstr.h.
84881
84882         * lib/getline.c (getstr): Move into a separate file.
84883         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84884         the following changes: new parameter, delim2; both delim[12]
84885         parameters have type `int', not `char'.  The latter would lose
84886         with 8-bit delimiters.
84887         * lib/getstr.h: New file.
84888
84889 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84890
84891         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84892         than 1024, return a memory chunk of least possible size, instead
84893         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84894         Use free/xmalloc instead of xrealloc to avoid copying for very long
84895         paths.
84896
84897 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84898
84899         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84900         the empty string.
84901
84902 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84903
84904         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84905         address, not strdup.  Include <stdlib.h> and don't declare free().
84906
84907 2000-06-19  Jim Meyering  <meyering@lucent.com>
84908
84909         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84910
84911 2000-06-18  Jim Meyering  <meyering@lucent.com>
84912
84913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84914
84915         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84916         `checking whether...' message to be consistent with that of the
84917         lstat test.
84918
84919 2000-06-18  Jim Meyering  <meyering@lucent.com>
84920
84921         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84922         Besides, these days every porting target provides a mkdir function.
84923
84924         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84925         needed. (this snippet comes from src/system.h).
84926
84927 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84928
84929         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84930
84931 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84932
84933         * lib/human.c (adjust_value): New function.
84934         (human_readable_inexact): Apply rounding style even when
84935         printing approximate values.
84936
84937 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84938
84939         * lib/human.c (human_readable_inexact): Allow an input block
84940         size that is not a multiple of the output block size, and vice versa.
84941         Reported by Piergiorgio Sartor.
84942
84943 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84944
84945         * lib/getdate.y (get_date): Apply relative times after time
84946         zone indicator, not before.  Reported by Todd A. Jacobs.
84947
84948 2000-06-13  Jim Meyering  <meyering@lucent.com>
84949
84950         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84951
84952         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84953
84954 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84955
84956         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84957
84958 2000-06-12  Jim Meyering  <meyering@lucent.com>
84959
84960         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84961         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84962         optional argument.
84963         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84964         the optional argument, `lib'.
84965
84966 2000-06-08  Jim Meyering  <meyering@lucent.com>
84967
84968         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84969
84970 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84971
84972         Rewrite largefile configuration so that we don't need to run
84973         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84974         AC_CANONICAL_HOST in configure.in -- jmm]
84975
84976         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84977         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84978         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84979         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84980         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84981         All uses changed.
84982         Instead of inspecting the output of getconf, try to compile the
84983         test program without and with the macro definition.
84984         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84985         for getconf.  Instead, check for the needed flags by compiling
84986         test programs.
84987
84988 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84989
84990         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84991
84992 2000-06-04  Jim Meyering  <meyering@lucent.com>
84993
84994         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84995         SunOS 4.1.4 for which gid_t is an unsigned type.
84996
84997 2000-06-03  Jim Meyering  <meyering@lucent.com>
84998
84999         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85000         now that autoconf requires that.
85001
85002         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85003         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85004         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85005
85006 2000-06-03  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85009
85010 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85011
85012         * m4/glibc21.m4: New file.
85013         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85014
85015 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85016
85017         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85018         newer, don't install charset.alias.
85019         * lib/config.charset: Change the Linux/glibc rules so they become empty
85020         on glibc-2.1 or newer.
85021
85022 2000-06-02  Jim Meyering  <meyering@lucent.com>
85023
85024         * lib/mountlist.c: Back out last change.  Instead, do this...
85025         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85026         me_dummy member using the same `ignore'-testing code.
85027         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85028         fs_type strings.
85029         From Mark D. Roth.
85030
85031 2000-05-29  Jim Meyering  <meyering@lucent.com>
85032
85033         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85034         mounts with the `ignore' attribute.  Based on a patch from
85035         Mark D. Roth.
85036
85037 2000-05-28  Jim Meyering  <meyering@lucent.com>
85038
85039         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85040         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85041         * m4/stat.m4: Likewise.
85042         * m4/lstat.m4: Likewise.
85043         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85044
85045         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85046         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85047
85048 2000-05-26  Jim Meyering  <meyering@lucent.com>
85049
85050         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85051
85052 2000-05-24  Jim Meyering  <meyering@lucent.com>
85053
85054         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85055         autoconf requires that.
85056         * m4/lib-check.m4: Likewise.
85057         * m4/jm-macros.m4: Likewise.
85058         * m4/strftime.m4: Likewise.
85059
85060         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85061         AC_CHECK_DECLS, now that autoconf requires that.
85062
85063 2000-05-22  Jim Meyering  <meyering@lucent.com>
85064
85065         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85066         * m4/lstat.m4: Likewise.
85067
85068 2000-05-22  Jim Meyering  <meyering@lucent.com>
85069
85070         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85071
85072 2000-05-20  Jim Meyering  <meyering@lucent.com>
85073
85074         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85075         (jm_PREREQ): Use it.
85076
85077 2000-05-18  Jim Meyering  <meyering@lucent.com>
85078
85079         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85080         back, too, since it may have been modified by allocate_entry.
85081         (hash_delete): Rewrite to use neither the assignment operator
85082         nor the comma operator in an if-expression.
85083
85084 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85085
85086         * lib/closeout.c:
85087         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85088         Remove; no longer needed.
85089         "quotearg.h": Add include.
85090         (file_name): Do not bother to explicitly initialize to NULL; it's less
85091         efficient on some hosts.
85092         (close_stdout_status): Remove test as to whether stdout was already
85093         closed; it breaks for the case "echo x | sort >&-".
85094         Quote file name colons.
85095         Do not assume that _("write error") lacks format strings.
85096
85097 2000-05-15  Jim Meyering  <meyering@lucent.com>
85098
85099         * lib/version-etc.c (version_etc_copyright): Update the copyright
85100         string used in all --version output.
85101
85102 2000-05-14  Jim Meyering  <meyering@lucent.com>
85103
85104         * lib/closeout.c (close_stdout_set_file_name): New function.
85105         (close_stdout_status): Use new file-scoped global.
85106         Return right away if fstat says the stdout file descriptor is invalid.
85107         * lib/closeout.h (close_stdout_set_file_name): Declare.
85108
85109 2000-05-10  Jim Meyering  <meyering@lucent.com>
85110
85111         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85112         (close_stdout_set_status): New function.
85113         * lib/closeout.h (close_stdout_set_status): Declare.
85114
85115 2000-05-09  Jim Meyering  <meyering@lucent.com>
85116
85117         * m4/gettext.m4: Rename this...
85118         * m4/libintl.m4: ...to this.
85119
85120 2000-05-08  Jim Meyering  <meyering@lucent.com>
85121
85122         * lib/long-options.c: Don't include closeout.h.
85123         (parse_long_options): Don't call close_stdout for --version.
85124
85125 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85126
85127         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85128         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85129         2.1.3 bug.  This avoids a clash when files like regex.c define
85130         _GNU_SOURCE.
85131
85132 2000-05-06  Jim Meyering  <meyering@lucent.com>
85133
85134         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85135         (AC_REPLACE_FUNCS): Add strnlen.
85136
85137         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85138         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85139
85140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85141         AC_SEARCH_LIBS call for nanosleep.
85142         (LIB_NANOSLEEP): Set and AC_SUBST.
85143
85144 2000-05-06  Jim Meyering  <meyering@lucent.com>
85145
85146         * lib/strnlen.c: Undefine __strnlen and strnlen.
85147         [!weak_alias]: Define __strnlen to strnlen.
85148
85149         * lib/atexit.c: New file, from libiberty.
85150
85151 2000-05-06  Jim Meyering  <meyering@lucent.com>
85152
85153         * lib/closeout.c (close_stdout_status): Also check for errors on the
85154         stderr stream.
85155
85156 2000-05-05  Jim Meyering  <meyering@lucent.com>
85157
85158         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85159         AC_SEARCH_LIBS call for clock_gettime.
85160         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85161
85162         * m4/search-libs.m4: Update from autoconf.
85163
85164         su doesn't work on Solaris 2.6.
85165         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85166         <shadow.h>.  Reported by Dragos Harabor.
85167
85168 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85169
85170         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85171         memcpy instead of xmalloc, xrealloc, path_concat.
85172         (locale_charset): Treat empty environment variables as absent.
85173         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85174
85175 2000-05-04  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/getopt.c: Update from glibc.
85178         * lib/obstack.c: Likewise.
85179         * lib/obstack.h: Likewise.
85180         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85181         file
85182
85183         * lib/regex.h: Likewise.
85184         * lib/strndup.c: Likewise.
85185         * lib/strnlen.c: New file, from glibc.
85186
85187 2000-05-03  Jim Meyering  <meyering@lucent.com>
85188
85189         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85190
85191 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85192
85193         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85194         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85195         compile-time test, rather than inspecting host and OS, to
85196         decide whether to define _LARGEFILE_SOURCE.
85197
85198 2000-05-01  Jim Meyering  <meyering@lucent.com>
85199
85200         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85201
85202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85203         Based on a patch from Bruno Haible.
85204
85205 2000-05-01  Jim Meyering  <meyering@lucent.com>
85206
85207         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85208
85209 2000-04-29  Jim Meyering  <meyering@lucent.com>
85210
85211         * lib/path-concat.c: Declare strdup only if it's not defined.
85212         * lib/canon-host.c: Likewise.
85213
85214 2000-04-28  Jim Meyering  <meyering@lucent.com>
85215
85216         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85217         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85218         is included first, then limits.h is included by locale.h by libintl.h.
85219         From John David Anglin.
85220
85221 2000-04-25  Jim Meyering  <meyering@lucent.com>
85222
85223         * lib/makepath.c (S_IRWXUGO): Define.
85224         (make_path): Always perform explicit chmod if MODE specifies any
85225         of the `special' permission bits.  Prompted by a bug report against
85226         install from Mate Wierdl and Joost van Baal.
85227
85228 2000-04-18  Jim Meyering  <meyering@lucent.com>
85229
85230         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85231         (jm_PREREQ): Use it.
85232
85233 2000-04-18  Jim Meyering  <meyering@lucent.com>
85234
85235         * lib/README: New file.
85236
85237         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85238         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85239
85240 2000-04-17  Jim Meyering  <meyering@lucent.com>
85241
85242         Get it right :-)
85243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85244         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85245         Suggestion from Akim Demaille.
85246
85247 2000-04-17  Jim Meyering  <meyering@lucent.com>
85248
85249         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85250         the definition of it to rpl_strftime also defined-away the system's
85251         declaration.
85252
85253 2000-04-15  Jim Meyering  <meyering@lucent.com>
85254
85255         Use `C' to denote so-called `contiguous' files, the same way
85256         that tar does.
85257         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85258         (ftypelet): Use S_ISCTG.
85259         From Michael Deutschmann.
85260
85261 2000-04-14  Jim Meyering  <meyering@lucent.com>
85262
85263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85264         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85265         clobbered.
85266
85267 2000-04-14  Jim Meyering  <meyering@lucent.com>
85268
85269         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85270
85271 2000-04-13  Jim Meyering  <meyering@lucent.com>
85272
85273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85274         AH_VERBATIM to insert required #ifndef into config.h.in.
85275         Suggestion from Akim Demaille.
85276
85277 2000-04-12  Jim Meyering  <meyering@lucent.com>
85278
85279         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85280         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85281         Christian Krackowizer.
85282
85283         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85284         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85285         (AC_SYS_LARGEFILE): Require.
85286         (AM_C_PROTOTYPES): Require.
85287
85288 2000-04-08  Jim Meyering  <meyering@lucent.com>
85289
85290         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85291         names don't conflict.  Reported by Eli Zaretskii.
85292
85293 2000-04-07  Jim Meyering  <meyering@lucent.com>
85294
85295         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85296         sys/types.h, to work around system header problems on AIX 3.2.5.
85297         From Bruno Haible.
85298
85299 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85300
85301         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85302         bug.  Deal with the different error behavior of Irix iconv.
85303
85304 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85305
85306         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85307         IRIX if the installer said otherwise.
85308
85309 2000-04-05  Jim Meyering  <meyering@lucent.com>
85310
85311         Portability tweaks required for ultrix4.3.
85312         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85313         (jm_CHECK_DECLS): Add getutent to the list of functions.
85314         (_jm_DECL_HEADERS): Add utmpx.h.
85315         From John David Anglin.
85316
85317         * m4/strftime.m4: Back out the 2000-04-02 change.
85318         Instead of that change, simply undefine putenv in the test program.
85319
85320 2000-04-05  Jim Meyering  <meyering@lucent.com>
85321
85322         Portability tweaks required for ultrix4.3.
85323         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85324         getutent.
85325         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85326         * lib/canon-host.c: Declare strdup.
85327         * lib/path-concat.c: Likewise.
85328         From John David Anglin.
85329
85330 2000-04-04  Jim Meyering  <meyering@lucent.com>
85331
85332         Be more DOS 8.3-friendly.
85333         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85334         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85335         * lib/Makefile.am: Reflect renaming.
85336         Reported by Eli Zaretskii.
85337
85338         Use a temporary file name that won't clash with `charset.alias'
85339         in the DOS 8.3 name space.
85340         * lib/Makefile.am (charset_tmp): Define.
85341         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85342         (uninstall-local): Likewise.
85343         Reported by Eli Zaretskii.
85344
85345 2000-04-03  Jim Meyering  <meyering@lucent.com>
85346
85347         * m4/gettext.m4: Fix typo in comment.
85348
85349         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85350         textutils/configure.in).  Suggestion from Paul Eggert.
85351         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85352
85353 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85354
85355         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85356         variable in the shell rather than using putenv, which isn't
85357         portable.  This avoids the configure-time inter-test dependency
85358         on the potentially-renamed putenv function.
85359
85360 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85361
85362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85363         before checking struct stat.st_blksize, so that
85364         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85365
85366 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85367
85368         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85369         since strftime.c uses HAVE_STRFTIME to decide whether to use
85370         the underlying strftime.
85371
85372 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85373
85374         * lib/time/strftime.c (my_strftime): Make sure we call the system
85375         strftime, not ourselves, when invoking the underlying strftime.
85376
85377 2000-03-24  Jim Meyering  <meyering@lucent.com>
85378
85379         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85380         (charset_alias): Define.
85381         (install-exec-local): Factor out common code.
85382         (uninstall-local): Split lines longer than 80.
85383         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85384         (SUFFIXES): Define.
85385         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85386         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85387
85388 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85389
85390         * lib/config.charset: Output a line containing "Packages using this
85391         file".
85392         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85393         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85394         ref-del.sed): New rules.
85395
85396 2000-03-17  Jim Meyering  <meyering@lucent.com>
85397
85398         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85399         Otherwise, include <strings.h>
85400
85401 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85402
85403         * lib/unicodeio.c (utf8_wctomb): New function.
85404         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85405         format instead of in UCS-4 with platform dependent endianness.
85406
85407 2000-03-10  Jim Meyering  <meyering@lucent.com>
85408
85409         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85410         From Marco Franzen.
85411
85412 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85413
85414         * lib/savedir.c (savedir): Work even if directory size is
85415         negative; this can happen with some screwy NFS configurations.
85416
85417 2000-03-06  Jim Meyering  <meyering@lucent.com>
85418
85419         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85420         if it's NULL (because we ran out of memory).  From Bruno Haible.
85421
85422 2000-03-05  Jim Meyering  <meyering@lucent.com>
85423
85424         * lib/localcharset.c ("path-concat.h"): Include.
85425         (get_charset_aliases): Use path_concat instead of ANSI string
85426         concatenation.
85427
85428         * lib/unicodeio.h (PARAMS): Define.
85429         Use it to guard prototype.
85430
85431 2000-03-04  Jim Meyering  <meyering@lucent.com>
85432
85433         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85434         for lib/localcharset.c.
85435
85436 2000-03-04  Jim Meyering  <meyering@lucent.com>
85437
85438         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85439         installing into it.
85440         (uninstall-local): Uncomment this rule so `make distcheck' works
85441         once again.
85442
85443         * lib/unicodeio.c (<errno.h>): Include it.
85444         (errno): Declare if not defined.
85445
85446         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85447
85448         * lib/config.charset: New version, incorporating remarks from a linux
85449         i18n mailing list.  From Bruno Haible.
85450
85451 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85452
85453         * m4/codeset.m4: New file.
85454         * m4/iconv.m4: New file.
85455         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85456
85457 2000-03-03  Jim Meyering  <meyering@lucent.com>
85458
85459         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85460
85461 2000-03-02  Jim Meyering  <meyering@lucent.com>
85462
85463         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85464         the messages come out on separate lines.
85465
85466         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85467         rather than jm_CHECK_DECLARATIONS.
85468         * m4/decl.m4: Remove now-unused file.
85469
85470         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85471         geteuid.
85472
85473 2000-03-02  Jim Meyering  <meyering@lucent.com>
85474
85475         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85476
85477 2000-03-01  Jim Meyering  <meyering@lucent.com>
85478
85479         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85480         * lib/unicodeio.c: Likewise.
85481
85482 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85483
85484         * lib/config.charset: New file.
85485         * lib/localcharset.c: New file.
85486         * lib/unicodeio.h, lib/unicodeio.c: New files.
85487         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85488         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85489         (noinst_HEADERS): Add unicodeio.h.
85490         (all-local, install-exec-local, charset.alias): New targets.
85491
85492 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85493
85494         * lib/quotearg.c (ALERT_CHAR): New macro.
85495         (quotearg_buffer_restyled): Use it.
85496
85497 2000-02-27  Jim Meyering  <meyering@lucent.com>
85498
85499         * m4/check-decl.m4: Add getenv to the list.
85500
85501 2000-02-27  Jim Meyering  <meyering@lucent.com>
85502
85503         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85504         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85505
85506         * lib/backupfile.c: Guard inclusion of stdlib.h with
85507         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85508         Declare malloc if needed.
85509
85510         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85511         `#ifndef HAVE_DECL..'
85512         now that autoconf always defines the HAVE_DECL_ symbols.
85513         * lib/human.c: Likewise.
85514         * lib/same.c: Likewise.
85515         * lib/strtoumax.c: Likewise.
85516
85517         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85518         declaration check was not run.
85519         * lib/hash.c: Likewise.
85520         * lib/human.c: Likewise.
85521         * lib/same.c: Likewise.
85522         * lib/strtoumax.c: Likewise.
85523
85524         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85525         `.', then first look up the entire `.'-containing string as a login
85526         name.
85527
85528 2000-02-23  Jim Meyering  <meyering@lucent.com>
85529
85530         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85531         in place of my hack.
85532
85533 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85534
85535         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85536         (textint): New typedef.
85537         (parser_control): Member year changed from int to textint.
85538         All uses changed.
85539         (YYSTYPE): Removed; replaced by %union with int and textint members.
85540         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85541         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85542         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85543         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85544         (date, number, to_year): Use width of number in digits, not its value,
85545         to determine whether it's a 2-digit year, or a 2-digit time.
85546         (yylex): Store number of digits of numeric tokens.
85547         Reported by John Kendall.
85548
85549         (parser_control): Changed from struct parser_control to typedef (for
85550         consistency).  All uses changed.
85551
85552         (tID): Removed; not used.
85553         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85554
85555 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85556
85557         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85558         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85559
85560 2000-02-12  Jim Meyering  <meyering@lucent.com>
85561
85562         * lib/userspec.c (ISDIGIT): Define it.
85563         (isdigit): Remove definition.
85564         (is_number): Use ISDIGIT, not isdigit.
85565         <libintl.h>: Include.
85566         (_ and N_): Define.
85567         (parse_user_spec): Mark translatable strings.
85568
85569 2000-02-10  Jim Meyering  <meyering@lucent.com>
85570
85571         With these changes, nanosleep.[ch] are finally enough like the other
85572         lib/* replacement files to compile on a few more losing systems.
85573
85574         * lib/nanosleep.h: Don't include config.h.
85575         Remove prototype from declaration of nanosleep.
85576         (PARAMS): Remove now-unneeded definition.
85577         * lib/nanosleep.c: #undef nanosleep.
85578         (rpl_nanosleep): Rename from nanosleep.
85579
85580 2000-02-10  Jim Meyering  <meyering@lucent.com>
85581
85582         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85583         gnu_nanosleep to rpl_nanosleep.
85584
85585 2000-02-09  Jim Meyering  <meyering@lucent.com>
85586
85587         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85588         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85589
85590 2000-02-08  Akim Demaille  <akim@epita.fr>
85591
85592         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85593         `[' and `]' and remove uses of `changequote'.
85594         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85595         (AC_SYS_LARGEFILE): Likewise.
85596         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85597         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85598         of changequote.
85599         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85600         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85601         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85602         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85603
85604 2000-02-05  Jim Meyering  <meyering@lucent.com>
85605
85606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85607         Remove explicit use of AC_HEADER_TIME.  It is required by
85608         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85609         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85610         in autoconf whereby the expansion of the latter ended up preceding
85611         the expansion of its prerequisite, AC_HEADER_TIME.
85612         Reported by Volker Borchert.
85613
85614 2000-02-03  Jim Meyering  <meyering@lucent.com>
85615
85616         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85617
85618 2000-02-03  Jim Meyering  <meyering@lucent.com>
85619
85620         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85621         rather than with `#if HAVE_UTMPNAME'.
85622
85623 2000-02-02  Jim Meyering  <meyering@lucent.com>
85624
85625         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85626         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85627         Reported by Eli Zaretskii.
85628
85629 2000-02-01  Jim Meyering  <meyering@lucent.com>
85630
85631         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85632
85633 2000-01-31  Jim Meyering  <meyering@lucent.com>
85634
85635         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85636         functions.  Add the time.h and sys/time.h headers along with the
85637         AC_REQUIRE'ment of AC_HEADER_TIME.
85638
85639 2000-01-31  Jim Meyering  <meyering@lucent.com>
85640
85641         * lib/nanosleep.h (nanosleep): Guard declaration with
85642         `#if ! HAVE_DECL_NANOSLEEP'.
85643         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85644         the declaration in that vendor's sys/timers.h.
85645         Reported by Christian Krackowizer.
85646
85647         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85648         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85649         (ISPRINT): Likewise.
85650         Reported by Tom Tromey.
85651
85652 2000-01-30  Jim Meyering  <meyering@lucent.com>
85653
85654         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85655
85656         * m4/prereq.m4 (utmp_includes): Define.
85657         Check for ut_user and ut_name members in both struct utmpx
85658         and struct utmp.
85659
85660 2000-01-30  Jim Meyering  <meyering@lucent.com>
85661
85662         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85663         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85664         header files where only utmpx.ut_user is declared.
85665
85666         * lib/readutmp.h (UT_USER): Define.
85667
85668 2000-01-29  Jim Meyering  <meyering@lucent.com>
85669
85670         * m4/lib-check.m4: New file containing library-related checks from
85671         fileutils and sh-utils (textutils had none).
85672
85673 2000-01-28  Jim Meyering  <meyering@lucent.com>
85674
85675         * m4/perl.m4: Change format of warning message to look more like that
85676         from the missing script.  Suggestion from François Pinard.
85677
85678 2000-01-25  Jim Meyering  <meyering@lucent.com>
85679
85680         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85681         well as time.h in the compile check.
85682         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85683         Fix typo in cross-compiling case: s/yes/no/.
85684
85685 2000-01-23  Jim Meyering  <meyering@lucent.com>
85686
85687         * m4/jm-macros.m4: Move df-related tests here from
85688         fileutils/configure.in
85689
85690         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85691         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85692
85693         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85694         s/space/ac_fsusage_space/.
85695         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85696
85697         * m4/ftruncate.m4: New file (derived from part of
85698         fileutils/configure.in).
85699         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85700         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85701
85702         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85703         AC_SUBST these here, rather than just in sh-util/configure.in, so
85704         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85705         all the same.
85706         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85707         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85708         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85709         (AC_SUBST(POW_LIBM)): Likewise.
85710         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85711
85712 2000-01-23  Jim Meyering  <meyering@lucent.com>
85713
85714         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85715         obstack.c.
85716
85717 2000-01-22  Jim Meyering  <meyering@lucent.com>
85718
85719         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85720
85721         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85722
85723         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85724         configure.in
85725         (AC_CHECK_HEADERS): Likewise for sh-utils.
85726         (AC_CHECK_HEADERS): Likewise for textutils.
85727         Merge the three lists of headers.
85728
85729         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85730         from fileutils' configure.in.
85731
85732         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85733         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85734         check-decl.m4.
85735
85736         * m4/check-decl.m4: Use #if rather than #ifdef.
85737         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85738         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85739         (_jm_DECL_HEADERS): Define new function.
85740         (jm_CHECK_DECLARATIONS): Require it.
85741
85742 2000-01-22  Jim Meyering  <meyering@lucent.com>
85743
85744         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85745         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85746         Required for some AIX systems.  Reported by Christian Krackowizer.
85747         [TESTING] (main): New function.
85748
85749         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85750         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85751         letters.
85752
85753         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85754         iswprint.
85755
85756         * lib/strverscmp.c (ISDIGIT): Define.
85757         (strverscmp): Use ISDIGIT, not isdigit.
85758
85759 2000-01-19  Jim Meyering  <meyering@lucent.com>
85760
85761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85762         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85763         defines `struct timespec' in <sys/time.h>
85764
85765         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85766         Thanks to Akim for explaining.
85767
85768 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85769
85770         * lib/nanosleep.c (nanosleep):
85771         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85772         POSIX.1 doesn't require SA_INTERRUPT and some systems
85773         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85774         it's been part of POSIX.1 since day 1 (in 1988).
85775
85776 2000-01-17  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/interlock: Remove unused file.  Reported by François Pinard.
85779
85780 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85781
85782         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85783         alert, backslash, formfeed, and vertical tab unnecessarily in
85784         shell quoting style.
85785
85786 2000-01-16  Jim Meyering  <meyering@lucent.com>
85787
85788         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85789         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85790         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85791         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85792
85793 2000-01-16  Jim Meyering  <meyering@lucent.com>
85794
85795         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85796         because the latter didn't work.
85797
85798 2000-01-15  Jim Meyering  <meyering@lucent.com>
85799
85800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85801         (AC_REPLACE_FUNCS): Add memcpy and memset.
85802         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85803         Add strpbrk.
85804         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85805
85806 2000-01-12  Jim Meyering  <meyering@lucent.com>
85807
85808         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85809         (jm_PREREQ): Use it.
85810         (jm_PREREQ_READUTMP): New macro.
85811         (jm_PREREQ): Use it.
85812
85813 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85814
85815         Quote multibyte characters correctly.
85816         * m4/c-bs-a.m4: New file.
85817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85818         (jm_PREREQ): Use it.
85819
85820 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85821
85822         * m4/uintmax_t.m4: Port to autoconf 2.13.
85823
85824 2000-01-08  Jim Meyering  <meyering@ascend.com>
85825
85826         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85827         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85828
85829 2000-01-04  Jim Meyering  <meyering@ascend.com>
85830
85831         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85832         jm_STRUCT_DIRENT_D_TYPE.
85833         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85834         jm_STRUCT_DIRENT_D_INO.
85835         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85836         jm_STRUCT_UTIMBUF.
85837         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85838         renamings.
85839         * m4/utime.m4: Likewise.
85840
85841         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85842         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85843
85844 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85845
85846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85847         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85848
85849 2000-01-02  Jim Meyering  <meyering@ascend.com>
85850
85851         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85852         remember if this is necessary.
85853
85854 1999-12-26  Jim Meyering  <meyering@ascend.com>
85855
85856         * m4/jm-macros.m4: Use it here.
85857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85858
85859 1999-12-23  Jim Meyering  <meyering@ascend.com>
85860
85861         * m4/jm-macros.m4: Check for clock_gettime (moved from
85862         fileutils/configure.in)
85863         Check for gettimeofday.
85864
85865 1999-12-20  Jim Meyering  <meyering@ascend.com>
85866
85867         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85868         autoconf-2.14a-1999-12-20.
85869
85870 1999-12-19  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/lstat-slash.m4: New file.
85873         * m4/jm-macros.m4: Use the new macro:
85874         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85875
85876 1999-12-07  Jim Meyering  <meyering@ascend.com>
85877
85878         * m4/perl.m4: Require that File::Compare be available, too.
85879         Too many systems seem to lack it.
85880
85881         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85882         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85883
85884 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85885
85886         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85887         problem with the QNX 4.25 shell, which doesn't propagate exit
85888         status of failed commands inside shell assignments.
85889
85890 1999-11-17  Jim Meyering  <meyering@ascend.com>
85891
85892         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85893
85894 1999-11-07  Jim Meyering  <meyering@ascend.com>
85895
85896         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85897
85898 1999-11-06  Jim Meyering  <meyering@ascend.com>
85899
85900         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85901         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85902
85903 1999-11-05  Jim Meyering  <meyering@ascend.com>
85904
85905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85906         configure.in of textutils, fileutils, and sh-utils into this one
85907         (shared between those packages) file.
85908         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85909         AC_STRUCT_ST_BLKSIZE.
85910
85911 1999-11-03  Jim Meyering  <meyering@ascend.com>
85912
85913         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85914         of AC_CHECK_TYPE checks includes unistd.h.
85915         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85916         Suggestion from Akim Demaille.
85917
85918 1999-10-30  Jim Meyering  <meyering@ascend.com>
85919
85920         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85921         m4-quoted string.
85922         * m4/ls-mntd-fs.m4: Likewise.
85923         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85924         * m4/jm-winsz1.m4: Likewise.
85925
85926         * m4/const.m4: Remove file, since the fix made it into the experimental
85927         version of autoconf.
85928         * m4/mktime.m4: Likewise.
85929
85930         * m4/check-type.m4: Remove file, now that the latest version of
85931         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85932
85933         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85934         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85935         AC_CHECK_TYPE.
85936
85937 1999-10-04  Jim Meyering  <meyering@ascend.com>
85938
85939         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85940
85941 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85942
85943         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85944         2.95.1 bug with HP-UX 10.20.
85945
85946 1999-09-17  Jim Meyering  <meyering@ascend.com>
85947
85948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85949         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85950         due to missing strdup (against sh-utils-2.0).
85951
85952 1999-08-29  Jim Meyering  <meyering@ascend.com>
85953
85954         * m4/jm-macros.m4: Require jm_BISON.
85955         * m4/bison.m4: New file.
85956
85957 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85958
85959         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85960         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85961
85962 1999-08-05  Jim Meyering  <meyering@ascend.com>
85963
85964         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85965         to avoid conflicts with `conftest' on 8+3 filesystems.
85966         Suggestion from Eli Zaretskii.
85967
85968 1999-08-04  Jim Meyering  <meyering@ascend.com>
85969
85970         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85971         fileutils and sh-utils (textutils's getline test was inadequate).
85972         (AM_FUNC_GETLINE): Run this test.
85973         (AC_CHECK_FUNCS): Check for getdelim.
85974         Reported by Bob Proulx.
85975
85976 1999-08-02  Jim Meyering  <meyering@ascend.com>
85977
85978         * m4/jm-macros.m4: Add a comment.
85979
85980 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85981
85982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85983         <inttypes.h> defines strtoumax as a macro (and not as a
85984         function).
85985
85986 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85987
85988         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85989         that we can shift, multiply and divide unsigned long long
85990         values; Ultrix cc can't do it.
85991
85992 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85993
85994         * m4/mktime.m4: New file, which is a preview of what should appear
85995         in the next public autoconf release.
85996
85997 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85998
85999         * m4/lfs.m4: Remove this file.
86000         * m4/largefile.m4: New file.  It contains the old contents of
86001         lfs.m4, except that all names with prefix AC_LFS have been
86002         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86003         compatible with future autoconf versions.  Also, some minor m4
86004         quoting problems have been fixed.
86005
86006 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86007
86008         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86009         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86010         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86011         and simplify the shell code.
86012
86013 1999-08-01  Jim Meyering  <meyering@ascend.com>
86014
86015         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86016         m4.
86017
86018 1999-07-20  Jim Meyering  <meyering@ascend.com>
86019
86020         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86021
86022 1999-07-15  Jim Meyering  <meyering@ascend.com>
86023
86024         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86025
86026 1999-05-22  Jim Meyering  <meyering@ascend.com>
86027
86028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86029
86030 1999-05-20  Jim Meyering  <meyering@ascend.com>
86031
86032         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86033         Add a colon after each `then' in case $4 is empty.
86034
86035 1999-05-16  Jim Meyering  <meyering@ascend.com>
86036
86037         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86038
86039 1999-05-10  Jim Meyering  <meyering@ascend.com>
86040
86041         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86042
86043         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86044         AC_FUNC_MKTIME.
86045
86046 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86047
86048         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86049
86050 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86051
86052         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86053         not CPPFLAGS, so that linking works correctly in IRIX.
86054
86055 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86056
86057         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86058
86059 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86060
86061         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86062         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86064         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86065         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86066
86067         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86068
86069 1999-04-20  Jim Meyering  <meyering@ascend.com>
86070
86071         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86072         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86073         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86074
86075 1999-04-18  Jim Meyering  <meyering@ascend.com>
86076
86077         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86078         * m4/jm-macros.m4: Use it.
86079
86080 1999-04-06  Jim Meyering  <meyering@ascend.com>
86081
86082         * m4/strftime.m4: Remove test for %f.
86083
86084 1999-03-29  Jim Meyering  <meyering@ascend.com>
86085
86086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86087         superset of the AC_TYPE_* checks in the textutils, fileutils,
86088         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86089         AC_TYPE_PID_T.
86090
86091 1999-03-28  Jim Meyering  <meyering@ascend.com>
86092
86093         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86094         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86095         replaced e.g., in the *.sh files of the sh-utils.
86096
86097 1999-03-20  Jim Meyering  <meyering@ascend.com>
86098
86099         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86100         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86101         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86102
86103 1999-03-19  Jim Meyering  <meyering@ascend.com>
86104
86105         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86106
86107 1999-03-12  Jim Meyering  <meyering@ascend.com>
86108
86109         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86110
86111 1999-03-07  Jim Meyering  <meyering@ascend.com>
86112
86113         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86114         declared.
86115
86116 1999-02-17  Jim Meyering  <meyering@ascend.com>
86117
86118         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86119         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86120
86121 1999-02-07  Jim Meyering  <meyering@ascend.com>
86122
86123         * m4/group-member.m4: New file -- extracted from sh-utils'
86124         configure.in.
86125
86126         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86127         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86128
86129 1999-02-06  Jim Meyering  <meyering@ascend.com>
86130
86131         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86132         * m4/fnmatch.m4: Likewise.
86133         * m4/getgroups.m4: Likewise.
86134         * m4/lstat.m4: Likewise.
86135         * m4/malloc.m4: Likewise.
86136         * m4/putenv.m4: Likewise.
86137         * m4/realloc.m4: Likewise.
86138         * m4/regex.m4: Likewise.
86139         * m4/stat.m4: Likewise.
86140         * m4/strftime.m4: Likewise.
86141         Suggestion from Alain Magloire.
86142
86143         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86144         * m4/fnmatch.m4: Likewise.
86145         * m4/getgroups.m4: Likewise.
86146         * m4/getline.m4: Likewise.
86147         * m4/lstat.m4: Likewise.
86148         * m4/malloc.m4: Likewise.
86149         * m4/memcmp.m4: Likewise.
86150         * m4/putenv.m4: Likewise.
86151         * m4/realloc.m4: Likewise.
86152         * m4/regex.m4: Likewise.
86153         * m4/stat.m4: Likewise.
86154         * m4/strftime.m4: Likewise.
86155         Suggestion from Alain Magloire.
86156
86157         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86158         an argument.
86159
86160         * m4/regex.m4: Add a run-time Test for proper operation of
86161         re_compile_pattern.
86162
86163 1999-01-31  Jim Meyering  <meyering@ascend.com>
86164
86165         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86166
86167 1999-01-30  Jim Meyering  <meyering@ascend.com>
86168
86169         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86170
86171         * m4/jm-mktime.m4: Make this a wrapper around the official
86172         AM_FUNC_MKTIME rather than my private copy, now that the official one
86173         is up to date.
86174         * m4/mktime.m4: Remove file.
86175
86176         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86177         * m4/uptime.m4: Likewise.
86178         * m4/uintmax_t.m4: Likewise.
86179
86180 1999-01-28  Jim Meyering  <meyering@ascend.com>
86181
86182         * m4/jm-macros.m4: Use jm_AFS.
86183         * m4/afs.m4: New file (from fileutils' configure.in).
86184
86185         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86186         * m4/chown.m4: Likewise.
86187         * m4/d-ino.m4: Likewise.
86188         * m4/d-type.m4: Likewise.
86189         * m4/fnmatch.m4: Likewise.
86190         * m4/getgroups.m4: Likewise.
86191         * m4/gettext.m4: Likewise.
86192         * m4/jm-mktime.m4: Likewise.
86193         * m4/jm-winsz2.m4: Likewise.
86194         * m4/lcmessage.m4: Likewise.
86195         * m4/ls-mntd-fs.m4: Likewise.
86196         * m4/malloc.m4: Likewise.
86197         * m4/memcmp.m4: Likewise.
86198         * m4/putenv.m4: Likewise.
86199         * m4/realloc.m4: Likewise.
86200         * m4/st_mtim.m4: Likewise.
86201         * m4/strftime.m4: Likewise.
86202
86203 1999-01-16  Jim Meyering  <meyering@ascend.com>
86204
86205         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86206         (ARGMATCH_DIE_DECL): Define.
86207
86208 1999-01-12  Jim Meyering  <meyering@ascend.com>
86209
86210         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86211         Reported by Lars Hecking.
86212
86213 1999-01-10  Jim Meyering  <meyering@ascend.com>
86214
86215         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86216         gross kludge.
86217         * m4/inttypes_h.m4: Likewise.
86218         * m4/lstat.m4: Likewise.
86219         * m4/malloc.m4: Likewise.
86220         * m4/readdir.m4: Likewise.
86221         * m4/realloc.m4: Likewise.
86222         * m4/st_dm_mode.m4: Likewise.
86223         * m4/stat.m4: Likewise.
86224         * m4/utimbuf.m4: Likewise.
86225         * m4/utimes.m4: Likewise.
86226
86227         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86228         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86229         comments in config.h.in are meaningful.
86230
86231         * m4/jm-macros.m4: Require autoconf-2.13 here.
86232
86233         * m4/regex.m4: By default, don't use the included regex.c on systems
86234         with glibc 2.  Suggestion from Uli Drepper.
86235
86236 1999-01-02  Jim Meyering  <meyering@ascend.com>
86237
86238         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86239
86240 1998-12-18  Jim Meyering  <meyering@ascend.com>
86241
86242         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86243         Based on a suggestion from Lars Hecking.
86244
86245 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86246
86247         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86248
86249 1998-11-16  Jim Meyering  <meyering@ascend.com>
86250
86251         * m4/lfs.m4: Double-quote the `uname...` expression.
86252
86253 1998-11-14  Jim Meyering  <meyering@ascend.com>
86254
86255         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86256         * m4/stat.m4: Likewise.
86257
86258 1998-11-03  Jim Meyering  <meyering@ascend.com>
86259
86260         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86261         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86262
86263 1998-10-18  Jim Meyering  <meyering@ascend.com>
86264
86265         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86266
86267 1998-10-17  Jim Meyering  <meyering@ascend.com>
86268
86269         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86270         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86271         calls for those previously hard-coded headers.  Instead, take a new
86272         parameter.
86273         (jm_CHECK_DECLARATIONS): Reflect interface change.
86274         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86275         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86276
86277         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86278
86279 1998-10-14  Jim Meyering  <meyering@ascend.com>
86280
86281         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86282         instead of "TZ=America/Vancouver".  From Paul Eggert.
86283
86284 1998-10-11  Jim Meyering  <meyering@ascend.com>
86285
86286         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86287         This adds a test for a recently added compatibility fix for mktime.c.
86288         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86289
86290 1998-09-27  Jim Meyering  <meyering@ascend.com>
86291
86292         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86293
86294         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86295         ../configure.in, including a change from Gordon Matzigkeit to allow
86296         cross-compiling for the Hurd.
86297
86298         * m4/glibc.m4: New file/macro to test for the GNU C Library
86299         versions 1 and 2.  From Gordon Matzigkeit.
86300         Indent.
86301
86302 1998-09-21  Jim Meyering  <meyering@ascend.com>
86303
86304         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86305
86306 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86307
86308         Port nanosecond-resolution times to UnixWare 2.1.2 and
86309         pedantic Solaris 2.6.
86310
86311         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86312         AC_STRUCT_ST_MTIM.
86313         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86314         Generate name of ns member, instead of just 1 or undef.
86315         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86316
86317 1998-08-15  Jim Meyering  <meyering@ascend.com>
86318
86319         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86320         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86321         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86322         instead of jm_TYPE_SSIZE_T.
86323
86324 1998-08-12  Jim Meyering  <meyering@ascend.com>
86325
86326         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86327
86328 1998-08-02  Jim Meyering  <meyering@ascend.com>
86329
86330         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86331         in acconfig.h manually.
86332
86333 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86334
86335         * m4/st_mtim.m4: New file.
86336
86337 1998-07-28  Jim Meyering  <meyering@ascend.com>
86338
86339         * m4/utimes.m4: Undef stat.
86340
86341 1998-07-25  Jim Meyering  <meyering@ascend.com>
86342
86343         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86344         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86345
86346 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86347
86348         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86349         uid and gid actually remain unchanged.
86350
86351 1998-07-07  Jim Meyering  <meyering@ascend.com>
86352
86353         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86354
86355 1998-07-04  Jim Meyering  <meyering@ascend.com>
86356
86357         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86358         to prove that this macro can be used in packages without regex.c.
86359
86360 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86361
86362         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86363         is to be used.
86364
86365 1998-07-03  Jim Meyering  <meyering@ascend.com>
86366
86367         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86368
86369         * m4/gettext.m4: New file -- from gettext-0.10.35.
86370         * m4/lcmessage.m4: Likewise.
86371         * m4/progtest.m4: Likewise.
86372
86373         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86374         * m4/jm-macros.m4: Require the new macro.
86375
86376 1998-06-29  Jim Meyering  <meyering@ascend.com>
86377
86378         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86379         for the definition of NGROUPS (used in a system header included
86380         by sys/mount.h).
86381
86382 1998-06-28  Jim Meyering  <meyering@ascend.com>
86383
86384         * m4/ls-mntd-fs.m4: New file.
86385         * m4/fstypename.m4: New file.
86386
86387         * m4/jm-macros.m4: Require the new macro.
86388         * m4/jm-glibc-io.m4: New file.
86389
86390 1998-05-19  Jim Meyering  <meyering@ascend.com>
86391
86392         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86393         * m4/lchown.m4: New file.
86394
86395         * m4/Makefile.am.in: New file.
86396         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86397
86398 1998-05-14  Jim Meyering  <meyering@ascend.com>
86399
86400         * m4/Makefile.am (EXTRA_DIST): Add them.
86401         * m4/jm-macros.m4: New file.
86402         * m4/utimbuf.m4: New file.
86403
86404 1998-05-12  Jim Meyering  <meyering@ascend.com>
86405
86406         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86407
86408 1998-05-11  Jim Meyering  <meyering@ascend.com>
86409
86410         * m4/isc-posix.m4: New file.
86411
86412 1998-05-10  Jim Meyering  <meyering@ascend.com>
86413
86414         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86415
86416 1998-05-09  Jim Meyering  <meyering@ascend.com>
86417
86418         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86419         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86420         with automake.
86421
86422         * m4/ssize_t.m4: New file.
86423         * m4/mktime.m4: Remove file -- the new automake has this now.
86424
86425 1998-04-26  Jim Meyering  <meyering@ascend.com>
86426
86427         * m4/assert.m4: New file.
86428         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86429
86430 1998-04-05  Jim Meyering  <meyering@ascend.com>
86431
86432         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86433         (jm_PREREQ): Use it here.
86434
86435 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86436
86437         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86438         in acconfig.h.
86439
86440 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86441
86442         * m4/prereq.m4: New file.
86443         * m4/error.m4: New file.
86444         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86445
86446 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86447
86448         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86449         cache-check for the same variable -- that defeated the purpose of
86450         the test; the test program was never run.  This was a problem only
86451         on systems with losing getline functions -- HP-UX 10.20 is one.
86452         Reported by Bjorn Helgaas.
86453
86454 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86455
86456         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86457
86458 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86459
86460         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86461
86462         * m4/const.m4: New file.  Use an initializer in this declaration
86463         typedef int charset[2]; const charset x;
86464         Reported by Bob Glickstein.
86465
86466 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86467
86468         * m4/chown.m4: Fix reversed types on -1 args to chown.
86469         From Kaveh Ghazi.
86470
86471 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86472
86473         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86474         Add lseek and memchr.
86475
86476         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86477         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86478         have a 20-character limit on names.
86479
86480 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86481
86482         * m4/inttypes_h.m4: New file.
86483         * m4/uintmax_t.m4: New file.
86484         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86485
86486
86487         -----
86488
86489         Local Variables:
86490         coding: utf-8
86491         End:
86492
86493         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86494
86495         Copying and distribution of this file, with or without
86496         modification, are permitted provided the copyright notice
86497         and this notice are preserved.